Skip to content

Commit dea58b2

Browse files
committed
rockchip64-6.19: arm64: dts: rockchip: describe pcie ethernets on FriendlyElec NanoPC-T6
- By fully describing the pcie hardware for the RTL8125s (rtl8169) present on the board, we get to alias them to ethernet0/1. In return, (mainline) u-boot will by default patch the runtime FDT though it's fdt_fixup_ethernet() implementation, hopefully resulting in fully stable MAC addresses without the need to program the RTL NIC's EEPROM; as an added benefit, u-boot MAC & kernel MAC would match, facilitating network-boot setups.
1 parent 25f6eec commit dea58b2

File tree

1 file changed

+82
-0
lines changed

1 file changed

+82
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
From f3ef6e087cad782b07043f67b8585b421cb8db81 Mon Sep 17 00:00:00 2001
2+
From: Ricardo Pardini <[email protected]>
3+
Date: Mon, 12 Jan 2026 19:25:15 +0100
4+
Subject: [PATCH] arm64: dts: rockchip: describe pcie ethernets on FriendlyElec
5+
NanoPC-T6
6+
7+
By fully describing the pcie hardware for the RTL8125s (rtl8169) present on the
8+
board, we get to alias them to ethernet0/1. In return, (mainline) u-boot will by
9+
default patch the runtime FDT though it's fdt_fixup_ethernet() implementation,
10+
hopefully resulting in fully stable MAC addresses without the need to program
11+
the RTL NIC's EEPROM; as an added benefit, u-boot MAC & kernel MAC would match,
12+
facilitating network-boot setups.
13+
14+
Signed-off-by: Ricardo Pardini <[email protected]>
15+
---
16+
.../boot/dts/rockchip/rk3588-nanopc-t6.dtsi | 36 +++++++++++++++++++
17+
1 file changed, 36 insertions(+)
18+
19+
diff --git a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi
20+
index 90e7fe254491b..a51c609ba4edc 100644
21+
--- a/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi
22+
+++ b/arch/arm64/boot/dts/rockchip/rk3588-nanopc-t6.dtsi
23+
@@ -21,6 +21,8 @@ / {
24+
aliases {
25+
mmc0 = &sdhci;
26+
mmc1 = &sdmmc;
27+
+ ethernet0 = &ethernet0;
28+
+ ethernet1 = &ethernet1;
29+
};
30+
31+
adc-keys-0 {
32+
@@ -604,6 +606,23 @@ &pcie2x1l1 {
33+
pinctrl-names = "default";
34+
pinctrl-0 = <&pcie2_1_rst>;
35+
status = "okay";
36+
+
37+
+ pcie@0,0 {
38+
+ reg = <0x200000 0 0 0 0>;
39+
+ #address-cells = <3>;
40+
+ #size-cells = <2>;
41+
+ ranges;
42+
+ device_type = "pci";
43+
+ bus-range = <0x20 0x2f>;
44+
+
45+
+ ethernet0: ethernet@0,0 {
46+
+ compatible = "pci10ec,8125";
47+
+ reg = <0x210000 0 0 0 0>;
48+
+ device_type = "network";
49+
+ status = "okay";
50+
+ mac-address = [00 00 00 00 00 00]; // to be patched by U-Boot
51+
+ };
52+
+ };
53+
};
54+
55+
&pcie2x1l2 {
56+
@@ -612,6 +631,23 @@ &pcie2x1l2 {
57+
pinctrl-names = "default";
58+
pinctrl-0 = <&pcie2_2_rst>;
59+
status = "okay";
60+
+
61+
+ pcie@0,0 {
62+
+ reg = <0x400000 0 0 0 0>;
63+
+ #address-cells = <3>;
64+
+ #size-cells = <2>;
65+
+ ranges;
66+
+ device_type = "pci";
67+
+ bus-range = <0x40 0x4f>;
68+
+
69+
+ ethernet1: ethernet@0,0 {
70+
+ compatible = "pci10ec,8125";
71+
+ reg = <0x410000 0 0 0 0>;
72+
+ device_type = "network";
73+
+ status = "okay";
74+
+ mac-address = [00 00 00 00 00 00]; // to be patched by U-Boot
75+
+ };
76+
+ };
77+
};
78+
79+
&pcie30phy {
80+
--
81+
2.52.0
82+

0 commit comments

Comments
 (0)