]> www.infradead.org Git - linux.git/commitdiff
ARM: tegra: tf701t: Re-group GPIO keys
authorSvyatoslav Ryhel <clamor95@gmail.com>
Tue, 6 Aug 2024 12:39:04 +0000 (15:39 +0300)
committerThierry Reding <treding@nvidia.com>
Thu, 29 Aug 2024 15:16:28 +0000 (17:16 +0200)
Group GPIO keys into keys and switches.

Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
arch/arm/boot/dts/nvidia/tegra114-asus-tf701t.dts

index 0c9230b0d68394583403f73b2e0cbfa28631a765..ce75a31711f4dc9e4bb469598e873f3b02f8a44f 100644 (file)
                };
        };
 
-       gpio-hall-sensor {
+       extcon-keys {
                compatible = "gpio-keys";
 
-               label = "GPIO Hall Effect Sensor";
-
                switch-hall-sensor {
                        label = "Hall Effect Sensor";
                        gpios = <&gpio TEGRA_GPIO(O, 5) GPIO_ACTIVE_LOW>;
                        linux,can-disable;
                        wakeup-source;
                };
+
+               switch-lineout-detect {
+                       label = "Audio dock line-out detect";
+                       gpios = <&gpio TEGRA_GPIO(X, 5) GPIO_ACTIVE_LOW>;
+                       linux,input-type = <EV_SW>;
+                       linux,code = <SW_LINEOUT_INSERT>;
+                       debounce-interval = <10>;
+               };
        };
 
        gpio-keys {
                compatible = "gpio-keys";
 
-               label = "GPIO Buttons";
-
-               button-power {
+               key-power {
                        label = "Power";
                        gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_POWER>;
                        wakeup-source;
                };
 
-               button-volume-down {
+               key-volume-down {
                        label = "Volume Down";
                        gpios = <&gpio TEGRA_GPIO(R, 1) GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_VOLUMEDOWN>;
                        debounce-interval = <10>;
                };
 
-               button-volume-up {
+               key-volume-up {
                        label = "Volume Up";
                        gpios = <&gpio TEGRA_GPIO(R, 2) GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_VOLUMEUP>;