aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/patches-5.15/162-dts-mt7623-bpi-r2-led-aliases.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2022-03-27 12:54:03 +0200
committerFelix Fietkau <nbd@nbd.name>2022-03-27 12:55:53 +0200
commitade563ba84496406243b3699a27b3de7e08399e7 (patch)
tree6830600d257c707a0599041b779b7b3239dadf17 /target/linux/mediatek/patches-5.15/162-dts-mt7623-bpi-r2-led-aliases.patch
parenta92db8abe056bd517ca2cc452786c0325ba6dba7 (diff)
downloadupstream-ade563ba84496406243b3699a27b3de7e08399e7.tar.gz
upstream-ade563ba84496406243b3699a27b3de7e08399e7.tar.bz2
upstream-ade563ba84496406243b3699a27b3de7e08399e7.zip
mediatek: add patches for 5.15 and kernel config for mt7622
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'target/linux/mediatek/patches-5.15/162-dts-mt7623-bpi-r2-led-aliases.patch')
-rw-r--r--target/linux/mediatek/patches-5.15/162-dts-mt7623-bpi-r2-led-aliases.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/target/linux/mediatek/patches-5.15/162-dts-mt7623-bpi-r2-led-aliases.patch b/target/linux/mediatek/patches-5.15/162-dts-mt7623-bpi-r2-led-aliases.patch
new file mode 100644
index 0000000000..f6745add5b
--- /dev/null
+++ b/target/linux/mediatek/patches-5.15/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";