realtek: refactor GS1900-8HP variants to have common definitions
Moves common definitions to separate include file. Signed-off-by: Peter Putzer <openwrt@mundschenk.at> Link: https://github.com/openwrt/openwrt/pull/24418 Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
This commit is contained in:
parent
7cc31af7bd
commit
c775a6b716
3 changed files with 42 additions and 64 deletions
|
|
@ -1,41 +1,13 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include "rtl8380_zyxel_gs1900.dtsi"
|
||||
#include "rtl8380_zyxel_gs1900_gpio.dtsi"
|
||||
#include "rtl8380_zyxel_gs1900-8hp.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "zyxel,gs1900-8hp-a1", "realtek,rtl838x-soc";
|
||||
model = "Zyxel GS1900-8HP A1 Switch";
|
||||
};
|
||||
|
||||
&uart1 {
|
||||
status = "okay";
|
||||
|
||||
pse: ethernet-pse {
|
||||
compatible = "zyxel,gs1900-8hp-a1-pse", "realtek,pse-mcu-gen1";
|
||||
current-speed = <19200>;
|
||||
|
||||
pse-pis {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
PSE_PI(0)
|
||||
PSE_PI(1)
|
||||
PSE_PI(2)
|
||||
PSE_PI(3)
|
||||
PSE_PI(4)
|
||||
PSE_PI(5)
|
||||
PSE_PI(6)
|
||||
PSE_PI(7)
|
||||
};
|
||||
};
|
||||
&pse {
|
||||
compatible = "zyxel,gs1900-8hp-a1-pse", "realtek,pse-mcu-gen1";
|
||||
current-speed = <19200>;
|
||||
};
|
||||
|
||||
&phy8 { pses = <&pse_pi0>; };
|
||||
&phy9 { pses = <&pse_pi1>; };
|
||||
&phy10 { pses = <&pse_pi2>; };
|
||||
&phy11 { pses = <&pse_pi3>; };
|
||||
&phy12 { pses = <&pse_pi4>; };
|
||||
&phy13 { pses = <&pse_pi5>; };
|
||||
&phy14 { pses = <&pse_pi6>; };
|
||||
&phy15 { pses = <&pse_pi7>; };
|
||||
|
|
|
|||
|
|
@ -1,41 +1,13 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include "rtl8380_zyxel_gs1900.dtsi"
|
||||
#include "rtl8380_zyxel_gs1900_gpio.dtsi"
|
||||
#include "rtl8380_zyxel_gs1900-8hp.dtsi"
|
||||
|
||||
/ {
|
||||
compatible = "zyxel,gs1900-8hp-b1", "realtek,rtl838x-soc";
|
||||
model = "Zyxel GS1900-8HP B1 Switch";
|
||||
};
|
||||
|
||||
&uart1 {
|
||||
status = "okay";
|
||||
|
||||
pse: ethernet-pse {
|
||||
compatible = "zyxel,gs1900-8hp-b1-pse", "realtek,pse-mcu-gen1";
|
||||
current-speed = <19200>;
|
||||
|
||||
pse-pis {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
PSE_PI(0)
|
||||
PSE_PI(1)
|
||||
PSE_PI(2)
|
||||
PSE_PI(3)
|
||||
PSE_PI(4)
|
||||
PSE_PI(5)
|
||||
PSE_PI(6)
|
||||
PSE_PI(7)
|
||||
};
|
||||
};
|
||||
&pse {
|
||||
compatible = "zyxel,gs1900-8hp-b1-pse", "realtek,pse-mcu-gen1";
|
||||
current-speed = <19200>;
|
||||
};
|
||||
|
||||
&phy8 { pses = <&pse_pi0>; };
|
||||
&phy9 { pses = <&pse_pi1>; };
|
||||
&phy10 { pses = <&pse_pi2>; };
|
||||
&phy11 { pses = <&pse_pi3>; };
|
||||
&phy12 { pses = <&pse_pi4>; };
|
||||
&phy13 { pses = <&pse_pi5>; };
|
||||
&phy14 { pses = <&pse_pi6>; };
|
||||
&phy15 { pses = <&pse_pi7>; };
|
||||
|
|
|
|||
34
target/linux/realtek/dts/rtl8380_zyxel_gs1900-8hp.dtsi
Normal file
34
target/linux/realtek/dts/rtl8380_zyxel_gs1900-8hp.dtsi
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
// SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
#include "rtl8380_zyxel_gs1900.dtsi"
|
||||
#include "rtl8380_zyxel_gs1900_gpio.dtsi"
|
||||
|
||||
&uart1 {
|
||||
status = "okay";
|
||||
|
||||
/* PoE MCU; compatible and current-speed are set per variant */
|
||||
pse: ethernet-pse {
|
||||
pse-pis {
|
||||
#address-cells = <1>;
|
||||
#size-cells = <0>;
|
||||
|
||||
PSE_PI(0)
|
||||
PSE_PI(1)
|
||||
PSE_PI(2)
|
||||
PSE_PI(3)
|
||||
PSE_PI(4)
|
||||
PSE_PI(5)
|
||||
PSE_PI(6)
|
||||
PSE_PI(7)
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
&phy8 { pses = <&pse_pi0>; };
|
||||
&phy9 { pses = <&pse_pi1>; };
|
||||
&phy10 { pses = <&pse_pi2>; };
|
||||
&phy11 { pses = <&pse_pi3>; };
|
||||
&phy12 { pses = <&pse_pi4>; };
|
||||
&phy13 { pses = <&pse_pi5>; };
|
||||
&phy14 { pses = <&pse_pi6>; };
|
||||
&phy15 { pses = <&pse_pi7>; };
|
||||
Loading…
Reference in a new issue