Commit | Line | Data |
---|---|---|
2061d74d LV |
1 | /* |
2 | * Copyright (C) 2016 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 | ||
9 | /* | |
10 | * AM335x ICE V2 board | |
11 | * http://www.ti.com/tool/tmdsice3359 | |
12 | */ | |
13 | ||
14 | /dts-v1/; | |
15 | ||
16 | #include "am33xx.dtsi" | |
17 | ||
18 | / { | |
19 | model = "TI AM3359 ICE-V2"; | |
20 | compatible = "ti,am3359-icev2", "ti,am33xx"; | |
21 | ||
22 | memory { | |
23 | device_type = "memory"; | |
24 | reg = <0x80000000 0x10000000>; /* 256 MB */ | |
25 | }; | |
26 | ||
27 | vbat: fixedregulator@0 { | |
28 | compatible = "regulator-fixed"; | |
29 | regulator-name = "vbat"; | |
30 | regulator-min-microvolt = <5000000>; | |
31 | regulator-max-microvolt = <5000000>; | |
32 | regulator-boot-on; | |
33 | }; | |
34 | ||
35 | vtt_fixed: fixedregulator@1 { | |
36 | compatible = "regulator-fixed"; | |
37 | regulator-name = "vtt"; | |
38 | regulator-min-microvolt = <1500000>; | |
39 | regulator-max-microvolt = <1500000>; | |
40 | gpio = <&gpio0 18 GPIO_ACTIVE_HIGH>; | |
41 | regulator-always-on; | |
42 | regulator-boot-on; | |
43 | enable-active-high; | |
44 | }; | |
45 | ||
46 | leds@0 { | |
47 | compatible = "gpio-leds"; | |
48 | ||
49 | led@0 { | |
50 | label = "out0"; | |
51 | gpios = <&tpic2810 0 GPIO_ACTIVE_HIGH>; | |
52 | default-state = "off"; | |
53 | }; | |
54 | ||
55 | led@1 { | |
56 | label = "out1"; | |
57 | gpios = <&tpic2810 1 GPIO_ACTIVE_HIGH>; | |
58 | default-state = "off"; | |
59 | }; | |
60 | ||
61 | led@2 { | |
62 | label = "out2"; | |
63 | gpios = <&tpic2810 2 GPIO_ACTIVE_HIGH>; | |
64 | default-state = "off"; | |
65 | }; | |
66 | ||
67 | led@3 { | |
68 | label = "out3"; | |
69 | gpios = <&tpic2810 3 GPIO_ACTIVE_HIGH>; | |
70 | default-state = "off"; | |
71 | }; | |
72 | ||
73 | led@4 { | |
74 | label = "out4"; | |
75 | gpios = <&tpic2810 4 GPIO_ACTIVE_HIGH>; | |
76 | default-state = "off"; | |
77 | }; | |
78 | ||
79 | led@5 { | |
80 | label = "out5"; | |
81 | gpios = <&tpic2810 5 GPIO_ACTIVE_HIGH>; | |
82 | default-state = "off"; | |
83 | }; | |
84 | ||
85 | led@6 { | |
86 | label = "out6"; | |
87 | gpios = <&tpic2810 6 GPIO_ACTIVE_HIGH>; | |
88 | default-state = "off"; | |
89 | }; | |
90 | ||
91 | led@7 { | |
92 | label = "out7"; | |
93 | gpios = <&tpic2810 7 GPIO_ACTIVE_HIGH>; | |
94 | default-state = "off"; | |
95 | }; | |
96 | }; | |
97 | ||
98 | /* Tricolor status LEDs */ | |
99 | leds@1 { | |
100 | compatible = "gpio-leds"; | |
101 | pinctrl-names = "default"; | |
102 | pinctrl-0 = <&user_leds>; | |
103 | ||
104 | led@0 { | |
105 | label = "status0:red:cpu0"; | |
106 | gpios = <&gpio0 17 GPIO_ACTIVE_HIGH>; | |
107 | default-state = "off"; | |
108 | linux,default-trigger = "cpu0"; | |
109 | }; | |
110 | ||
111 | led@1 { | |
112 | label = "status0:green:usr"; | |
113 | gpios = <&gpio0 16 GPIO_ACTIVE_HIGH>; | |
114 | default-state = "off"; | |
115 | }; | |
116 | ||
117 | led@2 { | |
118 | label = "status0:yellow:usr"; | |
119 | gpios = <&gpio3 9 GPIO_ACTIVE_HIGH>; | |
120 | default-state = "off"; | |
121 | }; | |
122 | ||
123 | led@3 { | |
124 | label = "status1:red:mmc0"; | |
125 | gpios = <&gpio1 30 GPIO_ACTIVE_HIGH>; | |
126 | default-state = "off"; | |
127 | linux,default-trigger = "mmc0"; | |
128 | }; | |
129 | ||
130 | led@4 { | |
131 | label = "status1:green:usr"; | |
132 | gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>; | |
133 | default-state = "off"; | |
134 | }; | |
135 | ||
136 | led@5 { | |
137 | label = "status1:yellow:usr"; | |
138 | gpios = <&gpio0 19 GPIO_ACTIVE_HIGH>; | |
139 | default-state = "off"; | |
140 | }; | |
141 | }; | |
142 | }; | |
143 | ||
144 | &am33xx_pinmux { | |
145 | user_leds: user_leds { | |
146 | pinctrl-single,pins = < | |
147 | AM33XX_IOPAD(0x91c, PIN_OUTPUT | MUX_MODE7) /* (J18) gmii1_txd3.gpio0[16] */ | |
148 | AM33XX_IOPAD(0x920, PIN_OUTPUT | MUX_MODE7) /* (K15) gmii1_txd2.gpio0[17] */ | |
149 | AM33XX_IOPAD(0x9b0, PIN_OUTPUT | MUX_MODE7) /* (A15) xdma_event_intr0.gpio0[19] */ | |
150 | AM33XX_IOPAD(0x9b4, PIN_OUTPUT | MUX_MODE7) /* (D14) xdma_event_intr1.gpio0[20] */ | |
151 | AM33XX_IOPAD(0x880, PIN_OUTPUT | MUX_MODE7) /* (U9) gpmc_csn1.gpio1[30] */ | |
152 | AM33XX_IOPAD(0x92c, PIN_OUTPUT | MUX_MODE7) /* (K18) gmii1_txclk.gpio3[9] */ | |
153 | >; | |
154 | }; | |
155 | ||
156 | mmc0_pins_default: mmc0_pins_default { | |
157 | pinctrl-single,pins = < | |
158 | AM33XX_IOPAD(0x8f0, PIN_INPUT_PULLUP | MUX_MODE0) /* (F17) mmc0_dat3.mmc0_dat3 */ | |
159 | AM33XX_IOPAD(0x8f4, PIN_INPUT_PULLUP | MUX_MODE0) /* (F18) mmc0_dat2.mmc0_dat2 */ | |
160 | AM33XX_IOPAD(0x8f8, PIN_INPUT_PULLUP | MUX_MODE0) /* (G15) mmc0_dat1.mmc0_dat1 */ | |
161 | AM33XX_IOPAD(0x8fc, PIN_INPUT_PULLUP | MUX_MODE0) /* (G16) mmc0_dat0.mmc0_dat0 */ | |
162 | AM33XX_IOPAD(0x900, PIN_INPUT_PULLUP | MUX_MODE0) /* (G17) mmc0_clk.mmc0_clk */ | |
163 | AM33XX_IOPAD(0x904, PIN_INPUT_PULLUP | MUX_MODE0) /* (G18) mmc0_cmd.mmc0_cmd */ | |
164 | AM33XX_IOPAD(0x960, PIN_INPUT_PULLUP | MUX_MODE5) /* (C15) spi0_cs1.mmc0_sdcd */ | |
165 | >; | |
166 | }; | |
167 | ||
168 | i2c0_pins_default: i2c0_pins_default { | |
169 | pinctrl-single,pins = < | |
170 | AM33XX_IOPAD(0x988, PIN_INPUT | MUX_MODE0) /* (C17) I2C0_SDA.I2C0_SDA */ | |
171 | AM33XX_IOPAD(0x98c, PIN_INPUT | MUX_MODE0) /* (C16) I2C0_SCL.I2C0_SCL */ | |
172 | >; | |
173 | }; | |
174 | ||
175 | spi0_pins_default: spi0_pins_default { | |
176 | pinctrl-single,pins = < | |
177 | AM33XX_IOPAD(0x950, PIN_INPUT_PULLUP | MUX_MODE0) /* (A17) spi0_sclk.spi0_sclk */ | |
178 | AM33XX_IOPAD(0x954, PIN_INPUT_PULLUP | MUX_MODE0) /* (B17) spi0_d0.spi0_d0 */ | |
179 | AM33XX_IOPAD(0x958, PIN_INPUT_PULLUP | MUX_MODE0) /* (B16) spi0_d1.spi0_d1 */ | |
180 | AM33XX_IOPAD(0x95c, PIN_INPUT_PULLUP | MUX_MODE0) /* (A16) spi0_cs0.spi0_cs0 */ | |
181 | >; | |
182 | }; | |
183 | ||
184 | uart3_pins_default: uart3_pins_default { | |
185 | pinctrl-single,pins = < | |
186 | AM33XX_IOPAD(0x934, PIN_INPUT_PULLUP | MUX_MODE1) /* (L17) gmii1_rxd3.uart3_rxd */ | |
187 | AM33XX_IOPAD(0x938, PIN_OUTPUT_PULLUP | MUX_MODE1) /* (L16) gmii1_rxd2.uart3_txd */ | |
188 | >; | |
189 | }; | |
190 | }; | |
191 | ||
192 | &i2c0 { | |
193 | pinctrl-names = "default"; | |
194 | pinctrl-0 = <&i2c0_pins_default>; | |
195 | ||
196 | status = "okay"; | |
197 | clock-frequency = <400000>; | |
198 | ||
199 | tps: power-controller@2d { | |
200 | reg = <0x2d>; | |
201 | }; | |
202 | ||
203 | tpic2810: gpio@60 { | |
204 | compatible = "ti,tpic2810"; | |
205 | reg = <0x60>; | |
206 | gpio-controller; | |
207 | #gpio-cells = <2>; | |
208 | }; | |
eaa03e42 V |
209 | |
210 | pca9536: gpio@41 { | |
211 | compatible = "ti,pca9536"; | |
212 | reg = <0x41>; | |
213 | gpio-controller; | |
214 | #gpio-cells = <2>; | |
215 | }; | |
2061d74d LV |
216 | }; |
217 | ||
218 | #include "tps65910.dtsi" | |
219 | ||
220 | &tps { | |
221 | vcc1-supply = <&vbat>; | |
222 | vcc2-supply = <&vbat>; | |
223 | vcc3-supply = <&vbat>; | |
224 | vcc4-supply = <&vbat>; | |
225 | vcc5-supply = <&vbat>; | |
226 | vcc6-supply = <&vbat>; | |
227 | vcc7-supply = <&vbat>; | |
228 | vccio-supply = <&vbat>; | |
229 | ||
230 | regulators { | |
231 | vrtc_reg: regulator@0 { | |
232 | regulator-always-on; | |
233 | }; | |
234 | ||
235 | vio_reg: regulator@1 { | |
236 | regulator-always-on; | |
237 | }; | |
238 | ||
239 | vdd1_reg: regulator@2 { | |
240 | regulator-name = "vdd_mpu"; | |
241 | regulator-min-microvolt = <912500>; | |
242 | regulator-max-microvolt = <1326000>; | |
243 | regulator-boot-on; | |
244 | regulator-always-on; | |
245 | }; | |
246 | ||
247 | vdd2_reg: regulator@3 { | |
248 | regulator-name = "vdd_core"; | |
249 | regulator-min-microvolt = <912500>; | |
250 | regulator-max-microvolt = <1144000>; | |
251 | regulator-boot-on; | |
252 | regulator-always-on; | |
253 | }; | |
254 | ||
255 | vdd3_reg: regulator@4 { | |
256 | regulator-always-on; | |
257 | }; | |
258 | ||
259 | vdig1_reg: regulator@5 { | |
260 | regulator-always-on; | |
261 | }; | |
262 | ||
263 | vdig2_reg: regulator@6 { | |
264 | regulator-always-on; | |
265 | }; | |
266 | ||
267 | vpll_reg: regulator@7 { | |
268 | regulator-always-on; | |
269 | }; | |
270 | ||
271 | vdac_reg: regulator@8 { | |
272 | regulator-always-on; | |
273 | }; | |
274 | ||
275 | vaux1_reg: regulator@9 { | |
276 | regulator-always-on; | |
277 | }; | |
278 | ||
279 | vaux2_reg: regulator@10 { | |
280 | regulator-always-on; | |
281 | }; | |
282 | ||
283 | vaux33_reg: regulator@11 { | |
284 | regulator-always-on; | |
285 | }; | |
286 | ||
287 | vmmc_reg: regulator@12 { | |
288 | regulator-min-microvolt = <1800000>; | |
289 | regulator-max-microvolt = <3300000>; | |
290 | regulator-always-on; | |
291 | }; | |
292 | }; | |
293 | }; | |
294 | ||
295 | &mmc1 { | |
296 | status = "okay"; | |
297 | vmmc-supply = <&vmmc_reg>; | |
298 | bus-width = <4>; | |
299 | pinctrl-names = "default"; | |
300 | pinctrl-0 = <&mmc0_pins_default>; | |
301 | }; | |
302 | ||
303 | &gpio0 { | |
304 | /* Do not idle the GPIO used for holding the VTT regulator */ | |
305 | ti,no-reset-on-init; | |
306 | ti,no-idle-on-init; | |
307 | }; | |
308 | ||
309 | &uart3 { | |
310 | pinctrl-names = "default"; | |
311 | pinctrl-0 = <&uart3_pins_default>; | |
312 | status = "okay"; | |
313 | }; |