OSDN Git Service

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 f81ae0a..aa1fc7b 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 7a960a0..425f6b0 100644 (file)
@@ -10,7 +10,7 @@
 
        leds {
                act {
-                       gpios = <&gpio 16 1>;
+                       gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 0161a84..effa195 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 4bc70ef..772ec3b 100644 (file)
@@ -11,7 +11,7 @@
 
        leds {
                act {
-                       gpios = <&gpio 16 1>;
+                       gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
        };
 };
index cca4a75..434483d 100644 (file)
@@ -11,7 +11,7 @@
 
        leds {
                act {
-                       gpios = <&gpio 16 1>;
+                       gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                };
        };
 };
index 6669355..5c339ad 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 a8844d0..3e4ed7c 100644 (file)
@@ -20,7 +20,7 @@
 
        leds {
                act {
-                       gpios = <&gpio 47 0>;
+                       gpios = <&gpio 47 GPIO_ACTIVE_HIGH>;
                };
        };
 };