]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/karo/dts/tx53.dts
Updated DT data to be in sync with 3.4 kernel
[karo-tx-uboot.git] / board / karo / dts / tx53.dts
1 /*
2  * Copyright 2012 <LW@KARO-electronics.de>
3  * based on imx53-qsb.dts
4  *   Copyright 2011 Freescale Semiconductor, Inc.
5  *   Copyright 2011 Linaro Ltd.
6  *
7  * The code contained herein is licensed under the GNU General Public
8  * License. You may obtain a copy of the GNU General Public License
9  * Version 2 at the following locations:
10  *
11  * http://www.opensource.org/licenses/gpl-license.html
12  * http://www.gnu.org/copyleft/gpl.html
13  */
14
15 /dts-v1/;
16 /include/ ARCH_CPU_DTS
17
18 / {
19         model = "Ka-Ro electronics TX53 module";
20         compatible = "karo,tx53", "fsl,imx53";
21
22         chosen {
23                 bootargs = "init=/linuxrc console=ttymxc0,115200 root=/dev/mtdblock4 rootfstype=jffs2 ro debug panic=1";
24         };
25
26         aliases {
27                 ipu = &ipu;
28         };
29
30         clocks {
31                 ckih1 {
32                         clock-frequency = <0>;
33                 };
34         };
35
36         soc {
37                 extmc: extmc@00000000 {
38                         sata: sata@10000000 {
39                                 status = "okay";
40                         };
41
42                         ipu: ipu@1e000000 {
43                                 status = "okay";
44                         };
45                 };
46
47                 aips1: aips@50000000 { /* AIPS1 */
48                         spba@50000000 {
49                                 mmc0: esdhc@50004000 { /* ESDHC1 */
50                                         status = "okay";
51                                         cd-gpios = <&gpio3 24 0>;
52                                         fsl,wp-controller;
53                                         status = "okay";
54                                 };
55
56                                 mmc1: esdhc@50008000 { /* ESDHC2 */
57                                         status = "okay";
58                                         cd-gpios = <&gpio3 25 0>;
59                                         fsl,wp-controller;
60                                 };
61
62                                 uart3: uart@5000c000 {
63                                         status = "okay";
64                                         pinctrl-names = "default";
65                                         pinctrl-0 = <&pinctrl_uart3_1>;
66                                         fsl,uart-has-rtscts;
67                                 };
68
69                                 spi0: ecspi@50010000 { /* ECSPI1 */
70                                         status = "okay";
71
72                                         pinctrl-names = "default";
73                                         pinctrl-0 = <
74                                                 &pinctrl_ecspi1_1
75                                                 &pinctrl_cspi1_cs
76                                         >;
77
78                                         fsl,spi-num-chipselects = <2>;
79                                         cs-gpios = <&gpio2 30 0 &gpio3 19 0>;
80
81                                         spidev0: spi@0 {
82                                                 compatible = "spidev";
83                                                 reg = <0>;
84                                                 spi-max-frequency = <54000000>;
85                                         };
86                                 };
87                         };
88
89                         usbotg: imxotg@53f80000 {
90                                 status = "okay";
91
92                                 ignore-overcurrent;
93                                 enable-wakeup;
94                                 vbus-gpio = <&usbotg_vbus>;
95                         };
96
97                         usbh1: imxotg@53f80200 {
98                                 status = "okay";
99
100                                 ignore-overcurrent;
101                                 enable-wakeup;
102                                 vbus-gpio = <&usbh1_vbus>;
103                         };
104
105                         usbphy: imx-usb-phy@53f80800 {
106                                 status = "okay";
107
108                                 device-ports = <&usbotg>;
109                                 host-ports = <&usbotg &usbh1>;
110                         };
111
112                         keypad@53f94000 {
113                                 status = "okay";
114                                 /* sample keymap */
115                                 /* row/col 0,1 are mapped to KPP row/col 6,7 */
116                                 linux,keymap = < 0x06060074 /* row 6, col 6, KEY_POWER */
117                                                  0x06070052 /* row 6, col 7, KEY_KP0 */
118                                                  0x0602004f /* row 6, col 2, KEY_KP1 */
119                                                  0x06030050 /* row 6, col 3, KEY_KP2 */
120                                                  0x07060051 /* row 7, col 6, KEY_KP3 */
121                                                  0x0707004b /* row 7, col 7, KEY_KP4 */
122                                                  0x0702004c /* row 7, col 2, KEY_KP5 */
123                                                  0x0703004d /* row 7, col 3, KEY_KP6 */
124                                                  0x02060047 /* row 2, col 6, KEY_KP7 */
125                                                  0x02070048 /* row 2, col 7, KEY_KP8 */
126                                                  0x02020049 /* row 2, col 2, KEY_KP9 */
127                                                  >;
128                         };
129
130                         wdog@53f98000 { /* WDOG1 */
131                                 status = "okay";
132                         };
133
134                         iomuxc@53fa8000 {
135                                 compatible = "fsl,imx53-iomuxc-tx53";
136
137                                 pinctrl-names = "default";
138
139                                 pincontroller {
140                                         pinctrl_stk5_led: stk5-led-gpios {
141                                                 fsl,pins = <
142                                                         589 0xc0 /* MX53_PAD_EIM_A18__GPIO2_20 */
143                                                 >;
144                                         };
145
146                                         pinctrl_ds1339_int: ds1339-gpios {
147                                                 fsl,pins = <
148                                                         104 0xe0 /* MX53_PAD_DI0_PIN4__GPIO4_20 */
149                                                 >;
150                                         };
151
152                                         pinctrl_cspi1_cs: cspi1-cs-gpios {
153                                                 fsl,pins = <
154                                                         424 0xe0 /* MX53_PAD_EIM_EB2__GPIO2_30 */
155                                                         449 0xe0 /* MX53_PAD_EIM_D19__GPIO3_19 */
156                                                 >;
157                                         };
158
159                                         pinctrl_esdhc1_cd: esdhc1-cd-gpios {
160                                                 fsl,pins = <
161                                                         501 0x1f0 /* MX53_PAD_EIM_D25__GPIO3_25 */
162                                                 >;
163                                         };
164
165                                         pinctrl_esdhc2_cd: esdhc2-cd-gpios {
166                                                 fsl,pins = <
167                                                         517 0x1f0 /* MX53_PAD_EIM_D27__GPIO3_27 */
168                                                 >;
169                                         };
170                                 };
171                         };
172
173                         pwm2: pwm@53fb8000 {
174                                 status = "okay";
175                         };
176
177                         uart1: uart@53fbc000 {
178                                 status = "okay";
179                                 pinctrl-names = "default";
180                                 pinctrl-0 = <&pinctrl_uart1_2>;
181                                 fsl,uart-has-rtscts;
182                         };
183
184                         uart2: uart@53fc0000 {
185                                 status = "okay";
186                                 pinctrl-names = "default";
187                                 pinctrl-0 = <&pinctrl_uart2_1>;
188                                 fsl,uart-has-rtscts;
189                         };
190
191                         can1: flexcan@53fc8000 {
192                                 status = "okay";
193                                 transceiver-switch = <&flexcan_transceiver>;
194                         };
195
196                         can2: flexcan@53fcc000 {
197                                 status = "okay";
198                                 transceiver-switch = <&flexcan_transceiver>;
199                         };
200
201                         i2c@53fec000 { /* I2C3 */
202                                 status = "okay";
203
204                                 pinctrl-names = "default";
205                                 pinctrl-0 = <&pinctrl_i2c3_1>;
206
207                                 sgtl5000: sgtl5000@0a {
208                                         compatible = "fsl,sgtl5000";
209                                         reg = <0x0a>;
210                                         VDDA-supply = <&reg_2p5v>;
211                                         VDDIO-supply = <&reg_3p3v>;
212                                         clock-frequency = <26000000>;
213                                 };
214
215                                 touchscreen: tsc2007@48 {
216                                         compatible = "ti,tsc2007";
217                                         reg = <0x48>;
218                                         interrupt-parent = <&gpio3>;
219                                         interrupts = <26 0>;
220                                         pendown-gpio = <&gpio3 26 1>;
221                                         model = "2007";
222                                         x-plate-ohms = <660>;
223                                 };
224
225                                 polytouch: edt-ft5x06@ {
226                                         compatible = "edt,edt-ft5x06";
227                                         reg = <0x38>;
228                                         interrupt-parent = <&gpio6>;
229                                         interrupts = <15 0>;
230                                         reset-switch = <&edt_ft5x06_reset>;
231                                         wake-switch = <&edt_ft5x06_wake>;
232                                 };
233                         };
234                 };
235
236                 aips2: aips@60000000 {  /* AIPS2 */
237
238                         sdma@63fb0000 {
239                                 fsl,sdma-ram-script-name = "sdma-imx53.bin";
240                         };
241
242                         i2c@63fc8000 { /* I2C1 */
243                                 status = "okay";
244
245                                 pinctrl-names = "default";
246                                 pinctrl-0 = <
247                                         &pinctrl_i2c1_2
248                                         &pinctrl_ds1339_int
249                                 >;
250
251                                 rtc1: ds1339@68 {
252                                         compatible = "dallas,ds1339";
253                                         reg = <0x68>;
254                                         trickle-charge = <0xa5>;
255                                         interrupt-parent = <&gpio4>;
256                                         interrupts = <20 0>;
257                                 };
258
259                                 pmic: lt3589@48 {
260                                         compatible = "lt,lt3589";
261                                         reg = <0x48>;
262                                 };
263                         };
264
265                         ssi@63fcc000 {
266                                 status = "okay";
267                                 rx-dma = <28>;
268                                 tx-dma = <29>;
269                                 i2s-sync-mode;
270                         };
271
272                         ssi@50014000 {
273                                 status = "okay";
274                         };
275
276                         audmux@63fd0000 {
277                                 status = "okay";
278
279                                 pinctrl-names = "default";
280                                 pinctrl-0 = <&pinctrl_audmux_1>;
281                         };
282
283                         nand@63fdb000 {
284                                 status = "okay";
285
286                                 nand-bus-width = <8>;
287                                 nand-ecc-mode = "hw";
288                                 nand-on-flash-bbt;
289                         };
290
291                         ethernet@63fec000 {
292                                 status = "okay";
293
294                                 pinctrl-names = "default";
295                                 pinctrl-0 = <&pinctrl_fec_1>;
296
297                                 phy-mode = "rmii";
298                                 phy-reset-gpios = <&gpio7 6 0>;
299                                 phy-handle = <&phy0>;
300                                 mac-address = [000000000000];
301
302                                 phy0: ethernet-phy@0 {
303                                         interrupt-parent = <&gpio2>;
304                                         interrupts = <4>;
305                                         device_type = "ethernet-phy";
306                                 };
307                         };
308                 };
309         };
310
311         sound {
312                 compatible = "karo,tx53x-audio-sgtl5000", "fsl,imx-audio-sgtl5000";
313                 status = "okay";
314                 model = "tx53x-audio-sgtl5000";
315                 ssi-controller = <&ssi1>;
316                 audio-codec = <&sgtl5000>;
317                 audio-routing =
318                         "MIC_IN", "Mic Jack",
319                         "Mic Jack", "Mic Bias",
320                         "Headphone Jack", "HP_OUT";
321                 /* '1' based port numbers according to datasheet names */
322                 mux-int-port = <1>;
323                 mux-ext-port = <5>;
324         };
325
326         gpio-switch {
327                 compatible = "gpio-switches", "simple-bus";
328                 #address-cells = <1>;
329                 #size-cells = <0>;
330
331                 flexcan_transceiver: gpio-switch@0 {
332                         compatible = "linux,gpio-switch";
333                         gpio = <&gpio4 21 1>;
334                         label = "Flexcan Transceiver Enable";
335                         gpio-shared;
336                         init-state = <0>;
337                 };
338
339                 lcd_power: gpio-switch@1 {
340                         compatible = "linux,gpio-switch";
341                         gpio = <&gpio2 31 0>;
342                         label = "LCD Power Enable";
343                         init-state = <0>;
344                 };
345
346                 lcd_reset: gpio-switch@2 {
347                         compatible = "linux,gpio-switch";
348                         gpio = <&gpio3 29 1>;
349                         label = "LCD Reset";
350                         init-state = <1>;
351                 };
352
353                 edt_ft5x06_reset: gpio-switch@3 {
354                         compatible = "linux,gpio-switch";
355                         gpio = <&gpio2 22 1>;
356                         label = "EDT-FT5x06 RESET";
357                 };
358
359                 edt_ft5x06_wake: gpio-switch@4 {
360                         compatible = "linux,gpio-switch";
361                         gpio = <&gpio2 21 0>;
362                         label = "EDT-FT5x06 WAKE";
363                         init-state = <1>;
364                 };
365
366                 usbotg_vbus: gpio-switch@5 {
367                         compatible = "linux,gpio-switch";
368                         gpio = <&gpio1 7 0>;
369                         label = "USBOTG VBUS";
370                 };
371
372                 usbh1_vbus: gpio-switch@6 {
373                         compatible = "linux,gpio-switch";
374                         gpio = <&gpio3 31 0>;
375                         label = "USBH1 VBUS";
376                 };
377         };
378
379         leds {
380                 compatible = "gpio-leds";
381
382                 pinctrl-names = "default";
383                 pinctrl-0 = <&pinctrl_stk5_led>;
384
385                 user {
386                         label = "Heartbeat";
387                         gpios = <&gpio2 20 0>;
388                         linux,default-trigger = "heartbeat";
389                 };
390         };
391
392         lcd {
393                 compatible = "of-gpio-lcd";
394                 parent = <&ipu>;
395
396                 power-switch = <&lcd_power>;
397 /*
398                 reset-switch = <&lcd_reset>;
399                 reset-delay-us = <300>;
400 */
401         };
402
403         backlight: pwm-backlight {
404                 compatible = "pwm-backlight";
405
406                 pwm = <&pwm2>;
407                 inverted;
408                 max-brightness = <100>;
409                 dft-brightness = <50>;
410                 pwm-period-ns = <1000000>;
411         };
412
413         regulators {
414                 compatible = "simple-bus";
415
416                 reg_2p5v: 2p5v {
417                         compatible = "regulator-fixed";
418                         regulator-name = "2P5V";
419                         regulator-min-microvolt = <2500000>;
420                         regulator-max-microvolt = <2500000>;
421                         regulator-always-on;
422                 };
423
424                 reg_3p3v: 3p3v {
425                         compatible = "regulator-fixed";
426                         regulator-name = "3P3V";
427                         regulator-min-microvolt = <3300000>;
428                         regulator-max-microvolt = <3300000>;
429                         regulator-always-on;
430                 };
431         };
432 };