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