From patchwork Fri Mar 16 08:54:31 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Anson Huang X-Patchwork-Id: 10286979 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 2A32260291 for ; Fri, 16 Mar 2018 11:56:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 188DE28E33 for ; Fri, 16 Mar 2018 11:56:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0CA7428E3A; Fri, 16 Mar 2018 11:56:07 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 8614528E33 for ; Fri, 16 Mar 2018 11:56:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=LKZHfGiJbN+MrTteP2efWDnxLpNOTnY96Dcqw51APjI=; b=iHOUY7x4ifjqN6 NOoioYd6libQYIl1sbOrZG0xwucDzT8ctV2R2dKpoNAFVXr6ezp8aC9YwoyXPR+3xAJL30VzC5pJs n8sgwJ2wPEQZ/sNbpcSwoeGqopGpLUEU+Q75IwAJQaYMpmDbIomLdsrYB5n76XkxT+bcMmrlhN3QS nT1zsBoKtXZ4A9gbeXP7CWezBcAnn6oooXJBehN9j4WO6y//ZDm26E20sBiffnHhE69tbuadIGc8q xDE8ZbSC38SzBMCJdzuwtAFKCv+XVqxNQ4FDHWFB+e+BgVF8V0vqp2vO1WJ9wlatns855Tl7UHjVk L8t4Ee/0v3Fl3vM0cf2Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewnxr-0004VT-K9; Fri, 16 Mar 2018 11:56:03 +0000 Received: from mail-sn1nam02on0065.outbound.protection.outlook.com ([104.47.36.65] helo=NAM02-SN1-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1ewnxo-0004TK-7W for linux-arm-kernel@lists.infradead.org; Fri, 16 Mar 2018 11:56:01 +0000 Received: from CY4PR03CA0093.namprd03.prod.outlook.com (2603:10b6:910:4d::34) by CY4PR03MB3158.namprd03.prod.outlook.com (2603:10b6:910:53::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.588.14; Fri, 16 Mar 2018 11:55:45 +0000 Received: from BY2FFO11FD003.protection.gbl (2a01:111:f400:7c0c::138) by CY4PR03CA0093.outlook.office365.com (2603:10b6:910:4d::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.588.14 via Frontend Transport; Fri, 16 Mar 2018 11:55:45 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; lists.infradead.org; dkim=none (message not signed) header.d=none;lists.infradead.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD003.mail.protection.outlook.com (10.1.14.125) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.527.18 via Frontend Transport; Fri, 16 Mar 2018 11:55:43 +0000 Received: from anson-OptiPlex-790.ap.freescale.net (anson-OptiPlex-790.ap.freescale.net [10.192.242.177]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id w2G8vPqM010056; Fri, 16 Mar 2018 01:57:25 -0700 From: Anson Huang To: , , , , , Subject: [PATCH] ARM: dts: imx7d-sdb: add gpio key support Date: Fri, 16 Mar 2018 16:54:31 +0800 Message-ID: <1521190471-25242-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131656749447432332; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:CAL; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(979002)(7966004)(39380400002)(346002)(376002)(39860400002)(396003)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(77096007)(36756003)(26005)(336012)(68736007)(104016004)(2906002)(1857600001)(51416003)(54906003)(110136005)(105606002)(16586007)(106466001)(47776003)(97736004)(316002)(85426001)(53936002)(305945005)(8936002)(81156014)(8676002)(50226002)(81166006)(107886003)(5660300001)(50466002)(48376002)(4326008)(2201001)(6666003)(508600001)(86362001)(356003)(26826003)(72206003)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB3158; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD003; 1:Wt7vbCWYA66T2odrMUako1jIZ6MGxCqiHoBTsIim54Ugigr8iiyWyIr06qOUAWngE9TnXq/J4H+CxAEbA31lpOulN1YhBYPkRBUYtttgS/WHq8RGVgbn/UyR14Dzlvsk MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: d8e1d2c5-1861-4b74-fac2-08d58b34d977 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(5600026)(4604075)(2017052603328); SRVR:CY4PR03MB3158; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB3158; 3:mTEWx4n+2ZlDjIwBU8s9D2zwMMFAmV7dPYRRFYTwPu8grEp1oQQot2nZDk5ZVYdoiHYEF1an8YFuz7PWlKTRZbyhVKKNnSIvoqCtGSChjFSgh6snDhRfYPhZVA167XOMaX/7/hXFG3rwC5tuUCPlu0Xk9c+vuhpxJ5jOyZDGqt0Qjcjm437SmwD+TKf7BmR9m+tcS+x5FFfzxeHUKVIxF+VYn/VgEBVhbRnQ4s5NrldHFlJY8wtdqIhgufy7mDQ5QyTi5h80Xqt/HGR8eP6OiWQg2zwXmacB20HWrolVpTo6Yf+ZJaNxJmtfml3JesutQOegnbSPvO5yhubU5GxO58gCG+z0gALF/Cn1lEbVYrs=; 25:jM60E9Vfv3mzcgxO0xNdMXQgL4laaLUTRz08G4GOsb0fh/03Bdsl7pGcl2u2Ms4VqY7hRoOglj5DLVKKDB8yTc+40ACRd3GOeVfOuL+I1oG8FDgroWyyTXNjo2YpT2OcQXC1bSxGPZV6J7QVuhewb9Si4ihDQSDyCzArPdc1FlhIuIvIhIdwRz6D2WdGwnV8N+MSrs7raAW6Aydiege7YSk41TOl61+9yWyb7a1vwQZy/UxSAX/BFICAOXPYspE/pw65RSq27BSoOroHL5Xw5gF5AhxMRrzO36knzgIVTuW9+bv9/Tyiwz3wiwM2ZiRxHRdYbgigpzHR9Y6uTO6SRQ== X-MS-TrafficTypeDiagnostic: CY4PR03MB3158: X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB3158; 31:duA2C0DHqL8h9s4aBeDRma9J+JnxTvPY/ui0YmU1okwilYPkr/w+vhGCLqZnhQoSK8T0dhazfUgre7vbP/CMI9fzh6H8eAd6hqrlhjpo9MPsjCgGmr3mzmN3WQj6FEpH93/MfpTKoSGMY1CMA1zeRFk+r4WBOmCHCg8/lNnoPkpADDxPAAiD3EOs/7C+L6L6wXq4qfoVQtwzEImaeO+UF7bXwe8mJ5l6pUMfICqsQMM=; 4:W/X+Pm4pm/OwSWZQMr8SfE31fOGdfFwJOg3T35eVoSNJkIld6ga6ya6pO0Gi22U7WIppNVLcfbsc88SQZSJDUBWitDxzn1JBWAgTkWyX7IKEqjtcGNgFAY3IoEqyruYKxBAi4QJkl8ygazw4AGHHI8VHPUiyTODMdEroxyDHpTMMsos+ZmJltE5NI1QX54lLrFKkQpqhcSeuQ43Tt6L+T4P/iDpIp2nzBh568wH0TSwFmVGEL9aSmhFOnd6tbraJpJB6FomnvcXAXuI2qgDxZCBZQfpktxYVvRpTxtJFMnS08oKlZO9GJ75tCdfoHcbm X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095135)(2401047)(8121501046)(5005006)(10201501046)(3002001)(3231221)(944501281)(52105095)(93006095)(93001095)(6055026)(6096035)(20161123559100)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(20161123563025)(20161123565025)(20161123556025)(20161123561025)(201708071742011); SRVR:CY4PR03MB3158; BCL:0; PCL:0; RULEID:(400006); SRVR:CY4PR03MB3158; X-Forefront-PRVS: 0613912E23 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR03MB3158; 23:gVHZQuZ0OpaX/AQ7CsiZ/Ml3TOGtUTK2cIhGUfTLS?= =?us-ascii?Q?nTNxZMf2PNV+xXG0cdzLE3I9u0w5/JihrqVDM2nbE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ORuMxx2JcfqpJcxknYxH3Cw1zobX1sdX+y89gdKPt/ttsbB160/b6RrLMaV5wS/PrtNTz9XVwojnIsGIglxXW0=; 24:t3YzCOQmk3IBXX5mDLPLGT1hShGrtHBVNOb6YgsUsiYHCBcWhODsVxaumgyGM6ZtsUaF7SyOh+p1+Qua+7dvV8bEG0XOMI9+wP+keyBgSo4=; 7:x6+W76ZZYEl+kgfommkz2qJopx9tqUpxv32rwv9kZbaAZMWWohyTtWXcPXLJO0I7MQ2Sd4Fvn2HYSbdRWAtZSQ6f1BoNH7+8lk/+BSuNhgi9Kbi38aqAbrKmTbcpbAlX+28I6u6Ajog0j5vePK5Oe0ywY4kVBKU5g/PGFIxbsXL3q5aFsfiFQ+afF+Hk/qBDBK1R5rBpKvoVs8F05j92s/rrMJkBYxQubJcypJ3EPxvlUFljn87F/JDwYqk2REW5 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Mar 2018 11:55:43.9320 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: d8e1d2c5-1861-4b74-fac2-08d58b34d977 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR03MB3158 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180316_045600_326124_8AFD164F X-CRM114-Status: UNSURE ( 6.31 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Linux-imx@nxp.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP Add support for imx7d-sdb board's gpio keys: S1(FUNC1): KEY_VOLUMEUP S3(FUNC2): KEY_VOLUMEDOWN Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx7d-sdb.dts | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/imx7d-sdb.dts b/arch/arm/boot/dts/imx7d-sdb.dts index 7f241af..e47b5b2 100644 --- a/arch/arm/boot/dts/imx7d-sdb.dts +++ b/arch/arm/boot/dts/imx7d-sdb.dts @@ -52,6 +52,24 @@ reg = <0x80000000 0x80000000>; }; + gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio_keys>; + + volume-up { + label = "Volume Up"; + gpios = <&gpio5 11 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + + volume-down { + label = "Volume Down"; + gpios = <&gpio5 10 GPIO_ACTIVE_LOW>; + linux,code = ; + }; + }; + spi4 { compatible = "spi-gpio"; pinctrl-names = "default"; @@ -519,6 +537,12 @@ >; }; + pinctrl_gpio_keys: gpio_keysgrp { + fsl,pins = < + MX7D_PAD_SD2_RESET_B__GPIO5_IO11 0x59 + MX7D_PAD_SD2_WP__GPIO5_IO10 0x59 + >; + }; pinctrl_hog: hoggrp { fsl,pins = <