|
@@ -3,6 +3,7 @@
|
|
/dts-v1/;
|
|
/dts-v1/;
|
|
#include <dt-bindings/input/input.h>
|
|
#include <dt-bindings/input/input.h>
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
#include <dt-bindings/gpio/gpio.h>
|
|
|
|
+#include <dt-bindings/leds/common.h>
|
|
|
|
|
|
#include "mt7986a.dtsi"
|
|
#include "mt7986a.dtsi"
|
|
|
|
|
|
@@ -12,6 +13,10 @@
|
|
|
|
|
|
aliases {
|
|
aliases {
|
|
serial0 = &uart0;
|
|
serial0 = &uart0;
|
|
|
|
+ led-boot = &led_status_rgb;
|
|
|
|
+ led-failsafe = &led_status_rgb;
|
|
|
|
+ led-running = &led_status_rgb;
|
|
|
|
+ led-upgrade = &led_status_rgb;
|
|
};
|
|
};
|
|
|
|
|
|
chosen {
|
|
chosen {
|
|
@@ -95,6 +100,13 @@
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+ spi_led_pins: spic-pins-29-to-32 {
|
|
|
|
+ mux {
|
|
|
|
+ function = "spi";
|
|
|
|
+ groups = "spi1_2";
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+
|
|
wf_2g_5g_pins: wf_2g_5g-pins {
|
|
wf_2g_5g_pins: wf_2g_5g-pins {
|
|
mux {
|
|
mux {
|
|
function = "wifi";
|
|
function = "wifi";
|
|
@@ -202,6 +214,32 @@
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
|
|
|
|
+&spi1 {
|
|
|
|
+ pinctrl-names = "default";
|
|
|
|
+ pinctrl-0 = <&spi_led_pins>;
|
|
|
|
+ status = "okay";
|
|
|
|
+
|
|
|
|
+ ws2812b@0 {
|
|
|
|
+ #address-cells = <1>;
|
|
|
|
+ #size-cells = <0>;
|
|
|
|
+ compatible = "worldsemi,ws2812b";
|
|
|
|
+ reg = <0>;
|
|
|
|
+ spi-max-frequency = <3000000>;
|
|
|
|
+
|
|
|
|
+ led_status_rgb: led@0 {
|
|
|
|
+ reg = <0>;
|
|
|
|
+ label = "rgb:status";
|
|
|
|
+ color-index = <LED_COLOR_ID_RED LED_COLOR_ID_GREEN LED_COLOR_ID_BLUE>;
|
|
|
|
+ };
|
|
|
|
+
|
|
|
|
+ led_network_rgb: led@1 {
|
|
|
|
+ reg = <1>;
|
|
|
|
+ label = "rgb:network";
|
|
|
|
+ color-index = <LED_COLOR_ID_RED LED_COLOR_ID_GREEN LED_COLOR_ID_BLUE>;
|
|
|
|
+ };
|
|
|
|
+ };
|
|
|
|
+};
|
|
|
|
+
|
|
&switch {
|
|
&switch {
|
|
ports {
|
|
ports {
|
|
#address-cells = <1>;
|
|
#address-cells = <1>;
|