arm: dts: mediatek: Fix pio-leds for Bananapi-R2
authorFrank Wunderlich <frank-w@public-files.de>
Mon, 25 Jun 2018 09:57:13 +0000 (11:57 +0200)
committerMatthias Brugger <matthias.bgg@gmail.com>
Mon, 16 Jul 2018 09:13:28 +0000 (11:13 +0200)
Pio-leds (near GPIO-Header) are swapped and LOW-active.
This patch restores the expected behaviour.

Signed-off-by: Frank Wunderlich <frank-w@public-files.de>
Reviewed-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts

index 531d905..2b760f9 100644 (file)
 
                blue {
                        label = "bpi-r2:pio:blue";
-                       gpios = <&pio 241 GPIO_ACTIVE_HIGH>;
+                       gpios = <&pio 240 GPIO_ACTIVE_LOW>;
                        default-state = "off";
                };
 
                green {
                        label = "bpi-r2:pio:green";
-                       gpios = <&pio 240 GPIO_ACTIVE_HIGH>;
+                       gpios = <&pio 241 GPIO_ACTIVE_LOW>;
                        default-state = "off";
                };
 
                red {
                        label = "bpi-r2:pio:red";
-                       gpios = <&pio 239 GPIO_ACTIVE_HIGH>;
+                       gpios = <&pio 239 GPIO_ACTIVE_LOW>;
                        default-state = "off";
                };
        };