Files
openwrt_mitrastar/target/linux/ath79/dts/ar9344_mikrotik_routerboard-951ui-2hnd.dts
Rosen Penev 3d6e1a3c9d mac80211: ath9k: replace qca,led-sources
Upstream seems to be using led-sources instead of custom properties.

Code mostly taken from mt76.

Changed all(few) users of qca,led_pin to use the new format.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/18805
Signed-off-by: Robert Marko <robimarko@gmail.com>
2025-05-24 21:33:37 +02:00

78 lines
1.3 KiB
Plaintext

// SPDX-License-Identifier: GPL-2.0-or-later OR MIT
#include "ar9344_mikrotik_routerboard-951x-2hnd.dtsi"
/ {
compatible = "mikrotik,routerboard-951ui-2hnd", "qca,ar9344";
model = "Mikrotik RouterBOARD 951Ui-2HnD";
/delete-node/ leds;
leds {
compatible = "gpio-leds";
led_user: user {
label = "green:user";
gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
};
port1 {
label = "green:port1";
gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
};
port2 {
label = "green:port2";
gpios = <&gpio 12 GPIO_ACTIVE_LOW>;
};
port3 {
label = "green:port3";
gpios = <&gpio 4 GPIO_ACTIVE_LOW>;
};
port4 {
label = "green:port4";
gpios = <&gpio 21 GPIO_ACTIVE_LOW>;
};
port5 {
label = "green:port5";
gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
};
};
gpio-export {
compatible = "gpio-export";
gpio_poe_power {
gpio-export,name = "rb951ui2hnd:power:poe";
gpio-export,output = <1>;
gpios = <&gpio 2 GPIO_ACTIVE_HIGH>;
};
gpio_usb_power {
gpio-export,name = "rb951ui2hnd:power:usb";
gpio-export,output = <1>;
gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
};
};
};
&eth0 {
phy-handle = <&swphy4>;
/delete-node/ gmac-config;
};
&eth1 {
compatible = "qca,ar9340-eth", "syscon";
};
&wmac {
led {
led-sources = <11>;
led-active-low;
};
};