-
-
Save BrokenR3C0RD/c12261e7e3e8df2d0c3e26d57cf0de3f to your computer and use it in GitHub Desktop.
RTL8211F on A100
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
&emac { | |
pinctrl-names = "default"; | |
pinctrl-0 = <&rgmii_pins>; | |
phy-mode = "rgmii-id"; | |
phy-handle = <&ext_rgmii_phy>; | |
phy-supply = <®_aldo2>; // change me | |
allwinner,tx-delay-ps = <700>; // tx-delay * 100 | |
allwinner,rx-delay-ps = <0>; // rx-delay * 100 | |
status = "okay"; | |
}; | |
&mdio { | |
status = "okay"; | |
ext_rgmii_phy: ethernet-phy@0 { | |
/* RTL8211F */ | |
reg = <0>; | |
compatible = "ethernet-phy-id001c.c916"; | |
max-speed = <1000>; | |
reset-assert-us = <15000>; | |
reset-deassert-us = <55000>; | |
realtek,clkout-disable; /* optional */ | |
clocks = <&ccu CLK_EMAC_25M>; // if your PHY is externally clocked, fix! | |
reset-gpios = <&pio 7 11 GPIO_ACTIVE_LOW> /* PH11, change me */; | |
leds { | |
#address-cells = <1>; | |
#size-cells = <0>; | |
led@0 { | |
reg = <0>; | |
color = <LED_COLOR_ID_GREEN>; | |
function = LED_FUNCTION_WAN; | |
linux,default-trigger = "netdev"; | |
}; | |
led@1 { | |
reg = <1>; | |
color = <LED_COLOR_ID_YELLOW>; | |
function = LED_FUNCTION_WAN; | |
linux,default-trigger = "netdev"; | |
}; | |
}; | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment