diff options
author | Patrice Chotard <patrice.chotard@st.com> | 2016-08-10 15:13:00 +0200 |
---|---|---|
committer | Patrice Chotard <patrice.chotard@st.com> | 2016-09-02 15:15:14 +0200 |
commit | c3ee7e9d136d789bf33aa1e6c07b40d7a9721ec0 (patch) | |
tree | 55c970449c6ef7dc64ee97eb3ddfbd34a5577833 /arch/arm/boot/dts/stih418-b2199.dts | |
parent | ARM: dts: STiH407-pinctrl: Update gpio-cells to 2 (diff) | |
download | linux-c3ee7e9d136d789bf33aa1e6c07b40d7a9721ec0.tar.xz linux-c3ee7e9d136d789bf33aa1e6c07b40d7a9721ec0.zip |
ARM: dts: STiH418-B2199: Update gpio specifier
- Remove useless gpio-cells
- Update second parameter by using GPIO_ACTIVE_HIGH/LOW
instead of hardcoded value
Signed-off-by: Patrice Chotard <patrice.chotard@st.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/stih418-b2199.dts')
-rw-r--r-- | arch/arm/boot/dts/stih418-b2199.dts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/arch/arm/boot/dts/stih418-b2199.dts b/arch/arm/boot/dts/stih418-b2199.dts index 7c45e75b4c96..438e54c585b1 100644 --- a/arch/arm/boot/dts/stih418-b2199.dts +++ b/arch/arm/boot/dts/stih418-b2199.dts @@ -8,6 +8,7 @@ */ /dts-v1/; #include "stih418.dtsi" +#include <dt-bindings/gpio/gpio.h> / { model = "STiH418 B2199"; compatible = "st,stih418-b2199", "st,stih418"; @@ -35,14 +36,12 @@ 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"; }; }; |