| // SPDX-License-Identifier: (GPL-2.0+ OR MIT) |
| |
| /dts-v1/; |
| |
| #include "rk3528-rock-2.dtsi" |
| |
| / { |
| model = "Radxa ROCK 2A"; |
| compatible = "radxa,rock-2a", "rockchip,rk3528"; |
| |
| aliases { |
| ethernet0 = &gmac1; |
| }; |
| |
| vcc5v0_usb30_otg: regulator-5v0-vcc-usb30-otg { |
| compatible = "regulator-fixed"; |
| enable-active-high; |
| gpios = <&gpio1 RK_PC3 GPIO_ACTIVE_HIGH>; |
| pinctrl-names = "default"; |
| pinctrl-0 = <&usb_otg_en>; |
| regulator-name = "vcc5v0_usb30_otg"; |
| regulator-min-microvolt = <5000000>; |
| regulator-max-microvolt = <5000000>; |
| vin-supply = <&vcc5v0_sys>; |
| }; |
| }; |
| |
| &gmac1 { |
| clock_in_out = "output"; |
| phy-handle = <&rgmii_phy>; |
| phy-mode = "rgmii-id"; |
| phy-supply = <&vcc_3v3>; |
| pinctrl-names = "default"; |
| pinctrl-0 = <&rgmii_miim>, <&rgmii_tx_bus2>, <&rgmii_rx_bus2>, |
| <&rgmii_rgmii_clk>, <&rgmii_rgmii_bus>; |
| status = "okay"; |
| }; |
| |
| &leds { |
| pinctrl-names = "default"; |
| pinctrl-0 = <&state_led_b>, <&sys_led_g>; |
| |
| led-1 { |
| color = <LED_COLOR_ID_GREEN>; |
| default-state = "on"; |
| function = LED_FUNCTION_STATUS; |
| gpios = <&gpio3 RK_PC1 GPIO_ACTIVE_LOW>; |
| linux,default-trigger = "default-on"; |
| }; |
| }; |
| |
| &mdio1 { |
| rgmii_phy: ethernet-phy@1 { |
| compatible = "ethernet-phy-ieee802.3-c22"; |
| reg = <0x1>; |
| pinctrl-names = "default"; |
| pinctrl-0 = <&gmac1_rstn_l>; |
| reset-assert-us = <20000>; |
| reset-deassert-us = <100000>; |
| reset-gpios = <&gpio4 RK_PC2 GPIO_ACTIVE_LOW>; |
| }; |
| }; |
| |
| &pinctrl { |
| ethernet { |
| gmac1_rstn_l: gmac1-rstn-l { |
| rockchip,pins = <4 RK_PC2 RK_FUNC_GPIO &pcfg_pull_none>; |
| }; |
| }; |
| |
| leds { |
| sys_led_g: sys-led-g { |
| rockchip,pins = <3 RK_PC1 RK_FUNC_GPIO &pcfg_pull_none>; |
| }; |
| }; |
| |
| usb { |
| usb_otg_en: usb-otg-en { |
| rockchip,pins = <1 RK_PC3 RK_FUNC_GPIO &pcfg_pull_none>; |
| }; |
| }; |
| }; |