realtek: add PoE support for USW XG Pro 8 PoE

Add device tree definition for PoE support using the Realtek PSE MCU
driver. Select the kernel package for the driver in DEVICE_PACKAGES
accordingly.

Link: https://github.com/openwrt/openwrt/pull/24239
Signed-off-by: Jonas Jelonek <jelonek.jonas@gmail.com>
This commit is contained in:
Jonas Jelonek 2026-06-26 18:10:31 +00:00
parent d3e2f2df83
commit b76acc1b1a
No known key found for this signature in database
2 changed files with 35 additions and 2 deletions

View file

@ -225,7 +225,32 @@
};
};
i2c6: i2c@6 { reg = <6>; }; /* PoE MCU at 0x20 */
i2c_poe: i2c@6 {
reg = <6>;
#address-cells = <1>;
#size-cells = <0>;
pse: ethernet-pse@20 {
compatible = "ubnt,usw-pro-xg-8-poe-pse", "realtek,pse-mcu-gen2-smbus";
reg = <0x20>;
enable-gpios = <&gpio1 15 GPIO_ACTIVE_HIGH>;
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)
};
};
};
};
&mdio_ctrl {
@ -289,3 +314,11 @@
};
};
&phy0 { pses = <&pse_pi0>; };
&phy8 { pses = <&pse_pi1>; };
&phy16 { pses = <&pse_pi2>; };
&phy24 { pses = <&pse_pi3>; };
&phy32 { pses = <&pse_pi4>; };
&phy40 { pses = <&pse_pi5>; };
&phy48 { pses = <&pse_pi6>; };
&phy50 { pses = <&pse_pi7>; };

View file

@ -59,7 +59,7 @@ define Device/ubnt_usw-pro-xg-8-poe
DEVICE_VENDOR := Ubiquiti
DEVICE_MODEL := UniFi USW Pro XG 8 PoE
IMAGE_SIZE := 30272k
DEVICE_PACKAGES := rtl826x-firmware kmod-hwmon-adt7475
DEVICE_PACKAGES := rtl826x-firmware kmod-hwmon-adt7475 kmod-pse-realtek-mcu-i2c
$(Device/kernel-lzma)
endef
TARGET_DEVICES += ubnt_usw-pro-xg-8-poe