]> git.kernelconcepts.de Git - karo-tx-linux.git/blob - arch/arm/boot/dts/imx6dl-tx6s-8035.dts
ARM: dts: imx6: add support for Ka-Ro TX6 HW Rev. 3 modules
[karo-tx-linux.git] / arch / arm / boot / dts / imx6dl-tx6s-8035.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 TX6S-8035 Module";
18         compatible = "karo,imx6dl-tx6dl", "fsl,imx6dl";
19
20         aliases {
21                 display = &mxcfb0;
22                 mxcfb0 = &mxcfb0;
23         };
24
25         backlight: backlight {
26                 compatible = "pwm-backlight";
27                 pwms = <&pwm2 0 500000 PWM_POLARITY_INVERTED>;
28                 power-supply = <&reg_3v3>;
29                 /*
30                  * a poor man's way to create a 1:1 relationship between
31                  * the PWM value and the actual duty cycle
32                  */
33                 brightness-levels = < 0  1  2  3  4  5  6  7  8  9
34                                      10 11 12 13 14 15 16 17 18 19
35                                      20 21 22 23 24 25 26 27 28 29
36                                      30 31 32 33 34 35 36 37 38 39
37                                      40 41 42 43 44 45 46 47 48 49
38                                      50 51 52 53 54 55 56 57 58 59
39                                      60 61 62 63 64 65 66 67 68 69
40                                      70 71 72 73 74 75 76 77 78 79
41                                      80 81 82 83 84 85 86 87 88 89
42                                      90 91 92 93 94 95 96 97 98 99
43                                     100>;
44                 default-brightness-level = <50>;
45         };
46
47         mxcfb0: fb@2 {
48                 compatible = "fsl,mxc_sdc_fb";
49                 disp_dev = "lcd";
50                 interface_pix_fmt = "RGB24";
51                 mode_str = "";
52                 default_bpp = <32>;
53                 int_clk = <1>;
54                 late_init = <0>;
55                 status = "okay";
56
57                 display-timings {
58                         VGA {
59                                 clock-frequency = <25200000>;
60                                 hactive = <640>;
61                                 vactive = <480>;
62                                 hback-porch = <48>;
63                                 hsync-len = <96>;
64                                 hfront-porch = <16>;
65                                 vback-porch = <31>;
66                                 vsync-len = <2>;
67                                 vfront-porch = <12>;
68                                 hsync-active = <0>;
69                                 vsync-active = <0>;
70                                 de-active = <1>;
71                                 pixelclk-active = <0>;
72                         };
73
74                         ETV570 {
75                                 clock-frequency = <25200000>;
76                                 hactive = <640>;
77                                 vactive = <480>;
78                                 hback-porch = <114>;
79                                 hsync-len = <30>;
80                                 hfront-porch = <16>;
81                                 vback-porch = <32>;
82                                 vsync-len = <3>;
83                                 vfront-porch = <10>;
84                                 hsync-active = <0>;
85                                 vsync-active = <0>;
86                                 de-active = <1>;
87                                 pixelclk-active = <0>;
88                         };
89
90                         ET0350 {
91                                 clock-frequency = <6413760>;
92                                 hactive = <320>;
93                                 vactive = <240>;
94                                 hback-porch = <34>;
95                                 hsync-len = <34>;
96                                 hfront-porch = <20>;
97                                 vback-porch = <15>;
98                                 vsync-len = <3>;
99                                 vfront-porch = <4>;
100                                 hsync-active = <0>;
101                                 vsync-active = <0>;
102                                 de-active = <1>;
103                                 pixelclk-active = <0>;
104                         };
105
106                         ET0430 {
107                                 clock-frequency = <9009000>;
108                                 hactive = <480>;
109                                 vactive = <272>;
110                                 hback-porch = <2>;
111                                 hsync-len = <41>;
112                                 hfront-porch = <2>;
113                                 vback-porch = <2>;
114                                 vsync-len = <10>;
115                                 vfront-porch = <2>;
116                                 hsync-active = <0>;
117                                 vsync-active = <0>;
118                                 de-active = <1>;
119                                 pixelclk-active = <1>;
120                         };
121
122                         ET0500 {
123                                 clock-frequency = <33264000>;
124                                 hactive = <800>;
125                                 vactive = <480>;
126                                 hback-porch = <88>;
127                                 hsync-len = <128>;
128                                 hfront-porch = <40>;
129                                 vback-porch = <33>;
130                                 vsync-len = <2>;
131                                 vfront-porch = <10>;
132                                 hsync-active = <0>;
133                                 vsync-active = <0>;
134                                 de-active = <1>;
135                                 pixelclk-active = <0>;
136                         };
137
138                         ET0700 { /* same as ET0500 */
139                                 clock-frequency = <33264000>;
140                                 hactive = <800>;
141                                 vactive = <480>;
142                                 hback-porch = <88>;
143                                 hsync-len = <128>;
144                                 hfront-porch = <40>;
145                                 vback-porch = <33>;
146                                 vsync-len = <2>;
147                                 vfront-porch = <10>;
148                                 hsync-active = <0>;
149                                 vsync-active = <0>;
150                                 de-active = <1>;
151                                 pixelclk-active = <0>;
152                         };
153
154                         ETQ570 {
155                                 clock-frequency = <6596040>;
156                                 hactive = <320>;
157                                 vactive = <240>;
158                                 hback-porch = <38>;
159                                 hsync-len = <30>;
160                                 hfront-porch = <30>;
161                                 vback-porch = <16>;
162                                 vsync-len = <3>;
163                                 vfront-porch = <4>;
164                                 hsync-active = <0>;
165                                 vsync-active = <0>;
166                                 de-active = <1>;
167                                 pixelclk-active = <0>;
168                         };
169                 };
170         };
171
172         lcd: lcd@0 {
173                 compatible = "fsl,lcd";
174                 ipu_id = <0>;
175                 disp_id = <0>;
176                 default_ifmt = "RGB24";
177                 pinctrl-names = "default";
178                 pinctrl-0 = <&pinctrl_disp0_2>;
179                 status = "okay";
180         };
181 };
182
183 &ds1339 {
184         status = "disabled";
185 };
186
187 &gpmi {
188         status = "disabled";
189 };
190
191 &iomuxc {
192         imx6qdl-tx6 {
193                 pinctrl_usdhc4: usdhc4grp {
194                         fsl,pins = <
195                                 MX6QDL_PAD_SD4_CMD__SD4_CMD             0x070b1
196                                 MX6QDL_PAD_SD4_CLK__SD4_CLK             0x070b1
197                                 MX6QDL_PAD_SD4_DAT0__SD4_DATA0          0x070b1
198                                 MX6QDL_PAD_SD4_DAT1__SD4_DATA1          0x070b1
199                                 MX6QDL_PAD_SD4_DAT2__SD4_DATA2          0x070b1
200                                 MX6QDL_PAD_SD4_DAT3__SD4_DATA3          0x070b1
201                                 MX6QDL_PAD_NANDF_ALE__SD4_RESET         0x0b0b1
202                         >;
203                 };
204         };
205 };
206
207 &reg_lcd0_pwr {
208         status = "okay";
209 };
210
211 &reg_lcd1_pwr {
212         status = "okay";
213 };
214
215 &usdhc4 {
216         pinctrl-names = "default";
217         pinctrl-0 = <&pinctrl_usdhc4>;
218         bus-width = <4>;
219         no-1-8-v;
220         fsl,wp-controller;
221         status = "okay";
222 };