Adding support for MOXA ART SoC. Testing port of linux-2.6.32.60-moxart.
[linux-3.6.7-moxart.git] / arch / arm / boot / dts / omap4-sdp.dts
blob72216e932fc0c7c8d5632a0df5173d7bfe05bbe8
1 /*
2  * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  */
8 /dts-v1/;
10 /include/ "omap4.dtsi"
12 / {
13         model = "TI OMAP4 SDP board";
14         compatible = "ti,omap4-sdp", "ti,omap4430", "ti,omap4";
16         memory {
17                 device_type = "memory";
18                 reg = <0x80000000 0x40000000>; /* 1 GB */
19         };
21         vdd_eth: fixedregulator@0 {
22                 compatible = "regulator-fixed";
23                 regulator-name = "VDD_ETH";
24                 regulator-min-microvolt = <3300000>;
25                 regulator-max-microvolt = <3300000>;
26                 gpio = <&gpio2 16 0>;  /* gpio line 48 */
27                 enable-active-high;
28                 regulator-boot-on;
29         };
31         vbat: fixedregulator@2 {
32                 compatible = "regulator-fixed";
33                 regulator-name = "VBAT";
34                 regulator-min-microvolt = <3750000>;
35                 regulator-max-microvolt = <3750000>;
36                 regulator-boot-on;
37         };
39         leds {
40                 compatible = "gpio-leds";
41                 debug0 {
42                         label = "omap4:green:debug0";
43                         gpios = <&gpio2 29 0>; /* 61 */
44                 };
46                 debug1 {
47                         label = "omap4:green:debug1";
48                         gpios = <&gpio1 30 0>; /* 30 */
49                 };
51                 debug2 {
52                         label = "omap4:green:debug2";
53                         gpios = <&gpio1 7 0>; /* 7 */
54                 };
56                 debug3 {
57                         label = "omap4:green:debug3";
58                         gpios = <&gpio1 8 0>; /* 8 */
59                 };
61                 debug4 {
62                         label = "omap4:green:debug4";
63                         gpios = <&gpio2 18 0>; /* 50 */
64                 };
66                 user1 {
67                         label = "omap4:blue:user";
68                         gpios = <&gpio6 9 0>; /* 169 */
69                 };
71                 user2 {
72                         label = "omap4:red:user";
73                         gpios = <&gpio6 10 0>; /* 170 */
74                 };
76                 user3 {
77                         label = "omap4:green:user";
78                         gpios = <&gpio5 11 0>; /* 139 */
79                 };
80         };
82         sound {
83                 compatible = "ti,abe-twl6040";
84                 ti,model = "SDP4430";
86                 ti,jack-detection = <1>;
87                 ti,mclk-freq = <38400000>;
89                 ti,mcpdm = <&mcpdm>;
90                 ti,dmic = <&dmic>;
92                 ti,twl6040 = <&twl6040>;
94                 /* Audio routing */
95                 ti,audio-routing =
96                         "Headset Stereophone", "HSOL",
97                         "Headset Stereophone", "HSOR",
98                         "Earphone Spk", "EP",
99                         "Ext Spk", "HFL",
100                         "Ext Spk", "HFR",
101                         "Line Out", "AUXL",
102                         "Line Out", "AUXR",
103                         "Vibrator", "VIBRAL",
104                         "Vibrator", "VIBRAR",
105                         "HSMIC", "Headset Mic",
106                         "Headset Mic", "Headset Mic Bias",
107                         "MAINMIC", "Main Handset Mic",
108                         "Main Handset Mic", "Main Mic Bias",
109                         "SUBMIC", "Sub Handset Mic",
110                         "Sub Handset Mic", "Main Mic Bias",
111                         "AFML", "Line In",
112                         "AFMR", "Line In",
113                         "DMic", "Digital Mic",
114                         "Digital Mic", "Digital Mic1 Bias";
115         };
118 &i2c1 {
119         clock-frequency = <400000>;
121         twl: twl@48 {
122                 reg = <0x48>;
123                 /* SPI = 0, IRQ# = 7, 4 = active high level-sensitive */
124                 interrupts = <0 7 4>; /* IRQ_SYS_1N cascaded to gic */
125                 interrupt-parent = <&gic>;
126         };
128         twl6040: twl@4b {
129                 compatible = "ti,twl6040";
130                 reg = <0x4b>;
131                 /* SPI = 0, IRQ# = 119, 4 = active high level-sensitive */
132                 interrupts = <0 119 4>; /* IRQ_SYS_2N cascaded to gic */
133                 interrupt-parent = <&gic>;
134                 ti,audpwron-gpio = <&gpio4 31 0>;  /* gpio line 127 */
136                 vio-supply = <&v1v8>;
137                 v2v1-supply = <&v2v1>;
138                 enable-active-high;
140                 /* regulators for vibra motor */
141                 vddvibl-supply = <&vbat>;
142                 vddvibr-supply = <&vbat>;
144                 vibra {
145                         /* Vibra driver, motor resistance parameters */
146                         ti,vibldrv-res = <8>;
147                         ti,vibrdrv-res = <3>;
148                         ti,viblmotor-res = <10>;
149                         ti,vibrmotor-res = <10>;
150                 };
151         };
154 /include/ "twl6030.dtsi"
156 &i2c2 {
157         clock-frequency = <400000>;
160 &i2c3 {
161         clock-frequency = <400000>;
163         /*
164          * Temperature Sensor
165          * http://www.ti.com/lit/ds/symlink/tmp105.pdf
166          */
167         tmp105@48 {
168                 compatible = "ti,tmp105";
169                 reg = <0x48>;
170         };
172         /*
173          * Ambient Light Sensor
174          * http://www.rohm.com/products/databook/sensor/pdf/bh1780gli-e.pdf
175          */
176         bh1780@29 {
177                 compatible = "rohm,bh1780";
178                 reg = <0x29>;
179         };
182 &i2c4 {
183         clock-frequency = <400000>;
185         /*
186          * 3-Axis Digital Compass
187          * http://www.sparkfun.com/datasheets/Sensors/Magneto/HMC5843.pdf
188          */
189         hmc5843@1e {
190                 compatible = "honeywell,hmc5843";
191                 reg = <0x1e>;
192         };
195 &mcspi1 {
196         eth@0 {
197                 compatible = "ks8851";
198                 spi-max-frequency = <24000000>;
199                 reg = <0>;
200                 interrupt-parent = <&gpio2>;
201                 interrupts = <2>; /* gpio line 34 */
202                 vdd-supply = <&vdd_eth>;
203         };
206 &mmc1 {
207         vmmc-supply = <&vmmc>;
208         bus-width = <8>;
211 &mmc2 {
212         vmmc-supply = <&vaux1>;
213         bus-width = <8>;
214         ti,non-removable;
217 &mmc3 {
218         status = "disabled";
221 &mmc4 {
222         status = "disabled";
225 &mmc5 {
226         bus-width = <4>;
227         ti,non-removable;