blob: 546e88f8fbad565e43deb6e56754600761f2612b [file] [log] [blame]
Tom Rini53633a82024-02-29 12:33:36 -05001// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
4 */
5
6/*
7 * VScom OnRISC
Tom Rini6bb92fc2024-05-20 09:54:58 -06008 * https://www.vscom.de
Tom Rini53633a82024-02-29 12:33:36 -05009 */
10
11/dts-v1/;
12
13#include "am335x-baltos.dtsi"
14#include "am335x-baltos-leds.dtsi"
15
16/ {
17 model = "NetCAN";
18
19 leds {
20 pinctrl-names = "default";
21 pinctrl-0 = <&user_leds_s0>;
22
23 compatible = "gpio-leds";
24
25 led@1 {
26 label = "can_data";
27 linux,default-trigger = "netdev";
28 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
29 default-state = "off";
30 };
31 led@2 {
32 label = "can_error";
33 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
34 default-state = "off";
35 };
36 };
37};
38
39&am33xx_pinmux {
40 user_leds_s0: user-leds-s0-pins {
41 pinctrl-single,pins = <
42 AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* CAN Data LED */
43 AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* CAN Error LED */
44 >;
45 };
46
47 dcan1_pins: dcan1-pins {
48 pinctrl-single,pins = <
49 AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_OUTPUT, MUX_MODE2) /* CAN TX */
50 AM33XX_PADCONF(AM335X_PIN_UART0_RTSN, PIN_INPUT, MUX_MODE2) /* CAN RX */
51 >;
52 };
53};
54
55&usb0_phy {
56 status = "okay";
57};
58
59&usb0 {
60 status = "okay";
61 dr_mode = "host";
62};
63
64&davinci_mdio_sw {
65 phy0: ethernet-phy@0 {
66 reg = <1>;
67 };
68};
69
70&cpsw_port1 {
71 phy-mode = "rmii";
72 ti,dual-emac-pvid = <1>;
73 phy-handle = <&phy0>;
74};
75
76&cpsw_port2 {
77 phy-mode = "rgmii-id";
78 ti,dual-emac-pvid = <2>;
79 phy-handle = <&phy1>;
80};
81
82&dcan1 {
83 pinctrl-names = "default";
84 pinctrl-0 = <&dcan1_pins>;
85
86 status = "okay";
87};
88
89&gpio0 {
90 gpio-line-names =
91 "MDIO",
92 "MDC",
93 "NC",
94 "NC",
95 "I2C1_SDA",
96 "I2C1_SCL",
97 "NC",
98 "NC",
99 "NC",
100 "NC",
101 "NC",
102 "NC",
103 "NC",
104 "NC",
105 "can_data",
106 "can_error",
107 "onrisc:blue:wlan",
108 "onrisc:green:app",
109 "USB0_DRVVBUS",
110 "ETH2_INT",
111 "NC",
112 "NC",
113 "MMC1_DAT0",
114 "MMC1_DAT1",
115 "NC",
116 "NC",
117 "MMC1_DAT2",
118 "MMC1_DAT3",
119 "NC",
120 "NC",
121 "GPMC_WAIT0",
122 "GPMC_WP_N";
123};
124
125&gpio1 {
126 gpio-line-names =
127 "GPMC_AD0",
128 "GPMC_AD1",
129 "GPMC_AD2",
130 "GPMC_AD3",
131 "GPMC_AD4",
132 "GPMC_AD5",
133 "GPMC_AD6",
134 "GPMC_AD7",
135 "DCAN1_TX",
136 "DCAN1_RX",
137 "CONSOLE_RX",
138 "CONSOLE_TX",
139 "NC",
140 "NC",
141 "NC",
142 "NC",
143 "RGMII2_TCTL",
144 "RGMII2_RCTL",
145 "RGMII2_TD3",
146 "RGMII2_TD2",
147 "RGMII2_TD1",
148 "RGMII2_TD0",
149 "RGMII2_TCLK",
150 "RGMII2_RCLK",
151 "RGMII2_RD3",
152 "RGMII2_RD2",
153 "RGMII2_RD1",
154 "RGMII2_RD0",
155 "PMIC_INT1",
156 "GPMC_CSN0_Flash",
157 "MMC1_CLK",
158 "MMC1_CMD";
159};
160
161&gpio2 {
162 gpio-line-names =
163 "GPMC_CSN3_BUS",
164 "GPMC_CLK",
165 "GPMC_ADVN_ALE",
166 "GPMC_OEN_RE_N",
167 "GPMC_WE_N",
168 "GPMC_BEN0_CLE",
169 "NC",
170 "NC",
171 "NC",
172 "NC",
173 "NC",
174 "NC",
175 "NC",
176 "NC",
177 "NC",
178 "NC",
179 "NC",
180 "NC",
181 "SW2_0",
182 "SW2_1",
183 "NC",
184 "NC",
185 "NC",
186 "NC",
187 "NC",
188 "NC",
189 "MMC0_DAT3",
190 "MMC0_DAT2",
191 "MMC0_DAT1",
192 "MMC0_DAT0",
193 "MMC0_CLK",
194 "MMC0_CMD";
195};
196
197&gpio3 {
198 gpio-line-names =
199 "onrisc:red:power",
200 "NC",
201 "NC",
202 "NC",
203 "NC",
204 "NC",
205 "NC",
206 "WLAN_IRQ",
207 "WLAN_EN",
208 "SW2_2",
209 "SW2_3",
210 "NC",
211 "NC",
212 "NC",
213 "ModeA0",
214 "ModeA1",
215 "ModeA2",
216 "ModeA3",
217 "NC",
218 "NC",
219 "NC",
220 "NC",
221 "NC",
222 "NC",
223 "NC",
224 "NC",
225 "NC",
226 "NC",
227 "NC",
228 "NC",
229 "NC",
230 "NC";
231};