Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 479d75b7 authored by Andreas Färber's avatar Andreas Färber Committed by Heiko Stuebner
Browse files

arm64: dts: rockchip: Clean up gpio-keys nodes



Drop superfluous #address-cells and #size-cells.
Use KEY_POWER define for 116.
Rename sub-nodes to avoid new dtc warnings.

Reported-by: default avatarJulien Chauveau <chauveau.julien@gmail.com>
Signed-off-by: default avatarAndreas Färber <afaerber@suse.de>
Reviewed-by: default avatarJulien Chauveau <chauveau.julien@gmail.com>
Signed-off-by: default avatarHeiko Stuebner <heiko@sntech.de>
parent 33e84ad0
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -40,6 +40,7 @@
 *     OTHER DEALINGS IN THE SOFTWARE.
 */

#include <dt-bindings/input/input.h>
#include <dt-bindings/pwm/pwm.h>
#include "rk3368.dtsi"

@@ -105,16 +106,14 @@

	keys: gpio-keys {
		compatible = "gpio-keys";
		#address-cells = <1>;
		#size-cells = <0>;
		pinctrl-names = "default";
		pinctrl-0 = <&pwr_key>;

		button@0 {
		power {
			wakeup-source;
			gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
			label = "GPIO Power";
			linux,code = <116>;
			linux,code = <KEY_POWER>;
		};
	};

+3 −4
Original line number Diff line number Diff line
@@ -42,6 +42,7 @@

/dts-v1/;
#include "rk3368.dtsi"
#include <dt-bindings/input/input.h>

/ {
	model = "Rockchip R88";
@@ -65,16 +66,14 @@

	keys: gpio-keys {
		compatible = "gpio-keys";
		#address-cells = <1>;
		#size-cells = <0>;
		pinctrl-names = "default";
		pinctrl-0 = <&pwr_key>;

		button@0 {
		power {
			wakeup-source;
			gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
			label = "GPIO Power";
			linux,code = <116>;
			linux,code = <KEY_POWER>;
		};
	};