]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - board/karo/dts/tx51.dts
TX53 DTS bugfixes
[karo-tx-uboot.git] / board / karo / dts / tx51.dts
1 /*
2  * Copyright 2012 <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/ ARCH_CPU_DTS
14
15 / {
16         model = "Ka-Ro electronics TX51 module";
17         compatible = "karo,tx51", "fsl,imx51";
18
19         chosen {
20                 bootargs = "init=/linuxrc console=ttymxc0,115200 root=/dev/mtdblock1 ro debug panic=1";
21         };
22
23         aliases {
24                 usbh1 = &usbh1;
25                 usbotg = &usbotg;
26                 usbphy = &usbphy;
27         };
28
29         clocks {
30                 ckih1 {
31                         clock-frequency = <0>;
32                 };
33         };
34
35         soc {
36                 ahb: ahb@40000000 {
37                         ipu: ipu@5e000000 {
38                                 status = "okay";
39                         };
40                 };
41
42                 aips1: aips@70000000 { /* AIPS1 */
43                         spba@70000000 {
44                                 mmc0: esdhc@70004000 { /* ESDHC1 */
45                                         cd-gpios = <&gpio3 8 0>;
46                                         fsl,wp-controller;
47                                         status = "okay";
48                                 };
49
50                                 mmc1: esdhc@70008000 { /* ESDHC2 */
51                                         cd-gpios = <&gpio3 6 0>;
52                                         status = "okay";
53                                 };
54
55                                 uart@7000c000 {
56                                         status = "okay";
57                                         fsl,uart-has-rtscts;
58                                 };
59
60                                 spi0: ecspi@70010000 { /* ECSPI1 */
61                                         fsl,spi-num-chipselects = <2>;
62                                         cs-gpios = <&gpio4 24 0 &gpio4 25 0>;
63                                         status = "okay";
64
65                                         spidev0: spi@0 {
66                                                 compatible = "spidev";
67                                                 reg = <0>;
68                                                 spi-max-frequency = <250000000>;
69                                         };
70                                 };
71                         };
72
73                         usbotg: imxotg@73f80000 {
74                                 status = "okay";
75
76                                 ignore-overcurrent;
77                                 enable-wakeup;
78                                 phy-mode = "utmi-wide";
79                         };
80
81                         usbh1: imxotg@73f80200 {
82                                 status = "okay";
83
84                                 phy-mode = "ulpi";
85                                 ignore-overcurrent;
86                                 enable-wakeup;
87                                 itc-no-threshold;
88                         };
89
90                         usbphy: imx-usb-phy@73f80800 {
91                                 status = "okay";
92
93                                 device-ports = <&usbotg>;
94                                 host-ports = <&usbotg &usbh1>;
95                         };
96
97                         keypad@73f94000 {
98                                 status = "okay";
99                                 /* sample keymap */
100                                 linux,keymap = < 0x00000074 /* row 0, col 0, KEY_POWER */
101                                                  0x00010052 /* row 0, col 1, KEY_KP0 */
102                                                  0x0002004f /* row 0, col 2, KEY_KP1 */
103                                                  0x00030050 /* row 0, col 3, KEY_KP2 */
104                                                  0x00040051 /* row 0, col 4, KEY_KP3 */
105                                                  0x0100004b /* row 1, col 0, KEY_KP4 */
106                                                  0x0101004c /* row 1, col 1, KEY_KP5 */
107                                                  0x0102004d /* row 1, col 2, KEY_KP6 */
108                                                  0x01030047 /* row 1, col 3, KEY_KP7 */
109                                                  0x01040048 /* row 1, col 4, KEY_KP8 */
110                                                  0x02000049 /* row 2, col 0, KEY_KP9 */
111                                                  >;
112                         };
113
114                         wdog@73f98000 { /* WDOG1 */
115                                 status = "okay";
116                         };
117
118                         iomuxc@73fa8000 {
119                                 compatible = "fsl,imx51-iomuxc-tx51";
120                                 reg = <0x73fa8000 0x4000>;
121                         };
122
123                         pwm1: pwm@73fb4000 {
124                                 status = "okay";
125                         };
126
127                         uart@73fbc000 {
128                                 status = "okay";
129                                 fsl,uart-has-rtscts;
130                         };
131
132                         uart@73fc0000 {
133                                 status = "okay";
134                                 fsl,uart-has-rtscts;
135                         };
136                 };
137
138                 aips2: aips@80000000 {  /* AIPS2 */
139
140                         sdma@83fb0000 {
141                                 fsl,sdma-ram-script-name = "sdma-imx51.bin";
142                         };
143
144                         i2c@83fc4000 { /* I2C2 */
145                                 status = "okay";
146
147                                 codec: sgtl5000@0a {
148                                         compatible = "fsl,sgtl5000";
149                                         reg = <0x0a>;
150                                         VDDA-supply = <&reg_2p5v>;
151                                         VDDIO-supply = <&reg_3p3v>;
152                                 };
153
154                                 touchscreen: tsc2007@48 {
155                                         compatible = "ti,tsc2007";
156                                         reg = <0x48>;
157                                         interrupt-parent = <&gpio3>;
158                                         interrupts = <3 0>;
159                                         pendown-gpio = <&gpio3 3 1>;
160                                         model = "2007";
161                                         x-plate-ohms = <660>;
162                                 };
163
164                                 polytouch: edt-ft5x06@38 {
165                                         compatible = "edt,edt-ft5x06";
166                                         reg = <0x38>;
167                                         interrupt-parent = <&gpio1>;
168                                         interrupts = <5>;
169                                         reset-switch = <&edt_ft5x06_reset>;
170                                         wake-switch = <&edt_ft5x06_wake>;
171                                 };
172                         };
173
174                         ssi@83fcc000 {
175                                 status = "okay";
176                                 rx-dma = <28>;
177                                 tx-dma = <29>;
178                                 i2s-sync-mode;
179                         };
180
181                         ssi@70014000 {
182                                 status = "okay";
183                         };
184
185                         audmux@83fd0000 {
186                                 status = "okay";
187                         };
188
189                         sound-card@0 {
190                                 compatible = "fsl,imx-sgtl5000";
191                                 status = "okay";
192                                 /* '1' based port numbers according to datasheet names */
193                                 ssi-port = <1>;
194                                 audmux-port = <3>;
195                                 sysclk = <26000000>;
196                         };
197
198                         nand@83fdb000 {
199                                 status = "okay";
200
201                                 nand-bus-width = <8>;
202                                 nand-ecc-mode = "hw";
203                                 nand-on-flash-bbt;
204                         };
205
206                         ethernet@83fec000 {
207                                 phy-mode = "mii";
208 /*
209                                 phy-reset-gpios = <&gpio2 14 0>;
210 */
211                                 status = "okay";
212                                 phy-handle = <&phy0>;
213                                 mac-address = [000000000000];
214
215                                 phy0: ethernet-phy@0 {
216                                         interrupt-parent = <&gpio3>;
217                                         interrupts = <18>;
218                                         device_type = "ethernet-phy";
219                                 };
220                         };
221                 };
222         };
223
224         i2c-gpio {
225                 #address-cells = <1>;
226                 #size-cells = <0>;
227                 compatible = "i2c-gpio";
228                 gpios = <&gpio4 17 0
229                          &gpio4 16 0>;
230                 clock-frequency = <400000>;
231
232                 rtc1: ds1339@68 {
233                         compatible = "dallas,ds1339";
234                         reg = <0x68>;
235                 };
236         };
237
238         gpio-switch {
239                 compatible = "gpio-switches", "simple-bus";
240                 #address-cells = <1>;
241                 #size-cells = <0>;
242                 lcd_power: gpio-switch@1 {
243                         compatible = "linux,gpio-switch";
244                         gpio = <&gpio4 14 0>;
245                         label = "LCD Power Enable";
246                         init-state = <0>;
247                 };
248
249                 lcd_reset: gpio-switch@2 {
250                         compatible = "linux,gpio-switch";
251                         gpio = <&gpio4 13 1>;
252                         label = "LCD Reset";
253                         init-state = <1>;
254                 };
255
256                 edt_ft5x06_reset: gpio-switch@3 {
257                         compatible = "linux,gpio-switch";
258                         gpio = <&gpio4 15 1>;
259                         label = "EDT-FT5x06 RESET";
260                 };
261
262                 edt_ft5x06_wake: gpio-switch@4 {
263                         compatible = "linux,gpio-switch";
264                         gpio = <&gpio4 9 0>;
265                         label = "EDT-FT5x06 WAKE";
266                         init-state = <1>;
267                 };
268
269                 usbotg_vbus: gpio-switch@5 {
270                         compatible = "linux,gpio-switch";
271                         gpio = <&gpio1 8 0>;
272                         label = "USBOTG VBUS";
273                 };
274         };
275
276         leds {
277                 compatible = "gpio-leds";
278
279                 user {
280                         label = "Heartbeat";
281                         gpios = <&gpio4 10 0>;
282                         linux,default-trigger = "heartbeat";
283                 };
284         };
285
286         lcd {
287                 compatible = "of-gpio-lcd";
288                 parent = <&ipu>;
289
290                 power-switch = <&gpio4 14 0>;
291                 reset-switch = <&gpio4 13 1>;
292         };
293
294         backlight: pwm-backlight {
295                 compatible = "pwm-backlight";
296
297                 pwm = <&pwm1>;
298                 inverted;
299                 max-brightness = <100>;
300                 dft-brightness = <50>;
301                 pwm-period-ns = <1000000>;
302         };
303
304         regulators {
305                 compatible = "simple-bus";
306
307                 reg_2p5v: 2p5v {
308                         compatible = "regulator-fixed";
309                         regulator-name = "2P5V";
310                         regulator-min-microvolt = <2500000>;
311                         regulator-max-microvolt = <2500000>;
312                         regulator-always-on;
313                 };
314
315                 reg_3p3v: 3p3v {
316                         compatible = "regulator-fixed";
317                         regulator-name = "3P3V";
318                         regulator-min-microvolt = <3300000>;
319                         regulator-max-microvolt = <3300000>;
320                         regulator-always-on;
321                 };
322         };
323 };