ARM: tegra: dtb: Add new file to support gpio-keys
Jeetesh Burman [Mon, 17 Mar 2014 09:14:15 +0000 (14:14 +0530)]
Many GPIOs registered as interrupt are not applicable for PM375,
new file added for PM375 to support GPIOs which are applicable for
PM375.

Added file: tegra124-pm375-gpio-keys.dtsi

Bug 1475519

Change-Id: Ic7cdae2afa43751b3ba045f08c62dbb2c36b6562
Signed-off-by: Jeetesh Burman <jburman@nvidia.com>
Reviewed-on: http://git-master/r/382467
Reviewed-by: Matthew Pedro <mapedro@nvidia.com>
Tested-by: Matthew Pedro <mapedro@nvidia.com>

arch/arm/boot/dts/tegra124-platforms/tegra124-pm375-gpio-keys.dtsi [new file with mode: 0644]
arch/arm/boot/dts/tegra124-pm375.dts

diff --git a/arch/arm/boot/dts/tegra124-platforms/tegra124-pm375-gpio-keys.dtsi b/arch/arm/boot/dts/tegra124-platforms/tegra124-pm375-gpio-keys.dtsi
new file mode 100644 (file)
index 0000000..549c02a
--- /dev/null
@@ -0,0 +1,15 @@
+#include <dt-bindings/gpio/tegra-gpio.h>
+#include <dt-bindings/input/input.h>
+
+/ {
+       gpio-keys {
+               compatible = "gpio-keys";
+
+               power {
+                       label = "Power";
+                       gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
+                       linux,code = <KEY_POWER>;
+                       gpio-key,wakeup;
+               };
+       };
+};
index d65fba8..43dbf92 100644 (file)
@@ -1,7 +1,7 @@
 /dts-v1/;
 
 #include "tegra124.dtsi"
-#include "tegra124-platforms/tegra124-e1780-keys.dtsi"
+#include "tegra124-platforms/tegra124-pm375-gpio-keys.dtsi"
 #include "tegra124-platforms/tegra124-pm375-gpio-default.dtsi"
 #include "tegra124-platforms/tegra124-pm375-pinmux.dtsi"