]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/imx6q-tx6q-11x0-mb7.dts
f14ed86d0cd5308e658a5d6dfe8db81c4e3deae2
[karo-tx-linux.git] / arch / arm / boot / dts / imx6q-tx6q-11x0-mb7.dts
1 /*
2  * Copyright 2014 Lothar Waßmann <LW@KARO-electronics.de>
3  *
4  * The code contained herein is licensed under the GNU General Public
5  * License. You may obtain a copy of the GNU General Public License
6  * Version 2 at the following locations:
7  *
8  * http://www.opensource.org/licenses/gpl-license.html
9  * http://www.gnu.org/copyleft/gpl.html
10  */
11
12 /dts-v1/;
13 #include "imx6q.dtsi"
14 #include "imx6qdl-tx6.dtsi"
15
16 / {
17         model = "Ka-Ro electronics TX6Q-1110 Module";
18         compatible = "karo,imx6q-tx6q", "fsl,imx6q";
19
20         aliases {
21                 display = &ldb;
22                 ipu1 = &ipu2;
23                 lvds0 = &lvds0;
24                 lvds1 = &lvds1;
25                 mxcfb0 = &lvds0;
26                 mxcfb1 = &lvds1;
27         };
28
29         backlight0: backlight0 {
30                 compatible = "pwm-backlight";
31                 pwms = <&pwm2 0 500000 PWM_POLARITY_INVERTED>;
32                 power-supply = <&reg_lcd0_pwr>;
33                 /*
34                  * a poor man's way to create a 1:1 relationship between
35                  * the PWM value and the actual duty cycle
36                  */
37                 brightness-levels = < 0  1  2  3  4  5  6  7  8  9
38                                      10 11 12 13 14 15 16 17 18 19
39                                      20 21 22 23 24 25 26 27 28 29
40                                      30 31 32 33 34 35 36 37 38 39
41                                      40 41 42 43 44 45 46 47 48 49
42                                      50 51 52 53 54 55 56 57 58 59
43                                      60 61 62 63 64 65 66 67 68 69
44                                      70 71 72 73 74 75 76 77 78 79
45                                      80 81 82 83 84 85 86 87 88 89
46                                      90 91 92 93 94 95 96 97 98 99
47                                     100>;
48                 default-brightness-level = <50>;
49         };
50
51         backlight1: backlight1 {
52                 compatible = "pwm-backlight";
53                 pwms = <&pwm1 0 500000 PWM_POLARITY_INVERTED>;
54                 power-supply = <&reg_lcd1_pwr>;
55                 /*
56                  * a poor man's way to create a 1:1 relationship between
57                  * the PWM value and the actual duty cycle
58                  */
59                 brightness-levels = < 0  1  2  3  4  5  6  7  8  9
60                                      10 11 12 13 14 15 16 17 18 19
61                                      20 21 22 23 24 25 26 27 28 29
62                                      30 31 32 33 34 35 36 37 38 39
63                                      40 41 42 43 44 45 46 47 48 49
64                                      50 51 52 53 54 55 56 57 58 59
65                                      60 61 62 63 64 65 66 67 68 69
66                                      70 71 72 73 74 75 76 77 78 79
67                                      80 81 82 83 84 85 86 87 88 89
68                                      90 91 92 93 94 95 96 97 98 99
69                                     100>;
70                 default-brightness-level = <50>;
71         };
72
73         lvds0: fb@0 {
74                 compatible = "fsl,mxc_sdc_fb";
75                 disp_dev = "ldb";
76                 interface_pix_fmt = "RGB666";
77                 mode_str = "LDB-VGA";
78                 default_bpp = <32>;
79                 int_clk = <0>;
80                 late_init = <0>;
81                 status = "okay";
82         };
83
84         lvds1: fb@1 {
85                 compatible = "fsl,mxc_sdc_fb";
86                 disp_dev = "ldb";
87                 interface_pix_fmt = "RGB666";
88                 mode_str = "LDB-NL12880BC20";
89                 default_bpp = <32>;
90                 int_clk = <0>;
91                 late_init = <0>;
92                 status = "okay";
93         };
94 };
95
96 &i2c3 {
97         polytouch1: eeti@04 {
98                 compatible = "eeti,egalax_ts";
99                 reg = <0x04>;
100                 pinctrl-names = "default";
101                 pinctrl-0 = <&pinctrl_eeti>;
102                 interrupt-parent = <&gpio3>;
103                 interrupts = <22 0>;
104                 wakeup-gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>;
105                 linux,wakeup;
106         };
107 };
108
109 &iomuxc {
110         imx6q-tx6q-1110 {
111                 pinctrl_eeti: eetigrp {
112                         fsl,pins = <
113                                 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b1 /* Interrupt */
114                         >;
115                 };
116         };
117 };
118
119 &ipu2 {
120         status = "okay";
121 };
122
123 &kpp {
124         status = "disabled"; /* pads partially clash with backlight1 PWM */
125 };
126
127 &ldb {
128         ipu_id = <0>;
129         disp_id = <0>;
130         ext_ref = <0>;
131         mode = "sep0";
132         sec_ipu_id = <0>;
133         sec_disp_id = <1>;
134         status = "okay";
135         fsl,data-mapping = "spwg";
136         fsl,data-width = <18>;
137
138         display_timings: display-timings {
139                 native-mode = <&lvds_timing0>;
140
141                 lvds_timing0: hsd100pxn1 {
142                         clock-frequency = <65000000>;
143                         hactive = <1024>;
144                         vactive = <768>;
145                         hback-porch = <220>;
146                         hfront-porch = <40>;
147                         vback-porch = <21>;
148                         vfront-porch = <7>;
149                         hsync-len = <60>;
150                         vsync-len = <10>;
151                         de-active = <1>;
152                         pixelclk-active = <1>;
153                 };
154
155                 lvds_timing1: VGA {
156                         clock-frequency = <25200000>;
157                         hactive = <640>;
158                         vactive = <480>;
159                         hback-porch = <48>;
160                         hfront-porch = <16>;
161                         vback-porch = <31>;
162                         vfront-porch = <12>;
163                         hsync-len = <96>;
164                         vsync-len = <2>;
165                         hsync-active = <0>;
166                         vsync-active = <0>;
167                         de-active = <1>;
168                         pixelclk-active = <0>;
169                 };
170
171                 lvds_timing2: nl12880bc20 {
172                         clock-frequency = <50000000>;
173                         hactive = <1280>;
174                         vactive = <800>;
175                         hback-porch = <50>;
176                         hfront-porch = <50>;
177                         vback-porch = <5>;
178                         vfront-porch = <5>;
179                         hsync-len = <60>;
180                         vsync-len = <13>;
181                         hsync-active = <0>;
182                         vsync-active = <0>;
183                         de-active = <1>;
184                         pixelclk-active = <1>;
185                 };
186         };
187 };
188
189 &lvds0 {
190         display-timings {
191                 native-mode = <&lvds0_timing2>;
192
193                 lvds0_timing0: hsd100pxn1 {
194                         clock-frequency = <65000000>;
195                         hactive = <1024>;
196                         vactive = <768>;
197                         hback-porch = <220>;
198                         hfront-porch = <40>;
199                         vback-porch = <21>;
200                         vfront-porch = <7>;
201                         hsync-len = <60>;
202                         vsync-len = <10>;
203                         de-active = <1>;
204                         pixelclk-active = <1>;
205                 };
206
207                 lvds0_timing1: VGA {
208                         clock-frequency = <25200000>;
209                         hactive = <640>;
210                         vactive = <480>;
211                         hback-porch = <48>;
212                         hfront-porch = <16>;
213                         vback-porch = <31>;
214                         vfront-porch = <12>;
215                         hsync-len = <96>;
216                         vsync-len = <2>;
217                         hsync-active = <0>;
218                         vsync-active = <0>;
219                         de-active = <1>;
220                         pixelclk-active = <0>;
221                 };
222
223                 lvds0_timing2: nl12880bc20 {
224                         clock-frequency = <71000000>;
225                         hactive = <1280>;
226                         vactive = <800>;
227                         hback-porch = <50>;
228                         hfront-porch = <50>;
229                         vback-porch = <5>;
230                         vfront-porch = <5>;
231                         hsync-len = <60>;
232                         vsync-len = <13>;
233                         hsync-active = <0>;
234                         vsync-active = <0>;
235                         de-active = <1>;
236                         pixelclk-active = <1>;
237                 };
238         };
239 };
240
241 &lvds1 {
242         display-timings {
243                 native-mode = <&lvds1_timing2>;
244
245                 lvds1_timing0: hsd100pxn1 {
246                         clock-frequency = <65000000>;
247                         hactive = <1024>;
248                         vactive = <768>;
249                         hback-porch = <220>;
250                         hfront-porch = <40>;
251                         vback-porch = <21>;
252                         vfront-porch = <7>;
253                         hsync-len = <60>;
254                         vsync-len = <10>;
255                         de-active = <1>;
256                         pixelclk-active = <1>;
257                 };
258
259                 lvds1_timing1: VGA {
260                         clock-frequency = <25200000>;
261                         hactive = <640>;
262                         vactive = <480>;
263                         hback-porch = <48>;
264                         hfront-porch = <16>;
265                         vback-porch = <31>;
266                         vfront-porch = <12>;
267                         hsync-len = <96>;
268                         vsync-len = <2>;
269                         hsync-active = <0>;
270                         vsync-active = <0>;
271                         de-active = <1>;
272                         pixelclk-active = <0>;
273                 };
274
275                 lvds1_timing2: nl12880bc20 {
276                         clock-frequency = <71000000>;
277                         hactive = <1280>;
278                         vactive = <800>;
279                         hback-porch = <50>;
280                         hfront-porch = <50>;
281                         vback-porch = <5>;
282                         vfront-porch = <5>;
283                         hsync-len = <60>;
284                         vsync-len = <13>;
285                         hsync-active = <0>;
286                         vsync-active = <0>;
287                         de-active = <1>;
288                         pixelclk-active = <1>;
289                 };
290         };
291 };
292
293 &pwm1 {
294         status = "okay";
295 };
296
297 &reg_lcd0_pwr {
298         status = "okay";
299 };
300
301 &reg_lcd1_pwr {
302         status = "okay";
303 };
304
305 &sata {
306         status = "okay";
307 };