ramips: enable Wi-Fi LED support for Zbtlink ZBT-WE1326
authorShiji Yang <yangshiji66@qq.com>
Sat, 31 Dec 2022 12:50:18 +0000 (12:50 +0000)
committerHauke Mehrtens <hauke@hauke-m.de>
Wed, 4 Jan 2023 22:32:27 +0000 (23:32 +0100)
Add LED properties to PCIe node to enable Wi-Fi LED support.

Signed-off-by: Shiji Yang <yangshiji66@qq.com>
target/linux/ramips/dts/mt7621_zbtlink_zbt-we1326.dts

index 6aafe385ae6872e0134df4abc062badbcb13ccb1..4e30dfb6c9cb4b95b43d79e2a00828472e7da1e2 100644 (file)
 };
 
 &pcie0 {
-       wifi0: mt76@0,0 {
+       wifi@0,0 {
+               compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
                mediatek,mtd-eeprom = <&factory 0x8000>;
                ieee80211-freq-limit = <5000000 6000000>;
+
+               led {
+                       led-sources = <2>;
+                       led-active-low;
+               };
        };
 };
 
 &pcie1 {
-       wifi1: mt76@0,0 {
+       wifi1: wifi@0,0 {
+               compatible = "mediatek,mt76";
                reg = <0x0000 0 0 0 0>;
                mediatek,mtd-eeprom = <&factory 0x0000>;
                ieee80211-freq-limit = <2400000 2500000>;
+
+               led {
+                       led-sources = <0>;
+                       led-active-low;
+               };
        };
 };