Commit 335d1603 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Matthias Brugger
Browse files

arm64: dts: mediatek: align gpio-key node names with dtschema



The node names should be generic and DT schema expects certain pattern
(e.g. with key/button/switch).

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220616005333.18491-15-krzysztof.kozlowski@linaro.org


Signed-off-by: default avatarMatthias Brugger <matthias.bgg@gmail.com>
parent 2e9cf554
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -40,13 +40,13 @@ cpu@1 {
	gpio-keys {
		compatible = "gpio-keys";

		factory {
		factory-key {
			label = "factory";
			linux,code = <BTN_0>;
			gpios = <&pio 0 GPIO_ACTIVE_HIGH>;
		};

		wps {
		wps-key {
			label = "wps";
			linux,code = <KEY_WPS_BUTTON>;
			gpios = <&pio 102 GPIO_ACTIVE_HIGH>;
+2 −2
Original line number Diff line number Diff line
@@ -42,13 +42,13 @@ gpio-keys {
		compatible = "gpio-keys";
		poll-interval = <100>;

		factory {
		key-factory {
			label = "factory";
			linux,code = <BTN_0>;
			gpios = <&pio 0 0>;
		};

		wps {
		key-wps {
			label = "wps";
			linux,code = <KEY_WPS_BUTTON>;
			gpios = <&pio 102 0>;
+3 −3
Original line number Diff line number Diff line
@@ -21,7 +21,7 @@ cpu_crit: cpu_crit0 {
};

&gpio_keys {
	/delete-node/tablet_mode;
	/delete-node/volume_down;
	/delete-node/volume_up;
	/delete-node/switch-tablet-mode;
	/delete-node/switch-volume-down;
	/delete-node/switch-volume-up;
};
+5 −5
Original line number Diff line number Diff line
@@ -53,7 +53,7 @@ gpio_keys: gpio-keys {
		pinctrl-names = "default";
		pinctrl-0 = <&gpio_keys_pins>;

		lid {
		switch-lid {
			label = "Lid";
			gpios = <&pio 69 GPIO_ACTIVE_LOW>;
			linux,code = <SW_LID>;
@@ -61,7 +61,7 @@ lid {
			gpio-key,wakeup;
		};

		power {
		switch-power {
			label = "Power";
			gpios = <&pio 14 GPIO_ACTIVE_HIGH>;
			linux,code = <KEY_POWER>;
@@ -69,7 +69,7 @@ power {
			gpio-key,wakeup;
		};

		tablet_mode {
		switch-tablet-mode {
			label = "Tablet_mode";
			gpios = <&pio 121 GPIO_ACTIVE_HIGH>;
			linux,code = <SW_TABLET_MODE>;
@@ -77,13 +77,13 @@ tablet_mode {
			gpio-key,wakeup;
		};

		volume_down {
		switch-volume-down {
			label = "Volume_down";
			gpios = <&pio 123 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_VOLUMEDOWN>;
		};

		volume_up {
		switch-volume-up {
			label = "Volume_up";
			gpios = <&pio 124 GPIO_ACTIVE_LOW>;
			linux,code = <KEY_VOLUMEUP>;
+2 −2
Original line number Diff line number Diff line
@@ -73,7 +73,7 @@ volume_buttons: volume-buttons {
		pinctrl-names = "default";
		pinctrl-0 = <&volume_button_pins>;

		volume_down {
		button-volume-down {
			label = "Volume Down";
			linux,code = <KEY_VOLUMEDOWN>;
			debounce-interval = <100>;
@@ -81,7 +81,7 @@ volume_down {
			gpios = <&pio 6 GPIO_ACTIVE_LOW>;
		};

		volume_up {
		button-volume-up {
			label = "Volume Up";
			linux,code = <KEY_VOLUMEUP>;
			debounce-interval = <100>;
Loading