Skip to content

Commit c3ee7e9

Browse files
committed
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>
1 parent 4e6ee33 commit c3ee7e9

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

arch/arm/boot/dts/stih418-b2199.dts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99
/dts-v1/;
1010
#include "stih418.dtsi"
11+
#include <dt-bindings/gpio/gpio.h>
1112
/ {
1213
model = "STiH418 B2199";
1314
compatible = "st,stih418-b2199", "st,stih418";
@@ -35,14 +36,12 @@
3536
leds {
3637
compatible = "gpio-leds";
3738
red {
38-
#gpio-cells = <2>;
3939
label = "Front Panel LED";
40-
gpios = <&pio4 1 0>;
40+
gpios = <&pio4 1 GPIO_ACTIVE_HIGH>;
4141
linux,default-trigger = "heartbeat";
4242
};
4343
green {
44-
#gpio-cells = <2>;
45-
gpios = <&pio1 3 0>;
44+
gpios = <&pio1 3 GPIO_ACTIVE_HIGH>;
4645
default-state = "off";
4746
};
4847
};

0 commit comments

Comments
 (0)