xref: /freebsd/sys/contrib/device-tree/src/arm/ti/omap/am335x-bone-common.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
4*f126890aSEmmanuel Vadot */
5*f126890aSEmmanuel Vadot
6*f126890aSEmmanuel Vadot/ {
7*f126890aSEmmanuel Vadot	cpus {
8*f126890aSEmmanuel Vadot		cpu@0 {
9*f126890aSEmmanuel Vadot			cpu0-supply = <&dcdc2_reg>;
10*f126890aSEmmanuel Vadot		};
11*f126890aSEmmanuel Vadot	};
12*f126890aSEmmanuel Vadot
13*f126890aSEmmanuel Vadot	memory@80000000 {
14*f126890aSEmmanuel Vadot		device_type = "memory";
15*f126890aSEmmanuel Vadot		reg = <0x80000000 0x10000000>; /* 256 MB */
16*f126890aSEmmanuel Vadot	};
17*f126890aSEmmanuel Vadot
18*f126890aSEmmanuel Vadot	chosen {
19*f126890aSEmmanuel Vadot		stdout-path = &uart0;
20*f126890aSEmmanuel Vadot	};
21*f126890aSEmmanuel Vadot
22*f126890aSEmmanuel Vadot	leds {
23*f126890aSEmmanuel Vadot		pinctrl-names = "default";
24*f126890aSEmmanuel Vadot		pinctrl-0 = <&user_leds_s0>;
25*f126890aSEmmanuel Vadot
26*f126890aSEmmanuel Vadot		compatible = "gpio-leds";
27*f126890aSEmmanuel Vadot
28*f126890aSEmmanuel Vadot		led2 {
29*f126890aSEmmanuel Vadot			label = "beaglebone:green:heartbeat";
30*f126890aSEmmanuel Vadot			gpios = <&gpio1 21 GPIO_ACTIVE_HIGH>;
31*f126890aSEmmanuel Vadot			linux,default-trigger = "heartbeat";
32*f126890aSEmmanuel Vadot			default-state = "off";
33*f126890aSEmmanuel Vadot		};
34*f126890aSEmmanuel Vadot
35*f126890aSEmmanuel Vadot		led3 {
36*f126890aSEmmanuel Vadot			label = "beaglebone:green:mmc0";
37*f126890aSEmmanuel Vadot			gpios = <&gpio1 22 GPIO_ACTIVE_HIGH>;
38*f126890aSEmmanuel Vadot			linux,default-trigger = "mmc0";
39*f126890aSEmmanuel Vadot			default-state = "off";
40*f126890aSEmmanuel Vadot		};
41*f126890aSEmmanuel Vadot
42*f126890aSEmmanuel Vadot		led4 {
43*f126890aSEmmanuel Vadot			label = "beaglebone:green:usr2";
44*f126890aSEmmanuel Vadot			gpios = <&gpio1 23 GPIO_ACTIVE_HIGH>;
45*f126890aSEmmanuel Vadot			linux,default-trigger = "cpu0";
46*f126890aSEmmanuel Vadot			default-state = "off";
47*f126890aSEmmanuel Vadot		};
48*f126890aSEmmanuel Vadot
49*f126890aSEmmanuel Vadot		led5 {
50*f126890aSEmmanuel Vadot			label = "beaglebone:green:usr3";
51*f126890aSEmmanuel Vadot			gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
52*f126890aSEmmanuel Vadot			linux,default-trigger = "mmc1";
53*f126890aSEmmanuel Vadot			default-state = "off";
54*f126890aSEmmanuel Vadot		};
55*f126890aSEmmanuel Vadot	};
56*f126890aSEmmanuel Vadot
57*f126890aSEmmanuel Vadot	vmmcsd_fixed: fixedregulator0 {
58*f126890aSEmmanuel Vadot		compatible = "regulator-fixed";
59*f126890aSEmmanuel Vadot		regulator-name = "vmmcsd_fixed";
60*f126890aSEmmanuel Vadot		regulator-min-microvolt = <3300000>;
61*f126890aSEmmanuel Vadot		regulator-max-microvolt = <3300000>;
62*f126890aSEmmanuel Vadot	};
63*f126890aSEmmanuel Vadot};
64*f126890aSEmmanuel Vadot
65*f126890aSEmmanuel Vadot&am33xx_pinmux {
66*f126890aSEmmanuel Vadot	pinctrl-names = "default";
67*f126890aSEmmanuel Vadot	pinctrl-0 = <&clkout2_pin>;
68*f126890aSEmmanuel Vadot
69*f126890aSEmmanuel Vadot	user_leds_s0: user-leds-s0-pins {
70*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
71*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_A5, PIN_OUTPUT_PULLDOWN, MUX_MODE7)	/* gpmc_a5.gpio1_21 */
72*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_A6, PIN_OUTPUT_PULLUP, MUX_MODE7)	/* gpmc_a6.gpio1_22 */
73*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_A7, PIN_OUTPUT_PULLDOWN, MUX_MODE7)	/* gpmc_a7.gpio1_23 */
74*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_A8, PIN_OUTPUT_PULLUP, MUX_MODE7)	/* gpmc_a8.gpio1_24 */
75*f126890aSEmmanuel Vadot		>;
76*f126890aSEmmanuel Vadot	};
77*f126890aSEmmanuel Vadot
78*f126890aSEmmanuel Vadot	i2c0_pins: i2c0-pins {
79*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
80*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_I2C0_SDA, PIN_INPUT_PULLUP, MUX_MODE0)	/* i2c0_sda.i2c0_sda */
81*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_I2C0_SCL, PIN_INPUT_PULLUP, MUX_MODE0)	/* i2c0_scl.i2c0_scl */
82*f126890aSEmmanuel Vadot		>;
83*f126890aSEmmanuel Vadot	};
84*f126890aSEmmanuel Vadot
85*f126890aSEmmanuel Vadot	i2c2_pins: i2c2-pins {
86*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
87*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT_PULLUP, MUX_MODE3)	/* uart1_ctsn.i2c2_sda */
88*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_INPUT_PULLUP, MUX_MODE3)	/* uart1_rtsn.i2c2_scl */
89*f126890aSEmmanuel Vadot		>;
90*f126890aSEmmanuel Vadot	};
91*f126890aSEmmanuel Vadot
92*f126890aSEmmanuel Vadot	uart0_pins: uart0-pins {
93*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
94*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_UART0_RXD, PIN_INPUT_PULLUP, MUX_MODE0)
95*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_UART0_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
96*f126890aSEmmanuel Vadot		>;
97*f126890aSEmmanuel Vadot	};
98*f126890aSEmmanuel Vadot
99*f126890aSEmmanuel Vadot	clkout2_pin: clkout2-pins {
100*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
101*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR1, PIN_OUTPUT_PULLDOWN, MUX_MODE3)	/* xdma_event_intr1.clkout2 */
102*f126890aSEmmanuel Vadot		>;
103*f126890aSEmmanuel Vadot	};
104*f126890aSEmmanuel Vadot
105*f126890aSEmmanuel Vadot	cpsw_default: cpsw-default-pins {
106*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
107*f126890aSEmmanuel Vadot			/* Slave 1 */
108*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_RX_ER, PIN_INPUT_PULLUP, MUX_MODE0)
109*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_TX_EN, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
110*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_RX_DV, PIN_INPUT_PULLUP, MUX_MODE0)
111*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
112*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
113*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_TXD1, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
114*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
115*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_TX_CLK, PIN_INPUT_PULLUP, MUX_MODE0)
116*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_RX_CLK, PIN_INPUT_PULLUP, MUX_MODE0)
117*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_RXD3, PIN_INPUT_PULLUP, MUX_MODE0)
118*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_RXD2, PIN_INPUT_PULLUP, MUX_MODE0)
119*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_RXD1, PIN_INPUT_PULLUP, MUX_MODE0)
120*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_RXD0, PIN_INPUT_PULLUP, MUX_MODE0)
121*f126890aSEmmanuel Vadot		>;
122*f126890aSEmmanuel Vadot	};
123*f126890aSEmmanuel Vadot
124*f126890aSEmmanuel Vadot	cpsw_sleep: cpsw-sleep-pins {
125*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
126*f126890aSEmmanuel Vadot			/* Slave 1 reset value */
127*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_RX_ER, PIN_INPUT_PULLDOWN, MUX_MODE7)
128*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_TX_EN, PIN_INPUT_PULLDOWN, MUX_MODE7)
129*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_RX_DV, PIN_INPUT_PULLDOWN, MUX_MODE7)
130*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_INPUT_PULLDOWN, MUX_MODE7)
131*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_INPUT_PULLDOWN, MUX_MODE7)
132*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_TXD1, PIN_INPUT_PULLDOWN, MUX_MODE7)
133*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_INPUT_PULLDOWN, MUX_MODE7)
134*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_TX_CLK, PIN_INPUT_PULLDOWN, MUX_MODE7)
135*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_RX_CLK, PIN_INPUT_PULLDOWN, MUX_MODE7)
136*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_RXD3, PIN_INPUT_PULLDOWN, MUX_MODE7)
137*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_RXD2, PIN_INPUT_PULLDOWN, MUX_MODE7)
138*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_RXD1, PIN_INPUT_PULLDOWN, MUX_MODE7)
139*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MII1_RXD0, PIN_INPUT_PULLDOWN, MUX_MODE7)
140*f126890aSEmmanuel Vadot		>;
141*f126890aSEmmanuel Vadot	};
142*f126890aSEmmanuel Vadot
143*f126890aSEmmanuel Vadot	davinci_mdio_default: davinci-mdio-default-pins {
144*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
145*f126890aSEmmanuel Vadot			/* MDIO */
146*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT_PULLUP | SLEWCTRL_FAST, MUX_MODE0)
147*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MDC, PIN_OUTPUT_PULLUP, MUX_MODE0)
148*f126890aSEmmanuel Vadot			/* Added to support GPIO controlled PHY reset */
149*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_OUTPUT_PULLUP, MUX_MODE7)
150*f126890aSEmmanuel Vadot		>;
151*f126890aSEmmanuel Vadot	};
152*f126890aSEmmanuel Vadot
153*f126890aSEmmanuel Vadot	davinci_mdio_sleep: davinci-mdio-sleep-pins {
154*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
155*f126890aSEmmanuel Vadot			/* MDIO reset value */
156*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT_PULLDOWN, MUX_MODE7)
157*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MDC, PIN_INPUT_PULLDOWN, MUX_MODE7)
158*f126890aSEmmanuel Vadot			/* Added to support GPIO controlled PHY reset */
159*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_INPUT_PULLDOWN, MUX_MODE7)
160*f126890aSEmmanuel Vadot		>;
161*f126890aSEmmanuel Vadot	};
162*f126890aSEmmanuel Vadot
163*f126890aSEmmanuel Vadot	mmc1_pins: mmc1-pins {
164*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
165*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_SPI0_CS1, PIN_INPUT, MUX_MODE7)		/* spio0_cs1.gpio0_6 */
166*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MMC0_DAT0, PIN_INPUT_PULLUP, MUX_MODE0)
167*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MMC0_DAT1, PIN_INPUT_PULLUP, MUX_MODE0)
168*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MMC0_DAT2, PIN_INPUT_PULLUP, MUX_MODE0)
169*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MMC0_DAT3, PIN_INPUT_PULLUP, MUX_MODE0)
170*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MMC0_CMD, PIN_INPUT_PULLUP, MUX_MODE0)
171*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_MMC0_CLK, PIN_INPUT_PULLUP, MUX_MODE0)
172*f126890aSEmmanuel Vadot		>;
173*f126890aSEmmanuel Vadot	};
174*f126890aSEmmanuel Vadot
175*f126890aSEmmanuel Vadot	emmc_pins: emmc-pins {
176*f126890aSEmmanuel Vadot		pinctrl-single,pins = <
177*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_CSN1, PIN_INPUT_PULLUP, MUX_MODE2) /* gpmc_csn1.mmc1_clk */
178*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_CSN2, PIN_INPUT_PULLUP, MUX_MODE2) /* gpmc_csn2.mmc1_cmd */
179*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_AD0, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad0.mmc1_dat0 */
180*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_AD1, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad1.mmc1_dat1 */
181*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_AD2, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad2.mmc1_dat2 */
182*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_AD3, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad3.mmc1_dat3 */
183*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_AD4, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad4.mmc1_dat4 */
184*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_AD5, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad5.mmc1_dat5 */
185*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_AD6, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad6.mmc1_dat6 */
186*f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_AD7, PIN_INPUT_PULLUP, MUX_MODE1) /* gpmc_ad7.mmc1_dat7 */
187*f126890aSEmmanuel Vadot		>;
188*f126890aSEmmanuel Vadot	};
189*f126890aSEmmanuel Vadot};
190*f126890aSEmmanuel Vadot
191*f126890aSEmmanuel Vadot&uart0 {
192*f126890aSEmmanuel Vadot	pinctrl-names = "default";
193*f126890aSEmmanuel Vadot	pinctrl-0 = <&uart0_pins>;
194*f126890aSEmmanuel Vadot
195*f126890aSEmmanuel Vadot	status = "okay";
196*f126890aSEmmanuel Vadot};
197*f126890aSEmmanuel Vadot
198*f126890aSEmmanuel Vadot&usb0 {
199*f126890aSEmmanuel Vadot	dr_mode = "peripheral";
200*f126890aSEmmanuel Vadot	interrupts-extended = <&intc 18 &tps 0>;
201*f126890aSEmmanuel Vadot	interrupt-names = "mc", "vbus";
202*f126890aSEmmanuel Vadot};
203*f126890aSEmmanuel Vadot
204*f126890aSEmmanuel Vadot&usb1 {
205*f126890aSEmmanuel Vadot	dr_mode = "host";
206*f126890aSEmmanuel Vadot};
207*f126890aSEmmanuel Vadot
208*f126890aSEmmanuel Vadot&i2c0 {
209*f126890aSEmmanuel Vadot	pinctrl-names = "default";
210*f126890aSEmmanuel Vadot	pinctrl-0 = <&i2c0_pins>;
211*f126890aSEmmanuel Vadot
212*f126890aSEmmanuel Vadot	status = "okay";
213*f126890aSEmmanuel Vadot	clock-frequency = <400000>;
214*f126890aSEmmanuel Vadot
215*f126890aSEmmanuel Vadot	tps: tps@24 {
216*f126890aSEmmanuel Vadot		reg = <0x24>;
217*f126890aSEmmanuel Vadot	};
218*f126890aSEmmanuel Vadot
219*f126890aSEmmanuel Vadot	baseboard_eeprom: baseboard_eeprom@50 {
220*f126890aSEmmanuel Vadot		compatible = "atmel,24c256";
221*f126890aSEmmanuel Vadot		reg = <0x50>;
222*f126890aSEmmanuel Vadot		vcc-supply = <&ldo4_reg>;
223*f126890aSEmmanuel Vadot
224*f126890aSEmmanuel Vadot		#address-cells = <1>;
225*f126890aSEmmanuel Vadot		#size-cells = <1>;
226*f126890aSEmmanuel Vadot		baseboard_data: baseboard_data@0 {
227*f126890aSEmmanuel Vadot			reg = <0 0x100>;
228*f126890aSEmmanuel Vadot		};
229*f126890aSEmmanuel Vadot	};
230*f126890aSEmmanuel Vadot};
231*f126890aSEmmanuel Vadot
232*f126890aSEmmanuel Vadot&i2c2 {
233*f126890aSEmmanuel Vadot	pinctrl-names = "default";
234*f126890aSEmmanuel Vadot	pinctrl-0 = <&i2c2_pins>;
235*f126890aSEmmanuel Vadot
236*f126890aSEmmanuel Vadot	status = "okay";
237*f126890aSEmmanuel Vadot	clock-frequency = <100000>;
238*f126890aSEmmanuel Vadot
239*f126890aSEmmanuel Vadot	cape_eeprom0: cape_eeprom0@54 {
240*f126890aSEmmanuel Vadot		compatible = "atmel,24c256";
241*f126890aSEmmanuel Vadot		reg = <0x54>;
242*f126890aSEmmanuel Vadot		#address-cells = <1>;
243*f126890aSEmmanuel Vadot		#size-cells = <1>;
244*f126890aSEmmanuel Vadot		cape0_data: cape_data@0 {
245*f126890aSEmmanuel Vadot			reg = <0 0x100>;
246*f126890aSEmmanuel Vadot		};
247*f126890aSEmmanuel Vadot	};
248*f126890aSEmmanuel Vadot
249*f126890aSEmmanuel Vadot	cape_eeprom1: cape_eeprom1@55 {
250*f126890aSEmmanuel Vadot		compatible = "atmel,24c256";
251*f126890aSEmmanuel Vadot		reg = <0x55>;
252*f126890aSEmmanuel Vadot		#address-cells = <1>;
253*f126890aSEmmanuel Vadot		#size-cells = <1>;
254*f126890aSEmmanuel Vadot		cape1_data: cape_data@0 {
255*f126890aSEmmanuel Vadot			reg = <0 0x100>;
256*f126890aSEmmanuel Vadot		};
257*f126890aSEmmanuel Vadot	};
258*f126890aSEmmanuel Vadot
259*f126890aSEmmanuel Vadot	cape_eeprom2: cape_eeprom2@56 {
260*f126890aSEmmanuel Vadot		compatible = "atmel,24c256";
261*f126890aSEmmanuel Vadot		reg = <0x56>;
262*f126890aSEmmanuel Vadot		#address-cells = <1>;
263*f126890aSEmmanuel Vadot		#size-cells = <1>;
264*f126890aSEmmanuel Vadot		cape2_data: cape_data@0 {
265*f126890aSEmmanuel Vadot			reg = <0 0x100>;
266*f126890aSEmmanuel Vadot		};
267*f126890aSEmmanuel Vadot	};
268*f126890aSEmmanuel Vadot
269*f126890aSEmmanuel Vadot	cape_eeprom3: cape_eeprom3@57 {
270*f126890aSEmmanuel Vadot		compatible = "atmel,24c256";
271*f126890aSEmmanuel Vadot		reg = <0x57>;
272*f126890aSEmmanuel Vadot		#address-cells = <1>;
273*f126890aSEmmanuel Vadot		#size-cells = <1>;
274*f126890aSEmmanuel Vadot		cape3_data: cape_data@0 {
275*f126890aSEmmanuel Vadot			reg = <0 0x100>;
276*f126890aSEmmanuel Vadot		};
277*f126890aSEmmanuel Vadot	};
278*f126890aSEmmanuel Vadot};
279*f126890aSEmmanuel Vadot
280*f126890aSEmmanuel Vadot
281*f126890aSEmmanuel Vadot/include/ "../../tps65217.dtsi"
282*f126890aSEmmanuel Vadot
283*f126890aSEmmanuel Vadot&tps {
284*f126890aSEmmanuel Vadot	/*
285*f126890aSEmmanuel Vadot	 * Configure pmic to enter OFF-state instead of SLEEP-state ("RTC-only
286*f126890aSEmmanuel Vadot	 * mode") at poweroff.  Most BeagleBone versions do not support RTC-only
287*f126890aSEmmanuel Vadot	 * mode and risk hardware damage if this mode is entered.
288*f126890aSEmmanuel Vadot	 *
289*f126890aSEmmanuel Vadot	 * For details, see linux-omap mailing list May 2015 thread
290*f126890aSEmmanuel Vadot	 *	[PATCH] ARM: dts: am335x-bone* enable pmic-shutdown-controller
291*f126890aSEmmanuel Vadot	 * In particular, messages:
292*f126890aSEmmanuel Vadot	 *	http://www.spinics.net/lists/linux-omap/msg118585.html
293*f126890aSEmmanuel Vadot	 *	http://www.spinics.net/lists/linux-omap/msg118615.html
294*f126890aSEmmanuel Vadot	 *
295*f126890aSEmmanuel Vadot	 * You can override this later with
296*f126890aSEmmanuel Vadot	 *	&tps {  /delete-property/ ti,pmic-shutdown-controller;  }
297*f126890aSEmmanuel Vadot	 * if you want to use RTC-only mode and made sure you are not affected
298*f126890aSEmmanuel Vadot	 * by the hardware problems. (Tip: double-check by performing a current
299*f126890aSEmmanuel Vadot	 * measurement after shutdown: it should be less than 1 mA.)
300*f126890aSEmmanuel Vadot	 */
301*f126890aSEmmanuel Vadot
302*f126890aSEmmanuel Vadot	interrupts = <7>; /* NMI */
303*f126890aSEmmanuel Vadot	interrupt-parent = <&intc>;
304*f126890aSEmmanuel Vadot
305*f126890aSEmmanuel Vadot	ti,pmic-shutdown-controller;
306*f126890aSEmmanuel Vadot
307*f126890aSEmmanuel Vadot	charger {
308*f126890aSEmmanuel Vadot		status = "okay";
309*f126890aSEmmanuel Vadot	};
310*f126890aSEmmanuel Vadot
311*f126890aSEmmanuel Vadot	pwrbutton {
312*f126890aSEmmanuel Vadot		status = "okay";
313*f126890aSEmmanuel Vadot	};
314*f126890aSEmmanuel Vadot
315*f126890aSEmmanuel Vadot	regulators {
316*f126890aSEmmanuel Vadot		dcdc1_reg: regulator@0 {
317*f126890aSEmmanuel Vadot			regulator-name = "vdds_dpr";
318*f126890aSEmmanuel Vadot			regulator-always-on;
319*f126890aSEmmanuel Vadot		};
320*f126890aSEmmanuel Vadot
321*f126890aSEmmanuel Vadot		dcdc2_reg: regulator@1 {
322*f126890aSEmmanuel Vadot			/* VDD_MPU voltage limits 0.95V - 1.26V with +/-4% tolerance */
323*f126890aSEmmanuel Vadot			regulator-name = "vdd_mpu";
324*f126890aSEmmanuel Vadot			regulator-min-microvolt = <925000>;
325*f126890aSEmmanuel Vadot			regulator-max-microvolt = <1351500>;
326*f126890aSEmmanuel Vadot			regulator-boot-on;
327*f126890aSEmmanuel Vadot			regulator-always-on;
328*f126890aSEmmanuel Vadot		};
329*f126890aSEmmanuel Vadot
330*f126890aSEmmanuel Vadot		dcdc3_reg: regulator@2 {
331*f126890aSEmmanuel Vadot			/* VDD_CORE voltage limits 0.95V - 1.1V with +/-4% tolerance */
332*f126890aSEmmanuel Vadot			regulator-name = "vdd_core";
333*f126890aSEmmanuel Vadot			regulator-min-microvolt = <925000>;
334*f126890aSEmmanuel Vadot			regulator-max-microvolt = <1150000>;
335*f126890aSEmmanuel Vadot			regulator-boot-on;
336*f126890aSEmmanuel Vadot			regulator-always-on;
337*f126890aSEmmanuel Vadot		};
338*f126890aSEmmanuel Vadot
339*f126890aSEmmanuel Vadot		ldo1_reg: regulator@3 {
340*f126890aSEmmanuel Vadot			regulator-name = "vio,vrtc,vdds";
341*f126890aSEmmanuel Vadot			regulator-always-on;
342*f126890aSEmmanuel Vadot		};
343*f126890aSEmmanuel Vadot
344*f126890aSEmmanuel Vadot		ldo2_reg: regulator@4 {
345*f126890aSEmmanuel Vadot			regulator-name = "vdd_3v3aux";
346*f126890aSEmmanuel Vadot			regulator-always-on;
347*f126890aSEmmanuel Vadot		};
348*f126890aSEmmanuel Vadot
349*f126890aSEmmanuel Vadot		ldo3_reg: regulator@5 {
350*f126890aSEmmanuel Vadot			regulator-name = "vdd_1v8";
351*f126890aSEmmanuel Vadot			regulator-always-on;
352*f126890aSEmmanuel Vadot		};
353*f126890aSEmmanuel Vadot
354*f126890aSEmmanuel Vadot		ldo4_reg: regulator@6 {
355*f126890aSEmmanuel Vadot			regulator-name = "vdd_3v3a";
356*f126890aSEmmanuel Vadot			regulator-always-on;
357*f126890aSEmmanuel Vadot		};
358*f126890aSEmmanuel Vadot	};
359*f126890aSEmmanuel Vadot};
360*f126890aSEmmanuel Vadot
361*f126890aSEmmanuel Vadot&cpsw_port1 {
362*f126890aSEmmanuel Vadot	phy-handle = <&ethphy0>;
363*f126890aSEmmanuel Vadot	phy-mode = "mii";
364*f126890aSEmmanuel Vadot	ti,dual-emac-pvid = <1>;
365*f126890aSEmmanuel Vadot};
366*f126890aSEmmanuel Vadot
367*f126890aSEmmanuel Vadot&cpsw_port2 {
368*f126890aSEmmanuel Vadot	status = "disabled";
369*f126890aSEmmanuel Vadot};
370*f126890aSEmmanuel Vadot
371*f126890aSEmmanuel Vadot&mac_sw {
372*f126890aSEmmanuel Vadot	pinctrl-names = "default", "sleep";
373*f126890aSEmmanuel Vadot	pinctrl-0 = <&cpsw_default>;
374*f126890aSEmmanuel Vadot	pinctrl-1 = <&cpsw_sleep>;
375*f126890aSEmmanuel Vadot	status = "okay";
376*f126890aSEmmanuel Vadot};
377*f126890aSEmmanuel Vadot
378*f126890aSEmmanuel Vadot&davinci_mdio_sw {
379*f126890aSEmmanuel Vadot	pinctrl-names = "default", "sleep";
380*f126890aSEmmanuel Vadot	pinctrl-0 = <&davinci_mdio_default>;
381*f126890aSEmmanuel Vadot	pinctrl-1 = <&davinci_mdio_sleep>;
382*f126890aSEmmanuel Vadot
383*f126890aSEmmanuel Vadot	ethphy0: ethernet-phy@0 {
384*f126890aSEmmanuel Vadot		reg = <0>;
385*f126890aSEmmanuel Vadot		/* Support GPIO reset on revision C3 boards */
386*f126890aSEmmanuel Vadot		reset-gpios = <&gpio1 8 GPIO_ACTIVE_LOW>;
387*f126890aSEmmanuel Vadot		reset-assert-us = <300>;
388*f126890aSEmmanuel Vadot		reset-deassert-us = <6500>;
389*f126890aSEmmanuel Vadot	};
390*f126890aSEmmanuel Vadot};
391*f126890aSEmmanuel Vadot
392*f126890aSEmmanuel Vadot&mmc1 {
393*f126890aSEmmanuel Vadot	status = "okay";
394*f126890aSEmmanuel Vadot	bus-width = <0x4>;
395*f126890aSEmmanuel Vadot	pinctrl-names = "default";
396*f126890aSEmmanuel Vadot	pinctrl-0 = <&mmc1_pins>;
397*f126890aSEmmanuel Vadot	cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
398*f126890aSEmmanuel Vadot};
399*f126890aSEmmanuel Vadot
400*f126890aSEmmanuel Vadot&aes {
401*f126890aSEmmanuel Vadot	status = "okay";
402*f126890aSEmmanuel Vadot};
403*f126890aSEmmanuel Vadot
404*f126890aSEmmanuel Vadot&sham {
405*f126890aSEmmanuel Vadot	status = "okay";
406*f126890aSEmmanuel Vadot};
407*f126890aSEmmanuel Vadot
408*f126890aSEmmanuel Vadot&rtc {
409*f126890aSEmmanuel Vadot	clocks = <&clk_32768_ck>, <&clk_24mhz_clkctrl AM3_CLK_24MHZ_CLKDIV32K_CLKCTRL 0>;
410*f126890aSEmmanuel Vadot	clock-names = "ext-clk", "int-clk";
411*f126890aSEmmanuel Vadot	system-power-controller;
412*f126890aSEmmanuel Vadot};
413*f126890aSEmmanuel Vadot
414*f126890aSEmmanuel Vadot&pruss_tm {
415*f126890aSEmmanuel Vadot	status = "okay";
416*f126890aSEmmanuel Vadot};
417*f126890aSEmmanuel Vadot
418*f126890aSEmmanuel Vadot&wkup_m3_ipc {
419*f126890aSEmmanuel Vadot	firmware-name = "am335x-bone-scale-data.bin";
420*f126890aSEmmanuel Vadot};
421