]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ARM: dts: bcm283x: Use GPIO polarity defines consistently
authorStefan Wahren <stefan.wahren@i2se.com>
Sun, 3 Dec 2017 16:36:18 +0000 (17:36 +0100)
committerEric Anholt <eric@anholt.net>
Fri, 8 Dec 2017 21:10:09 +0000 (13:10 -0800)
Currently most of the Raspberry Pi DTS have a mixture of magic
numbers and the proper GPIO polarity defines. So use the latter
one consistently.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Eric Anholt <eric@anholt.net>
arch/arm/boot/dts/bcm2835-rpi-a-plus.dts
arch/arm/boot/dts/bcm2835-rpi-a.dts
arch/arm/boot/dts/bcm2835-rpi-b-plus.dts
arch/arm/boot/dts/bcm2835-rpi-b-rev2.dts
arch/arm/boot/dts/bcm2835-rpi-b.dts
arch/arm/boot/dts/bcm2836-rpi-2-b.dts
arch/arm/boot/dts/bcm2837-rpi-3-b.dts

index f81ae0a10310f4063c569cf4ff739f3bdb6e7a44..aa1fc7babfea7b200333a713fd35bfb6a6bcd157 100644 (file)
 
        leds {
                act {
-                       gpios = <&gpio 47 0>;
+                       gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
                };
 
                pwr {
                        label = "PWR";
-                       gpios = <&gpio 35 0>;
+                       gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
                        default-state = "keep";
                        linux,default-trigger = "default-on";
                };
index 7a960a048204bc3a7ed0a38799db80f51fc58440..425f6b0a5ef8a95af3daa0adfc651ac891dca3b4 100644 (file)
@@ -10,7 +10,7 @@
 
        leds {
                act {
-                       gpios = <&gpio 16 1>;
+                       gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 0161a8483e39d003e76f1c7c3a1261f629095e92..effa195e789589991dc68172fa04c39d121683e2 100644 (file)
 
        leds {
                act {
-                       gpios = <&gpio 47 0>;
+                       gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
                };
 
                pwr {
                        label = "PWR";
-                       gpios = <&gpio 35 0>;
+                       gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
                        default-state = "keep";
                        linux,default-trigger = "default-on";
                };
index 4bc70efe43d6f227c60cb473d3a5d66c662eb6b7..772ec3b482316bafcc350e676097dcfdd2797b76 100644 (file)
@@ -11,7 +11,7 @@
 
        leds {
                act {
-                       gpios = <&gpio 16 1>;
+                       gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
        };
 };
index cca4a75a56517455af94c975f181c55f644e0f49..434483d6fc14634659e1291f387daa8f18340336 100644 (file)
@@ -11,7 +11,7 @@
 
        leds {
                act {
-                       gpios = <&gpio 16 1>;
+                       gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 6669355fd655da471db2adf9e8735311b3793ded..5c339adabdf0152ec5c020b5880df2cc93afbac9 100644 (file)
 
        leds {
                act {
-                       gpios = <&gpio 47 0>;
+                       gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
                };
 
                pwr {
                        label = "PWR";
-                       gpios = <&gpio 35 0>;
+                       gpios = <&gpio 35 GPIO_ACTIVE_HIGH>;
                        default-state = "keep";
                        linux,default-trigger = "default-on";
                };
index a8844d033b3fed7d20855d20ba4f403f81d02fc9..3e4ed7c5b0b3b952c5af8fa2b91d0fdf4190f557 100644 (file)
@@ -20,7 +20,7 @@
 
        leds {
                act {
-                       gpios = <&gpio 47 0>;
+                       gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
                };
        };
 };