};
};
- 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 {
};
};
+&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>; };
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