diff options
author | Svyatoslav Ryhel | 2024-01-31 10:08:06 +0200 |
---|---|---|
committer | Svyatoslav Ryhel | 2024-04-22 12:17:21 +0300 |
commit | 1c559d6fc55e06bbbd5112e96540d1135169be9c (patch) | |
tree | af5e2ce3fc742ac27f1f297b2565a80425224607 | |
parent | 6df3d1e0fc708ab3c3664c389273cda76b8e2fc8 (diff) |
ARM: tegra: transformer-t30: bind Hall sensor
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
-rw-r--r-- | arch/arm/dts/tegra30-asus-tf600t.dts | 10 | ||||
-rw-r--r-- | arch/arm/dts/tegra30-asus-transformer.dtsi | 10 |
2 files changed, 20 insertions, 0 deletions
diff --git a/arch/arm/dts/tegra30-asus-tf600t.dts b/arch/arm/dts/tegra30-asus-tf600t.dts index 06151816c8d..3ddd78b3df6 100644 --- a/arch/arm/dts/tegra30-asus-tf600t.dts +++ b/arch/arm/dts/tegra30-asus-tf600t.dts @@ -1122,6 +1122,16 @@ 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"; diff --git a/arch/arm/dts/tegra30-asus-transformer.dtsi b/arch/arm/dts/tegra30-asus-transformer.dtsi index 766c783adcc..03ba8fb9604 100644 --- a/arch/arm/dts/tegra30-asus-transformer.dtsi +++ b/arch/arm/dts/tegra30-asus-transformer.dtsi @@ -1150,6 +1150,16 @@ 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"; |