blob: 673159d93a6adef51830c53067c539cd531626e4 [file] [log] [blame]
Thomas Gleixnerd2912cb2019-06-04 10:11:33 +02001// SPDX-License-Identifier: GPL-2.0-only
Teresa Remmet36bd1682015-07-16 10:30:49 +02002/*
3 * Copyright (C) 2015 Phytec Messtechnik GmbH
4 * Author: Teresa Remmet <t.remmet@phytec.de>
Teresa Remmet36bd1682015-07-16 10:30:49 +02005 */
6
7/ {
8 model = "Phytec AM335x phyBOARD-WEGA";
9 compatible = "phytec,am335x-wega", "phytec,am335x-phycore-som", "ti,am33xx";
10
Stefan Müller-Klieser316ba622016-08-10 17:12:15 +020011 sound: sound_iface {
12 compatible = "ti,da830-evm-audio";
13 };
14
Teresa Remmet81ec03f2019-05-24 15:19:58 +020015 vcc3v3: fixedregulator1 {
16 compatible = "regulator-fixed";
17 regulator-name = "vcc3v3";
18 regulator-min-microvolt = <3300000>;
19 regulator-max-microvolt = <3300000>;
20 regulator-boot-on;
Teresa Remmetc72bfb82015-09-03 14:00:07 +020021 };
Teresa Remmet36bd1682015-07-16 10:30:49 +020022};
23
Stefan Müller-Klieser316ba622016-08-10 17:12:15 +020024/* Audio */
25&am33xx_pinmux {
26 mcasp0_pins: pinmux_mcasp0 {
27 pinctrl-single,pins = <
Christina Quaste5b258e2019-04-12 18:26:27 +020028 AM33XX_PADCONF(AM335X_PIN_MCASP0_AHCLKX, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
29 AM33XX_PADCONF(AM335X_PIN_MCASP0_ACLKX, PIN_INPUT_PULLDOWN, MUX_MODE0)
30 AM33XX_PADCONF(AM335X_PIN_MCASP0_FSX, PIN_INPUT_PULLDOWN, MUX_MODE0)
31 AM33XX_PADCONF(AM335X_PIN_MCASP0_AXR0, PIN_INPUT_PULLDOWN, MUX_MODE0)
32 AM33XX_PADCONF(AM335X_PIN_MCASP0_AXR1, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
Stefan Müller-Klieser316ba622016-08-10 17:12:15 +020033 >;
34 };
35};
36
37&i2c0 {
38 tlv320aic3007: tlv320aic3007@18 {
39 compatible = "ti,tlv320aic3007";
40 reg = <0x18>;
41 AVDD-supply = <&vcc3v3>;
42 IOVDD-supply = <&vcc3v3>;
43 DRVDD-supply = <&vcc3v3>;
44 DVDD-supply = <&vdig1_reg>;
45 status = "okay";
46 };
47};
48
49&mcasp0 {
50 pinctrl-names = "default";
51 pinctrl-0 = <&mcasp0_pins>;
52 op-mode = <0>; /* DAVINCI_MCASP_IIS_MODE */
53 tdm-slots = <2>;
54 serial-dir = <
55 2 1 0 0 /* # 0: INACTIVE, 1: TX, 2: RX */
56 >;
57 tx-num-evt = <16>;
58 rt-num-evt = <16>;
59 status = "okay";
60};
61
62&sound {
63 ti,model = "AM335x-Wega";
64 ti,audio-codec = <&tlv320aic3007>;
65 ti,mcasp-controller = <&mcasp0>;
66 ti,audio-routing =
67 "Line Out", "LLOUT",
68 "Line Out", "RLOUT",
69 "LINE1L", "Line In",
70 "LINE1R", "Line In";
71 clocks = <&mcasp0_fck>;
72 clock-names = "mclk";
73 status = "okay";
74};
75
Teresa Remmet36bd1682015-07-16 10:30:49 +020076/* CAN Busses */
77&am33xx_pinmux {
78 dcan1_pins: pinmux_dcan1 {
79 pinctrl-single,pins = <
Christina Quaste5b258e2019-04-12 18:26:27 +020080 AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_OUTPUT_PULLUP, MUX_MODE2) /* uart0_ctsn.d_can1_tx */
81 AM33XX_PADCONF(AM335X_PIN_UART0_RTSN, PIN_INPUT_PULLUP, MUX_MODE2) /* uart0_rtsn.d_can1_rx */
Teresa Remmet36bd1682015-07-16 10:30:49 +020082 >;
83 };
84};
85
86&dcan1 {
87 pinctrl-names = "default";
88 pinctrl-0 = <&dcan1_pins>;
89 status = "okay";
90};
91
92/* Ethernet */
93&am33xx_pinmux {
94 ethernet1_pins: pinmux_ethernet1 {
95 pinctrl-single,pins = <
Christina Quaste5b258e2019-04-12 18:26:27 +020096 AM33XX_PADCONF(AM335X_PIN_GPMC_A0, PIN_OUTPUT, MUX_MODE1) /* gpmc_a0.mii2_txen */
97 AM33XX_PADCONF(AM335X_PIN_GPMC_A1, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a1.mii2_rxdv */
98 AM33XX_PADCONF(AM335X_PIN_GPMC_A2, PIN_OUTPUT, MUX_MODE1) /* gpmc_a2.mii2_txd3 */
99 AM33XX_PADCONF(AM335X_PIN_GPMC_A3, PIN_OUTPUT, MUX_MODE1) /* gpmc_a3.mii2_txd2 */
100 AM33XX_PADCONF(AM335X_PIN_GPMC_A4, PIN_OUTPUT, MUX_MODE1) /* gpmc_a4.mii2_txd1 */
101 AM33XX_PADCONF(AM335X_PIN_GPMC_A5, PIN_OUTPUT, MUX_MODE1) /* gpmc_a5.mii2_txd0 */
102 AM33XX_PADCONF(AM335X_PIN_GPMC_A6, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a6.mii2_txclk */
103 AM33XX_PADCONF(AM335X_PIN_GPMC_A7, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a7.mii2_rxclk */
104 AM33XX_PADCONF(AM335X_PIN_GPMC_A8, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a8.mii2_rxd3 */
105 AM33XX_PADCONF(AM335X_PIN_GPMC_A9, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a9.mii2_rxd2 */
106 AM33XX_PADCONF(AM335X_PIN_GPMC_A10, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a10.mii2_rxd1 */
107 AM33XX_PADCONF(AM335X_PIN_GPMC_A11, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a11.mii2_rxd0 */
108 AM33XX_PADCONF(AM335X_PIN_GPMC_WPN, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_wpn.mii2_rxerr */
109 AM33XX_PADCONF(AM335X_PIN_GPMC_BEN1, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_ben1.mii2_col */
Teresa Remmet36bd1682015-07-16 10:30:49 +0200110 >;
111 };
112};
113
Grygorii Strashkoa71c1442021-06-12 04:14:33 +0300114&cpsw_port2 {
115 status = "okay";
Teresa Remmete6220da2017-01-05 15:50:51 +0100116 phy-handle = <&phy1>;
Teresa Remmet36bd1682015-07-16 10:30:49 +0200117 phy-mode = "mii";
Grygorii Strashkoa71c1442021-06-12 04:14:33 +0300118 ti,dual-emac-pvid = <2>;
Teresa Remmet36bd1682015-07-16 10:30:49 +0200119};
120
Grygorii Strashkoa71c1442021-06-12 04:14:33 +0300121&davinci_mdio_sw {
Teresa Remmete6220da2017-01-05 15:50:51 +0100122 phy1: ethernet-phy@1 {
123 reg = <1>;
124 };
125};
126
Grygorii Strashkoa71c1442021-06-12 04:14:33 +0300127&mac_sw {
Teresa Remmet36bd1682015-07-16 10:30:49 +0200128 pinctrl-names = "default";
129 pinctrl-0 = <&ethernet0_pins &ethernet1_pins>;
Teresa Remmet36bd1682015-07-16 10:30:49 +0200130};
131
132/* MMC */
133&am33xx_pinmux {
134 mmc1_pins: pinmux_mmc1 {
135 pinctrl-single,pins = <
Christina Quaste5b258e2019-04-12 18:26:27 +0200136 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT3, PIN_INPUT_PULLUP, MUX_MODE0)
137 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT2, PIN_INPUT_PULLUP, MUX_MODE0)
138 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT1, PIN_INPUT_PULLUP, MUX_MODE0)
139 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT0, PIN_INPUT_PULLUP, MUX_MODE0)
140 AM33XX_PADCONF(AM335X_PIN_MMC0_CLK, PIN_INPUT_PULLUP, MUX_MODE0)
141 AM33XX_PADCONF(AM335X_PIN_MMC0_CMD, PIN_INPUT_PULLUP, MUX_MODE0)
142 AM33XX_PADCONF(AM335X_PIN_SPI0_CS1, PIN_INPUT_PULLUP, MUX_MODE7) /* spi0_cs1.mmc0_sdcd */
Teresa Remmet36bd1682015-07-16 10:30:49 +0200143 >;
144 };
145};
146
147&mmc1 {
Teresa Remmetc72bfb82015-09-03 14:00:07 +0200148 vmmc-supply = <&vcc3v3>;
Teresa Remmet36bd1682015-07-16 10:30:49 +0200149 bus-width = <4>;
150 pinctrl-names = "default";
151 pinctrl-0 = <&mmc1_pins>;
Teresa Remmet8a0098c2019-05-24 15:19:57 +0200152 cd-gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
Teresa Remmet36bd1682015-07-16 10:30:49 +0200153 status = "okay";
154};
155
Stefan Müller-Klieser316ba622016-08-10 17:12:15 +0200156/* Power */
157&vdig1_reg {
158 regulator-boot-on;
159 regulator-always-on;
160};
161
Teresa Remmet36bd1682015-07-16 10:30:49 +0200162/* UARTs */
163&am33xx_pinmux {
164 uart0_pins: pinmux_uart0 {
165 pinctrl-single,pins = <
Christina Quaste5b258e2019-04-12 18:26:27 +0200166 AM33XX_PADCONF(AM335X_PIN_UART0_RXD, PIN_INPUT_PULLUP, MUX_MODE0)
167 AM33XX_PADCONF(AM335X_PIN_UART0_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
Teresa Remmet36bd1682015-07-16 10:30:49 +0200168 >;
169 };
170
171 uart1_pins: pinmux_uart1_pins {
172 pinctrl-single,pins = <
Christina Quaste5b258e2019-04-12 18:26:27 +0200173 AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT_PULLUP, MUX_MODE0)
174 AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
175 AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT, MUX_MODE0)
176 AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
Teresa Remmet36bd1682015-07-16 10:30:49 +0200177 >;
178 };
179};
180
181&uart0 {
182 pinctrl-names = "default";
183 pinctrl-0 = <&uart0_pins>;
184 status = "okay";
185};
186
187&uart1 {
188 pinctrl-names = "default";
189 pinctrl-0 = <&uart1_pins>;
190 status = "okay";
191};
192
Teresa Remmet36bd1682015-07-16 10:30:49 +0200193&usb1 {
194 dr_mode = "host";
Teresa Remmet36bd1682015-07-16 10:30:49 +0200195};