Commit ba5ba119 authored by Patrice Chotard's avatar Patrice Chotard

ARM: dts: STiH41x-b2020: Update gpio specifier

- Remove useless gpio-cells
- Update second parameter by using GPIO_ACTIVE_HIGH/LOW
  instead of hardcoded value
Signed-off-by: default avatarPatrice Chotard <patrice.chotard@st.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent c3ee7e9d
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
* publishhed by the Free Software Foundation. * publishhed by the Free Software Foundation.
*/ */
#include "stih41x-b2020x.dtsi" #include "stih41x-b2020x.dtsi"
#include <dt-bindings/gpio/gpio.h>
/ { / {
memory{ memory{
device_type = "memory"; device_type = "memory";
...@@ -30,13 +31,12 @@ sbc_serial1: serial@fe531000 { ...@@ -30,13 +31,12 @@ sbc_serial1: serial@fe531000 {
leds { leds {
compatible = "gpio-leds"; compatible = "gpio-leds";
red { red {
#gpio-cells = <1>;
label = "Front Panel LED"; label = "Front Panel LED";
gpios = <&pio4 1>; gpios = <&pio4 1 GPIO_ACTIVE_HIGH>;
linux,default-trigger = "heartbeat"; linux,default-trigger = "heartbeat";
}; };
green { green {
gpios = <&pio4 7>; gpios = <&pio4 7 GPIO_ACTIVE_HIGH>;
default-state = "off"; default-state = "off";
}; };
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment