Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp356823imm; Thu, 30 Aug 2018 00:05:31 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaldqWeYgsUo5YDp+NbRsy1pjkF4/y1MI4gMdPALohkRtS3eypbHaE5nwpJjx4MgAP+hDhy X-Received: by 2002:a17:902:70cc:: with SMTP id l12-v6mr9001991plt.132.1535612731450; Thu, 30 Aug 2018 00:05:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535612731; cv=none; d=google.com; s=arc-20160816; b=g5z6dQIoXMB9/2V54LSssGxmLSkWGfj/iNfgMW6L3snkkAfSGz9qlW3NcqaTMNofln ScmE6iAwTcrOcS6TjWTpCLVFwaMtE1QIiJIjRf6Gcz3p7IhTCeSra76AiEi9AvNYqen7 fmEvepEvDjZR7Z6nGUGogHaRHy/mByrD7lqCj2AZRNoIm59sEBdMcmU9ce4V86lbnpk+ WAGpOXdnZr7w9TfN5p4J7HAjzvUOoT2QYyx/ECjG0G8hlNz9Plx0amoxeOxOV91GpMlV oPHGLnIP6adQO7ErmcjGxwKbm0IgE/SO5yEH9iNhvbRheofvd034rlT5NQiprXLncNzR fowg== 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:arc-authentication-results; bh=SFVg6tZ63JoD6DY6DjG+AURXA00BM+/eZM11++MV8/s=; b=Y2qZ5pBqyL4pL9zOesLiKKibHSYBKVS7lTKw/IVkCuifz6xZsbjRTtJSLuQ0yfxTFS SEmerEGsW0QDth9HHbNu3VkBPUsD8nANgjCw29wMohDFah7k9gS8izEsg1VdjMiG3/5L x3POjHG52lV3kZkK1Nl7abF0NZ0yhd9MYqxlVVoa83DGRZpI6CUJ5ob3sorqKi2/Ef/c IEUuqAnM48DkoPoxyrH38weOX5AENubw7iZkrmWf/LqvsRxRly42+fVnOqFGWFbQX6VA hVHsLzGNfWfIAkjPLxhdEGHkx1OtHq7ZlOeDb2wGxuqd43MjPMCuHg4lt9XQXPSmJ3bm fGCg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nxp.com header.s=selector1 header.b=chEEA7b4; 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 n85-v6si6303207pfj.251.2018.08.30.00.05.15; Thu, 30 Aug 2018 00:05:31 -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=chEEA7b4; 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 S1727544AbeH3LEq (ORCPT + 99 others); Thu, 30 Aug 2018 07:04:46 -0400 Received: from mail-eopbgr20078.outbound.protection.outlook.com ([40.107.2.78]:2048 "EHLO EUR02-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726169AbeH3LEp (ORCPT ); Thu, 30 Aug 2018 07:04:45 -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=SFVg6tZ63JoD6DY6DjG+AURXA00BM+/eZM11++MV8/s=; b=chEEA7b4HXepHMbnZyuZ5YMLTf5QF63feSrpKQi7CXxJHHNQ/o3E3QZxbOPKGbzkReqeMyH6RXTDsRw8w2hifzAKp8REgg47W+fQpD4GAUyG+PZ1+7xALU7REvnQ3r1YbcAwrnVTNQV0ZpOSblA6lLafszNb8nLqmVhNDMSnF3U= 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 AM6PR0402MB3909.eurprd04.prod.outlook.com (2603:10a6:209:1b::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Thu, 30 Aug 2018 07:03:52 +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: imx6sx-sdb: enable gpio buttons as wakeup source Date: Thu, 30 Aug 2018 14:59:39 +0800 Message-Id: <1535612379-8793-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: HK0P153CA0023.APCP153.PROD.OUTLOOK.COM (2603:1096:203:18::35) To AM6PR0402MB3909.eurprd04.prod.outlook.com (2603:10a6:209:1b::32) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f13a5c5b-42a2-4330-a2ac-08d60e46c0a8 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:AM6PR0402MB3909; X-Microsoft-Exchange-Diagnostics: 1;AM6PR0402MB3909;3:FGjQVtFQmEaCzKshQNTPZ851TlT7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SQlPCiry0dPbEjbEVzkM3s9odnLfaeN2xaM4CecFgmGdeV5Go9Tv8q0N5BiqS0LwSWuYxuagmP3E47D+4e96TclxoquqO2F7nhxOjYOQYJMgdKK173TSubWuO9nImJKGsNc/3ugLUxC0lZ2+G5OcrT5McIQ4nhuCyiey/37oW3qbbkqd2AZWmsbgHwyUVExNxpDZ212l7jV+coOo4/Gbu9akFMr5RgiIWdrGGx+7RXVhKe8ItAPBvM5wQ9V/FvIgEHDCx6lGQWHAs486Nad78obMAIklAwHLBmC6MdcYJWti70s6PqdgKGWz03VwL1/xpsYGJFIp;4:FwPcRepfhS+eOIOEcxFNL7oFMI4NroPplyK4wG0nc6cDgCk5gMAq4/Ty9ArjAcV718Arlr9o0QNwnLtcUbA7K1gQhAVQhByTNGYxetyE/1YVcaZmCbcFP9fCcmpOWDgpxhBCzbezM5NKEKOlrRCtWLUCsKtDanUk8/FMVelOA6IRiJr80ksFjZahRtMntHOa9KV+ZPwi584TrwMbm/yEMs8WEJ96WxleP1/X1pFgnA+KSjp55ZsNWwCKe2hTFtOYjseqgROIlugkXiw7r7YKHavKyhF0oEE90cdz2ryoZtymlongyI0bb0zD0MpeYwsm 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)(3002001)(3231311)(944501410)(52105095)(93006095)(93001095)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123560045)(20161123558120)(201708071742011)(7699016);SRVR:AM6PR0402MB3909;BCL:0;PCL:0;RULEID:;SRVR:AM6PR0402MB3909; X-Forefront-PRVS: 07807C55DC X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(346002)(366004)(136003)(376002)(396003)(39860400002)(189003)(199004)(386003)(4326008)(26005)(51416003)(52116002)(8936002)(6506007)(53936002)(16526019)(478600001)(1857600001)(186003)(316002)(6512007)(6116002)(3846002)(2906002)(25786009)(106356001)(86362001)(48376002)(105586002)(47776003)(6486002)(7736002)(305945005)(36756003)(68736007)(66066001)(97736004)(8676002)(50466002)(81166006)(6666003)(956004)(81156014)(5660300001)(16586007)(50226002)(486006)(2616005)(476003)(32563001);DIR:OUT;SFP:1101;SCL:1;SRVR:AM6PR0402MB3909;H:anson-OptiPlex-790.ap.freescale.net;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;AM6PR0402MB3909;23:y0ax5qrukNNPQcPMgPdzkx2z1qRj4+HHE04j2n5?= =?us-ascii?Q?KO6Ax8f9PJgiFuXasd5axY4BS/voLRSfSzxaufWgTeuVFVkAWQwFqTMpNgkQ?= =?us-ascii?Q?2dvBNIB41vU/rX1hMwB3TfadpIHB0r3Lo5pzKzpjeHDr+iyufAF0iW9IEY/i?= =?us-ascii?Q?XzC3VwfkdxDRd7uKcpuZn8PP5DrNrGdwa6vDsZwr++LSxa5osP0TVIfYVlYn?= =?us-ascii?Q?0CIKyNsumS1RWsXKmSCWKq/cnMLfLyAmoMjlB3G0GmzVb4sWJlQkLLEvDjGK?= =?us-ascii?Q?FMOAVyLbteHSKrEHKvNYvc08PVglGF7LaqccWgNYApR5V99g4Ysl+MS1qz9G?= =?us-ascii?Q?zekhWbNaltjhO1kf6V0JXI3crMhJC1rv1TXz2YuYN0xPs0ZupUjH4H6lsUZ5?= =?us-ascii?Q?x9b7LAHfPOVVhMHoiJ0pqYSG4mrpU3xXX4ZA16nuheU+MW9y6CSTExC7397G?= =?us-ascii?Q?JEvHOrS+A8FGxlbo5c/p/EPUx0U2W2FlNC30ixYYnVB6TkJYrXvR/WUO8gfG?= =?us-ascii?Q?uDBXFao3gB4ip2K/A+RJaslYJqj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U8PEaLqjJC4Bsvy12Qk6KhXoE/qHYE+Od5VaKyFawI4FYHkCHc= X-Microsoft-Exchange-Diagnostics: 1;AM6PR0402MB3909;6:efyqA2WQqOShawhKsOlAptJ9M2DSfDhXGDezk7MPyLywrYX7IdrLj8FwPYasC9v6984kZK1I6zMglSlFrNU9EKEBkZXMx9AflN8atbqKpacysozHCxpj+f38Mzs0BOH7Ecx2xyHxt7rANde22ThPbwJIAHh1fvkG7Zy8QlMcvh0eaHedyoxWnE7X+cSGofIVsux35rHgq6EZC5eqaHSEcOAPYwvzzsg3rNzLnnAWnQNLnm0S7NC/4tj8VN5VbXS5uKXGa7rOq+RpJJrCBCnsjvHzK4XkqzZnwREwLP6VXRJMAjtw5lSjspWpQY1WhN2F7C1g+Qy7iB+j1+mFRZIQZ9yOhcalQPZPHSpd/6yAJFDNxYzIin+9UBq6fobyAzVb+K/2QLh/iYj3OesD+k1FHCofQr/4CMfstl91Sp/WPtkITme2kecCLlVl5OmqHQJoDaX5Gwb9w5Zz73n39bMg/Q==;5:0r/3bXHwmikglG0KGam5Jq355ZgCp0k71AMFYeH09FUFB97Bq9c1ziROAa745VdZkq5Gjew83/RZcmTZf0gcokrKaHbP1x4CRZnzkUKq61zA6QCR0JIi2StLswpvpcD3Vkj6+fyVRY3ygCTuWo+PHtBu1p5gjmA1QED5qliGHCE=;7:IwYYbrZAk38iI3B3ER371MZqt/cflDbtJ88nlIfzaO8eo3TQUAbIU6k3G0C80RCD7qc03rW3remeIuyYPJKa2XIDPwOIiVudBre6z0p6Pmxr7nkgw0s4MPYG4ZFKgQbk25VpCshLL7VIt8hfQS2s05EOFhkMYEb0jPvZdnE4nzLGDJF69axtRIs3YOMND1AMl3vnl2QCWiHViZIYp28M25hBcsuyUEQQiTFKhmU8+3sEC6/QtuCiZylRLACPlXbK SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 07:03:52.7896 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f13a5c5b-42a2-4330-a2ac-08d60e46c0a8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0402MB3909 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch enables i.MX6SX SDB board's below GPIO buttons as wakeup sources: SW4(FUNC1): KEY_VOLUMEUP SW5(FUNC2): KEY_VOLUMEDOWN Signed-off-by: Anson Huang --- arch/arm/boot/dts/imx6sx-sdb.dtsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/boot/dts/imx6sx-sdb.dtsi b/arch/arm/boot/dts/imx6sx-sdb.dtsi index f8f3187..53b3408 100644 --- a/arch/arm/boot/dts/imx6sx-sdb.dtsi +++ b/arch/arm/boot/dts/imx6sx-sdb.dtsi @@ -40,12 +40,14 @@ label = "Volume Up"; gpios = <&gpio1 18 GPIO_ACTIVE_LOW>; linux,code = ; + wakeup-source; }; volume-down { label = "Volume Down"; gpios = <&gpio1 19 GPIO_ACTIVE_LOW>; linux,code = ; + wakeup-source; }; }; -- 2.7.4