realtek: ethernet: split ethernet compatibles
authorMarkus Stockhausen <markus.stockhausen@gmx.de>
Tue, 16 Dec 2025 08:41:37 +0000 (09:41 +0100)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 23 Dec 2025 16:59:11 +0000 (17:59 +0100)
The Realtek Otto ethernet driver currently uses a single compatible
for all different models. Split this into the the four well known
subtargets. This allows to get rid of the central mach/soc include
later.

Signed-off-by: Markus Stockhausen <markus.stockhausen@gmx.de>
Link: https://github.com/openwrt/openwrt/pull/21183
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/realtek/dts/rtl838x.dtsi
target/linux/realtek/dts/rtl839x.dtsi
target/linux/realtek/dts/rtl930x.dtsi
target/linux/realtek/dts/rtl931x.dtsi
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c

index 6a872bcb0f82d8ff383b440ea24d17e7e5f2f40e..7af572aefc727addac5a217f4b2fbb12f70e2eef 100644 (file)
        };
 
        ethernet0: ethernet@1b00a300 {
-               compatible = "realtek,rtl838x-eth";
+               compatible = "realtek,rtl8380-eth";
                reg = <0x1b00a300 0x100>;
                interrupt-parent = <&intc>;
                interrupts = <24 3>;
index 5e92c5071dc22eebbc8846916764abe386bd82fb..7b6eeae1b1889b3be7ca5841271b826cd83f5210 100644 (file)
        };
 
        ethernet0: ethernet@1b00a300 {
-               compatible = "realtek,rtl838x-eth";
+               compatible = "realtek,rtl8392-eth";
                reg = <0x1b00a300 0x100>;
 
                interrupt-parent = <&intc>;
index f358f50417f1de933aca839ee7b6b9af84b361d6..4a5dd2e17a3f8c8d70565707a7f7ebc8a5148fce 100644 (file)
        };
 
        ethernet0: ethernet@1b00a300 {
-               compatible = "realtek,rtl838x-eth";
+               compatible = "realtek,rtl9301-eth";
                reg = <0x1b00a300 0x100>;
 
                interrupt-parent = <&intc>;
index d754ebd5a79a1a9d5c8fe11929604dd95ffccc04..6173f912b9f5f540013b8fae620ea3cfdd01a219 100644 (file)
 
        ethernet0: ethernet@1b00a300 {
                status = "okay";
-               compatible = "realtek,rtl838x-eth";
+               compatible = "realtek,rtl9311-eth";
                reg = <0x1b00a300 0x100>;
                interrupt-parent = <&gic>;
                #interrupt-cells = <3>;
index 59ae4fbb2403e7d80e6feebf02be8da4c49e863b..b30c74b5d6a7a0512b0529aef9297b4304d5bc31 100644 (file)
@@ -1856,7 +1856,10 @@ static void rtl838x_eth_remove(struct platform_device *pdev)
 }
 
 static const struct of_device_id rtl838x_eth_of_ids[] = {
-       { .compatible = "realtek,rtl838x-eth"},
+       { .compatible = "realtek,rtl8380-eth" },
+       { .compatible = "realtek,rtl8392-eth" },
+       { .compatible = "realtek,rtl9301-eth" },
+       { .compatible = "realtek,rtl9311-eth" },
        { /* sentinel */ }
 };
 MODULE_DEVICE_TABLE(of, rtl838x_eth_of_ids);