summaryrefslogtreecommitdiff
path: root/arch/arm64/boot/dts/freescale/imx8mp-skov-revb-lt6.dts
blob: baecf768a2ee08a16c9333e8a1f20fbfef19f865 (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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
// SPDX-License-Identifier: (GPL-2.0 OR MIT)

/dts-v1/;

#include "imx8mp-skov-reva.dtsi"

/ {
	model = "SKOV IMX8MP CPU revB - LT6";
	compatible = "skov,imx8mp-skov-revb-lt6", "fsl,imx8mp";

	lvds-decoder {
		compatible = "ti,sn65lvds822", "lvds-decoder";
		power-supply = <&reg_3v3>;

		ports {
			#address-cells = <1>;
			#size-cells = <0>;

			port@0 {
				reg = <0>;

				in_lvds1: endpoint {
					data-mapping = "vesa-24";
					remote-endpoint = <&ldb_lvds_ch1>;
				};
			};

			port@1 {
				reg = <1>;

				lvds_decoder_out: endpoint {
					remote-endpoint = <&panel_in>;
				};
			};
		};
	};

	panel {
		compatible = "logictechno,lttd800480070-l6wh-rt";
		backlight = <&backlight>;
		power-supply = <&reg_tft_vcom>;

		port {
			panel_in: endpoint {
				remote-endpoint = <&lvds_decoder_out>;
			};
		};
	};

	touchscreen {
		compatible = "resistive-adc-touch";
		io-channels = <&adc_ts 1>, <&adc_ts 3>, <&adc_ts 4>, <&adc_ts 5>;
		io-channel-names = "y", "z1", "z2", "x";
		touchscreen-min-pressure = <65000>;
		touchscreen-inverted-y;
		touchscreen-swapped-x-y;
		touchscreen-x-plate-ohms = <300>;
	};
};

&reg_tft_vcom {
	regulator-min-microvolt = <3600000>;
	regulator-max-microvolt = <3600000>;
	voltage-table = <3600000 26>;
	status = "okay";
};

&pwm4 {
	status = "okay";
};

&backlight {
	status = "okay";
};

&ecspi1 {
	pinctrl-names = "default";
	pinctrl-0 = <&pinctrl_ecspi1>;
	cs-gpios = <&gpio5 9 GPIO_ACTIVE_LOW>;
	status = "okay";

	adc_ts: adc@0 {
		compatible = "ti,tsc2046e-adc";
		reg = <0>;
		pinctrl-0 = <&pinctrl_touch>;
		pinctrl-names ="default";
		spi-max-frequency = <1000000>;
		interrupts-extended = <&gpio4 25 IRQ_TYPE_LEVEL_LOW>;
		#io-channel-cells = <1>;

		#address-cells = <1>;
		#size-cells = <0>;

		channel@1 {
			reg = <1>;
			settling-time-us = <700>;
			oversampling-ratio = <5>;
		};

		channel@3 {
			reg = <3>;
			settling-time-us = <700>;
			oversampling-ratio = <5>;
		};

		channel@4 {
			reg = <4>;
			settling-time-us = <700>;
			oversampling-ratio = <5>;
		};

		channel@5 {
			reg = <5>;
			settling-time-us = <700>;
			oversampling-ratio = <5>;
		};
	};
};

&lcdif2 {
	status = "okay";
};

&lvds_bridge {
	assigned-clocks = <&clk IMX8MP_CLK_MEDIA_LDB>,
				 <&clk IMX8MP_VIDEO_PLL1>;
	assigned-clock-parents = <&clk IMX8MP_VIDEO_PLL1_OUT>;
	/* IMX8MP_VIDEO_PLL1 = IMX8MP_CLK_MEDIA_DISP2_PIX * 2 * 7 */
	assigned-clock-rates = <0>, <462000000>;
	status = "okay";

	ports {
		port@2 {
			ldb_lvds_ch1: endpoint {
				remote-endpoint = <&in_lvds1>;
			};
		};
	};
};

&pwm1 {
	status = "okay";
};

&iomuxc {
	pinctrl_ecspi1: ecspi1grp {
		fsl,pins = <
			MX8MP_IOMUXC_ECSPI1_SCLK__ECSPI1_SCLK			0x44
			MX8MP_IOMUXC_ECSPI1_MOSI__ECSPI1_MOSI			0x44
			MX8MP_IOMUXC_ECSPI1_MISO__ECSPI1_MISO			0x44
			MX8MP_IOMUXC_ECSPI1_SS0__GPIO5_IO09			0x40
		>;
	};

	pinctrl_touch: touchgrp {
		fsl,pins = <
			/* external pull up */
			MX8MP_IOMUXC_SAI2_TXC__GPIO4_IO25			0x40
		>;
	};
};