0001 // SPDX-License-Identifier: GPL-2.0-only
0002 /*
0003 * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
0004 */
0005
0006 /*
0007 * VScom OnRISC
0008 * http://www.vscom.de
0009 */
0010
0011 /dts-v1/;
0012
0013 #include "am335x-baltos.dtsi"
0014 #include "am335x-baltos-leds.dtsi"
0015
0016 / {
0017 model = "NetCAN";
0018
0019 leds {
0020 pinctrl-names = "default";
0021 pinctrl-0 = <&user_leds_s0>;
0022
0023 compatible = "gpio-leds";
0024
0025 led@1 {
0026 label = "can_data";
0027 linux,default-trigger = "netdev";
0028 gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
0029 default-state = "off";
0030 };
0031 led@2 {
0032 label = "can_error";
0033 gpios = <&gpio0 15 GPIO_ACTIVE_LOW>;
0034 default-state = "off";
0035 };
0036 };
0037 };
0038
0039 &am33xx_pinmux {
0040 user_leds_s0: user_leds_s0 {
0041 pinctrl-single,pins = <
0042 AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* CAN Data LED */
0043 AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_OUTPUT_PULLDOWN, MUX_MODE7) /* CAN Error LED */
0044 >;
0045 };
0046
0047 dcan1_pins: pinmux_dcan1_pins {
0048 pinctrl-single,pins = <
0049 AM33XX_PADCONF(AM335X_PIN_UART0_CTSN, PIN_OUTPUT, MUX_MODE2) /* CAN TX */
0050 AM33XX_PADCONF(AM335X_PIN_UART0_RTSN, PIN_INPUT, MUX_MODE2) /* CAN RX */
0051 >;
0052 };
0053 };
0054
0055 &usb0_phy {
0056 status = "okay";
0057 };
0058
0059 &usb0 {
0060 status = "okay";
0061 dr_mode = "host";
0062 };
0063
0064 &davinci_mdio_sw {
0065 phy0: ethernet-phy@0 {
0066 reg = <1>;
0067 };
0068 };
0069
0070 &cpsw_port1 {
0071 phy-mode = "rmii";
0072 ti,dual-emac-pvid = <1>;
0073 phy-handle = <&phy0>;
0074 };
0075
0076 &cpsw_port2 {
0077 phy-mode = "rgmii-id";
0078 ti,dual-emac-pvid = <2>;
0079 phy-handle = <&phy1>;
0080 };
0081
0082 &dcan1 {
0083 pinctrl-names = "default";
0084 pinctrl-0 = <&dcan1_pins>;
0085
0086 status = "okay";
0087 };