From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753434AbcB2NTf (ORCPT ); Mon, 29 Feb 2016 08:19:35 -0500 Received: from hqemgate14.nvidia.com ([216.228.121.143]:8577 "EHLO hqemgate14.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752810AbcB2NTd (ORCPT ); Mon, 29 Feb 2016 08:19:33 -0500 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Mon, 29 Feb 2016 05:18:23 -0800 From: Laxman Dewangan To: , CC: , , , , , , , , , Laxman Dewangan Subject: [PATCH 1/2] arm64: tegra: Add DT entry for keys used in Jetson-TX1 Date: Mon, 29 Feb 2016 18:36:50 +0530 Message-ID: <1456751211-14341-1-git-send-email-ldewangan@nvidia.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add DT entry for keys used in Jetson-TX p2371-2180. This has three keys, POWER, VOLUME-UP and VOLUME-DOWN. Signed-off-by: Laxman Dewangan --- arch/arm64/boot/dts/nvidia/tegra210-p2371-2180.dts | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/arch/arm64/boot/dts/nvidia/tegra210-p2371-2180.dts b/arch/arm64/boot/dts/nvidia/tegra210-p2371-2180.dts index 683b339..18147eb 100644 --- a/arch/arm64/boot/dts/nvidia/tegra210-p2371-2180.dts +++ b/arch/arm64/boot/dts/nvidia/tegra210-p2371-2180.dts @@ -2,8 +2,33 @@ #include "tegra210-p2180.dtsi" #include "tegra210-p2597.dtsi" +#include / { model = "NVIDIA Jetson TX1 Developer Kit"; compatible = "nvidia,p2371-2180", "nvidia,tegra210"; + + gpio-keys { + compatible = "gpio-keys"; + label = "gpio-keys"; + + power { + label = "Power"; + gpios = <&gpio TEGRA_GPIO(X, 5) GPIO_ACTIVE_LOW>; + linux,code = ; + gpio-key,wakeup; + }; + + volume_down { + label = "Volume Down"; + gpios = <&gpio TEGRA_GPIO(Y, 0) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + volume_up { + label = "Volume Up"; + gpios = <&gpio TEGRA_GPIO(X, 6) GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; }; -- 2.1.4