Commit cd544a84 authored by Hans de Goede's avatar Hans de Goede Committed by Maxime Ripard

ARM: dts: sun8i: Orangepi plus gpio keys fixes and improvements

Fix the following issues with the gpio_keys node:
1) Use of undocumented input-name property
2) Use of a unit-address on the sw2 node
3) Having "PL03" in the pinctrl node which does not exist, this should
   be "PL3"

And add support for the sw2 button on the board.
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarMaxime Ripard <maxime.ripard@free-electrons.com>
parent c4392ef6
......@@ -79,12 +79,16 @@ pwr_led {
r_gpio_keys {
compatible = "gpio-keys";
input-name = "sw4";
pinctrl-names = "default";
pinctrl-0 = <&sw_r_opc>;
sw4@0 {
sw2 {
label = "sw2";
linux,code = <BTN_1>;
gpios = <&r_pio 0 4 GPIO_ACTIVE_LOW>;
};
sw4 {
label = "sw4";
linux,code = <BTN_0>;
gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
......@@ -187,7 +191,7 @@ leds_r_opc: led_pins@0 {
};
sw_r_opc: key_pins@0 {
allwinner,pins = "PL03";
allwinner,pins = "PL3", "PL4";
allwinner,function = "gpio_in";
allwinner,drive = <SUN4I_PINCTRL_10_MA>;
allwinner,pull = <SUN4I_PINCTRL_NO_PULL>;
......
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