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