diff options
author | Laxman Dewangan <ldewangan@nvidia.com> | 2013-07-10 12:30:43 +0530 |
---|---|---|
committer | Stephen Warren <swarren@nvidia.com> | 2013-07-15 10:35:49 -0600 |
commit | 21b341cac2cdc52d59db5bd936a5c6b325286c2d (patch) | |
tree | d58687bd5049016b665b30b6966ab688e6f598ac /arch/arm/boot/dts/tegra114-dalmore.dts | |
parent | ad81f0545ef01ea651886dddac4bef6cec930092 (diff) | |
download | op-kernel-dev-21b341cac2cdc52d59db5bd936a5c6b325286c2d.zip op-kernel-dev-21b341cac2cdc52d59db5bd936a5c6b325286c2d.tar.gz |
ARM: tegra: enable gpio-keys on Dalmore
Dalmore have the keys mounted on board which are connected
to different pins of Tegra.
Add the keys entry in DTS file to enable key functionality.
This will enable KEY_POWER, KEY_HOME, KEY_VOLUMEUP and
KEY_VOLUMEDOWN.
Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'arch/arm/boot/dts/tegra114-dalmore.dts')
-rw-r--r-- | arch/arm/boot/dts/tegra114-dalmore.dts | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/tegra114-dalmore.dts b/arch/arm/boot/dts/tegra114-dalmore.dts index cb640eb..a42bfa4 100644 --- a/arch/arm/boot/dts/tegra114-dalmore.dts +++ b/arch/arm/boot/dts/tegra114-dalmore.dts @@ -883,6 +883,35 @@ }; }; + gpio-keys { + compatible = "gpio-keys"; + + home { + label = "Home"; + gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>; + linux,code = <102>; /* KEY_HOME */ + }; + + power { + label = "Power"; + gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>; + linux,code = <116>; /* KEY_POWER */ + gpio-key,wakeup; + }; + + volume_down { + label = "Volume Down"; + gpios = <&gpio TEGRA_GPIO(R, 1) GPIO_ACTIVE_LOW>; + linux,code = <114>; /* KEY_VOLUMEDOWN */ + }; + + volume_up { + label = "Volume Up"; + gpios = <&gpio TEGRA_GPIO(R, 2) GPIO_ACTIVE_LOW>; + linux,code = <115>; /* KEY_VOLUMEUP */ + }; + }; + regulators { compatible = "simple-bus"; #address-cells = <1>; |