]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
ARM: dts: STiHxxx-b2120: update gpio specifier
authorPatrice Chotard <patrice.chotard@st.com>
Thu, 4 Aug 2016 09:44:32 +0000 (11:44 +0200)
committerPatrice Chotard <patrice.chotard@st.com>
Tue, 6 Sep 2016 07:21:20 +0000 (09:21 +0200)
Remove useless gpio-cells
Add second parameter to indicate if gpio is active high
or low.

Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
arch/arm/boot/dts/stihxxx-b2120.dtsi

index 0b0dd024f72dd93725ec50119745368bb26d41c7..80ec40d3d9877db189b3c02371d3c0491b6a1019 100644 (file)
@@ -18,14 +18,12 @@ sbc_serial0: serial@9530000 {
                leds {
                        compatible = "gpio-leds";
                        red {
-                               #gpio-cells = <2>;
                                label = "Front Panel LED";
-                               gpios = <&pio4 1 0>;
+                               gpios = <&pio4 1 GPIO_ACTIVE_HIGH>;
                                linux,default-trigger = "heartbeat";
                        };
                        green {
-                               #gpio-cells = <2>;
-                               gpios = <&pio1 3 0>;
+                               gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
                                default-state = "off";
                        };
                };