Commit | Line | Data |
---|---|---|
6a66a8b2 AC |
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 | /dts-v1/; | |
9 | ||
eb33ef66 | 10 | #include "am33xx.dtsi" |
6a66a8b2 AC |
11 | |
12 | / { | |
13 | model = "TI AM335x BeagleBone"; | |
14 | compatible = "ti,am335x-bone", "ti,am33xx"; | |
15 | ||
efeedcf2 AC |
16 | cpus { |
17 | cpu@0 { | |
18 | cpu0-supply = <&dcdc2_reg>; | |
19 | }; | |
20 | }; | |
21 | ||
6a66a8b2 AC |
22 | memory { |
23 | device_type = "memory"; | |
24 | reg = <0x80000000 0x10000000>; /* 256 MB */ | |
25 | }; | |
53d91034 | 26 | |
7e782c41 AC |
27 | am33xx_pinmux: pinmux@44e10800 { |
28 | pinctrl-names = "default"; | |
4d927570 | 29 | pinctrl-0 = <&clkout2_pin>; |
7e782c41 AC |
30 | |
31 | user_leds_s0: user_leds_s0 { | |
32 | pinctrl-single,pins = < | |
6a8a6b65 FV |
33 | 0x54 (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a5.gpio1_21 */ |
34 | 0x58 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a6.gpio1_22 */ | |
35 | 0x5c (PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_a7.gpio1_23 */ | |
36 | 0x60 (PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_a8.gpio1_24 */ | |
7e782c41 AC |
37 | >; |
38 | }; | |
3f866445 VH |
39 | |
40 | i2c0_pins: pinmux_i2c0_pins { | |
41 | pinctrl-single,pins = < | |
6a8a6b65 FV |
42 | 0x188 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_sda.i2c0_sda */ |
43 | 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c0_scl.i2c0_scl */ | |
3f866445 VH |
44 | >; |
45 | }; | |
9f2fbe17 VH |
46 | |
47 | uart0_pins: pinmux_uart0_pins { | |
48 | pinctrl-single,pins = < | |
6a8a6b65 FV |
49 | 0x170 (PIN_INPUT_PULLUP | MUX_MODE0) /* uart0_rxd.uart0_rxd */ |
50 | 0x174 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* uart0_txd.uart0_txd */ | |
9f2fbe17 VH |
51 | >; |
52 | }; | |
4d927570 VH |
53 | |
54 | clkout2_pin: pinmux_clkout2_pin { | |
55 | pinctrl-single,pins = < | |
6a8a6b65 | 56 | 0x1b4 (PIN_OUTPUT_PULLDOWN | MUX_MODE3) /* xdma_event_intr1.clkout2 */ |
4d927570 VH |
57 | >; |
58 | }; | |
be814fda M |
59 | |
60 | cpsw_default: cpsw_default { | |
61 | pinctrl-single,pins = < | |
62 | /* Slave 1 */ | |
63 | 0x110 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxerr.mii1_rxerr */ | |
64 | 0x114 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txen.mii1_txen */ | |
65 | 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxdv.mii1_rxdv */ | |
66 | 0x11c (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd3.mii1_txd3 */ | |
67 | 0x120 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd2.mii1_txd2 */ | |
68 | 0x124 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd1.mii1_txd1 */ | |
69 | 0x128 (PIN_OUTPUT_PULLDOWN | MUX_MODE0) /* mii1_txd0.mii1_txd0 */ | |
70 | 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_txclk.mii1_txclk */ | |
71 | 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxclk.mii1_rxclk */ | |
72 | 0x134 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd3.mii1_rxd3 */ | |
73 | 0x138 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd2.mii1_rxd2 */ | |
74 | 0x13c (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd1.mii1_rxd1 */ | |
75 | 0x140 (PIN_INPUT_PULLUP | MUX_MODE0) /* mii1_rxd0.mii1_rxd0 */ | |
76 | >; | |
77 | }; | |
78 | ||
79 | cpsw_sleep: cpsw_sleep { | |
80 | pinctrl-single,pins = < | |
81 | /* Slave 1 reset value */ | |
82 | 0x110 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
83 | 0x114 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
84 | 0x118 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
85 | 0x11c (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
86 | 0x120 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
87 | 0x124 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
88 | 0x128 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
89 | 0x12c (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
90 | 0x130 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
91 | 0x134 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
92 | 0x138 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
93 | 0x13c (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
94 | 0x140 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
95 | >; | |
96 | }; | |
97 | ||
98 | davinci_mdio_default: davinci_mdio_default { | |
99 | pinctrl-single,pins = < | |
100 | /* MDIO */ | |
101 | 0x148 (PIN_INPUT_PULLUP | SLEWCTRL_FAST | MUX_MODE0) /* mdio_data.mdio_data */ | |
102 | 0x14c (PIN_OUTPUT_PULLUP | MUX_MODE0) /* mdio_clk.mdio_clk */ | |
103 | >; | |
104 | }; | |
105 | ||
106 | davinci_mdio_sleep: davinci_mdio_sleep { | |
107 | pinctrl-single,pins = < | |
108 | /* MDIO reset value */ | |
109 | 0x148 (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
110 | 0x14c (PIN_INPUT_PULLDOWN | MUX_MODE7) | |
111 | >; | |
112 | }; | |
7e782c41 AC |
113 | }; |
114 | ||
53d91034 | 115 | ocp { |
dde3b0d6 | 116 | uart0: serial@44e09000 { |
9f2fbe17 VH |
117 | pinctrl-names = "default"; |
118 | pinctrl-0 = <&uart0_pins>; | |
119 | ||
53d91034 VH |
120 | status = "okay"; |
121 | }; | |
a06ceff6 | 122 | |
97238b35 SAS |
123 | musb: usb@47400000 { |
124 | status = "okay"; | |
125 | ||
126 | control@44e10000 { | |
127 | status = "okay"; | |
128 | }; | |
129 | ||
c031a7d4 | 130 | usb-phy@47401300 { |
97238b35 SAS |
131 | status = "okay"; |
132 | }; | |
133 | ||
2ae847a1 SAS |
134 | usb-phy@47401b00 { |
135 | status = "okay"; | |
136 | }; | |
137 | ||
97238b35 SAS |
138 | usb@47401000 { |
139 | status = "okay"; | |
140 | }; | |
2ae847a1 SAS |
141 | |
142 | usb@47401800 { | |
143 | status = "okay"; | |
144 | dr_mode = "host"; | |
145 | }; | |
146 | ||
147 | dma-controller@07402000 { | |
148 | status = "okay"; | |
149 | }; | |
97238b35 SAS |
150 | }; |
151 | ||
b918e2c0 | 152 | i2c0: i2c@44e0b000 { |
3f866445 VH |
153 | pinctrl-names = "default"; |
154 | pinctrl-0 = <&i2c0_pins>; | |
155 | ||
a06ceff6 AC |
156 | status = "okay"; |
157 | clock-frequency = <400000>; | |
158 | ||
159 | tps: tps@24 { | |
160 | reg = <0x24>; | |
161 | }; | |
162 | ||
163 | }; | |
164 | }; | |
5d4e1706 AC |
165 | |
166 | leds { | |
b8f70c3a VH |
167 | pinctrl-names = "default"; |
168 | pinctrl-0 = <&user_leds_s0>; | |
169 | ||
5d4e1706 AC |
170 | compatible = "gpio-leds"; |
171 | ||
172 | led@2 { | |
173 | label = "beaglebone:green:heartbeat"; | |
e94233c2 | 174 | gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>; |
5d4e1706 AC |
175 | linux,default-trigger = "heartbeat"; |
176 | default-state = "off"; | |
177 | }; | |
178 | ||
179 | led@3 { | |
180 | label = "beaglebone:green:mmc0"; | |
e94233c2 | 181 | gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>; |
5d4e1706 AC |
182 | linux,default-trigger = "mmc0"; |
183 | default-state = "off"; | |
184 | }; | |
185 | ||
186 | led@4 { | |
187 | label = "beaglebone:green:usr2"; | |
e94233c2 | 188 | gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>; |
5d4e1706 AC |
189 | default-state = "off"; |
190 | }; | |
191 | ||
192 | led@5 { | |
193 | label = "beaglebone:green:usr3"; | |
e94233c2 | 194 | gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>; |
5d4e1706 AC |
195 | default-state = "off"; |
196 | }; | |
197 | }; | |
a06ceff6 AC |
198 | }; |
199 | ||
200 | /include/ "tps65217.dtsi" | |
201 | ||
202 | &tps { | |
203 | regulators { | |
204 | dcdc1_reg: regulator@0 { | |
205 | regulator-always-on; | |
206 | }; | |
207 | ||
208 | dcdc2_reg: regulator@1 { | |
209 | /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */ | |
210 | regulator-name = "vdd_mpu"; | |
211 | regulator-min-microvolt = <925000>; | |
212 | regulator-max-microvolt = <1325000>; | |
213 | regulator-boot-on; | |
214 | regulator-always-on; | |
215 | }; | |
216 | ||
217 | dcdc3_reg: regulator@2 { | |
218 | /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */ | |
219 | regulator-name = "vdd_core"; | |
220 | regulator-min-microvolt = <925000>; | |
221 | regulator-max-microvolt = <1150000>; | |
222 | regulator-boot-on; | |
223 | regulator-always-on; | |
224 | }; | |
225 | ||
226 | ldo1_reg: regulator@3 { | |
227 | regulator-always-on; | |
228 | }; | |
229 | ||
230 | ldo2_reg: regulator@4 { | |
231 | regulator-always-on; | |
232 | }; | |
233 | ||
234 | ldo3_reg: regulator@5 { | |
235 | regulator-always-on; | |
236 | }; | |
237 | ||
238 | ldo4_reg: regulator@6 { | |
239 | regulator-always-on; | |
240 | }; | |
53d91034 | 241 | }; |
6a66a8b2 | 242 | }; |
1a39a65c M |
243 | |
244 | &cpsw_emac0 { | |
245 | phy_id = <&davinci_mdio>, <0>; | |
6d75afe2 | 246 | phy-mode = "mii"; |
1a39a65c M |
247 | }; |
248 | ||
249 | &cpsw_emac1 { | |
250 | phy_id = <&davinci_mdio>, <1>; | |
6d75afe2 | 251 | phy-mode = "mii"; |
1a39a65c | 252 | }; |
be814fda M |
253 | |
254 | &mac { | |
255 | pinctrl-names = "default", "sleep"; | |
256 | pinctrl-0 = <&cpsw_default>; | |
257 | pinctrl-1 = <&cpsw_sleep>; | |
258 | ||
259 | }; | |
260 | ||
261 | &davinci_mdio { | |
262 | pinctrl-names = "default", "sleep"; | |
263 | pinctrl-0 = <&davinci_mdio_default>; | |
264 | pinctrl-1 = <&davinci_mdio_sleep>; | |
265 | }; |