mediatek: mt7622: blue LED should be active high as well
authorDaniel Golle <daniel@makrotopia.org>
Mon, 1 Mar 2021 21:46:38 +0000 (21:46 +0000)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 1 Mar 2021 21:46:38 +0000 (21:46 +0000)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
target/linux/mediatek/patches-5.10/112-dts-fix-bpi64-leds-and-buttons.patch [deleted file]
target/linux/mediatek/patches-5.10/113-dts-fix-bpi64-leds-and-buttons.patch [new file with mode: 0644]

diff --git a/target/linux/mediatek/patches-5.10/112-dts-fix-bpi64-leds-and-buttons.patch b/target/linux/mediatek/patches-5.10/112-dts-fix-bpi64-leds-and-buttons.patch
deleted file mode 100644 (file)
index 8b6d3d4..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
---- 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_LOW>;
-                       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 {
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 (file)
index 0000000..03128a5
--- /dev/null
@@ -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 {