From 58b509748928f725ae13ca8f67979d7f7eb29eb8 Mon Sep 17 00:00:00 2001 From: Martin Kennedy Date: Sat, 27 Aug 2022 20:44:20 -0400 Subject: [PATCH] realtek: add MCU/PSEs to GS1900-24HPv1 uart1 node Obviously a draft. The use of the mcu node under uart1 here is inspired by this dts in the upstream Linux tree: arch/arm64/boot/dts/marvell/armada-8040-puzzle-m801.dts The use of the ethernet-pse nodes, and the compatible they follow, is based on work from the in-progress patch here: https://patchwork.kernel.org/project/netdevbpf/patch/20220825130211.3730461-2-o.rempel@pengutronix.de/ Signed-off-by: Martin Kennedy diff --git a/target/linux/realtek/dts-5.10/rtl8382_zyxel_gs1900-24hp-v1.dts b/target/linux/realtek/dts-5.10/rtl8382_zyxel_gs1900-24hp-v1.dts index 7bb3410a31..db2c7c0c71 100644 --- a/target/linux/realtek/dts-5.10/rtl8382_zyxel_gs1900-24hp-v1.dts +++ b/target/linux/realtek/dts-5.10/rtl8382_zyxel_gs1900-24hp-v1.dts @@ -51,6 +51,181 @@ &uart1 { status = "okay"; + + mcu { + compatible = "stm,poe-mcu"; + current-speed = <115200>; + + pse { + pse_lan1: ethernet-pse-1 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy0>; + #pse-cells = <0>; + label = "lan1"; + }; + + pse_lan2: ethernet-pse-2 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy1>; + #pse-cells = <0>; + label = "lan2"; + }; + + pse_lan3: ethernet-pse-3 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy2>; + #pse-cells = <0>; + label = "lan3"; + }; + + pse_lan4: ethernet-pse-4 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy3>; + #pse-cells = <0>; + label = "lan4"; + }; + + pse_lan5: ethernet-pse-5 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy4>; + #pse-cells = <0>; + label = "lan5"; + }; + + pse_lan6: ethernet-pse-6 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy5>; + #pse-cells = <0>; + label = "lan6"; + }; + + pse_lan7: ethernet-pse-7 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy6>; + #pse-cells = <0>; + label = "lan7"; + }; + + pse_lan8: ethernet-pse-8 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy7>; + #pse-cells = <0>; + label = "lan8"; + }; + + pse_lan9: ethernet-pse-9 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy8>; + #pse-cells = <0>; + label = "lan9"; + }; + + pse_lan10: ethernet-pse-10 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy9>; + #pse-cells = <0>; + label = "lan10"; + }; + + pse_lan11: ethernet-pse-11 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy10>; + #pse-cells = <0>; + label = "lan11"; + }; + + pse_lan12: ethernet-pse-12 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy11>; + #pse-cells = <0>; + label = "lan12"; + }; + + pse_lan13: ethernet-pse-13 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy12>; + #pse-cells = <0>; + label = "lan13"; + }; + + pse_lan14: ethernet-pse-14 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy13>; + #pse-cells = <0>; + label = "lan14"; + }; + + pse_lan15: ethernet-pse-15 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy14>; + #pse-cells = <0>; + label = "lan15"; + }; + + pse_lan16: ethernet-pse-16 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy15>; + #pse-cells = <0>; + label = "lan16"; + }; + + pse_lan17: ethernet-pse-17 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy16>; + #pse-cells = <0>; + label = "lan17"; + }; + + pse_lan18: ethernet-pse-18 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy17>; + #pse-cells = <0>; + label = "lan18"; + }; + + pse_lan19: ethernet-pse-19 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy18>; + #pse-cells = <0>; + label = "lan19"; + }; + + pse_lan20: ethernet-pse-20 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy19>; + #pse-cells = <0>; + label = "lan20"; + }; + + pse_lan21: ethernet-pse-21 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy20>; + #pse-cells = <0>; + label = "lan21"; + }; + + pse_lan22: ethernet-pse-22 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy21>; + #pse-cells = <0>; + label = "lan22"; + }; + + pse_lan23: ethernet-pse-23 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy22>; + #pse-cells = <0>; + label = "lan23"; + }; + + pse_lan24: ethernet-pse-24 { + compatible = "ieee802.3-pse-regulator"; + ieee802.3-pse-supply = <&phy23>; + #pse-cells = <0>; + label = "lan24"; + }; + }; + }; }; &mdio { -- 2.36.1