aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-10-01 23:25:48 +0100
committerDaniel Golle <daniel@makrotopia.org>2021-10-01 23:29:02 +0100
commit21c7a8593d86175c0764d23e77bb019fd9617f53 (patch)
tree42a3d0c2c840ad45953e7671f13ac627eea46978
parent6b434d3c44aced4c210b042a8791f8d14c407a49 (diff)
downloadupstream-21c7a8593d86175c0764d23e77bb019fd9617f53.tar.gz
upstream-21c7a8593d86175c0764d23e77bb019fd9617f53.tar.bz2
upstream-21c7a8593d86175c0764d23e77bb019fd9617f53.zip
mediatek: mt7623: bpi-r2: add LED aliases
Add aliases for LEDs in device tree of the BPi-R2. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
-rw-r--r--target/linux/mediatek/patches-5.10/162-dts-mt7623-bpi-r2-led-aliases.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/target/linux/mediatek/patches-5.10/162-dts-mt7623-bpi-r2-led-aliases.patch b/target/linux/mediatek/patches-5.10/162-dts-mt7623-bpi-r2-led-aliases.patch
new file mode 100644
index 0000000000..f6745add5b
--- /dev/null
+++ b/target/linux/mediatek/patches-5.10/162-dts-mt7623-bpi-r2-led-aliases.patch
@@ -0,0 +1,29 @@
+--- a/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
++++ b/arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
+@@ -17,6 +17,10 @@
+ serial2 = &uart2;
+ mmc0 = &mmc0;
+ mmc1 = &mmc1;
++ led-boot = &led_system_green;
++ led-failsafe = &led_system_blue;
++ led-running = &led_system_green;
++ led-upgrade = &led_system_blue;
+ };
+
+ chosen {
+@@ -112,13 +116,13 @@
+ pinctrl-names = "default";
+ pinctrl-0 = <&led_pins_a>;
+
+- blue {
++ led_system_blue: blue {
+ label = "bpi-r2:pio:blue";
+ gpios = <&pio 240 GPIO_ACTIVE_LOW>;
+ default-state = "off";
+ };
+
+- green {
++ led_system_green: green {
+ label = "bpi-r2:pio:green";
+ gpios = <&pio 241 GPIO_ACTIVE_LOW>;
+ default-state = "off";