[openwrt/openwrt] realtek: align DT macros in RTL839X with RTL838X

LEDE Commits lede-commits at lists.infradead.org
Sat Sep 17 12:33:42 PDT 2022


svanheule pushed a commit to openwrt/openwrt.git, branch master:
https://git.openwrt.org/9ed1a1138eba30d0b191e1806217d0a2022402e9

commit 9ed1a1138eba30d0b191e1806217d0a2022402e9
Author: Markus Stockhausen <markus.stockhausen at gmx.de>
AuthorDate: Sat Sep 17 19:06:33 2022 +0200

    realtek: align DT macros in RTL839X with RTL838X
    
    Add a missing definition to the RTL839X DT.
    
    Signed-off-by: Markus Stockhausen <markus.stockhausen at gmx.de>
---
 target/linux/realtek/dts-5.10/rtl839x.dtsi | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/target/linux/realtek/dts-5.10/rtl839x.dtsi b/target/linux/realtek/dts-5.10/rtl839x.dtsi
index 2091fe0ba3..78e2454b7e 100644
--- a/target/linux/realtek/dts-5.10/rtl839x.dtsi
+++ b/target/linux/realtek/dts-5.10/rtl839x.dtsi
@@ -29,6 +29,13 @@
 		reg = <##n>; \
 	};
 
+#define EXTERNAL_SFP_PHY_FULL(n, s) \
+	phy##n: ethernet-phy@##n { \
+		compatible = "ethernet-phy-ieee802.3-c22"; \
+		sfp = <&sfp##s>; \
+		reg = <##n>; \
+	};
+
 #define SWITCH_PORT(n, s, m) \
 	port@##n { \
 		reg = <##n>; \




More information about the lede-commits mailing list