Skip to content

Instantly share code, notes, and snippets.

@BrokenR3C0RD
Created November 4, 2024 04:27
Show Gist options
  • Save BrokenR3C0RD/c12261e7e3e8df2d0c3e26d57cf0de3f to your computer and use it in GitHub Desktop.
Save BrokenR3C0RD/c12261e7e3e8df2d0c3e26d57cf0de3f to your computer and use it in GitHub Desktop.
RTL8211F on A100
&emac {
pinctrl-names = "default";
pinctrl-0 = <&rgmii_pins>;
phy-mode = "rgmii-id";
phy-handle = <&ext_rgmii_phy>;
phy-supply = <&reg_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