Back to home page

OSCL-LXR

 
 

    


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 
0015 / {
0016         model = "NetCom Plus";
0017 };
0018 
0019 &am33xx_pinmux {
0020         pinctrl-names = "default";
0021         pinctrl-0 = <&dip_switches>;
0022 
0023         dip_switches: pinmux_dip_switches {
0024                 pinctrl-single,pins = <
0025                         AM33XX_PADCONF(AM335X_PIN_GPMC_AD12, PIN_INPUT_PULLDOWN, MUX_MODE7)
0026                         AM33XX_PADCONF(AM335X_PIN_GPMC_AD13, PIN_INPUT_PULLDOWN, MUX_MODE7)
0027                         AM33XX_PADCONF(AM335X_PIN_GPMC_AD14, PIN_INPUT_PULLDOWN, MUX_MODE7)
0028                         AM33XX_PADCONF(AM335X_PIN_GPMC_AD15, PIN_INPUT_PULLDOWN, MUX_MODE7)
0029                 >;
0030         };
0031 
0032         tca6416_pins: pinmux_tca6416_pins {
0033                 pinctrl-single,pins = <
0034                         AM33XX_PADCONF(AM335X_PIN_XDMA_EVENT_INTR1, PIN_INPUT_PULLUP, MUX_MODE7)
0035                 >;
0036         };
0037 
0038         i2c2_pins: pinmux_i2c2_pins {
0039                 pinctrl-single,pins = <
0040                         AM33XX_PADCONF(AM335X_PIN_UART1_CTSN, PIN_INPUT_PULLDOWN, MUX_MODE3)
0041                         AM33XX_PADCONF(AM335X_PIN_UART1_RTSN, PIN_INPUT_PULLDOWN, MUX_MODE3)
0042                 >;
0043         };
0044 };
0045 
0046 &usb0_phy {
0047         status = "okay";
0048 };
0049 
0050 &usb1_phy {
0051         status = "okay";
0052 };
0053 
0054 &usb0 {
0055         status = "okay";
0056         dr_mode = "host";
0057 };
0058 
0059 &usb1 {
0060         status = "okay";
0061         dr_mode = "host";
0062 };
0063 
0064 &i2c1 {
0065         tca6416a: gpio@20 {
0066                 compatible = "ti,tca6416";
0067                 reg = <0x20>;
0068                 gpio-controller;
0069                 #gpio-cells = <2>;
0070                 interrupt-parent = <&gpio0>;
0071                 interrupts = <20 IRQ_TYPE_EDGE_RISING>;
0072                 pinctrl-names = "default";
0073                 pinctrl-0 = <&tca6416_pins>;
0074         };
0075 };
0076 
0077 &i2c2 {
0078         pinctrl-names = "default";
0079         pinctrl-0 = <&i2c2_pins>;
0080 
0081         status = "okay";
0082         clock-frequency = <400000>;
0083 
0084         tca6416b: gpio@20 {
0085                 compatible = "ti,tca6416";
0086                 reg = <0x20>;
0087                 gpio-controller;
0088                 #gpio-cells = <2>;
0089         };
0090 
0091         tca6416c: gpio@21 {
0092                 compatible = "ti,tca6416";
0093                 reg = <0x21>;
0094                 gpio-controller;
0095                 #gpio-cells = <2>;
0096         };
0097 };
0098 
0099 &davinci_mdio_sw {
0100         phy0: ethernet-phy@0 {
0101                 reg = <1>;
0102         };
0103 };
0104 
0105 &cpsw_port1 {
0106         phy-mode = "rmii";
0107         ti,dual-emac-pvid = <1>;
0108         phy-handle = <&phy0>;
0109 };
0110 
0111 &cpsw_port2 {
0112         phy-mode = "rgmii-id";
0113         ti,dual-emac-pvid = <2>;
0114         phy-handle = <&phy1>;
0115 };