blob: fe983d204b2b30a1c171ce8816c26a67a774fc53 [file] [log] [blame]
Koen Kooi2ba35492013-09-09 16:29:21 +02001/*
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
Koen Kooi2ba35492013-09-09 16:29:21 +020024 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>;
Koen Kooiec8a7592013-09-12 20:35:35 +020047 linux,default-trigger = "cpu0";
Koen Kooi2ba35492013-09-09 16:29:21 +020048 default-state = "off";
49 };
50
51 led@5 {
52 label = "beaglebone:green:usr3";
53 gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
Koen Kooiec8a7592013-09-12 20:35:35 +020054 linux,default-trigger = "mmc1";
Koen Kooi2ba35492013-09-09 16:29:21 +020055 default-state = "off";
56 };
57 };
Nishanth Menonea5b7c12013-09-30 09:40:16 -050058
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 };
Koen Kooi2ba35492013-09-09 16:29:21 +020065};
66
Javier Martinez Canillas82d75af2013-09-20 17:00:00 +020067&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 */
Balaji T Kaf905b22013-09-27 17:05:09 +0530163 0x84 (PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
Javier Martinez Canillas82d75af2013-09-20 17:00:00 +0200164 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
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200176&uart0 {
177 pinctrl-names = "default";
178 pinctrl-0 = <&uart0_pins>;
179
180 status = "okay";
181};
182
183&usb {
184 status = "okay";
Guido Martínez081df892014-04-28 17:54:32 -0300185};
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200186
Guido Martínez081df892014-04-28 17:54:32 -0300187&usb_ctrl_mod {
188 status = "okay";
189};
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200190
Guido Martínez081df892014-04-28 17:54:32 -0300191&usb0_phy {
192 status = "okay";
193};
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200194
Guido Martínez081df892014-04-28 17:54:32 -0300195&usb1_phy {
196 status = "okay";
197};
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200198
Guido Martínez081df892014-04-28 17:54:32 -0300199&usb0 {
200 status = "okay";
201};
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200202
Guido Martínez081df892014-04-28 17:54:32 -0300203&usb1 {
204 status = "okay";
205 dr_mode = "host";
206};
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200207
Guido Martínez081df892014-04-28 17:54:32 -0300208&cppi41dma {
209 status = "okay";
Javier Martinez Canillase0efaaf2013-09-20 17:42:19 +0200210};
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
Koen Kooi2ba35492013-09-09 16:29:21 +0200225/include/ "tps65217.dtsi"
226
227&tps {
228 regulators {
229 dcdc1_reg: regulator@0 {
Mark Brown83c9b2a2014-09-05 22:12:05 +0100230 regulator-name = "vdds_dpr";
Koen Kooi2ba35492013-09-09 16:29:21 +0200231 regulator-always-on;
232 };
233
234 dcdc2_reg: regulator@1 {
235 /* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
236 regulator-name = "vdd_mpu";
237 regulator-min-microvolt = <925000>;
238 regulator-max-microvolt = <1325000>;
239 regulator-boot-on;
240 regulator-always-on;
241 };
242
243 dcdc3_reg: regulator@2 {
244 /* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
245 regulator-name = "vdd_core";
246 regulator-min-microvolt = <925000>;
247 regulator-max-microvolt = <1150000>;
248 regulator-boot-on;
249 regulator-always-on;
250 };
251
252 ldo1_reg: regulator@3 {
Mark Brown83c9b2a2014-09-05 22:12:05 +0100253 regulator-name = "vio,vrtc,vdds";
Koen Kooi2ba35492013-09-09 16:29:21 +0200254 regulator-always-on;
255 };
256
257 ldo2_reg: regulator@4 {
Mark Brown83c9b2a2014-09-05 22:12:05 +0100258 regulator-name = "vdd_3v3aux";
Koen Kooi2ba35492013-09-09 16:29:21 +0200259 regulator-always-on;
260 };
261
262 ldo3_reg: regulator@5 {
Mark Brown83c9b2a2014-09-05 22:12:05 +0100263 regulator-name = "vdd_1v8";
Koen Kooi2ba35492013-09-09 16:29:21 +0200264 regulator-always-on;
265 };
266
267 ldo4_reg: regulator@6 {
Mark Brown83c9b2a2014-09-05 22:12:05 +0100268 regulator-name = "vdd_3v3a";
Koen Kooi2ba35492013-09-09 16:29:21 +0200269 regulator-always-on;
270 };
271 };
272};
273
274&cpsw_emac0 {
275 phy_id = <&davinci_mdio>, <0>;
276 phy-mode = "mii";
277};
278
279&cpsw_emac1 {
280 phy_id = <&davinci_mdio>, <1>;
281 phy-mode = "mii";
282};
283
284&mac {
285 pinctrl-names = "default", "sleep";
286 pinctrl-0 = <&cpsw_default>;
287 pinctrl-1 = <&cpsw_sleep>;
Johan Hovold16c75a12014-05-08 10:57:36 +0200288 status = "okay";
Koen Kooi2ba35492013-09-09 16:29:21 +0200289};
290
291&davinci_mdio {
292 pinctrl-names = "default", "sleep";
293 pinctrl-0 = <&davinci_mdio_default>;
294 pinctrl-1 = <&davinci_mdio_sleep>;
Johan Hovold16c75a12014-05-08 10:57:36 +0200295 status = "okay";
Koen Kooi2ba35492013-09-09 16:29:21 +0200296};
Alexander Holler3045fff2013-09-12 20:35:32 +0200297
298&mmc1 {
299 status = "okay";
Koen Kooi757a90e2013-09-12 20:35:34 +0200300 bus-width = <0x4>;
Alexander Holler3045fff2013-09-12 20:35:32 +0200301 pinctrl-names = "default";
302 pinctrl-0 = <&mmc1_pins>;
303 cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
304 cd-inverted;
305};