ARM: dts: sun8i: Adjust power key nodes
Subsystems (2)
Jernej Skrabec
maintainerPATCH 1/1 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.
--- arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts | 3 ++- arch/arm/boot/dts/sun8i-h3-nanopi.dtsi | 1 + arch/arm/boot/dts/sun8i-h3-orangepi-2.dts | 3 ++- arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts | 3 ++- arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi | 3 ++- arch/arm/boot/dts/sunxi-libretech-all-h3-cc.dtsi | 1 + 6 files changed, 10 insertions(+), 4 deletions(-)
arch/arm/boot/dts/sun8i-h2-plus-bananapi-m2-zero.dts +2 -1
@@ -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; }; };
arch/arm/boot/dts/sun8i-h3-nanopi.dtsi +1 -0
@@ -81,6 +81,7 @@ k1 { label = "k1"; linux,code = <KEY_POWER>; gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>; + wakeup-source; }; }; };
arch/arm/boot/dts/sun8i-h3-orangepi-2.dts +2 -1
@@ -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; }; };
arch/arm/boot/dts/sun8i-h3-orangepi-pc.dts +2 -1
@@ -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; }; }; };
arch/arm/boot/dts/sunxi-bananapi-m2-plus.dtsi +2 -1
@@ -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; }; };
arch/arm/boot/dts/sunxi-libretech-all-h3-cc.dtsi +1 -0
@@ -49,6 +49,7 @@ power { label = "power"; linux,code = <KEY_POWER>; gpios = <&r_pio 0 2 GPIO_ACTIVE_LOW>; /* PL2 */ + wakeup-source; }; };
Signature · 1 line
2.34.0
Hi,
Quoted 9 lines · Jernej Skrabec
Several H3 and one H2+ board have power key nodes, which are slightly off. Some are missing wakeup-source property and some have
BTN_0code assigned instead ofKEY_POWER.Adjust them, so they can function as intended by designer.
Signed-off-by Jernej Skrabec <[email protected]>[BananaPi M2 Zero changes]Signed-off-by Michael Klein <[email protected]>
This looks a bit weird. If Michael is the author, then his SoB should be here first and mentioned either in From or Co-developed-by.
If you are, I'm not sure why he's mentioned?
Maxime
Jernej Škrabec
maintainerHi!
Dne torek, 23. november 2021 ob 11:32:19 CET je Maxime Ripard napisal(a):
Quoted 9 lines
Hi,
Quoted 6 lines · Jernej Skrabec
Several H3 and one H2+ board have power key nodes, which are slightly off. Some are missing wakeup-source property and some have
BTN_0code assigned instead ofKEY_POWER.Adjust them, so they can function as intended by designer.
Quoted 8 lines
Quoted 3 lines
Signed-off-by Jernej Skrabec <[email protected]>[BananaPi M2 Zero changes]Signed-off-by Michael Klein <[email protected]>This looks a bit weird. If Michael is the author, then his SoB should be here first and mentioned either in From or Co-developed-by.
If you are, I'm not sure why he's mentioned?
I'm main author and Michael just adapted BananaPi M2 Zero DT based on my changes. What is preferred way to mark him as co-author?
Best regards,
Jernej
Quoted 3 lines
Maxime
Quoted 16 lines · Jernej Škrabec
Hi!
Dne torek, 23. november 2021 ob 11:32:19 CET je Maxime Ripard napisal(a):
Quoted 13 lines
Hi,
Quoted 9 lines · Jernej Skrabec
Several H3 and one H2+ board have power key nodes, which are slightly off. Some are missing wakeup-source property and some have
BTN_0code assigned instead ofKEY_POWER.Adjust them, so they can function as intended by designer.
Signed-off-by Jernej Skrabec <[email protected]>[BananaPi M2 Zero changes]Signed-off-by Michael Klein <[email protected]>
Quoted 7 lines
Quoted 4 lines
This looks a bit weird. If Michael is the author, then his SoB should be here first and mentioned either in From or Co-developed-by.
If you are, I'm not sure why he's mentioned?
I'm main author and Michael just adapted BananaPi M2 Zero DT based on my changes. What is preferred way to mark him as co-author?
Co-developed-by would be the way to go then
Maxime