xref: /freebsd-src/sys/contrib/device-tree/src/arm/ti/omap/am335x-netcom-plus-8xx.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
15f126890aSEmmanuel Vadot/ {
16f126890aSEmmanuel Vadot	model = "NetCom Plus";
17f126890aSEmmanuel Vadot};
18f126890aSEmmanuel Vadot
19f126890aSEmmanuel Vadot&am33xx_pinmux {
20f126890aSEmmanuel Vadot	pinctrl-names = "default";
21f126890aSEmmanuel Vadot	pinctrl-0 = <&dip_switches>;
22f126890aSEmmanuel Vadot
23f126890aSEmmanuel Vadot	dip_switches: dip-switches-pins {
24f126890aSEmmanuel Vadot		pinctrl-single,pins = <
25f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_AD12, PIN_INPUT_PULLDOWN, MUX_MODE7)
26f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_AD13, PIN_INPUT_PULLDOWN, MUX_MODE7)
27f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_AD14, PIN_INPUT_PULLDOWN, MUX_MODE7)
28f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_GPMC_AD15, PIN_INPUT_PULLDOWN, MUX_MODE7)
29f126890aSEmmanuel Vadot		>;
30f126890aSEmmanuel Vadot	};
31f126890aSEmmanuel Vadot
32f126890aSEmmanuel Vadot	tca6416_pins: tca6416-pins {
33f126890aSEmmanuel Vadot		pinctrl-single,pins = <
34f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR1, PIN_INPUT_PULLUP, MUX_MODE7)
35f126890aSEmmanuel Vadot		>;
36f126890aSEmmanuel Vadot	};
37f126890aSEmmanuel Vadot
38f126890aSEmmanuel Vadot	i2c2_pins: i2c2-pins {
39f126890aSEmmanuel Vadot		pinctrl-single,pins = <
40f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT_PULLDOWN, MUX_MODE3)
41f126890aSEmmanuel Vadot			AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_INPUT_PULLDOWN, MUX_MODE3)
42f126890aSEmmanuel Vadot		>;
43f126890aSEmmanuel Vadot	};
44f126890aSEmmanuel Vadot};
45f126890aSEmmanuel Vadot
46f126890aSEmmanuel Vadot&usb0_phy {
47f126890aSEmmanuel Vadot	status = "okay";
48f126890aSEmmanuel Vadot};
49f126890aSEmmanuel Vadot
50f126890aSEmmanuel Vadot&usb1_phy {
51f126890aSEmmanuel Vadot	status = "okay";
52f126890aSEmmanuel Vadot};
53f126890aSEmmanuel Vadot
54f126890aSEmmanuel Vadot&usb0 {
55f126890aSEmmanuel Vadot	status = "okay";
56f126890aSEmmanuel Vadot	dr_mode = "host";
57f126890aSEmmanuel Vadot};
58f126890aSEmmanuel Vadot
59f126890aSEmmanuel Vadot&usb1 {
60f126890aSEmmanuel Vadot	status = "okay";
61f126890aSEmmanuel Vadot	dr_mode = "host";
62f126890aSEmmanuel Vadot};
63f126890aSEmmanuel Vadot
64f126890aSEmmanuel Vadot&i2c1 {
65f126890aSEmmanuel Vadot	tca6416a: gpio@20 {
66f126890aSEmmanuel Vadot		compatible = "ti,tca6416";
67f126890aSEmmanuel Vadot		reg = <0x20>;
68f126890aSEmmanuel Vadot		gpio-controller;
69f126890aSEmmanuel Vadot		#gpio-cells = <2>;
70f126890aSEmmanuel Vadot		interrupt-parent = <&gpio0>;
71f126890aSEmmanuel Vadot		interrupts = <20 IRQ_TYPE_EDGE_RISING>;
72f126890aSEmmanuel Vadot		pinctrl-names = "default";
73f126890aSEmmanuel Vadot		pinctrl-0 = <&tca6416_pins>;
74f126890aSEmmanuel Vadot		gpio-line-names = "GP_IN0", "GP_IN1", "GP_IN2", "GP_IN3",
75f126890aSEmmanuel Vadot				  "GP_IN4", "GP_IN5", "GP_IN6", "GP_IN7",
76f126890aSEmmanuel Vadot				  "GP_OUT0", "GP_OUT1", "GP_OUT2", "GP_OUT3",
77f126890aSEmmanuel Vadot				  "GP_OUT4", "GP_OUT5", "GP_OUT6", "GP_OUT7";
78f126890aSEmmanuel Vadot	};
79f126890aSEmmanuel Vadot};
80f126890aSEmmanuel Vadot
81f126890aSEmmanuel Vadot&i2c2 {
82f126890aSEmmanuel Vadot	pinctrl-names = "default";
83f126890aSEmmanuel Vadot	pinctrl-0 = <&i2c2_pins>;
84f126890aSEmmanuel Vadot
85f126890aSEmmanuel Vadot	status = "okay";
86f126890aSEmmanuel Vadot	clock-frequency = <400000>;
87f126890aSEmmanuel Vadot
88f126890aSEmmanuel Vadot	tca6416b: gpio@20 {
89f126890aSEmmanuel Vadot		compatible = "ti,tca6416";
90f126890aSEmmanuel Vadot		reg = <0x20>;
91f126890aSEmmanuel Vadot		gpio-controller;
92f126890aSEmmanuel Vadot		#gpio-cells = <2>;
93f126890aSEmmanuel Vadot		gpio-line-names = "CH1_M0", "CH1_M1", "CH1_M2", "CH1_M3",
94f126890aSEmmanuel Vadot				  "CH2_M0", "CH2_M1", "CH2_M2", "CH2_M3",
95f126890aSEmmanuel Vadot				  "CH3_M0", "CH3_M1", "CH3_M2", "CH3_M3",
96f126890aSEmmanuel Vadot				  "CH4_M0", "CH4_M1", "CH4_M2", "CH4_M3";
97f126890aSEmmanuel Vadot	};
98f126890aSEmmanuel Vadot
99f126890aSEmmanuel Vadot	tca6416c: gpio@21 {
100f126890aSEmmanuel Vadot		compatible = "ti,tca6416";
101f126890aSEmmanuel Vadot		reg = <0x21>;
102f126890aSEmmanuel Vadot		gpio-controller;
103f126890aSEmmanuel Vadot		#gpio-cells = <2>;
104f126890aSEmmanuel Vadot		gpio-line-names = "CH5_M0", "CH5_M1", "CH5_M2", "CH5_M3",
105f126890aSEmmanuel Vadot				  "CH6_M0", "CH6_M1", "CH6_M2", "CH6_M3",
106f126890aSEmmanuel Vadot				  "CH7_M0", "CH7_M1", "CH7_M2", "CH7_M3",
107f126890aSEmmanuel Vadot				  "CH8_M0", "CH8_M1", "CH8_M2", "CH8_M3";
108f126890aSEmmanuel Vadot	};
109f126890aSEmmanuel Vadot};
110f126890aSEmmanuel Vadot
111f126890aSEmmanuel Vadot&davinci_mdio_sw {
112f126890aSEmmanuel Vadot	phy0: ethernet-phy@0 {
113f126890aSEmmanuel Vadot		reg = <1>;
114f126890aSEmmanuel Vadot	};
115f126890aSEmmanuel Vadot};
116f126890aSEmmanuel Vadot
117f126890aSEmmanuel Vadot&cpsw_port1 {
118f126890aSEmmanuel Vadot	phy-mode = "rmii";
119f126890aSEmmanuel Vadot	ti,dual-emac-pvid = <1>;
120f126890aSEmmanuel Vadot	phy-handle = <&phy0>;
121f126890aSEmmanuel Vadot};
122f126890aSEmmanuel Vadot
123f126890aSEmmanuel Vadot&cpsw_port2 {
124f126890aSEmmanuel Vadot	phy-mode = "rgmii-id";
125f126890aSEmmanuel Vadot	ti,dual-emac-pvid = <2>;
126f126890aSEmmanuel Vadot	phy-handle = <&phy1>;
127f126890aSEmmanuel Vadot};
128f126890aSEmmanuel Vadot
129f126890aSEmmanuel Vadot&gpio0 {
130f126890aSEmmanuel Vadot	gpio-line-names =
131f126890aSEmmanuel Vadot		"MDIO",
132f126890aSEmmanuel Vadot		"MDC",
133f126890aSEmmanuel Vadot		"NC",
134f126890aSEmmanuel Vadot		"NC",
135f126890aSEmmanuel Vadot		"I2C1_SDA",
136f126890aSEmmanuel Vadot		"I2C1_SCL",
137f126890aSEmmanuel Vadot		"NC",
138f126890aSEmmanuel Vadot		"NC",
139f126890aSEmmanuel Vadot		"NC",
140f126890aSEmmanuel Vadot		"NC",
141f126890aSEmmanuel Vadot		"NC",
142f126890aSEmmanuel Vadot		"NC",
143f126890aSEmmanuel Vadot		"I2C2_SDA",
144f126890aSEmmanuel Vadot		"I2C2_SCL",
145f126890aSEmmanuel Vadot		"NC",
146f126890aSEmmanuel Vadot		"NC",
147f126890aSEmmanuel Vadot		"onrisc:blue:wlan",
148f126890aSEmmanuel Vadot		"onrisc:green:app",
149f126890aSEmmanuel Vadot		"USB0_DRVVBUS",
150f126890aSEmmanuel Vadot		"ETH2_INT",
151f126890aSEmmanuel Vadot		"NC",
152f126890aSEmmanuel Vadot		"NC",
153f126890aSEmmanuel Vadot		"MMC1_DAT0",
154f126890aSEmmanuel Vadot		"MMC1_DAT1",
155f126890aSEmmanuel Vadot		"NC",
156f126890aSEmmanuel Vadot		"NC",
157f126890aSEmmanuel Vadot		"MMC1_DAT2",
158f126890aSEmmanuel Vadot		"MMC1_DAT3",
159f126890aSEmmanuel Vadot		"NC",
160f126890aSEmmanuel Vadot		"NC",
161f126890aSEmmanuel Vadot		"GPMC_WAIT0",
162f126890aSEmmanuel Vadot		"GPMC_WP_N";
163f126890aSEmmanuel Vadot};
164f126890aSEmmanuel Vadot
165f126890aSEmmanuel Vadot&gpio1 {
166f126890aSEmmanuel Vadot	gpio-line-names =
167f126890aSEmmanuel Vadot		"GPMC_AD0",
168f126890aSEmmanuel Vadot		"GPMC_AD1",
169f126890aSEmmanuel Vadot		"GPMC_AD2",
170f126890aSEmmanuel Vadot		"GPMC_AD3",
171f126890aSEmmanuel Vadot		"GPMC_AD4",
172f126890aSEmmanuel Vadot		"GPMC_AD5",
173f126890aSEmmanuel Vadot		"GPMC_AD6",
174f126890aSEmmanuel Vadot		"GPMC_AD7",
175f126890aSEmmanuel Vadot		"NC",
176f126890aSEmmanuel Vadot		"NC",
177f126890aSEmmanuel Vadot		"CONSOLE_RX",
178f126890aSEmmanuel Vadot		"CONSOLE_TX",
179f126890aSEmmanuel Vadot		"SW2_0_alt",
180f126890aSEmmanuel Vadot		"SW2_1_alt",
181f126890aSEmmanuel Vadot		"SW2_2_alt",
182f126890aSEmmanuel Vadot		"SW2_3_alt",
183f126890aSEmmanuel Vadot		"RGMII2_TCTL",
184f126890aSEmmanuel Vadot		"RGMII2_RCTL",
185f126890aSEmmanuel Vadot		"RGMII2_TD3",
186f126890aSEmmanuel Vadot		"RGMII2_TD2",
187f126890aSEmmanuel Vadot		"RGMII2_TD1",
188f126890aSEmmanuel Vadot		"RGMII2_TD0",
189f126890aSEmmanuel Vadot		"RGMII2_TCLK",
190f126890aSEmmanuel Vadot		"RGMII2_RCLK",
191f126890aSEmmanuel Vadot		"RGMII2_RD3",
192f126890aSEmmanuel Vadot		"RGMII2_RD2",
193f126890aSEmmanuel Vadot		"RGMII2_RD1",
194f126890aSEmmanuel Vadot		"RGMII2_RD0",
195f126890aSEmmanuel Vadot		"PMIC_INT1",
196f126890aSEmmanuel Vadot		"GPMC_CSN0_Flash",
197f126890aSEmmanuel Vadot		"MMC1_CLK",
198f126890aSEmmanuel Vadot		"MMC1_CMD";
199f126890aSEmmanuel Vadot};
200f126890aSEmmanuel Vadot
201f126890aSEmmanuel Vadot&gpio2 {
202f126890aSEmmanuel Vadot	gpio-line-names =
203f126890aSEmmanuel Vadot		"GPMC_CSN3_BUS",
204f126890aSEmmanuel Vadot		"GPMC_CLK",
205f126890aSEmmanuel Vadot		"GPMC_ADVN_ALE",
206f126890aSEmmanuel Vadot		"GPMC_OEN_RE_N",
207f126890aSEmmanuel Vadot		"GPMC_WE_N",
208f126890aSEmmanuel Vadot		"GPMC_BEN0_CLE",
209f126890aSEmmanuel Vadot		"NC",
210f126890aSEmmanuel Vadot		"NC",
211f126890aSEmmanuel Vadot		"NC",
212f126890aSEmmanuel Vadot		"NC",
213f126890aSEmmanuel Vadot		"NC",
214f126890aSEmmanuel Vadot		"NC",
215f126890aSEmmanuel Vadot		"NC",
216f126890aSEmmanuel Vadot		"NC",
217f126890aSEmmanuel Vadot		"NC",
218f126890aSEmmanuel Vadot		"NC",
219f126890aSEmmanuel Vadot		"NC",
220f126890aSEmmanuel Vadot		"NC",
221f126890aSEmmanuel Vadot		"SW2_0",
222f126890aSEmmanuel Vadot		"SW2_1",
223f126890aSEmmanuel Vadot		"NC",
224f126890aSEmmanuel Vadot		"NC",
225f126890aSEmmanuel Vadot		"NC",
226f126890aSEmmanuel Vadot		"NC",
227f126890aSEmmanuel Vadot		"NC",
228f126890aSEmmanuel Vadot		"NC",
229f126890aSEmmanuel Vadot		"MMC0_DAT3",
230f126890aSEmmanuel Vadot		"MMC0_DAT2",
231f126890aSEmmanuel Vadot		"MMC0_DAT1",
232f126890aSEmmanuel Vadot		"MMC0_DAT0",
233f126890aSEmmanuel Vadot		"MMC0_CLK",
234f126890aSEmmanuel Vadot		"MMC0_CMD";
235f126890aSEmmanuel Vadot};
236f126890aSEmmanuel Vadot
237f126890aSEmmanuel Vadot&gpio3 {
238f126890aSEmmanuel Vadot	gpio-line-names =
239f126890aSEmmanuel Vadot		"onrisc:red:power",
240f126890aSEmmanuel Vadot		"NC",
241f126890aSEmmanuel Vadot		"NC",
242f126890aSEmmanuel Vadot		"NC",
243f126890aSEmmanuel Vadot		"3G_PWR_EN",
244f126890aSEmmanuel Vadot		"NC",
245f126890aSEmmanuel Vadot		"NC",
246f126890aSEmmanuel Vadot		"WLAN_IRQ",
247f126890aSEmmanuel Vadot		"WLAN_EN",
248f126890aSEmmanuel Vadot		"SW2_2",
249f126890aSEmmanuel Vadot		"SW2_3",
250f126890aSEmmanuel Vadot		"NC",
251f126890aSEmmanuel Vadot		"NC",
252f126890aSEmmanuel Vadot		"NC",
253f126890aSEmmanuel Vadot		"NC",
254f126890aSEmmanuel Vadot		"NC",
255f126890aSEmmanuel Vadot		"NC",
256f126890aSEmmanuel Vadot		"NC",
257f126890aSEmmanuel Vadot		"NC",
258f126890aSEmmanuel Vadot		"NC",
259f126890aSEmmanuel Vadot		"NC",
260f126890aSEmmanuel Vadot		"NC",
261f126890aSEmmanuel Vadot		"NC",
262f126890aSEmmanuel Vadot		"NC",
263f126890aSEmmanuel Vadot		"NC",
264f126890aSEmmanuel Vadot		"NC",
265f126890aSEmmanuel Vadot		"NC",
266f126890aSEmmanuel Vadot		"NC",
267f126890aSEmmanuel Vadot		"NC",
268f126890aSEmmanuel Vadot		"NC",
269f126890aSEmmanuel Vadot		"NC",
270f126890aSEmmanuel Vadot		"NC";
271f126890aSEmmanuel Vadot};
272