[PATCH 11/20] ARM: dts: ux500: Correct GPIO key descriptions

Linus Walleij linusw at kernel.org
Wed Nov 25 16:37:15 PST 2026


Use names without unit addresses for GPIO keys and drop unused
address cells and vdd-supply. Update the pre-v60 HREF proximity
switch override to match its renamed key node.

Fixes: 1a780d45b10e ("ARM: ux500: move GPIO key configuration to device tree")
Signed-off-by: Linus Walleij <linusw at kernel.org>
---
 arch/arm/boot/dts/st/ste-href-stuib.dtsi          |  7 ++-----
 arch/arm/boot/dts/st/ste-href-tvk1281618-r2.dtsi  |  7 ++-----
 arch/arm/boot/dts/st/ste-href-tvk1281618-r3.dtsi  |  5 +----
 arch/arm/boot/dts/st/ste-hrefprev60.dtsi          |  2 +-
 arch/arm/boot/dts/st/ste-snowball.dts             | 12 +++++-------
 arch/arm/boot/dts/st/ste-ux500-samsung-golden.dts |  6 +++---
 6 files changed, 14 insertions(+), 25 deletions(-)

diff --git a/arch/arm/boot/dts/st/ste-href-stuib.dtsi b/arch/arm/boot/dts/st/ste-href-stuib.dtsi
index 09c8be0ad7ea..1f0f4ed74fd2 100644
--- a/arch/arm/boot/dts/st/ste-href-stuib.dtsi
+++ b/arch/arm/boot/dts/st/ste-href-stuib.dtsi
@@ -8,19 +8,16 @@
 / {
 	gpio_keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
-		vdd-supply = <&ab8500_ldo_aux1_reg>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&prox_stuib_mode>, <&hall_stuib_mode>;
 
-		button at 139 {
+		button-139 {
 			/* Proximity sensor */
 			gpios = <&gpio6 25 GPIO_ACTIVE_HIGH>;
 			linux,code = <11>; /* SW_FRONT_PROXIMITY */
 			label = "SFH7741 Proximity Sensor";
 		};
-		button at 145 {
+		button-145 {
 			/* Hall sensor */
 			gpios = <&gpio4 17 GPIO_ACTIVE_HIGH>;
 			linux,code = <0>; /* SW_LID */
diff --git a/arch/arm/boot/dts/st/ste-href-tvk1281618-r2.dtsi b/arch/arm/boot/dts/st/ste-href-tvk1281618-r2.dtsi
index fb9d796c77cc..4a2bfa4c702b 100644
--- a/arch/arm/boot/dts/st/ste-href-tvk1281618-r2.dtsi
+++ b/arch/arm/boot/dts/st/ste-href-tvk1281618-r2.dtsi
@@ -9,19 +9,16 @@
 / {
 	gpio_keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
-		vdd-supply = <&ab8500_ldo_aux1_reg>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&prox_tvk_mode>, <&hall_tvk_mode>;
 
-		button at 139 {
+		button-139 {
 			/* Proximity sensor */
 			gpios = <&gpio6 25 GPIO_ACTIVE_HIGH>;
 			linux,code = <11>; /* SW_FRONT_PROXIMITY */
 			label = "SFH7741 Proximity Sensor";
 		};
-		button at 145 {
+		button-145 {
 			/* Hall sensor */
 			gpios = <&gpio4 17 GPIO_ACTIVE_HIGH>;
 			linux,code = <0>; /* SW_LID */
diff --git a/arch/arm/boot/dts/st/ste-href-tvk1281618-r3.dtsi b/arch/arm/boot/dts/st/ste-href-tvk1281618-r3.dtsi
index 1764ddcdf08b..adb8d0be6f73 100644
--- a/arch/arm/boot/dts/st/ste-href-tvk1281618-r3.dtsi
+++ b/arch/arm/boot/dts/st/ste-href-tvk1281618-r3.dtsi
@@ -10,13 +10,10 @@
 / {
 	gpio_keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
-		vdd-supply = <&ab8500_ldo_aux1_reg>;
 		pinctrl-names = "default";
 		pinctrl-0 = <&hall_tvk_mode>;
 
-		button at 145 {
+		button-145 {
 			/* Hall sensor */
 			gpios = <&gpio4 17 GPIO_ACTIVE_HIGH>;
 			linux,code = <0>; /* SW_LID */
diff --git a/arch/arm/boot/dts/st/ste-hrefprev60.dtsi b/arch/arm/boot/dts/st/ste-hrefprev60.dtsi
index c87fd27b4434..5686d777311f 100644
--- a/arch/arm/boot/dts/st/ste-hrefprev60.dtsi
+++ b/arch/arm/boot/dts/st/ste-hrefprev60.dtsi
@@ -10,7 +10,7 @@
 
 / {
 	gpio_keys {
-		button at 1 {
+		button-139 {
 			gpios = <&tc3589x_gpio 7 GPIO_ACTIVE_HIGH>;
 		};
 	};
diff --git a/arch/arm/boot/dts/st/ste-snowball.dts b/arch/arm/boot/dts/st/ste-snowball.dts
index 5b27393a7ac6..29e680264e5b 100644
--- a/arch/arm/boot/dts/st/ste-snowball.dts
+++ b/arch/arm/boot/dts/st/ste-snowball.dts
@@ -61,38 +61,36 @@ en_3v3_reg: en_3v3 {
 
 	gpio_keys {
 		compatible = "gpio-keys";
-		#address-cells = <1>;
-		#size-cells = <0>;
 
-		button at 1 {
+		button-1 {
 			debounce-interval = <50>;
 			wakeup-source;
 			linux,code = <2>;
 			label = "userpb";
 			gpios = <&gpio1 0 GPIO_ACTIVE_HIGH>;
 		};
-		button at 2 {
+		button-2 {
 			debounce-interval = <50>;
 			wakeup-source;
 			linux,code = <3>;
 			label = "extkb1";
 			gpios = <&gpio4 23 GPIO_ACTIVE_HIGH>;
 		};
-		button at 3 {
+		button-3 {
 			debounce-interval = <50>;
 			wakeup-source;
 			linux,code = <4>;
 			label = "extkb2";
 			gpios = <&gpio4 24 GPIO_ACTIVE_HIGH>;
 		};
-		button at 4 {
+		button-4 {
 			debounce-interval = <50>;
 			wakeup-source;
 			linux,code = <5>;
 			label = "extkb3";
 			gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;
 		};
-		button at 5 {
+		button-5 {
 			debounce-interval = <50>;
 			wakeup-source;
 			linux,code = <6>;
diff --git a/arch/arm/boot/dts/st/ste-ux500-samsung-golden.dts b/arch/arm/boot/dts/st/ste-ux500-samsung-golden.dts
index 369572347222..52a54732719e 100644
--- a/arch/arm/boot/dts/st/ste-ux500-samsung-golden.dts
+++ b/arch/arm/boot/dts/st/ste-ux500-samsung-golden.dts
@@ -391,21 +391,21 @@ gpio-keys {
 
 		label = "GPIO Buttons";
 
-		volume-up {
+		key-volume-up {
 			label = "VOL+";
 			/* GPIO67 (VOL_UP) */
 			gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
 			linux,code = <KEY_VOLUMEUP>;
 		};
 
-		volume-down {
+		key-volume-down {
 			label = "VOL-";
 			/* GPIO92 (VOL_DOWN) */
 			gpios = <&gpio2 28 GPIO_ACTIVE_LOW>;
 			linux,code = <KEY_VOLUMEDOWN>;
 		};
 
-		home {
+		key-home {
 			label = "HOME";
 			/* GPIO91 (HOME_KEY) */
 			gpios = <&gpio2 27 GPIO_ACTIVE_LOW>;

-- 
2.56.1




More information about the linux-arm-kernel mailing list