]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/imx6q-tx6q-11x0.dts
ARM: dts: imx6: add more Ka-Ro TX6 board variants
[karo-tx-linux.git] / arch / arm / boot / dts / imx6q-tx6q-11x0.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/-1130 Module";
18         compatible = "karo,imx6q-tx6q", "fsl,imx6q";
19
20         aliases {
21                 display = &lvds0;
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 0>;
32                 /*
33                  * a poor man's way to create a 1:1 relationship between
34                  * the PWM value and the actual duty cycle
35                  */
36                 brightness-levels = < 0  1  2  3  4  5  6  7  8  9
37                                      10 11 12 13 14 15 16 17 18 19
38                                      20 21 22 23 24 25 26 27 28 29
39                                      30 31 32 33 34 35 36 37 38 39
40                                      40 41 42 43 44 45 46 47 48 49
41                                      50 51 52 53 54 55 56 57 58 59
42                                      60 61 62 63 64 65 66 67 68 69
43                                      70 71 72 73 74 75 76 77 78 79
44                                      80 81 82 83 84 85 86 87 88 89
45                                      90 91 92 93 94 95 96 97 98 99
46                                     100>;
47                 default-brightness-level = <50>;
48         };
49
50         backlight1: backlight1 {
51                 compatible = "pwm-backlight";
52                 pwms = <&pwm1 0 500000 0>;
53                 /*
54                  * a poor man's way to create a 1:1 relationship between
55                  * the PWM value and the actual duty cycle
56                  */
57                 brightness-levels = < 0  1  2  3  4  5  6  7  8  9
58                                      10 11 12 13 14 15 16 17 18 19
59                                      20 21 22 23 24 25 26 27 28 29
60                                      30 31 32 33 34 35 36 37 38 39
61                                      40 41 42 43 44 45 46 47 48 49
62                                      50 51 52 53 54 55 56 57 58 59
63                                      60 61 62 63 64 65 66 67 68 69
64                                      70 71 72 73 74 75 76 77 78 79
65                                      80 81 82 83 84 85 86 87 88 89
66                                      90 91 92 93 94 95 96 97 98 99
67                                     100>;
68                 default-brightness-level = <50>;
69         };
70
71         lvds0: fb@0 {
72                 compatible = "fsl,mxc_sdc_fb";
73                 disp_dev = "ldb";
74                 interface_pix_fmt = "RGB666";
75                 mode_str = "LDB-XGA";
76                 default_bpp = <32>;
77                 int_clk = <0>;
78                 late_init = <0>;
79                 fsl,data-mapping = "spwg";
80                 fsl,data-width = <18>;
81                 status = "okay";
82
83                 display-timings {
84                         native-mode = <&lvds0_timing0>;
85
86                         lvds0_timing0: hsd100pxn1 {
87                                 clock-frequency = <65000000>;
88                                 hactive = <1024>;
89                                 vactive = <768>;
90                                 hback-porch = <220>;
91                                 hfront-porch = <40>;
92                                 vback-porch = <21>;
93                                 vfront-porch = <7>;
94                                 hsync-len = <60>;
95                                 vsync-len = <10>;
96                                 hsync-active = <0>;
97                                 vsync-active = <0>;
98                                 de-active = <1>;
99                                 pixelclk-active = <1>;
100                         };
101
102                         lvds0_timing1: VGA {
103                                 clock-frequency = <25200000>;
104                                 hactive = <640>;
105                                 vactive = <480>;
106                                 hback-porch = <48>;
107                                 hfront-porch = <16>;
108                                 vback-porch = <31>;
109                                 vfront-porch = <12>;
110                                 hsync-len = <96>;
111                                 vsync-len = <2>;
112                                 hsync-active = <0>;
113                                 vsync-active = <0>;
114                                 de-active = <1>;
115                                 pixelclk-active = <0>;
116                         };
117
118                         lvds0_timing2: nl12880bc20 {
119                                 clock-frequency = <71000000>;
120                                 hactive = <1280>;
121                                 vactive = <800>;
122                                 hback-porch = <50>;
123                                 hfront-porch = <50>;
124                                 vback-porch = <5>;
125                                 vfront-porch = <5>;
126                                 hsync-len = <60>;
127                                 vsync-len = <13>;
128                                 hsync-active = <0>;
129                                 vsync-active = <0>;
130                                 de-active = <1>;
131                                 pixelclk-active = <0>;
132                         };
133                 };
134         };
135
136         lvds1: fb@1 {
137                 compatible = "fsl,mxc_sdc_fb";
138                 disp_dev = "ldb";
139                 interface_pix_fmt = "RGB666";
140                 mode_str = "LDB-XGA";
141                 default_bpp = <32>;
142                 int_clk = <0>;
143                 late_init = <0>;
144                 fsl,data-mapping = "spwg";
145                 fsl,data-width = <18>;
146                 status = "okay";
147
148                 display-timings {
149                         native-mode = <&lvds1_timing0>;
150
151                         lvds1_timing0: hsd100pxn1 {
152                                 clock-frequency = <65000000>;
153                                 hactive = <1024>;
154                                 vactive = <768>;
155                                 hback-porch = <220>;
156                                 hfront-porch = <40>;
157                                 vback-porch = <21>;
158                                 vfront-porch = <7>;
159                                 hsync-len = <60>;
160                                 vsync-len = <10>;
161                                 hsync-active = <0>;
162                                 vsync-active = <0>;
163                                 de-active = <1>;
164                                 pixelclk-active = <0>;
165                         };
166
167                         lvds1_timing1: VGA {
168                                 clock-frequency = <25200000>;
169                                 hactive = <640>;
170                                 vactive = <480>;
171                                 hback-porch = <48>;
172                                 hfront-porch = <16>;
173                                 vback-porch = <31>;
174                                 vfront-porch = <12>;
175                                 hsync-len = <96>;
176                                 vsync-len = <2>;
177                                 hsync-active = <0>;
178                                 vsync-active = <0>;
179                                 de-active = <1>;
180                                 pixelclk-active = <0>;
181                         };
182
183                         lvds1_timing2: nl12880bc20 {
184                                 clock-frequency = <71000000>;
185                                 hactive = <1280>;
186                                 vactive = <800>;
187                                 hback-porch = <50>;
188                                 hfront-porch = <50>;
189                                 vback-porch = <5>;
190                                 vfront-porch = <5>;
191                                 hsync-len = <60>;
192                                 vsync-len = <13>;
193                                 hsync-active = <0>;
194                                 vsync-active = <0>;
195                                 de-active = <1>;
196                                 pixelclk-active = <0>;
197                         };
198                 };
199         };
200 };
201
202 &i2c3 {
203         polytouch1: eeti@04 {
204                 compatible = "eeti,egalax_ts";
205                 reg = <0x04>;
206                 pinctrl-names = "default";
207                 pinctrl-0 = <&pinctrl_eeti>;
208                 interrupt-parent = <&gpio3>;
209                 interrupts = <22 0>;
210                 wakeup-gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>;
211                 linux,wakeup;
212         };
213 };
214
215 &iomuxc {
216         imx6q-tx6q-11x0 {
217                 pinctrl_eeti: eetigrp {
218                         fsl,pins = <
219                                 MX6QDL_PAD_EIM_D22__GPIO3_IO22 0x1b0b1 /* Interrupt */
220                         >;
221                 };
222         };
223 };
224
225 &ipu2 {
226         status = "disabled";
227 };
228
229 &kpp {
230         status = "disabled"; /* pads partially clash with backlight1 PWM */
231 };
232
233 &ldb {
234         ipu_id = <0>;
235         disp_id = <0>;
236         ext_ref = <0>;
237         mode = "sep0";
238         sec_ipu_id = <0>;
239         sec_disp_id = <1>;
240         status = "okay";
241 };
242
243 &pwm1 {
244         status = "okay";
245 };
246
247 &sata {
248         status = "okay";
249 };