blob: b7d28a20341fb5d0494d55cd5a261f2c20d87a2f [file] [log] [blame]
Teresa Remmet36bd1682015-07-16 10:30:49 +02001/*
2 * Copyright (C) 2015 Phytec Messtechnik GmbH
3 * Author: Teresa Remmet <t.remmet@phytec.de>
4 *
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 2 as
7 * published by the Free Software Foundation.
8 */
9
10/ {
11 model = "Phytec AM335x phyBOARD-WEGA";
12 compatible = "phytec,am335x-wega", "phytec,am335x-phycore-som", "ti,am33xx";
13
Stefan Müller-Klieser316ba622016-08-10 17:12:15 +020014 sound: sound_iface {
15 compatible = "ti,da830-evm-audio";
16 };
17
Teresa Remmetc72bfb82015-09-03 14:00:07 +020018 regulators {
19 compatible = "simple-bus";
20
Javier Martinez Canillas4c049a52016-08-01 12:46:58 -040021 vcc3v3: fixedregulator1 {
Teresa Remmetc72bfb82015-09-03 14:00:07 +020022 compatible = "regulator-fixed";
23 regulator-name = "vcc3v3";
24 regulator-min-microvolt = <3300000>;
25 regulator-max-microvolt = <3300000>;
26 regulator-boot-on;
27 };
28 };
Teresa Remmet36bd1682015-07-16 10:30:49 +020029};
30
Stefan Müller-Klieser316ba622016-08-10 17:12:15 +020031/* Audio */
32&am33xx_pinmux {
33 mcasp0_pins: pinmux_mcasp0 {
34 pinctrl-single,pins = <
Christina Quaste5b258e2019-04-12 18:26:27 +020035 AM33XX_PADCONF(AM335X_PIN_MCASP0_AHCLKX, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
36 AM33XX_PADCONF(AM335X_PIN_MCASP0_ACLKX, PIN_INPUT_PULLDOWN, MUX_MODE0)
37 AM33XX_PADCONF(AM335X_PIN_MCASP0_FSX, PIN_INPUT_PULLDOWN, MUX_MODE0)
38 AM33XX_PADCONF(AM335X_PIN_MCASP0_AXR0, PIN_INPUT_PULLDOWN, MUX_MODE0)
39 AM33XX_PADCONF(AM335X_PIN_MCASP0_AXR1, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
Stefan Müller-Klieser316ba622016-08-10 17:12:15 +020040 >;
41 };
42};
43
44&i2c0 {
45 tlv320aic3007: tlv320aic3007@18 {
46 compatible = "ti,tlv320aic3007";
47 reg = <0x18>;
48 AVDD-supply = <&vcc3v3>;
49 IOVDD-supply = <&vcc3v3>;
50 DRVDD-supply = <&vcc3v3>;
51 DVDD-supply = <&vdig1_reg>;
52 status = "okay";
53 };
54};
55
56&mcasp0 {
57 pinctrl-names = "default";
58 pinctrl-0 = <&mcasp0_pins>;
59 op-mode = <0>; /* DAVINCI_MCASP_IIS_MODE */
60 tdm-slots = <2>;
61 serial-dir = <
62 2 1 0 0 /* # 0: INACTIVE, 1: TX, 2: RX */
63 >;
64 tx-num-evt = <16>;
65 rt-num-evt = <16>;
66 status = "okay";
67};
68
69&sound {
70 ti,model = "AM335x-Wega";
71 ti,audio-codec = <&tlv320aic3007>;
72 ti,mcasp-controller = <&mcasp0>;
73 ti,audio-routing =
74 "Line Out", "LLOUT",
75 "Line Out", "RLOUT",
76 "LINE1L", "Line In",
77 "LINE1R", "Line In";
78 clocks = <&mcasp0_fck>;
79 clock-names = "mclk";
80 status = "okay";
81};
82
Teresa Remmet36bd1682015-07-16 10:30:49 +020083/* CAN Busses */
84&am33xx_pinmux {
85 dcan1_pins: pinmux_dcan1 {
86 pinctrl-single,pins = <
Christina Quaste5b258e2019-04-12 18:26:27 +020087 AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_OUTPUT_PULLUP, MUX_MODE2) /* uart0_ctsn.d_can1_tx */
88 AM33XX_PADCONF(AM335X_PIN_UART0_RTSN, PIN_INPUT_PULLUP, MUX_MODE2) /* uart0_rtsn.d_can1_rx */
Teresa Remmet36bd1682015-07-16 10:30:49 +020089 >;
90 };
91};
92
93&dcan1 {
94 pinctrl-names = "default";
95 pinctrl-0 = <&dcan1_pins>;
96 status = "okay";
97};
98
99/* Ethernet */
100&am33xx_pinmux {
101 ethernet1_pins: pinmux_ethernet1 {
102 pinctrl-single,pins = <
Christina Quaste5b258e2019-04-12 18:26:27 +0200103 AM33XX_PADCONF(AM335X_PIN_GPMC_A0, PIN_OUTPUT, MUX_MODE1) /* gpmc_a0.mii2_txen */
104 AM33XX_PADCONF(AM335X_PIN_GPMC_A1, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a1.mii2_rxdv */
105 AM33XX_PADCONF(AM335X_PIN_GPMC_A2, PIN_OUTPUT, MUX_MODE1) /* gpmc_a2.mii2_txd3 */
106 AM33XX_PADCONF(AM335X_PIN_GPMC_A3, PIN_OUTPUT, MUX_MODE1) /* gpmc_a3.mii2_txd2 */
107 AM33XX_PADCONF(AM335X_PIN_GPMC_A4, PIN_OUTPUT, MUX_MODE1) /* gpmc_a4.mii2_txd1 */
108 AM33XX_PADCONF(AM335X_PIN_GPMC_A5, PIN_OUTPUT, MUX_MODE1) /* gpmc_a5.mii2_txd0 */
109 AM33XX_PADCONF(AM335X_PIN_GPMC_A6, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a6.mii2_txclk */
110 AM33XX_PADCONF(AM335X_PIN_GPMC_A7, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a7.mii2_rxclk */
111 AM33XX_PADCONF(AM335X_PIN_GPMC_A8, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a8.mii2_rxd3 */
112 AM33XX_PADCONF(AM335X_PIN_GPMC_A9, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a9.mii2_rxd2 */
113 AM33XX_PADCONF(AM335X_PIN_GPMC_A10, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a10.mii2_rxd1 */
114 AM33XX_PADCONF(AM335X_PIN_GPMC_A11, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_a11.mii2_rxd0 */
115 AM33XX_PADCONF(AM335X_PIN_GPMC_WPN, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_wpn.mii2_rxerr */
116 AM33XX_PADCONF(AM335X_PIN_GPMC_BEN1, PIN_INPUT_PULLDOWN, MUX_MODE1) /* gpmc_ben1.mii2_col */
Teresa Remmet36bd1682015-07-16 10:30:49 +0200117 >;
118 };
119};
120
121&cpsw_emac1 {
Teresa Remmete6220da2017-01-05 15:50:51 +0100122 phy-handle = <&phy1>;
Teresa Remmet36bd1682015-07-16 10:30:49 +0200123 phy-mode = "mii";
124 dual_emac_res_vlan = <2>;
125};
126
Teresa Remmete6220da2017-01-05 15:50:51 +0100127&davinci_mdio {
128 phy1: ethernet-phy@1 {
129 reg = <1>;
130 };
131};
132
Teresa Remmet36bd1682015-07-16 10:30:49 +0200133&mac {
134 slaves = <2>;
135 pinctrl-names = "default";
136 pinctrl-0 = <&ethernet0_pins &ethernet1_pins>;
137 dual_emac = <1>;
138};
139
140/* MMC */
141&am33xx_pinmux {
142 mmc1_pins: pinmux_mmc1 {
143 pinctrl-single,pins = <
Christina Quaste5b258e2019-04-12 18:26:27 +0200144 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT3, PIN_INPUT_PULLUP, MUX_MODE0)
145 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT2, PIN_INPUT_PULLUP, MUX_MODE0)
146 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT1, PIN_INPUT_PULLUP, MUX_MODE0)
147 AM33XX_PADCONF(AM335X_PIN_MMC0_DAT0, PIN_INPUT_PULLUP, MUX_MODE0)
148 AM33XX_PADCONF(AM335X_PIN_MMC0_CLK, PIN_INPUT_PULLUP, MUX_MODE0)
149 AM33XX_PADCONF(AM335X_PIN_MMC0_CMD, PIN_INPUT_PULLUP, MUX_MODE0)
150 AM33XX_PADCONF(AM335X_PIN_SPI0_CS1, PIN_INPUT_PULLUP, MUX_MODE7) /* spi0_cs1.mmc0_sdcd */
Teresa Remmet36bd1682015-07-16 10:30:49 +0200151 >;
152 };
153};
154
155&mmc1 {
Teresa Remmetc72bfb82015-09-03 14:00:07 +0200156 vmmc-supply = <&vcc3v3>;
Teresa Remmet36bd1682015-07-16 10:30:49 +0200157 bus-width = <4>;
158 pinctrl-names = "default";
159 pinctrl-0 = <&mmc1_pins>;
160 cd-gpios = <&gpio0 6 GPIO_ACTIVE_HIGH>;
161 status = "okay";
162};
163
Stefan Müller-Klieser316ba622016-08-10 17:12:15 +0200164/* Power */
165&vdig1_reg {
166 regulator-boot-on;
167 regulator-always-on;
168};
169
Teresa Remmet36bd1682015-07-16 10:30:49 +0200170/* UARTs */
171&am33xx_pinmux {
172 uart0_pins: pinmux_uart0 {
173 pinctrl-single,pins = <
Christina Quaste5b258e2019-04-12 18:26:27 +0200174 AM33XX_PADCONF(AM335X_PIN_UART0_RXD, PIN_INPUT_PULLUP, MUX_MODE0)
175 AM33XX_PADCONF(AM335X_PIN_UART0_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
Teresa Remmet36bd1682015-07-16 10:30:49 +0200176 >;
177 };
178
179 uart1_pins: pinmux_uart1_pins {
180 pinctrl-single,pins = <
Christina Quaste5b258e2019-04-12 18:26:27 +0200181 AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT_PULLUP, MUX_MODE0)
182 AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
183 AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT, MUX_MODE0)
184 AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_OUTPUT_PULLDOWN, MUX_MODE0)
Teresa Remmet36bd1682015-07-16 10:30:49 +0200185 >;
186 };
187};
188
189&uart0 {
190 pinctrl-names = "default";
191 pinctrl-0 = <&uart0_pins>;
192 status = "okay";
193};
194
195&uart1 {
196 pinctrl-names = "default";
197 pinctrl-0 = <&uart1_pins>;
198 status = "okay";
199};
200
201/* USB */
202&cppi41dma {
203 status = "okay";
204};
205
206&usb_ctrl_mod {
207 status = "okay";
208};
209
210&usb {
211 status = "okay";
212};
213
214&usb0 {
Teresa Remmet36bd1682015-07-16 10:30:49 +0200215 status = "okay";
216};
217
218&usb0_phy {
219 status = "okay";
220};
221
222&usb1 {
223 dr_mode = "host";
224 status = "okay";
225};
226
227&usb1_phy {
228 status = "okay";
229};