xref: /openbmc/linux/arch/arm/boot/dts/ti/omap/am335x-wega.dtsi (revision 2612e3bbc0386368a850140a6c9b990cd496a5ec)
1*724ba675SRob Herring// SPDX-License-Identifier: GPL-2.0-only
2*724ba675SRob Herring/*
3*724ba675SRob Herring * Copyright (C) 2015 Phytec Messtechnik GmbH
4*724ba675SRob Herring * Author: Teresa Remmet <t.remmet@phytec.de>
5*724ba675SRob Herring */
6*724ba675SRob Herring
7*724ba675SRob Herring/ {
8*724ba675SRob Herring	model = "Phytec AM335x phyBOARD-WEGA";
9*724ba675SRob Herring	compatible = "phytec,am335x-wega", "phytec,am335x-phycore-som", "ti,am33xx";
10*724ba675SRob Herring
11*724ba675SRob Herring	sound: sound {
12*724ba675SRob Herring		compatible = "simple-audio-card";
13*724ba675SRob Herring		simple-audio-card,name = "snd-wega";
14*724ba675SRob Herring		simple-audio-card,format = "i2s";
15*724ba675SRob Herring		simple-audio-card,bitclock-master = <&sound_iface_main>;
16*724ba675SRob Herring		simple-audio-card,frame-master = <&sound_iface_main>;
17*724ba675SRob Herring		simple-audio-card,mclk-fs = <32>;
18*724ba675SRob Herring		simple-audio-card,widgets =
19*724ba675SRob Herring					"Line", "Line In",
20*724ba675SRob Herring					"Line", "Line Out",
21*724ba675SRob Herring					"Speaker", "Speaker";
22*724ba675SRob Herring		simple-audio-card,routing =
23*724ba675SRob Herring					"Line Out", "LLOUT",
24*724ba675SRob Herring					"Line Out", "RLOUT",
25*724ba675SRob Herring					"Speaker", "SPOP",
26*724ba675SRob Herring					"Speaker", "SPOM",
27*724ba675SRob Herring					"LINE1L", "Line In",
28*724ba675SRob Herring					"LINE1R", "Line In";
29*724ba675SRob Herring
30*724ba675SRob Herring		simple-audio-card,cpu {
31*724ba675SRob Herring			sound-dai = <&mcasp0>;
32*724ba675SRob Herring		};
33*724ba675SRob Herring
34*724ba675SRob Herring		sound_iface_main: simple-audio-card,codec {
35*724ba675SRob Herring			sound-dai = <&tlv320aic3007>;
36*724ba675SRob Herring			clocks = <&mcasp0_fck>;
37*724ba675SRob Herring		};
38*724ba675SRob Herring
39*724ba675SRob Herring	};
40*724ba675SRob Herring
41*724ba675SRob Herring	vcc3v3: fixedregulator1 {
42*724ba675SRob Herring		compatible = "regulator-fixed";
43*724ba675SRob Herring		regulator-name = "vcc3v3";
44*724ba675SRob Herring		regulator-min-microvolt = <3300000>;
45*724ba675SRob Herring		regulator-max-microvolt = <3300000>;
46*724ba675SRob Herring		regulator-boot-on;
47*724ba675SRob Herring	};
48*724ba675SRob Herring};
49*724ba675SRob Herring
50*724ba675SRob Herring/* Audio */
51*724ba675SRob Herring&am33xx_pinmux {
52*724ba675SRob Herring	mcasp0_pins: pinmux-mcasp0-pins {
53*724ba675SRob Herring		pinctrl-single,pins = <
54*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MCASP0_AHCLKX, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
55*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MCASP0_ACLKX, PIN_INPUT_PULLDOWN, MUX_MODE0)
56*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MCASP0_FSX, PIN_INPUT_PULLDOWN, MUX_MODE0)
57*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MCASP0_AXR0, PIN_INPUT_PULLDOWN, MUX_MODE0)
58*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MCASP0_AXR1, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
59*724ba675SRob Herring		>;
60*724ba675SRob Herring	};
61*724ba675SRob Herring};
62*724ba675SRob Herring
63*724ba675SRob Herring&i2c0 {
64*724ba675SRob Herring	tlv320aic3007: tlv320aic3007@18 {
65*724ba675SRob Herring		#sound-dai-cells = <0>;
66*724ba675SRob Herring		compatible = "ti,tlv320aic3007";
67*724ba675SRob Herring		reg = <0x18>;
68*724ba675SRob Herring		AVDD-supply = <&vcc3v3>;
69*724ba675SRob Herring		IOVDD-supply = <&vcc3v3>;
70*724ba675SRob Herring		DRVDD-supply = <&vcc3v3>;
71*724ba675SRob Herring		DVDD-supply = <&vdig1_reg>;
72*724ba675SRob Herring		status = "okay";
73*724ba675SRob Herring	};
74*724ba675SRob Herring};
75*724ba675SRob Herring
76*724ba675SRob Herring&mcasp0 {
77*724ba675SRob Herring	#sound-dai-cells = <0>;
78*724ba675SRob Herring	pinctrl-names = "default";
79*724ba675SRob Herring	pinctrl-0 = <&mcasp0_pins>;
80*724ba675SRob Herring	op-mode = <0>; /* DAVINCI_MCASP_IIS_MODE */
81*724ba675SRob Herring	tdm-slots = <2>;
82*724ba675SRob Herring	serial-dir = <
83*724ba675SRob Herring		2 1 0 0 /* # 0: INACTIVE, 1: TX, 2: RX */
84*724ba675SRob Herring	>;
85*724ba675SRob Herring	tx-num-evt = <16>;
86*724ba675SRob Herring	rx-num-evt = <16>;
87*724ba675SRob Herring	status = "okay";
88*724ba675SRob Herring};
89*724ba675SRob Herring
90*724ba675SRob Herring
91*724ba675SRob Herring/* CAN Busses */
92*724ba675SRob Herring&am33xx_pinmux {
93*724ba675SRob Herring	dcan1_pins: pinmux-dcan1-pins {
94*724ba675SRob Herring		pinctrl-single,pins = <
95*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_OUTPUT_PULLUP, MUX_MODE2) /* uart0_ctsn.d_can1_tx */
96*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_UART0_RTSN, PIN_INPUT_PULLUP, MUX_MODE2) /* uart0_rtsn.d_can1_rx */
97*724ba675SRob Herring		>;
98*724ba675SRob Herring	};
99*724ba675SRob Herring};
100*724ba675SRob Herring
101*724ba675SRob Herring&dcan1 {
102*724ba675SRob Herring	pinctrl-names = "default";
103*724ba675SRob Herring	pinctrl-0 = <&dcan1_pins>;
104*724ba675SRob Herring	status = "okay";
105*724ba675SRob Herring};
106*724ba675SRob Herring
107*724ba675SRob Herring/* Ethernet */
108*724ba675SRob Herring&am33xx_pinmux {
109*724ba675SRob Herring	ethernet1_pins: pinmux-ethernet1-pins {
110*724ba675SRob Herring		pinctrl-single,pins = <
111*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A0, PIN_OUTPUT, MUX_MODE1)		/* gpmc_a0.mii2_txen */
112*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A1, PIN_INPUT_PULLDOWN, MUX_MODE1)	/* gpmc_a1.mii2_rxdv */
113*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A2, PIN_OUTPUT, MUX_MODE1)		/* gpmc_a2.mii2_txd3 */
114*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A3, PIN_OUTPUT, MUX_MODE1)		/* gpmc_a3.mii2_txd2 */
115*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A4, PIN_OUTPUT, MUX_MODE1)		/* gpmc_a4.mii2_txd1 */
116*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A5, PIN_OUTPUT, MUX_MODE1)		/* gpmc_a5.mii2_txd0 */
117*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A6, PIN_INPUT_PULLDOWN, MUX_MODE1)	/* gpmc_a6.mii2_txclk */
118*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A7, PIN_INPUT_PULLDOWN, MUX_MODE1)	/* gpmc_a7.mii2_rxclk */
119*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A8, PIN_INPUT_PULLDOWN, MUX_MODE1)	/* gpmc_a8.mii2_rxd3 */
120*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A9, PIN_INPUT_PULLDOWN, MUX_MODE1)	/* gpmc_a9.mii2_rxd2 */
121*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A10, PIN_INPUT_PULLDOWN, MUX_MODE1)	/* gpmc_a10.mii2_rxd1 */
122*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_A11, PIN_INPUT_PULLDOWN, MUX_MODE1)	/* gpmc_a11.mii2_rxd0 */
123*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_WPN, PIN_INPUT_PULLDOWN, MUX_MODE1)	/* gpmc_wpn.mii2_rxerr */
124*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_GPMC_BEN1, PIN_INPUT_PULLDOWN, MUX_MODE1)	/* gpmc_ben1.mii2_col */
125*724ba675SRob Herring		>;
126*724ba675SRob Herring	};
127*724ba675SRob Herring};
128*724ba675SRob Herring
129*724ba675SRob Herring&cpsw_port2 {
130*724ba675SRob Herring	status = "okay";
131*724ba675SRob Herring	phy-handle = <&phy1>;
132*724ba675SRob Herring	phy-mode = "mii";
133*724ba675SRob Herring	ti,dual-emac-pvid = <2>;
134*724ba675SRob Herring};
135*724ba675SRob Herring
136*724ba675SRob Herring&davinci_mdio_sw {
137*724ba675SRob Herring	phy1: ethernet-phy@1 {
138*724ba675SRob Herring		reg = <1>;
139*724ba675SRob Herring	};
140*724ba675SRob Herring};
141*724ba675SRob Herring
142*724ba675SRob Herring&mac_sw {
143*724ba675SRob Herring	pinctrl-names = "default";
144*724ba675SRob Herring	pinctrl-0 = <&ethernet0_pins &ethernet1_pins>;
145*724ba675SRob Herring};
146*724ba675SRob Herring
147*724ba675SRob Herring/* MMC */
148*724ba675SRob Herring&am33xx_pinmux {
149*724ba675SRob Herring	mmc1_pins: pinmux-mmc1-pins {
150*724ba675SRob Herring		pinctrl-single,pins = <
151*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MMC0_DAT3, PIN_INPUT_PULLUP, MUX_MODE0)
152*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MMC0_DAT2, PIN_INPUT_PULLUP, MUX_MODE0)
153*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MMC0_DAT1, PIN_INPUT_PULLUP, MUX_MODE0)
154*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MMC0_DAT0, PIN_INPUT_PULLUP, MUX_MODE0)
155*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MMC0_CLK, PIN_INPUT_PULLUP, MUX_MODE0)
156*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_MMC0_CMD, PIN_INPUT_PULLUP, MUX_MODE0)
157*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_SPI0_CS1, PIN_INPUT_PULLUP, MUX_MODE7)	/* spi0_cs1.mmc0_sdcd */
158*724ba675SRob Herring		>;
159*724ba675SRob Herring	};
160*724ba675SRob Herring};
161*724ba675SRob Herring
162*724ba675SRob Herring&mmc1 {
163*724ba675SRob Herring	vmmc-supply = <&vcc3v3>;
164*724ba675SRob Herring	bus-width = <4>;
165*724ba675SRob Herring	pinctrl-names = "default";
166*724ba675SRob Herring	pinctrl-0 = <&mmc1_pins>;
167*724ba675SRob Herring	cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
168*724ba675SRob Herring	status = "okay";
169*724ba675SRob Herring};
170*724ba675SRob Herring
171*724ba675SRob Herring/* Power */
172*724ba675SRob Herring&vdig1_reg {
173*724ba675SRob Herring	regulator-boot-on;
174*724ba675SRob Herring	regulator-always-on;
175*724ba675SRob Herring};
176*724ba675SRob Herring
177*724ba675SRob Herring/* UARTs */
178*724ba675SRob Herring&am33xx_pinmux {
179*724ba675SRob Herring	uart0_pins: pinmux-uart0-pins {
180*724ba675SRob Herring		pinctrl-single,pins = <
181*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_UART0_RXD, PIN_INPUT_PULLUP, MUX_MODE0)
182*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_UART0_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
183*724ba675SRob Herring		>;
184*724ba675SRob Herring	};
185*724ba675SRob Herring
186*724ba675SRob Herring	uart1_pins: pinmux-uart1-pins {
187*724ba675SRob Herring		pinctrl-single,pins = <
188*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT_PULLUP, MUX_MODE0)
189*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
190*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT, MUX_MODE0)
191*724ba675SRob Herring			AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
192*724ba675SRob Herring		>;
193*724ba675SRob Herring	};
194*724ba675SRob Herring};
195*724ba675SRob Herring
196*724ba675SRob Herring&uart0 {
197*724ba675SRob Herring	pinctrl-names = "default";
198*724ba675SRob Herring	pinctrl-0 = <&uart0_pins>;
199*724ba675SRob Herring	status = "okay";
200*724ba675SRob Herring};
201*724ba675SRob Herring
202*724ba675SRob Herring&uart1 {
203*724ba675SRob Herring	pinctrl-names = "default";
204*724ba675SRob Herring	pinctrl-0 = <&uart1_pins>;
205*724ba675SRob Herring	status = "okay";
206*724ba675SRob Herring};
207*724ba675SRob Herring
208*724ba675SRob Herring&usb1 {
209*724ba675SRob Herring	dr_mode = "host";
210*724ba675SRob Herring};
211