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>
};
ethernet0: ethernet@1b00a300 {
- compatible = "realtek,rtl838x-eth";
+ compatible = "realtek,rtl8380-eth";
reg = <0x1b00a300 0x100>;
interrupt-parent = <&intc>;
interrupts = <24 3>;
};
ethernet0: ethernet@1b00a300 {
- compatible = "realtek,rtl838x-eth";
+ compatible = "realtek,rtl8392-eth";
reg = <0x1b00a300 0x100>;
interrupt-parent = <&intc>;
};
ethernet0: ethernet@1b00a300 {
- compatible = "realtek,rtl838x-eth";
+ compatible = "realtek,rtl9301-eth";
reg = <0x1b00a300 0x100>;
interrupt-parent = <&intc>;
ethernet0: ethernet@1b00a300 {
status = "okay";
- compatible = "realtek,rtl838x-eth";
+ compatible = "realtek,rtl9311-eth";
reg = <0x1b00a300 0x100>;
interrupt-parent = <&gic>;
#interrupt-cells = <3>;
}
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);