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

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
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;
		};
	};

+1 −0
Original line number Diff line number Diff line
@@ -81,6 +81,7 @@ k1 {
			label = "k1";
			linux,code = <KEY_POWER>;
			gpios = <&r_pio 0 3 GPIO_ACTIVE_LOW>;
			wakeup-source;
		};
	};
};
+2 −1
Original line number Diff line number Diff line
@@ -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;
		};
	};

+2 −1
Original line number Diff line number Diff line
@@ -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;
		};
	};
};
+2 −1
Original line number Diff line number Diff line
@@ -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;
		};
	};

Loading