84 lines
1.8 KiB
Plaintext
84 lines
1.8 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
|
|
|
|
/dts-v1/;
|
|
|
|
#include "rk3568-hinlink-opc.dtsi"
|
|
|
|
/ {
|
|
model = "HINLINK H68K";
|
|
compatible = "hinlink,h68k", "rockchip,rk3568";
|
|
|
|
aliases {
|
|
ethernet0 = &gmac0;
|
|
ethernet1 = &gmac1;
|
|
};
|
|
};
|
|
|
|
&gmac0 {
|
|
assigned-clocks = <&cru SCLK_GMAC0_RX_TX>, <&cru SCLK_GMAC0>;
|
|
assigned-clock-parents = <&cru SCLK_GMAC0_RGMII_SPEED>;
|
|
assigned-clock-rates = <0>, <125000000>;
|
|
clock_in_out = "output";
|
|
phy-handle = <&rgmii_phy0>;
|
|
phy-mode = "rgmii-id";
|
|
phy-supply = <&vcc3v3_sys>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&gmac0_miim
|
|
&gmac0_tx_bus2
|
|
&gmac0_rx_bus2
|
|
&gmac0_rgmii_clk
|
|
&gmac0_rgmii_bus
|
|
&gmac0_rstn>;
|
|
status = "okay";
|
|
};
|
|
|
|
&gmac1 {
|
|
assigned-clocks = <&cru SCLK_GMAC1_RX_TX>, <&cru SCLK_GMAC1>;
|
|
assigned-clock-parents = <&cru SCLK_GMAC1_RGMII_SPEED>;
|
|
assigned-clock-rates = <0>, <125000000>;
|
|
clock_in_out = "output";
|
|
phy-handle = <&rgmii_phy1>;
|
|
phy-mode = "rgmii-id";
|
|
phy-supply = <&vcc3v3_sys>;
|
|
pinctrl-names = "default";
|
|
pinctrl-0 = <&gmac1m1_miim
|
|
&gmac1m1_tx_bus2
|
|
&gmac1m1_rx_bus2
|
|
&gmac1m1_rgmii_clk
|
|
&gmac1m1_rgmii_bus
|
|
&gmac1_rstn>;
|
|
status = "okay";
|
|
};
|
|
|
|
&mdio0 {
|
|
rgmii_phy0: ethernet-phy@1 {
|
|
compatible = "ethernet-phy-ieee802.3-c22";
|
|
reg = <0x1>;
|
|
reset-assert-us = <20000>;
|
|
reset-deassert-us = <100000>;
|
|
reset-gpios = <&gpio2 RK_PD3 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
&mdio1 {
|
|
rgmii_phy1: ethernet-phy@1 {
|
|
compatible = "ethernet-phy-ieee802.3-c22";
|
|
reg = <0x1>;
|
|
reset-assert-us = <20000>;
|
|
reset-deassert-us = <100000>;
|
|
reset-gpios = <&gpio1 RK_PB0 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
&pinctrl {
|
|
gmac {
|
|
gmac0_rstn: gmac0-rstn {
|
|
rockchip,pins = <2 RK_PD3 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
|
|
gmac1_rstn: gmac1-rstn {
|
|
rockchip,pins = <1 RK_PB0 RK_FUNC_GPIO &pcfg_pull_none>;
|
|
};
|
|
};
|
|
};
|