realtek: ethernet: split ethernet compatibles
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>
This commit is contained in:
parent
53dfb3e2e8
commit
b8f4fb2f3d
@ -334,7 +334,7 @@
|
||||
};
|
||||
|
||||
ethernet0: ethernet@1b00a300 {
|
||||
compatible = "realtek,rtl838x-eth";
|
||||
compatible = "realtek,rtl8380-eth";
|
||||
reg = <0x1b00a300 0x100>;
|
||||
interrupt-parent = <&intc>;
|
||||
interrupts = <24 3>;
|
||||
|
||||
@ -335,7 +335,7 @@
|
||||
};
|
||||
|
||||
ethernet0: ethernet@1b00a300 {
|
||||
compatible = "realtek,rtl838x-eth";
|
||||
compatible = "realtek,rtl8392-eth";
|
||||
reg = <0x1b00a300 0x100>;
|
||||
|
||||
interrupt-parent = <&intc>;
|
||||
|
||||
@ -331,7 +331,7 @@
|
||||
};
|
||||
|
||||
ethernet0: ethernet@1b00a300 {
|
||||
compatible = "realtek,rtl838x-eth";
|
||||
compatible = "realtek,rtl9301-eth";
|
||||
reg = <0x1b00a300 0x100>;
|
||||
|
||||
interrupt-parent = <&intc>;
|
||||
|
||||
@ -391,7 +391,7 @@
|
||||
|
||||
ethernet0: ethernet@1b00a300 {
|
||||
status = "okay";
|
||||
compatible = "realtek,rtl838x-eth";
|
||||
compatible = "realtek,rtl9311-eth";
|
||||
reg = <0x1b00a300 0x100>;
|
||||
interrupt-parent = <&gic>;
|
||||
#interrupt-cells = <3>;
|
||||
|
||||
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user