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