162306a36Sopenharmony_ci// SPDX-License-Identifier: GPL-2.0-only 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * Copyright (C) 2012 Texas Instruments Incorporated - https://www.ti.com/ 462306a36Sopenharmony_ci */ 562306a36Sopenharmony_ci 662306a36Sopenharmony_ci&am33xx_pinmux { 762306a36Sopenharmony_ci cpsw_default: cpsw-default-pins { 862306a36Sopenharmony_ci pinctrl-single,pins = < 962306a36Sopenharmony_ci /* Slave 1 */ 1062306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_TX_EN, PIN_OUTPUT_PULLDOWN, MUX_MODE2) /* mii1_txen.rgmii1_tctl */ 1162306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_RX_DV, PIN_INPUT_PULLDOWN, MUX_MODE2) /* mii1_rxdv.rgmii1_rctl */ 1262306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_OUTPUT_PULLDOWN, MUX_MODE2) /* mii1_txd3.rgmii1_td3 */ 1362306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_OUTPUT_PULLDOWN, MUX_MODE2) /* mii1_txd2.rgmii1_td2 */ 1462306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_TXD1, PIN_OUTPUT_PULLDOWN, MUX_MODE2) /* mii1_txd1.rgmii1_td1 */ 1562306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_OUTPUT_PULLDOWN, MUX_MODE2) /* mii1_txd0.rgmii1_td0 */ 1662306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_TX_CLK, PIN_OUTPUT_PULLDOWN, MUX_MODE2) /* mii1_txclk.rgmii1_tclk */ 1762306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_RX_CLK, PIN_INPUT_PULLDOWN, MUX_MODE2) /* mii1_rxclk.rgmii1_rclk */ 1862306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_RXD3, PIN_INPUT_PULLDOWN, MUX_MODE2) /* mii1_rxd3.rgmii1_rd3 */ 1962306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_RXD2, PIN_INPUT_PULLDOWN, MUX_MODE2) /* mii1_rxd2.rgmii1_rd2 */ 2062306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_RXD1, PIN_INPUT_PULLDOWN, MUX_MODE2) /* mii1_rxd1.rgmii1_rd1 */ 2162306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_RXD0, PIN_INPUT_PULLDOWN, MUX_MODE2) /* mii1_rxd0.rgmii1_rd0 */ 2262306a36Sopenharmony_ci >; 2362306a36Sopenharmony_ci }; 2462306a36Sopenharmony_ci 2562306a36Sopenharmony_ci cpsw_sleep: cpsw-sleep-pins { 2662306a36Sopenharmony_ci pinctrl-single,pins = < 2762306a36Sopenharmony_ci /* Slave 1 reset value */ 2862306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_TX_EN, PIN_INPUT_PULLDOWN, MUX_MODE7) 2962306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_RX_DV, PIN_INPUT_PULLDOWN, MUX_MODE7) 3062306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_TXD3, PIN_INPUT_PULLDOWN, MUX_MODE7) 3162306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_TXD2, PIN_INPUT_PULLDOWN, MUX_MODE7) 3262306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_TXD1, PIN_INPUT_PULLDOWN, MUX_MODE7) 3362306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_TXD0, PIN_INPUT_PULLDOWN, MUX_MODE7) 3462306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_TX_CLK, PIN_INPUT_PULLDOWN, MUX_MODE7) 3562306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_RX_CLK, PIN_INPUT_PULLDOWN, MUX_MODE7) 3662306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_RXD3, PIN_INPUT_PULLDOWN, MUX_MODE7) 3762306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_RXD2, PIN_INPUT_PULLDOWN, MUX_MODE7) 3862306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_RXD1, PIN_INPUT_PULLDOWN, MUX_MODE7) 3962306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_MII1_RXD0, PIN_INPUT_PULLDOWN, MUX_MODE7) 4062306a36Sopenharmony_ci >; 4162306a36Sopenharmony_ci }; 4262306a36Sopenharmony_ci 4362306a36Sopenharmony_ci usb_hub_ctrl: usb-hub-ctrl-pins { 4462306a36Sopenharmony_ci pinctrl-single,pins = < 4562306a36Sopenharmony_ci AM33XX_PADCONF(AM335X_PIN_RMII1_REF_CLK, PIN_OUTPUT_PULLUP, MUX_MODE7) /* rmii1_refclk.gpio0_29 */ 4662306a36Sopenharmony_ci >; 4762306a36Sopenharmony_ci }; 4862306a36Sopenharmony_ci}; 4962306a36Sopenharmony_ci 5062306a36Sopenharmony_ci&mac_sw { 5162306a36Sopenharmony_ci pinctrl-0 = <&cpsw_default>; 5262306a36Sopenharmony_ci pinctrl-1 = <&cpsw_sleep>; 5362306a36Sopenharmony_ci}; 5462306a36Sopenharmony_ci 5562306a36Sopenharmony_ci&cpsw_port1 { 5662306a36Sopenharmony_ci phy-mode = "rgmii-id"; 5762306a36Sopenharmony_ci}; 5862306a36Sopenharmony_ci 5962306a36Sopenharmony_ci&i2c0 { 6062306a36Sopenharmony_ci usb2512b: usb-hub@2c { 6162306a36Sopenharmony_ci pinctrl-names = "default"; 6262306a36Sopenharmony_ci pinctrl-0 = <&usb_hub_ctrl>; 6362306a36Sopenharmony_ci compatible = "microchip,usb2512b"; 6462306a36Sopenharmony_ci reg = <0x2c>; 6562306a36Sopenharmony_ci reset-gpios = <&gpio0 29 GPIO_ACTIVE_LOW>; 6662306a36Sopenharmony_ci }; 6762306a36Sopenharmony_ci}; 68