realtek: ethernet: relocate ethernet below switchcore in DTS
The ethernet driver uses registers in the switchcore range. Rearrange the DTS nodes accordingly. This allows to make use of regmap with syscon_node_to_regmap(np->parent) 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
48305cccce
commit
20a25b9ffa
@ -205,6 +205,19 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
ethernet0: ethernet {
|
||||
compatible = "realtek,rtl8380-eth";
|
||||
interrupt-parent = <&intc>;
|
||||
interrupts = <24 3>;
|
||||
#interrupt-cells = <1>;
|
||||
phy-mode = "internal";
|
||||
|
||||
fixed-link {
|
||||
speed = <1000>;
|
||||
full-duplex;
|
||||
};
|
||||
};
|
||||
|
||||
mdio_ctrl: mdio-controller {
|
||||
compatible = "realtek,rtl8380-mdio", "realtek,otto-mdio";
|
||||
#address-cells = <1>;
|
||||
@ -333,20 +346,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
ethernet0: ethernet@1b00a300 {
|
||||
compatible = "realtek,rtl8380-eth";
|
||||
reg = <0x1b00a300 0x100>;
|
||||
interrupt-parent = <&intc>;
|
||||
interrupts = <24 3>;
|
||||
#interrupt-cells = <1>;
|
||||
phy-mode = "internal";
|
||||
|
||||
fixed-link {
|
||||
speed = <1000>;
|
||||
full-duplex;
|
||||
};
|
||||
};
|
||||
|
||||
sram0: sram@9f000000 {
|
||||
compatible = "mmio-sram";
|
||||
reg = <0x9f000000 0x10000>;
|
||||
|
||||
@ -213,6 +213,19 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
ethernet0: ethernet {
|
||||
compatible = "realtek,rtl8392-eth";
|
||||
interrupt-parent = <&intc>;
|
||||
interrupts = <24 3>;
|
||||
#interrupt-cells = <1>;
|
||||
phy-mode = "internal";
|
||||
|
||||
fixed-link {
|
||||
speed = <1000>;
|
||||
full-duplex;
|
||||
};
|
||||
};
|
||||
|
||||
mdio_ctrl: mdio-controller {
|
||||
compatible = "realtek,rtl8392-mdio", "realtek,otto-mdio";
|
||||
#address-cells = <1>;
|
||||
@ -334,21 +347,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
ethernet0: ethernet@1b00a300 {
|
||||
compatible = "realtek,rtl8392-eth";
|
||||
reg = <0x1b00a300 0x100>;
|
||||
|
||||
interrupt-parent = <&intc>;
|
||||
interrupts = <24 3>;
|
||||
|
||||
phy-mode = "internal";
|
||||
|
||||
fixed-link {
|
||||
speed = <1000>;
|
||||
full-duplex;
|
||||
};
|
||||
};
|
||||
|
||||
sram0: sram@9f000000 {
|
||||
compatible = "mmio-sram";
|
||||
reg = <0x9f000000 0x18000>;
|
||||
|
||||
@ -170,6 +170,19 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
ethernet0: ethernet {
|
||||
compatible = "realtek,rtl9301-eth";
|
||||
interrupt-parent = <&intc>;
|
||||
interrupts = <24 3>;
|
||||
#interrupt-cells = <1>;
|
||||
phy-mode = "internal";
|
||||
|
||||
fixed-link {
|
||||
speed = <1000>;
|
||||
full-duplex;
|
||||
};
|
||||
};
|
||||
|
||||
i2c_mst1: i2c@36c {
|
||||
compatible = "realtek,rtl9301-i2c";
|
||||
reg = <0x36c 0x18>;
|
||||
@ -330,21 +343,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
ethernet0: ethernet@1b00a300 {
|
||||
compatible = "realtek,rtl9301-eth";
|
||||
reg = <0x1b00a300 0x100>;
|
||||
|
||||
interrupt-parent = <&intc>;
|
||||
interrupts = <24 3>;
|
||||
|
||||
phy-mode = "internal";
|
||||
|
||||
fixed-link {
|
||||
speed = <1000>;
|
||||
full-duplex;
|
||||
};
|
||||
};
|
||||
|
||||
switch0: switch@1b000000 {
|
||||
compatible = "realtek,rtl83xx-switch";
|
||||
status = "okay";
|
||||
|
||||
@ -200,6 +200,22 @@
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
ethernet0: ethernet {
|
||||
compatible = "realtek,rtl9311-eth";
|
||||
interrupt-parent = <&gic>;
|
||||
interrupts = <GIC_SHARED 16 IRQ_TYPE_LEVEL_HIGH>;
|
||||
#interrupt-cells = <3>;
|
||||
phy-mode = "internal";
|
||||
|
||||
pinctrl-0 = <&pinmux_disable_ext_cpu>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
fixed-link {
|
||||
speed = <1000>;
|
||||
full-duplex;
|
||||
};
|
||||
};
|
||||
|
||||
i2c_mst1: i2c@100c {
|
||||
compatible = "realtek,rtl9310-i2c";
|
||||
reg = <0x100c 0x18>;
|
||||
@ -389,24 +405,6 @@
|
||||
};
|
||||
};
|
||||
|
||||
ethernet0: ethernet@1b00a300 {
|
||||
status = "okay";
|
||||
compatible = "realtek,rtl9311-eth";
|
||||
reg = <0x1b00a300 0x100>;
|
||||
interrupt-parent = <&gic>;
|
||||
#interrupt-cells = <3>;
|
||||
interrupts = <GIC_SHARED 16 IRQ_TYPE_LEVEL_HIGH>;
|
||||
phy-mode = "internal";
|
||||
|
||||
pinctrl-0 = <&pinmux_disable_ext_cpu>;
|
||||
pinctrl-names = "default";
|
||||
|
||||
fixed-link {
|
||||
speed = <1000>;
|
||||
full-duplex;
|
||||
};
|
||||
};
|
||||
|
||||
switch0: switch@1b000000 {
|
||||
compatible = "realtek,rtl83xx-switch";
|
||||
status = "okay";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user