From: Ricardo Pardini The FriendlyElec NanoPi R6C carries one on-board Realtek RTL8125 NIC (the LAN port; WAN uses the on-SoC gmac1 RGMII PHY) behind pcie2x1l1. Describe the fixed function node and attach an ethernet1 alias (ethernet0 stays mapped to gmac1), so that U-Boot's fdt_fixup_ethernet() can inject a mac-address from its eth1addr env, for a stable MAC across boots that both U-Boot and the kernel agree on. The function node is added in this .dts (not the shared rk3588s-nanopi-r6.dtsi), since on the R6C the dtsi's second RTL8125-capable lane is empty compared to the R6S. Signed-off-by: Ricardo Pardini --- arch/arm64/boot/dts/rockchip/rk3588s-nanopi-r6c.dts | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s-nanopi-r6c.dts b/arch/arm64/boot/dts/rockchip/rk3588s-nanopi-r6c.dts index ccc5e46275176..b142df0b0e180 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s-nanopi-r6c.dts +++ b/arch/arm64/boot/dts/rockchip/rk3588s-nanopi-r6c.dts @@ -7,8 +7,29 @@ / { model = "FriendlyElec NanoPi R6C"; compatible = "friendlyarm,nanopi-r6c", "rockchip,rk3588s"; + + aliases { + ethernet1 = &rtl_eth1; + }; }; &lan2_led { label = "user_led"; }; + +&pcie2x1l1 { + /* on-board RTL8125 2.5GbE NIC */ + pcie@0,0 { + reg = <0x300000 0 0 0 0>; + #address-cells = <3>; + #size-cells = <2>; + ranges; + device_type = "pci"; + bus-range = <0x30 0x3f>; + + rtl_eth1: ethernet@0,0 { + compatible = "pci10ec,8125"; + reg = <0x310000 0 0 0 0>; + }; + }; +}; -- 2.55.0