18c2ecf20Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only
28c2ecf20Sopenharmony_ci/*
38c2ecf20Sopenharmony_ci * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/
48c2ecf20Sopenharmony_ci */
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci/*
78c2ecf20Sopenharmony_ci * VScom OnRISC
88c2ecf20Sopenharmony_ci * http://www.vscom.de
98c2ecf20Sopenharmony_ci */
108c2ecf20Sopenharmony_ci
118c2ecf20Sopenharmony_ci/dts-v1/;
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#include "am335x-baltos.dtsi"
148c2ecf20Sopenharmony_ci#include "am335x-baltos-leds.dtsi"
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci/ {
178c2ecf20Sopenharmony_ci	model = "NetCom Plus";
188c2ecf20Sopenharmony_ci};
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci&am33xx_pinmux {
218c2ecf20Sopenharmony_ci	uart1_pins: pinmux_uart1_pins {
228c2ecf20Sopenharmony_ci		pinctrl-single,pins = <
238c2ecf20Sopenharmony_ci			AM33XX_PADCONF(AM335X_PIN_UART1_RXD, PIN_INPUT, MUX_MODE0)			/* RX */
248c2ecf20Sopenharmony_ci			AM33XX_PADCONF(AM335X_PIN_UART1_TXD, PIN_INPUT, MUX_MODE0)			/* TX */
258c2ecf20Sopenharmony_ci			AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT_PULLDOWN, MUX_MODE0)		/* CTS */
268c2ecf20Sopenharmony_ci			AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_OUTPUT_PULLDOWN, MUX_MODE0)		/* RTS */
278c2ecf20Sopenharmony_ci			AM33XX_PADCONF(AM335X_PIN_LCD_VSYNC, PIN_OUTPUT_PULLDOWN, MUX_MODE7)		/* DTR */
288c2ecf20Sopenharmony_ci			AM33XX_PADCONF(AM335X_PIN_LCD_HSYNC, PIN_INPUT_PULLDOWN, MUX_MODE7)		/* DSR */
298c2ecf20Sopenharmony_ci			AM33XX_PADCONF(AM335X_PIN_LCD_PCLK, PIN_INPUT_PULLDOWN, MUX_MODE7)		/* DCD */
308c2ecf20Sopenharmony_ci			AM33XX_PADCONF(AM335X_PIN_LCD_AC_BIAS_EN, PIN_INPUT_PULLDOWN, MUX_MODE7)	/* RI */
318c2ecf20Sopenharmony_ci		>;
328c2ecf20Sopenharmony_ci	};
338c2ecf20Sopenharmony_ci
348c2ecf20Sopenharmony_ci	uart2_pins: pinmux_uart2_pins {
358c2ecf20Sopenharmony_ci		pinctrl-single,pins = <
368c2ecf20Sopenharmony_ci			AM33XX_PADCONF(AM335X_PIN_SPI0_SCLK, PIN_INPUT, MUX_MODE1)		/* RX */
378c2ecf20Sopenharmony_ci			AM33XX_PADCONF(AM335X_PIN_SPI0_D0, PIN_OUTPUT, MUX_MODE1)      		/* TX */
388c2ecf20Sopenharmony_ci			AM33XX_PADCONF(AM335X_PIN_I2C0_SDA, PIN_INPUT_PULLDOWN, MUX_MODE2)	/* CTS */
398c2ecf20Sopenharmony_ci			AM33XX_PADCONF(AM335X_PIN_I2C0_SCL, PIN_OUTPUT_PULLDOWN, MUX_MODE2)	/* RTS */
408c2ecf20Sopenharmony_ci			AM33XX_PADCONF(AM335X_PIN_GPMC_AD12, PIN_OUTPUT_PULLDOWN, MUX_MODE7)	/* DTR */
418c2ecf20Sopenharmony_ci			AM33XX_PADCONF(AM335X_PIN_GPMC_AD13, PIN_INPUT_PULLDOWN, MUX_MODE7)	/* DSR */
428c2ecf20Sopenharmony_ci			AM33XX_PADCONF(AM335X_PIN_GPMC_AD14, PIN_INPUT_PULLDOWN, MUX_MODE7)	/* DCD */
438c2ecf20Sopenharmony_ci			AM33XX_PADCONF(AM335X_PIN_GPMC_AD15, PIN_INPUT_PULLDOWN, MUX_MODE7)	/* RI */
448c2ecf20Sopenharmony_ci		>;
458c2ecf20Sopenharmony_ci	};
468c2ecf20Sopenharmony_ci};
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci&usb0_phy {
498c2ecf20Sopenharmony_ci	status = "okay";
508c2ecf20Sopenharmony_ci};
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ci&usb0 {
538c2ecf20Sopenharmony_ci	status = "okay";
548c2ecf20Sopenharmony_ci	dr_mode = "host";
558c2ecf20Sopenharmony_ci};
568c2ecf20Sopenharmony_ci
578c2ecf20Sopenharmony_ci&uart1 {
588c2ecf20Sopenharmony_ci	pinctrl-names = "default";
598c2ecf20Sopenharmony_ci	pinctrl-0 = <&uart1_pins>;
608c2ecf20Sopenharmony_ci	dtr-gpios = <&gpio2 22 GPIO_ACTIVE_LOW>;
618c2ecf20Sopenharmony_ci	dsr-gpios = <&gpio2 23 GPIO_ACTIVE_LOW>;
628c2ecf20Sopenharmony_ci	dcd-gpios = <&gpio2 24 GPIO_ACTIVE_LOW>;
638c2ecf20Sopenharmony_ci	rng-gpios = <&gpio2 25 GPIO_ACTIVE_LOW>;
648c2ecf20Sopenharmony_ci
658c2ecf20Sopenharmony_ci	status = "okay";
668c2ecf20Sopenharmony_ci};
678c2ecf20Sopenharmony_ci
688c2ecf20Sopenharmony_ci&uart2 {
698c2ecf20Sopenharmony_ci	pinctrl-names = "default";
708c2ecf20Sopenharmony_ci	pinctrl-0 = <&uart2_pins>;
718c2ecf20Sopenharmony_ci	dtr-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
728c2ecf20Sopenharmony_ci	dsr-gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
738c2ecf20Sopenharmony_ci	dcd-gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
748c2ecf20Sopenharmony_ci	rng-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
758c2ecf20Sopenharmony_ci
768c2ecf20Sopenharmony_ci	status = "okay";
778c2ecf20Sopenharmony_ci};
788c2ecf20Sopenharmony_ci
798c2ecf20Sopenharmony_ci&davinci_mdio {
808c2ecf20Sopenharmony_ci	phy0: ethernet-phy@0 {
818c2ecf20Sopenharmony_ci		reg = <1>;
828c2ecf20Sopenharmony_ci	};
838c2ecf20Sopenharmony_ci};
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_ci&cpsw_emac0 {
868c2ecf20Sopenharmony_ci	phy-mode = "rmii";
878c2ecf20Sopenharmony_ci	dual_emac_res_vlan = <1>;
888c2ecf20Sopenharmony_ci	phy-handle = <&phy0>;
898c2ecf20Sopenharmony_ci};
908c2ecf20Sopenharmony_ci
918c2ecf20Sopenharmony_ci&cpsw_emac1 {
928c2ecf20Sopenharmony_ci	phy-mode = "rgmii-id";
938c2ecf20Sopenharmony_ci	dual_emac_res_vlan = <2>;
948c2ecf20Sopenharmony_ci	phy-handle = <&phy1>;
958c2ecf20Sopenharmony_ci};
96