aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/patches-5.10/113-dts-fix-bpi64-leds-and-buttons.patch
diff options
context:
space:
mode:
authorDaniel Golle <daniel@makrotopia.org>2021-03-01 21:46:38 +0000
committerDaniel Golle <daniel@makrotopia.org>2021-03-01 21:46:38 +0000
commita3288c35efbd5e2a97aafffc23ae8703ed394801 (patch)
tree7517bb745cf248a28ab45895482ee8ba6ef7c241 /target/linux/mediatek/patches-5.10/113-dts-fix-bpi64-leds-and-buttons.patch
parentdba979e2dd6370d9f684deb40883a1433fd4d893 (diff)
downloadupstream-a3288c35efbd5e2a97aafffc23ae8703ed394801.tar.gz
upstream-a3288c35efbd5e2a97aafffc23ae8703ed394801.tar.bz2
upstream-a3288c35efbd5e2a97aafffc23ae8703ed394801.zip
mediatek: mt7622: blue LED should be active high as well
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Diffstat (limited to 'target/linux/mediatek/patches-5.10/113-dts-fix-bpi64-leds-and-buttons.patch')
-rw-r--r--target/linux/mediatek/patches-5.10/113-dts-fix-bpi64-leds-and-buttons.patch56
1 files changed, 56 insertions, 0 deletions
diff --git a/target/linux/mediatek/patches-5.10/113-dts-fix-bpi64-leds-and-buttons.patch b/target/linux/mediatek/patches-5.10/113-dts-fix-bpi64-leds-and-buttons.patch
new file mode 100644
index 0000000000..03128a5ef8
--- /dev/null
+++ b/target/linux/mediatek/patches-5.10/113-dts-fix-bpi64-leds-and-buttons.patch
@@ -0,0 +1,56 @@
+--- a/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
++++ b/arch/arm64/boot/dts/mediatek/mt7622-bananapi-bpi-r64.dts
+@@ -18,6 +18,10 @@
+
+ aliases {
+ serial0 = &uart0;
++ led-boot = &led_system_green;
++ led-failsafe = &led_system_blue;
++ led-running = &led_system_green;
++ led-upgrade = &led_system_blue;
+ };
+
+ chosen {
+@@ -41,8 +45,8 @@
+ compatible = "gpio-keys";
+
+ factory {
+- label = "factory";
+- linux,code = <BTN_0>;
++ label = "reset";
++ linux,code = <KEY_RESTART>;
+ gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
+ };
+
+@@ -56,17 +60,25 @@
+ leds {
+ compatible = "gpio-leds";
+
+- green {
+- label = "bpi-r64:pio:green";
+- gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
++ led_system_blue: blue {
++ label = "bpi-r64:pio:blue";
++ gpios = <&pio 85 GPIO_ACTIVE_HIGH>;
+ default-state = "off";
+ };
+
+- red {
+- label = "bpi-r64:pio:red";
+- gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
++ led_system_green: green {
++ label = "bpi-r64:pio:green";
++ gpios = <&pio 89 GPIO_ACTIVE_HIGH>;
+ default-state = "off";
+ };
++
++/*
++ * red {
++ * label = "bpi-r64:pio:red";
++ * gpios = <&pio 88 GPIO_ACTIVE_HIGH>;
++ * default-state = "off";
++ * };
++ */
+ };
+
+ memory {