Commit | Line | Data |
---|---|---|
2ba35493 KK |
1 | /* |
2 | * Copyright (C) 2012 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 | model = "TI AM335x BeagleBone"; | |
11 | compatible = "ti,am335x-bone", "ti,am33xx"; | |
12 | ||
13 | cpus { | |
14 | cpu@0 { | |
15 | cpu0-supply = <&dcdc2_reg>; | |
16 | }; | |
17 | }; | |
18 | ||
19 | memory { | |
20 | device_type = "memory"; | |
21 | reg = <0x80000000 0x10000000>; /* 256 MB */ | |
22 | }; | |
23 | ||
24 | am33xx_pinmux: pinmux@44e10800 { | |
25 | pinctrl-names = "default"; | |
26 | pinctrl-0 = <&clkout2_pin>; | |
27 | ||
28 | user_leds_s0: user_leds_s0 { | |
29 | pinctrl-single,pins = < | |
30 | 0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a5.gpio1_21 */ | |
31 | 0x58 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a6.gpio1_22 */ | |
32 | 0x5c (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a7.gpio1_23 */ | |
33 | 0x60 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio1_24 */ | |
34 | >; | |
35 | }; | |
36 | ||
37 | i2c0_pins: pinmux_i2c0_pins { | |
38 | pinctrl-single,pins = < | |
39 | 0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */ | |
40 | 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */ | |
41 | >; | |
42 | }; | |
43 | ||
44 | uart0_pins: pinmux_uart0_pins { | |
45 | pinctrl-single,pins = < | |
46 | 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */ | |
47 | 0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */ | |
48 | >; | |
49 | }; | |
50 | ||
51 | clkout2_pin: pinmux_clkout2_pin { | |
52 | pinctrl-single,pins = < | |
53 | 0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */ | |
54 | >; | |
55 | }; | |
56 | ||
57 | cpsw_default: cpsw_default { | |
58 | pinctrl-single,pins = < | |
59 | /* Slave 1 */ | |
60 | 0x110 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxerr.mii1_rxerr */ | |
61 | 0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txen.mii1_txen */ | |
62 | 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxdv.mii1_rxdv */ | |
63 | 0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd3.mii1_txd3 */ | |
64 | 0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd2.mii1_txd2 */ | |
65 | 0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd1.mii1_txd1 */ | |
66 | 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd0.mii1_txd0 */ | |
67 | 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_txclk.mii1_txclk */ | |
68 | 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxclk.mii1_rxclk */ | |
69 | 0x134 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd3.mii1_rxd3 */ | |
70 | 0x138 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd2.mii1_rxd2 */ | |
71 | 0x13c (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd1.mii1_rxd1 */ | |
72 | 0x140 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd0.mii1_rxd0 */ | |
73 | >; | |
74 | }; | |
75 | ||
76 | cpsw_sleep: cpsw_sleep { | |
77 | pinctrl-single,pins = < | |
78 | /* Slave 1 reset value */ | |
79 | 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
80 | 0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
81 | 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
82 | 0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
83 | 0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
84 | 0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
85 | 0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
86 | 0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
87 | 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
88 | 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
89 | 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
90 | 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
91 | 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
92 | >; | |
93 | }; | |
94 | ||
95 | davinci_mdio_default: davinci_mdio_default { | |
96 | pinctrl-single,pins = < | |
97 | /* MDIO */ | |
98 | 0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */ | |
99 | 0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */ | |
100 | >; | |
101 | }; | |
102 | ||
103 | davinci_mdio_sleep: davinci_mdio_sleep { | |
104 | pinctrl-single,pins = < | |
105 | /* MDIO reset value */ | |
106 | 0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
107 | 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
108 | >; | |
109 | }; | |
3045ffff AH |
110 | |
111 | mmc1_pins: pinmux_mmc1_pins { | |
112 | pinctrl-single,pins = < | |
113 | 0x160 (PIN_INPUT | MUX_MODE7) /* GPIO0_6 */ | |
114 | >; | |
115 | }; | |
1aac4a99 KK |
116 | |
117 | emmc_pins: pinmux_emmc_pins { | |
118 | pinctrl-single,pins = < | |
119 | 0x80 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk */ | |
120 | 0x84 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_csn2.mmc1_cmd */ | |
121 | 0x00 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */ | |
122 | 0x04 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */ | |
123 | 0x08 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */ | |
124 | 0x0c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */ | |
125 | 0x10 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */ | |
126 | 0x14 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */ | |
127 | 0x18 (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */ | |
128 | 0x1c (PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */ | |
129 | >; | |
130 | }; | |
2ba35493 KK |
131 | }; |
132 | ||
133 | ocp { | |
134 | uart0: serial@44e09000 { | |
135 | pinctrl-names = "default"; | |
136 | pinctrl-0 = <&uart0_pins>; | |
137 | ||
138 | status = "okay"; | |
139 | }; | |
140 | ||
141 | musb: usb@47400000 { | |
142 | status = "okay"; | |
143 | ||
144 | control@44e10000 { | |
145 | status = "okay"; | |
146 | }; | |
147 | ||
148 | usb-phy@47401300 { | |
149 | status = "okay"; | |
150 | }; | |
151 | ||
152 | usb-phy@47401b00 { | |
153 | status = "okay"; | |
154 | }; | |
155 | ||
156 | usb@47401000 { | |
157 | status = "okay"; | |
158 | }; | |
159 | ||
160 | usb@47401800 { | |
161 | status = "okay"; | |
162 | dr_mode = "host"; | |
163 | }; | |
164 | ||
165 | dma-controller@07402000 { | |
166 | status = "okay"; | |
167 | }; | |
168 | }; | |
169 | ||
170 | i2c0: i2c@44e0b000 { | |
171 | pinctrl-names = "default"; | |
172 | pinctrl-0 = <&i2c0_pins>; | |
173 | ||
174 | status = "okay"; | |
175 | clock-frequency = <400000>; | |
176 | ||
177 | tps: tps@24 { | |
178 | reg = <0x24>; | |
179 | }; | |
180 | ||
181 | }; | |
182 | }; | |
183 | ||
184 | leds { | |
185 | pinctrl-names = "default"; | |
186 | pinctrl-0 = <&user_leds_s0>; | |
187 | ||
188 | compatible = "gpio-leds"; | |
189 | ||
190 | led@2 { | |
191 | label = "beaglebone:green:heartbeat"; | |
192 | gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>; | |
193 | linux,default-trigger = "heartbeat"; | |
194 | default-state = "off"; | |
195 | }; | |
196 | ||
197 | led@3 { | |
198 | label = "beaglebone:green:mmc0"; | |
199 | gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>; | |
200 | linux,default-trigger = "mmc0"; | |
201 | default-state = "off"; | |
202 | }; | |
203 | ||
204 | led@4 { | |
205 | label = "beaglebone:green:usr2"; | |
206 | gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>; | |
ec8a7597 | 207 | linux,default-trigger = "cpu0"; |
2ba35493 KK |
208 | default-state = "off"; |
209 | }; | |
210 | ||
211 | led@5 { | |
212 | label = "beaglebone:green:usr3"; | |
213 | gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>; | |
ec8a7597 | 214 | linux,default-trigger = "mmc1"; |
2ba35493 KK |
215 | default-state = "off"; |
216 | }; | |
217 | }; | |
218 | }; | |
219 | ||
220 | /include/ "tps65217.dtsi" | |
221 | ||
222 | &tps { | |
223 | regulators { | |
224 | dcdc1_reg: regulator@0 { | |
225 | regulator-always-on; | |
226 | }; | |
227 | ||
228 | dcdc2_reg: regulator@1 { | |
229 | /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */ | |
230 | regulator-name = "vdd_mpu"; | |
231 | regulator-min-microvolt = <925000>; | |
232 | regulator-max-microvolt = <1325000>; | |
233 | regulator-boot-on; | |
234 | regulator-always-on; | |
235 | }; | |
236 | ||
237 | dcdc3_reg: regulator@2 { | |
238 | /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */ | |
239 | regulator-name = "vdd_core"; | |
240 | regulator-min-microvolt = <925000>; | |
241 | regulator-max-microvolt = <1150000>; | |
242 | regulator-boot-on; | |
243 | regulator-always-on; | |
244 | }; | |
245 | ||
246 | ldo1_reg: regulator@3 { | |
247 | regulator-always-on; | |
248 | }; | |
249 | ||
250 | ldo2_reg: regulator@4 { | |
251 | regulator-always-on; | |
252 | }; | |
253 | ||
254 | ldo3_reg: regulator@5 { | |
255 | regulator-always-on; | |
256 | }; | |
257 | ||
258 | ldo4_reg: regulator@6 { | |
259 | regulator-always-on; | |
260 | }; | |
261 | }; | |
1aac4a99 KK |
262 | |
263 | vmmcsd_fixed: fixedregulator@0 { | |
264 | compatible = "regulator-fixed"; | |
265 | regulator-name = "vmmcsd_fixed"; | |
266 | regulator-min-microvolt = <3300000>; | |
267 | regulator-max-microvolt = <3300000>; | |
268 | }; | |
2ba35493 KK |
269 | }; |
270 | ||
271 | &cpsw_emac0 { | |
272 | phy_id = <&davinci_mdio>, <0>; | |
273 | phy-mode = "mii"; | |
274 | }; | |
275 | ||
276 | &cpsw_emac1 { | |
277 | phy_id = <&davinci_mdio>, <1>; | |
278 | phy-mode = "mii"; | |
279 | }; | |
280 | ||
281 | &mac { | |
282 | pinctrl-names = "default", "sleep"; | |
283 | pinctrl-0 = <&cpsw_default>; | |
284 | pinctrl-1 = <&cpsw_sleep>; | |
285 | ||
286 | }; | |
287 | ||
288 | &davinci_mdio { | |
289 | pinctrl-names = "default", "sleep"; | |
290 | pinctrl-0 = <&davinci_mdio_default>; | |
291 | pinctrl-1 = <&davinci_mdio_sleep>; | |
292 | }; | |
3045ffff AH |
293 | |
294 | &mmc1 { | |
295 | status = "okay"; | |
757a90e6 | 296 | bus-width = <0x4>; |
3045ffff AH |
297 | pinctrl-names = "default"; |
298 | pinctrl-0 = <&mmc1_pins>; | |
299 | cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>; | |
300 | cd-inverted; | |
301 | }; |