xref: /freebsd-src/sys/contrib/device-tree/src/arm/ti/omap/am335x-netcom-plus-2xx.dts (revision 01950c46b8155250f64374fb72fc11faa44bf099)
1f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2f126890aSEmmanuel Vadot/*
3f126890aSEmmanuel Vadot * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
4f126890aSEmmanuel Vadot */
5f126890aSEmmanuel Vadot
6f126890aSEmmanuel Vadot/*
7f126890aSEmmanuel Vadot * VScom OnRISC
8*01950c46SEmmanuel Vadot * https://www.vscom.de
9f126890aSEmmanuel Vadot */
10f126890aSEmmanuel Vadot
11f126890aSEmmanuel Vadot/dts-v1/;
12f126890aSEmmanuel Vadot
13f126890aSEmmanuel Vadot#include "am335x-baltos.dtsi"
14f126890aSEmmanuel Vadot#include "am335x-baltos-leds.dtsi"
15f126890aSEmmanuel Vadot
16f126890aSEmmanuel Vadot/ {
17f126890aSEmmanuel Vadot	model = "NetCom Plus";
18f126890aSEmmanuel Vadot};
19f126890aSEmmanuel Vadot
20f126890aSEmmanuel Vadot&am33xx_pinmux {
21f126890aSEmmanuel Vadot	uart1_pins: uart1-pins {
22f126890aSEmmanuel Vadot		pinctrl-single,pins = <
23f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT, MUX_MODE0)			/* RX */
24f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_INPUT, MUX_MODE0)			/* TX */
25f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT_PULLDOWN, MUX_MODE0)		/* CTS */
26f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_OUTPUT_PULLDOWN, MUX_MODE0)		/* RTS */
27f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_VSYNC, PIN_OUTPUT_PULLDOWN, MUX_MODE7)		/* DTR */
28f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_HSYNC, PIN_INPUT_PULLDOWN, MUX_MODE7)		/* DSR */
29f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_PCLK, PIN_INPUT_PULLDOWN, MUX_MODE7)		/* DCD */
30f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_LCD_AC_BIAS_EN, PIN_INPUT_PULLDOWN, MUX_MODE7)	/* RI */
31f126890aSEmmanuel Vadot		>;
32f126890aSEmmanuel Vadot	};
33f126890aSEmmanuel Vadot
34f126890aSEmmanuel Vadot	uart2_pins: uart2-pins {
35f126890aSEmmanuel Vadot		pinctrl-single,pins = <
36f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_SPI0_SCLK, PIN_INPUT, MUX_MODE1)		/* RX */
37f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_SPI0_D0, PIN_OUTPUT, MUX_MODE1)      		/* TX */
38f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_I2C0_SDA, PIN_INPUT_PULLDOWN, MUX_MODE2)	/* CTS */
39f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_I2C0_SCL, PIN_OUTPUT_PULLDOWN, MUX_MODE2)	/* RTS */
40f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_AD12, PIN_OUTPUT_PULLDOWN, MUX_MODE7)	/* DTR */
41f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_AD13, PIN_INPUT_PULLDOWN, MUX_MODE7)	/* DSR */
42f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_AD14, PIN_INPUT_PULLDOWN, MUX_MODE7)	/* DCD */
43f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_AD15, PIN_INPUT_PULLDOWN, MUX_MODE7)	/* RI */
44f126890aSEmmanuel Vadot		>;
45f126890aSEmmanuel Vadot	};
46f126890aSEmmanuel Vadot};
47f126890aSEmmanuel Vadot
48f126890aSEmmanuel Vadot&usb0_phy {
49f126890aSEmmanuel Vadot	status = "okay";
50f126890aSEmmanuel Vadot};
51f126890aSEmmanuel Vadot
52f126890aSEmmanuel Vadot&usb0 {
53f126890aSEmmanuel Vadot	status = "okay";
54f126890aSEmmanuel Vadot	dr_mode = "host";
55f126890aSEmmanuel Vadot};
56f126890aSEmmanuel Vadot
57f126890aSEmmanuel Vadot&uart1 {
58f126890aSEmmanuel Vadot	pinctrl-names = "default";
59f126890aSEmmanuel Vadot	pinctrl-0 = <&uart1_pins>;
60f126890aSEmmanuel Vadot	dtr-gpios = <&gpio2 22 GPIO_ACTIVE_LOW>;
61f126890aSEmmanuel Vadot	dsr-gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
62f126890aSEmmanuel Vadot	dcd-gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
63f126890aSEmmanuel Vadot	rng-gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
64f126890aSEmmanuel Vadot
65f126890aSEmmanuel Vadot	status = "okay";
66f126890aSEmmanuel Vadot};
67f126890aSEmmanuel Vadot
68f126890aSEmmanuel Vadot&uart2 {
69f126890aSEmmanuel Vadot	pinctrl-names = "default";
70f126890aSEmmanuel Vadot	pinctrl-0 = <&uart2_pins>;
71f126890aSEmmanuel Vadot	dtr-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
72f126890aSEmmanuel Vadot	dsr-gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
73f126890aSEmmanuel Vadot	dcd-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
74f126890aSEmmanuel Vadot	rng-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
75f126890aSEmmanuel Vadot
76f126890aSEmmanuel Vadot	status = "okay";
77f126890aSEmmanuel Vadot};
78f126890aSEmmanuel Vadot
79f126890aSEmmanuel Vadot&davinci_mdio_sw {
80f126890aSEmmanuel Vadot	phy0: ethernet-phy@0 {
81f126890aSEmmanuel Vadot		reg = <1>;
82f126890aSEmmanuel Vadot	};
83f126890aSEmmanuel Vadot};
84f126890aSEmmanuel Vadot
85f126890aSEmmanuel Vadot&cpsw_port1 {
86f126890aSEmmanuel Vadot	phy-mode = "rmii";
87f126890aSEmmanuel Vadot	ti,dual-emac-pvid = <1>;
88f126890aSEmmanuel Vadot	phy-handle = <&phy0>;
89f126890aSEmmanuel Vadot};
90f126890aSEmmanuel Vadot
91f126890aSEmmanuel Vadot&cpsw_port2 {
92f126890aSEmmanuel Vadot	phy-mode = "rgmii-id";
93f126890aSEmmanuel Vadot	ti,dual-emac-pvid = <2>;
94f126890aSEmmanuel Vadot	phy-handle = <&phy1>;
95f126890aSEmmanuel Vadot};
96f126890aSEmmanuel Vadot
97f126890aSEmmanuel Vadot&gpio0 {
98f126890aSEmmanuel Vadot	gpio-line-names =
99f126890aSEmmanuel Vadot		"MDIO",
100f126890aSEmmanuel Vadot		"MDC",
101f126890aSEmmanuel Vadot		"UART2_RX",
102f126890aSEmmanuel Vadot		"UART2_TX",
103f126890aSEmmanuel Vadot		"I2C1_SDA",
104f126890aSEmmanuel Vadot		"I2C1_SCL",
105f126890aSEmmanuel Vadot		"NC",
106f126890aSEmmanuel Vadot		"NC",
107f126890aSEmmanuel Vadot		"NC",
108f126890aSEmmanuel Vadot		"NC",
109f126890aSEmmanuel Vadot		"NC",
110f126890aSEmmanuel Vadot		"NC",
111f126890aSEmmanuel Vadot		"UART1_CTSN",
112f126890aSEmmanuel Vadot		"UART1_RTSN",
113f126890aSEmmanuel Vadot		"UART1_RX",
114f126890aSEmmanuel Vadot		"UART1_TX",
115f126890aSEmmanuel Vadot		"onrisc:blue:wlan",
116f126890aSEmmanuel Vadot		"onrisc:green:app",
117f126890aSEmmanuel Vadot		"USB0_DRVVBUS",
118f126890aSEmmanuel Vadot		"ETH2_INT",
119f126890aSEmmanuel Vadot		"NC",
120f126890aSEmmanuel Vadot		"NC",
121f126890aSEmmanuel Vadot		"MMC1_DAT0",
122f126890aSEmmanuel Vadot		"MMC1_DAT1",
123f126890aSEmmanuel Vadot		"NC",
124f126890aSEmmanuel Vadot		"NC",
125f126890aSEmmanuel Vadot		"MMC1_DAT2",
126f126890aSEmmanuel Vadot		"MMC1_DAT3",
127f126890aSEmmanuel Vadot		"NC",
128f126890aSEmmanuel Vadot		"NC",
129f126890aSEmmanuel Vadot		"GPMC_WAIT0",
130f126890aSEmmanuel Vadot		"GPMC_WP_N";
131f126890aSEmmanuel Vadot};
132f126890aSEmmanuel Vadot
133f126890aSEmmanuel Vadot&gpio1 {
134f126890aSEmmanuel Vadot	gpio-line-names =
135f126890aSEmmanuel Vadot		"GPMC_AD0",
136f126890aSEmmanuel Vadot		"GPMC_AD1",
137f126890aSEmmanuel Vadot		"GPMC_AD2",
138f126890aSEmmanuel Vadot		"GPMC_AD3",
139f126890aSEmmanuel Vadot		"GPMC_AD4",
140f126890aSEmmanuel Vadot		"GPMC_AD5",
141f126890aSEmmanuel Vadot		"GPMC_AD6",
142f126890aSEmmanuel Vadot		"GPMC_AD7",
143f126890aSEmmanuel Vadot		"NC",
144f126890aSEmmanuel Vadot		"NC",
145f126890aSEmmanuel Vadot		"CONSOLE_RX",
146f126890aSEmmanuel Vadot		"CONSOLE_TX",
147f126890aSEmmanuel Vadot		"UART2_DTR",
148f126890aSEmmanuel Vadot		"UART2_DSR",
149f126890aSEmmanuel Vadot		"UART2_DCD",
150f126890aSEmmanuel Vadot		"UART2_RI",
151f126890aSEmmanuel Vadot		"RGMII2_TCTL",
152f126890aSEmmanuel Vadot		"RGMII2_RCTL",
153f126890aSEmmanuel Vadot		"RGMII2_TD3",
154f126890aSEmmanuel Vadot		"RGMII2_TD2",
155f126890aSEmmanuel Vadot		"RGMII2_TD1",
156f126890aSEmmanuel Vadot		"RGMII2_TD0",
157f126890aSEmmanuel Vadot		"RGMII2_TCLK",
158f126890aSEmmanuel Vadot		"RGMII2_RCLK",
159f126890aSEmmanuel Vadot		"RGMII2_RD3",
160f126890aSEmmanuel Vadot		"RGMII2_RD2",
161f126890aSEmmanuel Vadot		"RGMII2_RD1",
162f126890aSEmmanuel Vadot		"RGMII2_RD0",
163f126890aSEmmanuel Vadot		"PMIC_INT1",
164f126890aSEmmanuel Vadot		"GPMC_CSN0_Flash",
165f126890aSEmmanuel Vadot		"MMC1_CLK",
166f126890aSEmmanuel Vadot		"MMC1_CMD";
167f126890aSEmmanuel Vadot};
168f126890aSEmmanuel Vadot
169f126890aSEmmanuel Vadot&gpio2 {
170f126890aSEmmanuel Vadot	gpio-line-names =
171f126890aSEmmanuel Vadot		"GPMC_CSN3_BUS",
172f126890aSEmmanuel Vadot		"GPMC_CLK",
173f126890aSEmmanuel Vadot		"GPMC_ADVN_ALE",
174f126890aSEmmanuel Vadot		"GPMC_OEN_RE_N",
175f126890aSEmmanuel Vadot		"GPMC_WE_N",
176f126890aSEmmanuel Vadot		"GPMC_BEN0_CLE",
177f126890aSEmmanuel Vadot		"NC",
178f126890aSEmmanuel Vadot		"NC",
179f126890aSEmmanuel Vadot		"NC",
180f126890aSEmmanuel Vadot		"NC",
181f126890aSEmmanuel Vadot		"NC",
182f126890aSEmmanuel Vadot		"NC",
183f126890aSEmmanuel Vadot		"NC",
184f126890aSEmmanuel Vadot		"NC",
185f126890aSEmmanuel Vadot		"NC",
186f126890aSEmmanuel Vadot		"NC",
187f126890aSEmmanuel Vadot		"NC",
188f126890aSEmmanuel Vadot		"NC",
189f126890aSEmmanuel Vadot		"SW2_0",
190f126890aSEmmanuel Vadot		"SW2_1",
191f126890aSEmmanuel Vadot		"NC",
192f126890aSEmmanuel Vadot		"NC",
193f126890aSEmmanuel Vadot		"UART1_DTR",
194f126890aSEmmanuel Vadot		"UART1_DSR",
195f126890aSEmmanuel Vadot		"UART1_DCD",
196f126890aSEmmanuel Vadot		"UART1_RI",
197f126890aSEmmanuel Vadot		"MMC0_DAT3",
198f126890aSEmmanuel Vadot		"MMC0_DAT2",
199f126890aSEmmanuel Vadot		"MMC0_DAT1",
200f126890aSEmmanuel Vadot		"MMC0_DAT0",
201f126890aSEmmanuel Vadot		"MMC0_CLK",
202f126890aSEmmanuel Vadot		"MMC0_CMD";
203f126890aSEmmanuel Vadot};
204f126890aSEmmanuel Vadot
205f126890aSEmmanuel Vadot&gpio3 {
206f126890aSEmmanuel Vadot	gpio-line-names =
207f126890aSEmmanuel Vadot		"onrisc:red:power",
208f126890aSEmmanuel Vadot		"NC",
209f126890aSEmmanuel Vadot		"NC",
210f126890aSEmmanuel Vadot		"NC",
211f126890aSEmmanuel Vadot		"NC",
212f126890aSEmmanuel Vadot		"UART2_CTSN",
213f126890aSEmmanuel Vadot		"UART2_RTSN",
214f126890aSEmmanuel Vadot		"WLAN_IRQ",
215f126890aSEmmanuel Vadot		"WLAN_EN",
216f126890aSEmmanuel Vadot		"SW2_2",
217f126890aSEmmanuel Vadot		"SW2_3",
218f126890aSEmmanuel Vadot		"NC",
219f126890aSEmmanuel Vadot		"NC",
220f126890aSEmmanuel Vadot		"NC",
221f126890aSEmmanuel Vadot		"ModeA0",
222f126890aSEmmanuel Vadot		"ModeA1",
223f126890aSEmmanuel Vadot		"ModeA2",
224f126890aSEmmanuel Vadot		"ModeA3",
225f126890aSEmmanuel Vadot		"NC",
226f126890aSEmmanuel Vadot		"NC",
227f126890aSEmmanuel Vadot		"NC",
228f126890aSEmmanuel Vadot		"NC",
229f126890aSEmmanuel Vadot		"NC",
230f126890aSEmmanuel Vadot		"NC",
231f126890aSEmmanuel Vadot		"NC",
232f126890aSEmmanuel Vadot		"NC",
233f126890aSEmmanuel Vadot		"NC",
234f126890aSEmmanuel Vadot		"NC",
235f126890aSEmmanuel Vadot		"NC",
236f126890aSEmmanuel Vadot		"NC",
237f126890aSEmmanuel Vadot		"NC",
238f126890aSEmmanuel Vadot		"NC";
239f126890aSEmmanuel Vadot};
240