summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/freescale/fsl-imx8qxp-colibri-lvds-single-eval-v3.dts
blob: 5a5ed0f3f441724d70103f988ff28acf834f8358 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
// SPDX-License-Identifier: GPL-2.0+ OR X11
/*
 * Copyright 2018-2019 Toradex
 */

/dts-v1/;

#include "dt-bindings/pwm/pwm.h"
#include "fsl-imx8qxp-colibri.dtsi"
#include "fsl-imx8qxp-colibri-eval-v3.dtsi"

/ {
	model = "Toradex Colibri iMX8QXP/DX with single channel lvds";
	compatible = "toradex,colibri-imx8qxp-lvds-single-eval-v3", "toradex,colibri-imx8qxp", "fsl,imx8qxp";

	lvds1_panel {
		compatible = "logictechno,lt170410-2whc";
		backlight = <&backlight>;

		port {
			panel_lvds1_in: endpoint {
				remote-endpoint = <&lvds1_out>;
			};
		};
	};
};

/* Colibri Parallel RGB */
&adma_lcdif {
	status = "disabled";
};

/*
 * Atmel maxtouch controller
 * To enable it, you should disable pwm0 (PWM_B) and pwm1 (PWM_C)
 */
&atmel_mxt_ts {
        pinctrl-0 = <&pinctrl_touch>;
        interrupt-parent = <&gpio0>;
        interrupts = <21 IRQ_TYPE_EDGE_FALLING>;        /* SODIMM 28 */
        reset-gpios = <&gpio0 22 GPIO_ACTIVE_HIGH>;     /* SODIMM 30 */
	status = "okay";
};

&backlight {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_gpio_bklght_on>;
	brightness-levels = <0 45 63 88 119 158 203 255>;
	default-brightness-level = <4>;
	enable-gpios = <&gpio1 31 GPIO_ACTIVE_HIGH>; /* Ext.Conn 25: LVDS1_GPIO0_00 */
	pwms = <&pwm_adma_lcdif 0 6666667 PWM_POLARITY_INVERTED>;
	status = "okay";
};

&iomuxc {
	pinctrl-names = "default";

	colibri-imx8qxp {
		pinctrl_touch: touchgrp {
			fsl,pins = <
				SC_P_UART1_TX_LSIO_GPIO0_IO21	0x06000040	/* SODIMM  28 */
				SC_P_UART1_RX_LSIO_GPIO0_IO22	0x06000020	/* SODIMM  30 */
			>;
		};

		pinctrl_gpio_bklght_on: gpio-bl-on {
			fsl,pins = <
				SC_P_MIPI_DSI1_GPIO0_00_LSIO_GPIO1_IO31		0x00000020
			>;
		};
	};
};

&ldb1_phy {
	status = "okay";
};

&ldb1 {
	status = "okay";

	lvds-channel@0 {
		fsl,data-mapping = "spwg";
		fsl,data-width = <24>; /* Actually would need 18 but isn't supported by the driver */
		status = "okay";

		port@1 {
			reg = <1>;

			lvds1_out: endpoint {
				remote-endpoint = <&panel_lvds1_in>;
			};
		};
	};
};

&mipi_dsi_phy1 {
	status = "okay";
};

&mipi_dsi1 {
	status = "okay";
};

&mipi_dsi_bridge1 {
	status = "disabled";
};

/* On-module MIPI DSI accessible on FFC (X2) */
&i2c0_mipi_lvds1 {
	status = "disabled";
};

&ldb2_phy {
	status = "disabled";
};

&ldb2 {
	status = "disabled";
};

&mipi_dsi_phy2 {
	status = "disabled";
};

&mipi_dsi2 {
	status = "disabled";
};

&mipi_dsi_bridge2 {
	status = "disabled";
};

&i2c1 {
	status = "okay";
};