openwrt/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2r.dts
Christian Marangi 1765973c40
ramips: fix dts error in LED color/function conversion
Fix DTS error in LED color/function conversion due to a bug in the
conversion script.

Fixes: 19c45b95db ("ramips: convert to new LED color/function format where possible")
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-02-08 00:01:22 +01:00

55 lines
893 B
Plaintext

#include <dt-bindings/leds/common.h>
#include "mt7628an_wrtnode_wrtnode2.dtsi"
/ {
compatible = "wrtnode,wrtnode2r", "wrtnode,wrtnode2", "mediatek,mt7628an-soc";
model = "WRTnode2R";
aliases {
led-boot = &led_indicator;
led-failsafe = &led_indicator;
led-running = &led_indicator;
led-upgrade = &led_indicator;
};
leds {
compatible = "gpio-leds";
pinctrl-names = "default";
pinctrl-0 = <&led_pins>;
led_indicator: indicator {
function = LED_FUNCTION_INDICATOR;
color = <LED_COLOR_ID_BLUE>;
gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
};
};
};
&state_default {
gpio {
groups = "gpio";
function = "gpio";
};
};
&pinctrl {
led_pins: led {
gpio {
groups = "wled_an";
function = "gpio";
};
};
};
&spi0 {
spidev@1 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "linux,spidev";
reg = <1>;
spi-max-frequency = <10000000>;
};
};