Commit 145988cf authored by Jernej Skrabec's avatar Jernej Skrabec Committed by Maxime Ripard

ARM: dts: sun8i: Adjust power key nodes

Several H3 and one H2+ board have power key nodes, which are slightly
off. Some are missing wakeup-source property and some have BTN_0 code
assigned instead of KEY_POWER.

Adjust them, so they can function as intended by designer.
Co-developed-by: default avatarMichael Klein <michael@fossekall.de>
Signed-off-by: default avatarMichael Klein <michael@fossekall.de>
Signed-off-by: default avatarJernej Skrabec <jernej.skrabec@gmail.com>
Acked-by: default avatarChen-Yu Tsai <wens@csie.org>
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
Link: https://lore.kernel.org/r/20211129165510.370717-1-jernej.skrabec@gmail.com
parent 00b9773b
......@@ -52,8 +52,9 @@ gpio_keys {
sw4 {
label = "power";
linux,code = <BTN_0>;
linux,code = <KEY_POWER>;
gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
wakeup-source;
};
};
......
......@@ -81,6 +81,7 @@ k1 {
label = "k1";
linux,code = <KEY_POWER>;
gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
wakeup-source;
};
};
};
......
......@@ -99,8 +99,9 @@ sw2 {
sw4 {
label = "sw4";
linux,code = <BTN_0>;
linux,code = <KEY_POWER>;
gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
wakeup-source;
};
};
......
......@@ -91,8 +91,9 @@ r_gpio_keys {
sw4 {
label = "sw4";
linux,code = <BTN_0>;
linux,code = <KEY_POWER>;
gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
wakeup-source;
};
};
};
......
......@@ -82,8 +82,9 @@ gpio_keys {
sw4 {
label = "power";
linux,code = <BTN_0>;
linux,code = <KEY_POWER>;
gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
wakeup-source;
};
};
......
......@@ -49,6 +49,7 @@ power {
label = "power";
linux,code = <KEY_POWER>;
gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */
wakeup-source;
};
};
......
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