Commit | Line | Data |
---|---|---|
9daaf31a SG |
1 | /* |
2 | * Copyright 2011 Freescale Semiconductor, Inc. | |
3 | * Copyright 2011 Linaro Ltd. | |
4 | * | |
5 | * The code contained herein is licensed under the GNU General Public | |
6 | * License. You may obtain a copy of the GNU General Public License | |
7 | * Version 2 or later at the following locations: | |
8 | * | |
9 | * http://www.opensource.org/licenses/gpl-license.html | |
10 | * http://www.gnu.org/copyleft/gpl.html | |
11 | */ | |
12 | ||
13 | /dts-v1/; | |
14 | /include/ "imx51.dtsi" | |
15 | ||
16 | / { | |
17 | model = "Freescale i.MX51 Babbage Board"; | |
18 | compatible = "fsl,imx51-babbage", "fsl,imx51"; | |
19 | ||
9daaf31a SG |
20 | memory { |
21 | reg = <0x90000000 0x20000000>; | |
22 | }; | |
23 | ||
24 | soc { | |
25 | aips@70000000 { /* aips-1 */ | |
26 | spba@70000000 { | |
27 | esdhc@70004000 { /* ESDHC1 */ | |
28 | fsl,cd-internal; | |
29 | fsl,wp-internal; | |
30 | status = "okay"; | |
31 | }; | |
32 | ||
33 | esdhc@70008000 { /* ESDHC2 */ | |
4d191868 RZ |
34 | cd-gpios = <&gpio1 6 0>; |
35 | wp-gpios = <&gpio1 5 0>; | |
9daaf31a SG |
36 | status = "okay"; |
37 | }; | |
38 | ||
0c456cfa | 39 | uart3: serial@7000c000 { |
9daaf31a SG |
40 | fsl,uart-has-rtscts; |
41 | status = "okay"; | |
42 | }; | |
43 | ||
44 | ecspi@70010000 { /* ECSPI1 */ | |
45 | fsl,spi-num-chipselects = <2>; | |
4d191868 | 46 | cs-gpios = <&gpio4 24 0>, <&gpio4 25 0>; |
9daaf31a SG |
47 | status = "okay"; |
48 | ||
49 | pmic: mc13892@0 { | |
50 | #address-cells = <1>; | |
51 | #size-cells = <0>; | |
52 | compatible = "fsl,mc13892"; | |
53 | spi-max-frequency = <6000000>; | |
54 | reg = <0>; | |
4619fce2 | 55 | interrupt-parent = <&gpio1>; |
65dee07c | 56 | interrupts = <8 0x4>; |
4619fce2 SG |
57 | |
58 | regulators { | |
59 | sw1_reg: sw1 { | |
60 | regulator-min-microvolt = <600000>; | |
61 | regulator-max-microvolt = <1375000>; | |
62 | regulator-boot-on; | |
63 | regulator-always-on; | |
64 | }; | |
65 | ||
66 | sw2_reg: sw2 { | |
67 | regulator-min-microvolt = <900000>; | |
68 | regulator-max-microvolt = <1850000>; | |
69 | regulator-boot-on; | |
70 | regulator-always-on; | |
71 | }; | |
72 | ||
73 | sw3_reg: sw3 { | |
74 | regulator-min-microvolt = <1100000>; | |
75 | regulator-max-microvolt = <1850000>; | |
76 | regulator-boot-on; | |
77 | regulator-always-on; | |
78 | }; | |
79 | ||
80 | sw4_reg: sw4 { | |
81 | regulator-min-microvolt = <1100000>; | |
82 | regulator-max-microvolt = <1850000>; | |
83 | regulator-boot-on; | |
84 | regulator-always-on; | |
85 | }; | |
86 | ||
87 | vpll_reg: vpll { | |
88 | regulator-min-microvolt = <1050000>; | |
89 | regulator-max-microvolt = <1800000>; | |
90 | regulator-boot-on; | |
91 | regulator-always-on; | |
92 | }; | |
93 | ||
94 | vdig_reg: vdig { | |
95 | regulator-min-microvolt = <1650000>; | |
96 | regulator-max-microvolt = <1650000>; | |
97 | regulator-boot-on; | |
98 | }; | |
99 | ||
100 | vsd_reg: vsd { | |
101 | regulator-min-microvolt = <1800000>; | |
102 | regulator-max-microvolt = <3150000>; | |
103 | }; | |
104 | ||
105 | vusb2_reg: vusb2 { | |
106 | regulator-min-microvolt = <2400000>; | |
107 | regulator-max-microvolt = <2775000>; | |
108 | regulator-boot-on; | |
109 | regulator-always-on; | |
110 | }; | |
111 | ||
112 | vvideo_reg: vvideo { | |
113 | regulator-min-microvolt = <2775000>; | |
114 | regulator-max-microvolt = <2775000>; | |
115 | }; | |
116 | ||
117 | vaudio_reg: vaudio { | |
118 | regulator-min-microvolt = <2300000>; | |
119 | regulator-max-microvolt = <3000000>; | |
120 | }; | |
121 | ||
122 | vcam_reg: vcam { | |
123 | regulator-min-microvolt = <2500000>; | |
124 | regulator-max-microvolt = <3000000>; | |
125 | }; | |
126 | ||
127 | vgen1_reg: vgen1 { | |
128 | regulator-min-microvolt = <1200000>; | |
129 | regulator-max-microvolt = <1200000>; | |
130 | }; | |
131 | ||
132 | vgen2_reg: vgen2 { | |
133 | regulator-min-microvolt = <1200000>; | |
134 | regulator-max-microvolt = <3150000>; | |
135 | regulator-always-on; | |
136 | }; | |
137 | ||
138 | vgen3_reg: vgen3 { | |
139 | regulator-min-microvolt = <1800000>; | |
140 | regulator-max-microvolt = <2900000>; | |
141 | regulator-always-on; | |
142 | }; | |
143 | }; | |
9daaf31a SG |
144 | }; |
145 | ||
146 | flash: at45db321d@1 { | |
147 | #address-cells = <1>; | |
148 | #size-cells = <1>; | |
149 | compatible = "atmel,at45db321d", "atmel,at45", "atmel,dataflash"; | |
150 | spi-max-frequency = <25000000>; | |
151 | reg = <1>; | |
152 | ||
153 | partition@0 { | |
154 | label = "U-Boot"; | |
155 | reg = <0x0 0x40000>; | |
156 | read-only; | |
157 | }; | |
158 | ||
159 | partition@40000 { | |
160 | label = "Kernel"; | |
161 | reg = <0x40000 0x3c0000>; | |
162 | }; | |
163 | }; | |
164 | }; | |
a15d9f89 SG |
165 | |
166 | ssi2: ssi@70014000 { | |
167 | fsl,mode = "i2s-slave"; | |
168 | status = "okay"; | |
169 | }; | |
9daaf31a SG |
170 | }; |
171 | ||
172 | wdog@73f98000 { /* WDOG1 */ | |
173 | status = "okay"; | |
174 | }; | |
175 | ||
176 | iomuxc@73fa8000 { | |
177 | compatible = "fsl,imx51-iomuxc-babbage"; | |
178 | reg = <0x73fa8000 0x4000>; | |
179 | }; | |
180 | ||
0c456cfa | 181 | uart1: serial@73fbc000 { |
9daaf31a SG |
182 | fsl,uart-has-rtscts; |
183 | status = "okay"; | |
184 | }; | |
185 | ||
0c456cfa | 186 | uart2: serial@73fc0000 { |
9daaf31a SG |
187 | status = "okay"; |
188 | }; | |
189 | }; | |
190 | ||
191 | aips@80000000 { /* aips-2 */ | |
192 | sdma@83fb0000 { | |
193 | fsl,sdma-ram-script-name = "imx/sdma/sdma-imx51.bin"; | |
194 | }; | |
195 | ||
196 | i2c@83fc4000 { /* I2C2 */ | |
197 | status = "okay"; | |
198 | ||
a15d9f89 | 199 | sgtl5000: codec@0a { |
9daaf31a SG |
200 | compatible = "fsl,sgtl5000"; |
201 | reg = <0x0a>; | |
a15d9f89 SG |
202 | clock-frequency = <26000000>; |
203 | VDDA-supply = <&vdig_reg>; | |
204 | VDDIO-supply = <&vvideo_reg>; | |
9daaf31a SG |
205 | }; |
206 | }; | |
207 | ||
a15d9f89 SG |
208 | audmux@83fd0000 { |
209 | status = "okay"; | |
210 | }; | |
211 | ||
0c456cfa | 212 | ethernet@83fec000 { |
9daaf31a SG |
213 | phy-mode = "mii"; |
214 | status = "okay"; | |
215 | }; | |
216 | }; | |
217 | }; | |
218 | ||
219 | gpio-keys { | |
220 | compatible = "gpio-keys"; | |
221 | ||
222 | power { | |
223 | label = "Power Button"; | |
4d191868 | 224 | gpios = <&gpio2 21 0>; |
9daaf31a SG |
225 | linux,code = <116>; /* KEY_POWER */ |
226 | gpio-key,wakeup; | |
227 | }; | |
228 | }; | |
a15d9f89 SG |
229 | |
230 | sound { | |
231 | compatible = "fsl,imx51-babbage-sgtl5000", | |
232 | "fsl,imx-audio-sgtl5000"; | |
233 | model = "imx51-babbage-sgtl5000"; | |
234 | ssi-controller = <&ssi2>; | |
235 | audio-codec = <&sgtl5000>; | |
236 | audio-routing = | |
237 | "MIC_IN", "Mic Jack", | |
238 | "Mic Jack", "Mic Bias", | |
239 | "Headphone Jack", "HP_OUT"; | |
240 | mux-int-port = <2>; | |
241 | mux-ext-port = <3>; | |
242 | }; | |
9daaf31a | 243 | }; |