Skip to content

Commit ba5ba11

Browse files
committed
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: Patrice Chotard <patrice.chotard@st.com> Acked-by: Linus Walleij <linus.walleij@linaro.org>
1 parent c3ee7e9 commit ba5ba11

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

arch/arm/boot/dts/stih41x-b2020.dtsi

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
* publishhed by the Free Software Foundation.
88
*/
99
#include "stih41x-b2020x.dtsi"
10+
#include <dt-bindings/gpio/gpio.h>
1011
/ {
1112
memory{
1213
device_type = "memory";
@@ -30,13 +31,12 @@
3031
leds {
3132
compatible = "gpio-leds";
3233
red {
33-
#gpio-cells = <1>;
3434
label = "Front Panel LED";
35-
gpios = <&pio4 1>;
35+
gpios = <&pio4 1 GPIO_ACTIVE_HIGH>;
3636
linux,default-trigger = "heartbeat";
3737
};
3838
green {
39-
gpios = <&pio4 7>;
39+
gpios = <&pio4 7 GPIO_ACTIVE_HIGH>;
4040
default-state = "off";
4141
};
4242
};

0 commit comments

Comments
 (0)