]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
ARM: tegra: transformer-t30: bind Hall sensor
authorSvyatoslav Ryhel <clamor95@gmail.com>
Wed, 31 Jan 2024 08:08:06 +0000 (10:08 +0200)
committerSvyatoslav Ryhel <clamor95@gmail.com>
Mon, 22 Apr 2024 09:17:21 +0000 (12:17 +0300)
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
arch/arm/dts/tegra30-asus-tf600t.dts
arch/arm/dts/tegra30-asus-transformer.dtsi

index 06151816c8de8c7ed7b726b10cff94cd341973d3..3ddd78b3df6728937763a9a21090c181c033cbe4 100644 (file)
                clock-output-names = "pmic-oscillator";
        };
 
+       extcon-keys {
+               compatible = "gpio-keys";
+
+               switch-dock-hall-sensor {
+                       label = "Lid sensor";
+                       gpios = <&gpio TEGRA_GPIO(BB, 6) GPIO_ACTIVE_LOW>;
+                       linux,code = <SW_LID>;
+               };
+       };
+
        gpio-keys {
                compatible = "gpio-keys";
 
index 766c783adccb9b9755217360af0507411f71e0aa..03ba8fb9604d6e4dae0019338a1840d40d1d0568 100644 (file)
                clock-output-names = "pmic-oscillator";
        };
 
+       extcon-keys {
+               compatible = "gpio-keys";
+
+               switch-dock-hall-sensor {
+                       label = "Lid sensor";
+                       gpios = <&gpio TEGRA_GPIO(S, 6) GPIO_ACTIVE_LOW>;
+                       linux,code = <SW_LID>;
+               };
+       };
+
        gpio-keys {
                compatible = "gpio-keys";