Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

arm: dts: mediatek: Fix pio-leds for Bananapi-R2

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>

authored by

Frank Wunderlich and committed by
Matthias Brugger
2ca48895 0c7f7a51

+3 -3
+3 -3
arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dts
··· 91 91 92 92 blue { 93 93 label = "bpi-r2:pio:blue"; 94 - gpios = <&pio 241 GPIO_ACTIVE_HIGH>; 94 + gpios = <&pio 240 GPIO_ACTIVE_LOW>; 95 95 default-state = "off"; 96 96 }; 97 97 98 98 green { 99 99 label = "bpi-r2:pio:green"; 100 - gpios = <&pio 240 GPIO_ACTIVE_HIGH>; 100 + gpios = <&pio 241 GPIO_ACTIVE_LOW>; 101 101 default-state = "off"; 102 102 }; 103 103 104 104 red { 105 105 label = "bpi-r2:pio:red"; 106 - gpios = <&pio 239 GPIO_ACTIVE_HIGH>; 106 + gpios = <&pio 239 GPIO_ACTIVE_LOW>; 107 107 default-state = "off"; 108 108 }; 109 109 };