xref: /linux/arch/arm/boot/dts/ti/omap/am335x-pdu001.dts (revision 724ba6751532055db75992fc6ae21c3e322e94a7)
1*724ba675SRob Herring/*
2*724ba675SRob Herring * pdu001.dts
3*724ba675SRob Herring *
4*724ba675SRob Herring * EETS GmbH PDU001 board device tree file
5*724ba675SRob Herring *
6*724ba675SRob Herring * Copyright (C) 2018 EETS GmbH - http://www.eets.ch/
7*724ba675SRob Herring *
8*724ba675SRob Herring * Copyright (C) 2011, Texas Instruments, Incorporated - https://www.ti.com/
9*724ba675SRob Herring *
10*724ba675SRob Herring * SPDX-License-Identifier:  GPL-2.0+
11*724ba675SRob Herring */
12*724ba675SRob Herring
13*724ba675SRob Herring/dts-v1/;
14*724ba675SRob Herring
15*724ba675SRob Herring#include "am33xx.dtsi"
16*724ba675SRob Herring#include <dt-bindings/interrupt-controller/irq.h>
17*724ba675SRob Herring#include <dt-bindings/leds/leds-pca9532.h>
18*724ba675SRob Herring
19*724ba675SRob Herring/ {
20*724ba675SRob Herring	model = "EETS,PDU001";
21*724ba675SRob Herring	compatible = "ti,am33xx";
22*724ba675SRob Herring
23*724ba675SRob Herring	chosen {
24*724ba675SRob Herring		stdout-path = &uart3;
25*724ba675SRob Herring	};
26*724ba675SRob Herring
27*724ba675SRob Herring	cpus {
28*724ba675SRob Herring		cpu@0 {
29*724ba675SRob Herring			cpu0-supply = <&vdd1_reg>;
30*724ba675SRob Herring		};
31*724ba675SRob Herring	};
32*724ba675SRob Herring
33*724ba675SRob Herring	memory {
34*724ba675SRob Herring		device_type = "memory";
35*724ba675SRob Herring		reg = <0x80000000 0x10000000>; /* 256 MB */
36*724ba675SRob Herring	};
37*724ba675SRob Herring
38*724ba675SRob Herring	vbat: fixedregulator@0 {
39*724ba675SRob Herring		compatible = "regulator-fixed";
40*724ba675SRob Herring		regulator-name = "vbat";
41*724ba675SRob Herring		regulator-min-microvolt = <3600000>;
42*724ba675SRob Herring		regulator-max-microvolt = <3600000>;
43*724ba675SRob Herring		regulator-boot-on;
44*724ba675SRob Herring	};
45*724ba675SRob Herring
46*724ba675SRob Herring	lis3_reg: fixedregulator@1 {
47*724ba675SRob Herring		compatible = "regulator-fixed";
48*724ba675SRob Herring		regulator-name = "lis3_reg";
49*724ba675SRob Herring		regulator-boot-on;
50*724ba675SRob Herring	};
51*724ba675SRob Herring
52*724ba675SRob Herring	panel {
53*724ba675SRob Herring		compatible = "ti,tilcdc,panel";
54*724ba675SRob Herring		status = "okay";
55*724ba675SRob Herring		pinctrl-names = "default";
56*724ba675SRob Herring		pinctrl-0 = <&lcd_pins_s0>;
57*724ba675SRob Herring		panel-info {
58*724ba675SRob Herring			ac-bias           = <255>;
59*724ba675SRob Herring			ac-bias-intrpt    = <0>;
60*724ba675SRob Herring			dma-burst-sz      = <16>;
61*724ba675SRob Herring			bpp               = <16>;
62*724ba675SRob Herring			fdd               = <0x80>;
63*724ba675SRob Herring			sync-edge         = <0>;
64*724ba675SRob Herring			sync-ctrl         = <1>;
65*724ba675SRob Herring			raster-order      = <0>;
66*724ba675SRob Herring			fifo-th           = <0>;
67*724ba675SRob Herring		};
68*724ba675SRob Herring
69*724ba675SRob Herring		display-timings {
70*724ba675SRob Herring			240x320p16 {
71*724ba675SRob Herring				clock-frequency = <6500000>;
72*724ba675SRob Herring				hactive = <240>;
73*724ba675SRob Herring				vactive = <320>;
74*724ba675SRob Herring				hfront-porch = <6>;
75*724ba675SRob Herring				hback-porch = <6>;
76*724ba675SRob Herring				hsync-len = <1>;
77*724ba675SRob Herring				vback-porch = <6>;
78*724ba675SRob Herring				vfront-porch = <6>;
79*724ba675SRob Herring				vsync-len = <1>;
80*724ba675SRob Herring				hsync-active = <0>;
81*724ba675SRob Herring				vsync-active = <0>;
82*724ba675SRob Herring				pixelclk-active = <1>;
83*724ba675SRob Herring				de-active = <0>;
84*724ba675SRob Herring			};
85*724ba675SRob Herring		};
86*724ba675SRob Herring	};
87*724ba675SRob Herring};
88*724ba675SRob Herring
89*724ba675SRob Herring&am33xx_pinmux {
90*724ba675SRob Herring	pinctrl-names = "default";
91*724ba675SRob Herring	pinctrl-0 = <&clkout2_pin>;
92*724ba675SRob Herring
93*724ba675SRob Herring	i2c0_pins: i2c0-pins {
94*724ba675SRob Herring		pinctrl-single,pins = <
95*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_I2C0_SDA, PIN_INPUT_PULLUP, MUX_MODE0)
96*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_I2C0_SCL, PIN_INPUT_PULLUP, MUX_MODE0)
97*724ba675SRob Herring		>;
98*724ba675SRob Herring	};
99*724ba675SRob Herring
100*724ba675SRob Herring	i2c1_pins: i2c1-pins {
101*724ba675SRob Herring		pinctrl-single,pins = <
102*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_SPI0_D1, PIN_INPUT_PULLUP, MUX_MODE2)	/* spi0_d1.i2c1_sda */
103*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_SPI0_CS0, PIN_INPUT_PULLUP, MUX_MODE2)	/* spi0_cs0.i2c1_scl */
104*724ba675SRob Herring		>;
105*724ba675SRob Herring	};
106*724ba675SRob Herring
107*724ba675SRob Herring	i2c2_pins: i2c2-pins {
108*724ba675SRob Herring		pinctrl-single,pins = <
109*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_SPI0_SCLK, PIN_INPUT_PULLUP, MUX_MODE2)	/* spi0_clk.i2c2_sda */
110*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_SPI0_D0, PIN_INPUT_PULLUP, MUX_MODE2)	/* spi0_d0.i2c2_scl */
111*724ba675SRob Herring		>;
112*724ba675SRob Herring	};
113*724ba675SRob Herring
114*724ba675SRob Herring	spi1_pins: spi1-pins {
115*724ba675SRob Herring		pinctrl-single,pins = <
116*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MCASP0_ACLKX, PIN_OUTPUT, MUX_MODE3)		/* mcasp0_aclkx.spi1_sclk */
117*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MCASP0_FSX, PIN_OUTPUT, MUX_MODE3)		/* mcasp0_fsx.spi1_d0 */
118*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MCASP0_AXR0, PIN_INPUT_PULLDOWN, MUX_MODE3)	/* mcasp0_axr0.spi1_d1 */
119*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MCASP0_AHCLKR, PIN_OUTPUT, MUX_MODE3)		/* mcasp0_ahclkr.spi1_cs0 */
120*724ba675SRob Herring		>;
121*724ba675SRob Herring	};
122*724ba675SRob Herring
123*724ba675SRob Herring	uart0_pins: uart0-pins {
124*724ba675SRob Herring		pinctrl-single,pins = <
125*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_UART0_RTSN, PIN_OUTPUT, MUX_MODE7)
126*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_UART0_RXD, PIN_INPUT_PULLUP, MUX_MODE0)
127*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_UART0_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
128*724ba675SRob Herring		>;
129*724ba675SRob Herring	};
130*724ba675SRob Herring
131*724ba675SRob Herring	uart1_pins: uart1-pins {
132*724ba675SRob Herring		pinctrl-single,pins = <
133*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT_PULLUP, MUX_MODE0)
134*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
135*724ba675SRob Herring		>;
136*724ba675SRob Herring	};
137*724ba675SRob Herring
138*724ba675SRob Herring	uart3_pins: uart3-pins {
139*724ba675SRob Herring		pinctrl-single,pins = <
140*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_SPI0_CS1, PIN_INPUT_PULLUP, MUX_MODE1)	/* spi0_cs1.uart3_rxd */
141*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_ECAP0_IN_PWM0_OUT, PIN_OUTPUT_PULLDOWN, MUX_MODE1)	/* ecap0_in_pwm0_out.uart3_txd */
142*724ba675SRob Herring		>;
143*724ba675SRob Herring	};
144*724ba675SRob Herring
145*724ba675SRob Herring	clkout2_pin: clkout2-pins {
146*724ba675SRob Herring		pinctrl-single,pins = <
147*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR1, PIN_OUTPUT_PULLDOWN, MUX_MODE3)	/* xdma_event_intr1.clkout2 */
148*724ba675SRob Herring		>;
149*724ba675SRob Herring	};
150*724ba675SRob Herring
151*724ba675SRob Herring	cpsw_default: cpsw-default-pins {
152*724ba675SRob Herring		pinctrl-single,pins = <
153*724ba675SRob Herring			/* Port 1 (emac0) */
154*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_COL, PIN_INPUT, MUX_MODE0)
155*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_CRS, PIN_INPUT, MUX_MODE0)
156*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_RX_ER, PIN_INPUT, MUX_MODE0)
157*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_TX_EN, PIN_OUTPUT, MUX_MODE0)
158*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_RX_DV, PIN_INPUT, MUX_MODE0)
159*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_OUTPUT, MUX_MODE0)
160*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_OUTPUT, MUX_MODE0)
161*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_TXD1, PIN_OUTPUT, MUX_MODE0)
162*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT, MUX_MODE0)
163*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_TX_CLK, PIN_INPUT, MUX_MODE0)
164*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_RX_CLK, PIN_INPUT, MUX_MODE0)
165*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_RXD3, PIN_INPUT, MUX_MODE0)
166*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_RXD2, PIN_INPUT, MUX_MODE0)
167*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_RXD1, PIN_INPUT, MUX_MODE0)
168*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MII1_RXD0, PIN_INPUT, MUX_MODE0)
169*724ba675SRob Herring
170*724ba675SRob Herring			/* Port 2 (emac1) */
171*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A0, PIN_OUTPUT, MUX_MODE1)		/* mii2_txen.gpmc_a0 */
172*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A1, PIN_INPUT, MUX_MODE1)		/* mii2_rxdv.gpmc_a1 */
173*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A2, PIN_OUTPUT, MUX_MODE1)		/* mii2_txd3.gpmc_a2 */
174*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A3, PIN_OUTPUT, MUX_MODE1)		/* mii2_txd2.gpmc_a3 */
175*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A4, PIN_OUTPUT, MUX_MODE1)		/* mii2_txd1.gpmc_a4 */
176*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A5, PIN_OUTPUT, MUX_MODE1)		/* mii2_txd0.gpmc_a5 */
177*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A6, PIN_INPUT, MUX_MODE1)		/* mii2_txclk.gpmc_a6 */
178*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A7, PIN_INPUT, MUX_MODE1)		/* mii2_rxclk.gpmc_a7 */
179*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A8, PIN_INPUT, MUX_MODE1)		/* mii2_rxd3.gpmc_a8 */
180*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A9, PIN_INPUT, MUX_MODE1)		/* mii2_rxd2.gpmc_a9 */
181*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A10, PIN_INPUT, MUX_MODE1)		/* mii2_rxd1.gpmc_a10 */
182*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A11, PIN_INPUT, MUX_MODE1)		/* mii2_rxd0.gpmc_a11 */
183*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_WAIT0, PIN_INPUT, MUX_MODE1)		/* mii2_crs.gpmc_wait0 */
184*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_WPN, PIN_INPUT, MUX_MODE1)		/* mii2_rxer.gpmc_wpn */
185*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_BEN1, PIN_INPUT, MUX_MODE1)		/* mii2_col.gpmc_ben1 */
186*724ba675SRob Herring		>;
187*724ba675SRob Herring	};
188*724ba675SRob Herring
189*724ba675SRob Herring	davinci_mdio_default: davinci-mdio-default-pins {
190*724ba675SRob Herring		pinctrl-single,pins = <
191*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MDIO, PIN_INPUT_PULLUP | SLEWCTRL_FAST, MUX_MODE0)
192*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MDC, PIN_OUTPUT_PULLUP, MUX_MODE0)
193*724ba675SRob Herring		>;
194*724ba675SRob Herring	};
195*724ba675SRob Herring
196*724ba675SRob Herring	mmc1_pins: mmc1-pins {
197*724ba675SRob Herring		/* eMMC */
198*724ba675SRob Herring		pinctrl-single,pins = <
199*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MMC0_DAT3, PIN_INPUT_PULLUP, MUX_MODE0)
200*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MMC0_DAT2, PIN_INPUT_PULLUP, MUX_MODE0)
201*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MMC0_DAT1, PIN_INPUT_PULLUP, MUX_MODE0)
202*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MMC0_DAT0, PIN_INPUT_PULLUP, MUX_MODE0)
203*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MMC0_CLK, PIN_INPUT_PULLUP, MUX_MODE0)
204*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MMC0_CMD, PIN_INPUT_PULLUP, MUX_MODE0)
205*724ba675SRob Herring		>;
206*724ba675SRob Herring	};
207*724ba675SRob Herring
208*724ba675SRob Herring	mmc2_pins: mmc2-pins {
209*724ba675SRob Herring		/* SD cardcage */
210*724ba675SRob Herring		pinctrl-single,pins = <
211*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_AD3, PIN_INPUT_PULLUP, MUX_MODE1)	/* gpmc_ad3.mmc1_dat3 */
212*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_AD2, PIN_INPUT_PULLUP, MUX_MODE1)	/* gpmc_ad2.mmc1_dat2 */
213*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_AD1, PIN_INPUT_PULLUP, MUX_MODE1)	/* gpmc_ad1.mmc1_dat1 */
214*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_AD0, PIN_INPUT_PULLUP, MUX_MODE1)	/* gpmc_ad0.mmc1_dat0 */
215*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_CSN1, PIN_INPUT_PULLUP, MUX_MODE2)	/* gpmc_csn1.mmc1_clk */
216*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_CSN2, PIN_INPUT_PULLUP, MUX_MODE2)	/* gpmc_csn2.mmc1_cmd */
217*724ba675SRob Herring			/* card change signal for frontpanel SD cardcage */
218*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_ADVN_ALE, PIN_INPUT, MUX_MODE7)		/* gpmc_advn_ale.gpio2_2 */
219*724ba675SRob Herring		>;
220*724ba675SRob Herring	};
221*724ba675SRob Herring
222*724ba675SRob Herring	lcd_pins_s0: lcd-s0-pins {
223*724ba675SRob Herring		pinctrl-single,pins = <
224*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_DATA0, PIN_OUTPUT, MUX_MODE0)
225*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_DATA1, PIN_OUTPUT, MUX_MODE0)
226*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_DATA2, PIN_OUTPUT, MUX_MODE0)
227*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_DATA3, PIN_OUTPUT, MUX_MODE0)
228*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_DATA4, PIN_OUTPUT, MUX_MODE0)
229*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_DATA5, PIN_OUTPUT, MUX_MODE0)
230*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_DATA6, PIN_OUTPUT, MUX_MODE0)
231*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_DATA7, PIN_OUTPUT, MUX_MODE0)
232*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_DATA8, PIN_OUTPUT, MUX_MODE0)
233*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_DATA9, PIN_OUTPUT, MUX_MODE0)
234*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_DATA10, PIN_OUTPUT, MUX_MODE0)
235*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_DATA11, PIN_OUTPUT, MUX_MODE0)
236*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_DATA12, PIN_OUTPUT, MUX_MODE0)
237*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_DATA13, PIN_OUTPUT, MUX_MODE0)
238*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_DATA14, PIN_OUTPUT, MUX_MODE0)
239*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_DATA15, PIN_OUTPUT, MUX_MODE0)
240*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_VSYNC, PIN_OUTPUT, MUX_MODE0)
241*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_HSYNC, PIN_OUTPUT, MUX_MODE0)
242*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_PCLK, PIN_OUTPUT, MUX_MODE0)
243*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_LCD_AC_BIAS_EN, PIN_OUTPUT, MUX_MODE0)
244*724ba675SRob Herring		>;
245*724ba675SRob Herring	};
246*724ba675SRob Herring
247*724ba675SRob Herring	dcan0_pins: dcan0-pins {
248*724ba675SRob Herring		pinctrl-single,pins = <
249*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_OUTPUT, MUX_MODE2)		/* uart1_ctsn.d_can0_tx */
250*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_INPUT_PULLDOWN, MUX_MODE2)	/* uart1_rtsn.d_can0_rx */
251*724ba675SRob Herring		>;
252*724ba675SRob Herring	};
253*724ba675SRob Herring};
254*724ba675SRob Herring
255*724ba675SRob Herring&uart0 {
256*724ba675SRob Herring	pinctrl-names = "default";
257*724ba675SRob Herring	pinctrl-0 = <&uart0_pins>;
258*724ba675SRob Herring
259*724ba675SRob Herring	rts-gpio = <&gpio1 9 GPIO_ACTIVE_HIGH>;
260*724ba675SRob Herring	rs485-rts-active-high;
261*724ba675SRob Herring	rs485-rts-delay = <0 0>;
262*724ba675SRob Herring	linux,rs485-enabled-at-boot-time;
263*724ba675SRob Herring
264*724ba675SRob Herring	status = "okay";
265*724ba675SRob Herring};
266*724ba675SRob Herring
267*724ba675SRob Herring&uart1 {
268*724ba675SRob Herring	pinctrl-names = "default";
269*724ba675SRob Herring	pinctrl-0 = <&uart1_pins>;
270*724ba675SRob Herring
271*724ba675SRob Herring	status = "okay";
272*724ba675SRob Herring};
273*724ba675SRob Herring
274*724ba675SRob Herring&uart3 {
275*724ba675SRob Herring	pinctrl-names = "default";
276*724ba675SRob Herring	pinctrl-0 = <&uart3_pins>;
277*724ba675SRob Herring
278*724ba675SRob Herring	status = "okay";
279*724ba675SRob Herring};
280*724ba675SRob Herring
281*724ba675SRob Herring&i2c0 {
282*724ba675SRob Herring	pinctrl-names = "default";
283*724ba675SRob Herring	pinctrl-0 = <&i2c0_pins>;
284*724ba675SRob Herring
285*724ba675SRob Herring	status = "okay";
286*724ba675SRob Herring	clock-frequency = <400000>;
287*724ba675SRob Herring
288*724ba675SRob Herring	tps: tps@2d {
289*724ba675SRob Herring		reg = <0x2d>;
290*724ba675SRob Herring	};
291*724ba675SRob Herring
292*724ba675SRob Herring	m2_eeprom: m2_eeprom@50 {
293*724ba675SRob Herring		compatible = "atmel,24c256";
294*724ba675SRob Herring		reg = <0x50>;
295*724ba675SRob Herring		status = "okay";
296*724ba675SRob Herring	};
297*724ba675SRob Herring};
298*724ba675SRob Herring
299*724ba675SRob Herring&i2c1 {
300*724ba675SRob Herring	pinctrl-names = "default";
301*724ba675SRob Herring	pinctrl-0 = <&i2c1_pins>;
302*724ba675SRob Herring
303*724ba675SRob Herring	status = "okay";
304*724ba675SRob Herring	clock-frequency = <100000>;
305*724ba675SRob Herring
306*724ba675SRob Herring	board_24aa025e48: board_24aa025e48@50 {
307*724ba675SRob Herring		compatible = "atmel,24c02";
308*724ba675SRob Herring		reg = <0x50>;
309*724ba675SRob Herring	};
310*724ba675SRob Herring
311*724ba675SRob Herring	backplane_24aa025e48: backplane_24aa025e48@53 {
312*724ba675SRob Herring		compatible = "atmel,24c02";
313*724ba675SRob Herring		reg = <0x53>;
314*724ba675SRob Herring	};
315*724ba675SRob Herring
316*724ba675SRob Herring	pca9532: pca9532@60 {
317*724ba675SRob Herring		compatible = "nxp,pca9532";
318*724ba675SRob Herring		reg = <0x60>;
319*724ba675SRob Herring		psc0 = <0x97>;
320*724ba675SRob Herring		pwm0 = <0x80>;
321*724ba675SRob Herring		psc1 = <0x97>;
322*724ba675SRob Herring		pwm1 = <0x10>;
323*724ba675SRob Herring
324*724ba675SRob Herring		run.red@0 {
325*724ba675SRob Herring			type = <PCA9532_TYPE_LED>;
326*724ba675SRob Herring		};
327*724ba675SRob Herring		run.green@1 {
328*724ba675SRob Herring			type = <PCA9532_TYPE_LED>;
329*724ba675SRob Herring			default-state = "on";
330*724ba675SRob Herring		};
331*724ba675SRob Herring		s2.red@2 {
332*724ba675SRob Herring			type = <PCA9532_TYPE_LED>;
333*724ba675SRob Herring		};
334*724ba675SRob Herring		s2.green@3 {
335*724ba675SRob Herring			type = <PCA9532_TYPE_LED>;
336*724ba675SRob Herring		};
337*724ba675SRob Herring		s1.yellow@4 {
338*724ba675SRob Herring			type = <PCA9532_TYPE_LED>;
339*724ba675SRob Herring		};
340*724ba675SRob Herring		s1.green@5 {
341*724ba675SRob Herring			type = <PCA9532_TYPE_LED>;
342*724ba675SRob Herring		};
343*724ba675SRob Herring	};
344*724ba675SRob Herring
345*724ba675SRob Herring	pca9530: pca9530@61 {
346*724ba675SRob Herring		compatible = "nxp,pca9530";
347*724ba675SRob Herring		reg = <0x61>;
348*724ba675SRob Herring
349*724ba675SRob Herring		tft-panel@0 {
350*724ba675SRob Herring			type = <PCA9532_TYPE_LED>;
351*724ba675SRob Herring			linux,default-trigger = "backlight";
352*724ba675SRob Herring			default-state = "on";
353*724ba675SRob Herring		};
354*724ba675SRob Herring	};
355*724ba675SRob Herring
356*724ba675SRob Herring	mcp79400: rtc@6f {
357*724ba675SRob Herring		compatible = "microchip,mcp7940x";
358*724ba675SRob Herring		reg = <0x6f>;
359*724ba675SRob Herring	};
360*724ba675SRob Herring};
361*724ba675SRob Herring
362*724ba675SRob Herring&i2c2 {
363*724ba675SRob Herring	pinctrl-names = "default";
364*724ba675SRob Herring	pinctrl-0 = <&i2c2_pins>;
365*724ba675SRob Herring
366*724ba675SRob Herring	status = "okay";
367*724ba675SRob Herring	clock-frequency = <100000>;
368*724ba675SRob Herring};
369*724ba675SRob Herring
370*724ba675SRob Herring&spi1 {
371*724ba675SRob Herring	pinctrl-names = "default";
372*724ba675SRob Herring	pinctrl-0 = <&spi1_pins>;
373*724ba675SRob Herring	ti,pindir-d0-out-d1-in;
374*724ba675SRob Herring	status = "okay";
375*724ba675SRob Herring
376*724ba675SRob Herring	display-controller@0 {
377*724ba675SRob Herring		compatible = "orisetech,otm3225a";
378*724ba675SRob Herring		reg = <0>;
379*724ba675SRob Herring		spi-max-frequency = <1000000>;
380*724ba675SRob Herring		// SPI mode 3
381*724ba675SRob Herring		spi-cpol;
382*724ba675SRob Herring		spi-cpha;
383*724ba675SRob Herring		status = "okay";
384*724ba675SRob Herring	};
385*724ba675SRob Herring};
386*724ba675SRob Herring
387*724ba675SRob Herring/*
388*724ba675SRob Herring * Disable soc's rtc as we have no VBAT for it. This makes the board
389*724ba675SRob Herring * rtc (Microchip MCP79400) the default rtc device 'rtc0'.
390*724ba675SRob Herring */
391*724ba675SRob Herring&rtc {
392*724ba675SRob Herring	status = "disabled";
393*724ba675SRob Herring};
394*724ba675SRob Herring
395*724ba675SRob Herring&lcdc {
396*724ba675SRob Herring	status = "okay";
397*724ba675SRob Herring};
398*724ba675SRob Herring
399*724ba675SRob Herring&elm {
400*724ba675SRob Herring	status = "okay";
401*724ba675SRob Herring};
402*724ba675SRob Herring
403*724ba675SRob Herring#include "../../tps65910.dtsi"
404*724ba675SRob Herring
405*724ba675SRob Herring&tps {
406*724ba675SRob Herring	vcc1-supply = <&vbat>;
407*724ba675SRob Herring	vcc2-supply = <&vbat>;
408*724ba675SRob Herring	vcc3-supply = <&vbat>;
409*724ba675SRob Herring	vcc4-supply = <&vbat>;
410*724ba675SRob Herring	vcc5-supply = <&vbat>;
411*724ba675SRob Herring	vcc6-supply = <&vbat>;
412*724ba675SRob Herring	vcc7-supply = <&vbat>;
413*724ba675SRob Herring	vccio-supply = <&vbat>;
414*724ba675SRob Herring
415*724ba675SRob Herring	regulators {
416*724ba675SRob Herring		vrtc_reg: regulator@0 {
417*724ba675SRob Herring			regulator-name = "ldo_vrtc";
418*724ba675SRob Herring			regulator-always-on;
419*724ba675SRob Herring		};
420*724ba675SRob Herring
421*724ba675SRob Herring		vio_reg: regulator@1 {
422*724ba675SRob Herring			regulator-name = "buck_vdd_ddr";
423*724ba675SRob Herring			regulator-always-on;
424*724ba675SRob Herring		};
425*724ba675SRob Herring
426*724ba675SRob Herring		vdd1_reg: regulator@2 {
427*724ba675SRob Herring			/* VDD_MPU voltage limits */
428*724ba675SRob Herring			regulator-name = "buck_vdd_mpu";
429*724ba675SRob Herring			regulator-min-microvolt = <912500>;
430*724ba675SRob Herring			regulator-max-microvolt = <1312500>;
431*724ba675SRob Herring			regulator-boot-on;
432*724ba675SRob Herring			regulator-always-on;
433*724ba675SRob Herring		};
434*724ba675SRob Herring
435*724ba675SRob Herring		vdd2_reg: regulator@3 {
436*724ba675SRob Herring			/* VDD_CORE voltage limits */
437*724ba675SRob Herring			regulator-name = "buck_vdd_core";
438*724ba675SRob Herring			regulator-min-microvolt = <912500>;
439*724ba675SRob Herring			regulator-max-microvolt = <1150000>;
440*724ba675SRob Herring			regulator-boot-on;
441*724ba675SRob Herring			regulator-always-on;
442*724ba675SRob Herring		};
443*724ba675SRob Herring
444*724ba675SRob Herring		vdd3_reg: regulator@4 {
445*724ba675SRob Herring			regulator-name = "boost_res";
446*724ba675SRob Herring			regulator-always-on;
447*724ba675SRob Herring		};
448*724ba675SRob Herring
449*724ba675SRob Herring		vdig1_reg: regulator@5 {
450*724ba675SRob Herring			regulator-name = "ldo_vdig1";
451*724ba675SRob Herring			regulator-always-on;
452*724ba675SRob Herring		};
453*724ba675SRob Herring
454*724ba675SRob Herring		vdig2_reg: regulator@6 {
455*724ba675SRob Herring			regulator-name = "ldo_vdig2";
456*724ba675SRob Herring			regulator-always-on;
457*724ba675SRob Herring		};
458*724ba675SRob Herring
459*724ba675SRob Herring		vpll_reg: regulator@7 {
460*724ba675SRob Herring			regulator-name = "ldo_vpll";
461*724ba675SRob Herring			regulator-always-on;
462*724ba675SRob Herring		};
463*724ba675SRob Herring
464*724ba675SRob Herring		vdac_reg: regulator@8 {
465*724ba675SRob Herring			regulator-name = "ldo_vdac";
466*724ba675SRob Herring			regulator-always-on;
467*724ba675SRob Herring		};
468*724ba675SRob Herring
469*724ba675SRob Herring		vaux1_reg: regulator@9 {
470*724ba675SRob Herring			regulator-name = "ldo_vaux1";
471*724ba675SRob Herring			regulator-always-on;
472*724ba675SRob Herring		};
473*724ba675SRob Herring
474*724ba675SRob Herring		vaux2_reg: regulator@10 {
475*724ba675SRob Herring			regulator-name = "ldo_vaux2";
476*724ba675SRob Herring			regulator-always-on;
477*724ba675SRob Herring		};
478*724ba675SRob Herring
479*724ba675SRob Herring		vaux33_reg: regulator@11 {
480*724ba675SRob Herring			regulator-name = "ldo_vaux33";
481*724ba675SRob Herring			regulator-always-on;
482*724ba675SRob Herring		};
483*724ba675SRob Herring
484*724ba675SRob Herring		vmmc_reg: regulator@12 {
485*724ba675SRob Herring			regulator-name = "ldo_vmmc";
486*724ba675SRob Herring			regulator-min-microvolt = <1800000>;
487*724ba675SRob Herring			regulator-max-microvolt = <3300000>;
488*724ba675SRob Herring			regulator-always-on;
489*724ba675SRob Herring		};
490*724ba675SRob Herring
491*724ba675SRob Herring		vbb_reg: regulator@13 {
492*724ba675SRob Herring			regulator-name = "bat_vbb";
493*724ba675SRob Herring		};
494*724ba675SRob Herring	};
495*724ba675SRob Herring};
496*724ba675SRob Herring
497*724ba675SRob Herring&mac_sw {
498*724ba675SRob Herring	pinctrl-names = "default";
499*724ba675SRob Herring	pinctrl-0 = <&cpsw_default>;
500*724ba675SRob Herring	status = "okay";
501*724ba675SRob Herring};
502*724ba675SRob Herring
503*724ba675SRob Herring&davinci_mdio_sw {
504*724ba675SRob Herring	pinctrl-names = "default";
505*724ba675SRob Herring	pinctrl-0 = <&davinci_mdio_default>;
506*724ba675SRob Herring
507*724ba675SRob Herring	ethphy0: ethernet-phy@0 {
508*724ba675SRob Herring		reg = <0>;
509*724ba675SRob Herring	};
510*724ba675SRob Herring
511*724ba675SRob Herring	ethphy1: ethernet-phy@1 {
512*724ba675SRob Herring		reg = <1>;
513*724ba675SRob Herring	};
514*724ba675SRob Herring};
515*724ba675SRob Herring
516*724ba675SRob Herring&cpsw_port1 {
517*724ba675SRob Herring	phy-handle = <&ethphy0>;
518*724ba675SRob Herring	phy-mode = "mii";
519*724ba675SRob Herring	ti,dual-emac-pvid = <1>;
520*724ba675SRob Herring};
521*724ba675SRob Herring
522*724ba675SRob Herring&cpsw_port2 {
523*724ba675SRob Herring	phy-handle = <&ethphy1>;
524*724ba675SRob Herring	phy-mode = "mii";
525*724ba675SRob Herring	ti,dual-emac-pvid = <2>;
526*724ba675SRob Herring};
527*724ba675SRob Herring
528*724ba675SRob Herring&tscadc {
529*724ba675SRob Herring	status = "okay";
530*724ba675SRob Herring	tsc {
531*724ba675SRob Herring		ti,wires = <4>;
532*724ba675SRob Herring		ti,x-plate-resistance = <200>;
533*724ba675SRob Herring		ti,coordinate-readouts = <5>;
534*724ba675SRob Herring		ti,wire-config = <0x01 0x10 0x22 0x33>;
535*724ba675SRob Herring		ti,charge-delay = <0x400>;
536*724ba675SRob Herring	};
537*724ba675SRob Herring
538*724ba675SRob Herring	adc {
539*724ba675SRob Herring		ti,adc-channels = <4 5 6 7>;
540*724ba675SRob Herring	};
541*724ba675SRob Herring};
542*724ba675SRob Herring
543*724ba675SRob Herring&mmc1 {
544*724ba675SRob Herring	status = "okay";
545*724ba675SRob Herring	vmmc-supply = <&vmmc_reg>;
546*724ba675SRob Herring	bus-width = <4>;
547*724ba675SRob Herring	pinctrl-names = "default";
548*724ba675SRob Herring	pinctrl-0 = <&mmc1_pins>;
549*724ba675SRob Herring	non-removable;
550*724ba675SRob Herring};
551*724ba675SRob Herring
552*724ba675SRob Herring&mmc2 {
553*724ba675SRob Herring	status = "okay";
554*724ba675SRob Herring	vmmc-supply = <&vmmc_reg>;
555*724ba675SRob Herring	bus-width = <4>;
556*724ba675SRob Herring	pinctrl-names = "default";
557*724ba675SRob Herring	pinctrl-0 = <&mmc2_pins>;
558*724ba675SRob Herring	cd-gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>;
559*724ba675SRob Herring};
560*724ba675SRob Herring
561*724ba675SRob Herring&sham {
562*724ba675SRob Herring	status = "okay";
563*724ba675SRob Herring};
564*724ba675SRob Herring
565*724ba675SRob Herring&aes {
566*724ba675SRob Herring	status = "okay";
567*724ba675SRob Herring};
568*724ba675SRob Herring
569*724ba675SRob Herring&dcan0 {
570*724ba675SRob Herring	status = "okay";
571*724ba675SRob Herring	pinctrl-names = "default";
572*724ba675SRob Herring	pinctrl-0 = <&dcan0_pins>;
573*724ba675SRob Herring};
574