Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp3499605imm; Wed, 5 Sep 2018 00:52:32 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ8wMdGzvtXo1NrHHAkw2YGVExwifAfd9SEC88xoFC1CkQwvERELjW6umIg4KeNdcF7QS1p X-Received: by 2002:a63:ac11:: with SMTP id v17-v6mr34934096pge.196.1536133952615; Wed, 05 Sep 2018 00:52:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536133952; cv=none; d=google.com; s=arc-20160816; b=GK6RPmKqGPAxs7WC0nOGCR6iBa4ZZ3cbjEeikNjnbDWUzGXImPwZluJ6eaAyJ9nDs3 +fh/QFI3o6x+p/jYAvBD33OxmIDWNNx//zXlRUst8Gh+0kcEbB9AOqyWjciZoTm7YGKD +u5UZt2Pa4FCchL9oOFkf553SHcJcNkDKkvwUUDlubSmB7ZQIDCohwY5tnJtfsQWci6S b8gcBeKxPw3pps/Bdn/ZP+YzCIcwGYL4Ahe282O/Z2l10CvlzbEReWoi1muFJ0hKyHD5 ozhWM9pyhNa4s0toXaizcoFP6C5BhaBrAd+UR8+2ynnhLqBTvvkYqnb3XI5S0PP5r2iS mscQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature; bh=PgOTjIsmrT5TvzY6SnWtGFF8ZS2I53EfZdboyrVazhc=; b=I1/W1CI3L5hp0cuNVTgfYhsMV3kyXD9LGz1rrTIejL8WxjwgJoo0AR1xopYzjC6AbH BweDqqnSxowz5BJhTL4i1xZfSIkFM6Fd38fcyAaEZ7nDl3dzyNjdf/UCfZ/hYUY/wRLH t6zj4CCpMJn+pGyG9FeO6xQI/hy+ZmWa6TYM7bonZYMtqkFPLPfCEnoHIqFqCwAm4D3o XltsNIDdO1T9AXCdxqECDwvPcZlg2nYop2A/t/rT3ghez3FHyLJYcDk08YXPYcnfNiPq +7hImcmMJwMcHX2aQNXVNw75LIoicJLvpTvdKIbh+iUuEM+8oQ7ZMWqKizJ/FX6UcbCo oKZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=N03kP+UE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cd4-v6si1325245plb.516.2018.09.05.00.52.16; Wed, 05 Sep 2018 00:52:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=N03kP+UE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727700AbeIEMUD (ORCPT + 99 others); Wed, 5 Sep 2018 08:20:03 -0400 Received: from mail-eopbgr00043.outbound.protection.outlook.com ([40.107.0.43]:9824 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726401AbeIEMUC (ORCPT ); Wed, 5 Sep 2018 08:20:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PgOTjIsmrT5TvzY6SnWtGFF8ZS2I53EfZdboyrVazhc=; b=N03kP+UED+ZA7jkK1GNZsm3/fSH1VDvaI+bSqvoYvmjCYB4jow97vFsPimQ5Id2HYRCa0h4U6YwiBaXTuxLQXn2J/6VQSnCuG+1sJooWzhQXNH3lMXfwksl3655ih4J9YjTkkV2SqXylHZckLNpJWJAYONX7XVyK3uNi/f1ngLY= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=anson.huang@nxp.com; Received: from anson-OptiPlex-790.ap.freescale.net (119.31.174.66) by DB3PR0402MB3914.eurprd04.prod.outlook.com (2603:10a6:8:f::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1101.18; Wed, 5 Sep 2018 07:50:58 +0000 From: Anson Huang To: shawnguo@kernel.org, s.hauer@pengutronix.de, kernel@pengutronix.de, fabio.estevam@nxp.com, robh+dt@kernel.org, mark.rutland@arm.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Linux-imx@nxp.com Subject: [PATCH] ARM: dts: imx6qdl-sabreauto: add gpio keys support Date: Wed, 5 Sep 2018 15:46:12 +0800 Message-Id: <1536133572-2138-1-git-send-email-Anson.Huang@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [119.31.174.66] X-ClientProxiedBy: HK0PR03CA0095.apcprd03.prod.outlook.com (2603:1096:203:72::35) To DB3PR0402MB3914.eurprd04.prod.outlook.com (2603:10a6:8:f::29) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 39713aa6-3593-4cef-8e34-08d6130453d2 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);SRVR:DB3PR0402MB3914; X-Microsoft-Exchange-Diagnostics: 1;DB3PR0402MB3914;3:FW0XAzbY50Zq6Gp2gvHFN44i+eR3US03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wOFMRFstKTNbOafy6ywn9LX3sitS1Fghq2WSXpRTG5wC5Eu5JULtDx1ooLD6Zr23cpdxDoJsfYUjUkEUkD2awYEH7FOAGWSKXNJNq+4xHl9ZLaVwOUBCIj+amVZaO7wZYF2/IGYrX2z0Y67OUlhpXNmYeWhMjQYJDQTZHBCxDo1h//QpGLHw4ISfBDzXNfs3tjjqH8FlIpcVBLZaV+tNIqAVlpjZS6cq9tSOHrad8pSGC+X3KrJvkecnxlYYZmTZNFTA91YWazuXDNXLLKhadzNvqZlo/EXhQEXsQ866pkULxwcw9k2mHgt8nFM;4:lzPIYTGb5hA/SNbFqDhspfgAJM1cTBfY6tfzFM/8a/JPC4Dt0I+qK3Ce+mnuIqQqx6IaMmBDJFLz5MnakuiS8+Zh3NsdrxJVJ9764HUMeZSmPmsIXaJisNxlB5qWqBmEMBoO5w39POkp6JuiR1QHtku1usYRvSazOb0H4hGaFoqfZAWa3Doi4+lB2TstEWeobbCl8erQtyjLGrCet/vjIzY5CF36n2aEzFFUYiQybkocQXOe0ZwOezJN3pD44dfoGNcVSk+qt6QGaZgzxFRIXAOCfc0kDhojAYBu4A+HSTV6NGpgh3mru5lJWU0Rd8en X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(823301075)(3231311)(944501410)(52105095)(3002001)(93006095)(93001095)(10201501046)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123562045)(201708071742011)(7699016);SRVR:DB3PR0402MB3914;BCL:0;PCL:0;RULEID:;SRVR:DB3PR0402MB3914; X-Forefront-PRVS: 078693968A X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(366004)(376002)(396003)(136003)(346002)(39860400002)(199004)(189003)(6486002)(478600001)(53936002)(97736004)(50466002)(8936002)(25786009)(66066001)(4326008)(50226002)(6512007)(51416003)(47776003)(52116002)(1857600001)(5660300001)(81166006)(26005)(106356001)(7736002)(6116002)(476003)(2616005)(956004)(16526019)(186003)(6506007)(386003)(486006)(8676002)(2906002)(36756003)(305945005)(316002)(86362001)(575784001)(68736007)(105586002)(3846002)(81156014)(6666003)(16586007)(48376002)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:DB3PR0402MB3914;H:anson-OptiPlex-790.ap.freescale.net;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;A:1;MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DB3PR0402MB3914;23:D2IHaFY3P+5fJk+sWAkmLG+HmNYCKxhuZhRATpA?= =?us-ascii?Q?zzqIhAZWOTVaZeBSiu/nUsrVUuiwXvoDhfjY88ICcg6ud2Sv5NQ7ZqyUXADr?= =?us-ascii?Q?oRjMpdiK6wF8Ia0Wd/3yfUDgeoxwYZJCCAJWvMKO0pUxfEUcc5K1jI1m9bIT?= =?us-ascii?Q?I3Kz7AOw8WxNGgzTKKuYcJEgAnsspBhc9vmfFxNnjXAR/wj0J6n0Ddie3QBa?= =?us-ascii?Q?e9anARy82JZ7ve71KxRo8jTTjnNhYo5dAvlPReLKEeZzj76gVQBbvo1jnJvM?= =?us-ascii?Q?86GPrDCdVMaW1252f+acPklbu+Cn7sPy9ofsCJeWRRFijsZnOXJx6U8bufPx?= =?us-ascii?Q?LHB8jdOCkhE0dF9NoW9zd7Sqg8HzJK5konK93ewoQ3swbmGo2LVRP8T0ZgQC?= =?us-ascii?Q?3wn7amBq2JalFyL3CGVa1B4a2RejlXmSCcxAJcKgDyG1hMMVlW1o5I5X1RuN?= =?us-ascii?Q?v0J0vKmM6/lldN5WmTIGHPLd2yWGy//wxMUXqlF0JoY3A3Y5DVVhRs1xUhZI?= =?us-ascii?Q?o08a+wwSCvwTGD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-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Sep 2018 07:50:58.9733 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 39713aa6-3593-4cef-8e34-08d6130453d2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0402MB3914 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add i.MX6QDL SabreAuto board's gpio keys support, there are 5 gpio keys on base board: SW3: KEY_HOME; SW4: KEY_BACK; SW5: KEY_PROGRAM; SW6: KEY_VOLUMEUP; SW7: KEY_VOLUMEDOWN; Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6qdl-sabreauto.dtsi | 52 ++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi index 9f11f1f..246af86 100644 --- a/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi +++ b/arch/arm/boot/dts/imx6qdl-sabreauto.dtsi @@ -4,6 +4,7 @@ // Copyright 2011 Linaro Ltd. #include +#include / { chosen { @@ -25,6 +26,47 @@ }; }; + gpio-keys { + compatible = "gpio-keys"; + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_gpio_keys>; + + home { + label = "Home"; + gpios = <&gpio1 11 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + back { + label = "Back"; + gpios = <&gpio1 12 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + program { + label = "Program"; + gpios = <&gpio2 12 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + volume-up { + label = "Volume Up"; + gpios = <&gpio2 15 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + + volume-down { + label = "Volume Down"; + gpios = <&gpio5 14 GPIO_ACTIVE_LOW>; + linux,code = ; + wakeup-source; + }; + }; + clocks { codec_osc: anaclk2 { compatible = "fixed-clock"; @@ -446,6 +488,16 @@ >; }; + pinctrl_gpio_keys: gpiokeysgrp { + fsl,pins = < + MX6QDL_PAD_SD2_CMD__GPIO1_IO11 0x1b0b0 + MX6QDL_PAD_SD2_DAT3__GPIO1_IO12 0x1b0b0 + MX6QDL_PAD_SD4_DAT4__GPIO2_IO12 0x1b0b0 + MX6QDL_PAD_SD4_DAT7__GPIO2_IO15 0x1b0b0 + MX6QDL_PAD_DISP0_DAT20__GPIO5_IO14 0x1b0b0 + >; + }; + pinctrl_gpio_leds: gpioledsgrp { fsl,pins = < MX6QDL_PAD_DISP0_DAT21__GPIO5_IO15 0x80000000 -- 2.7.4