From patchwork Sun Feb 18 17:03:34 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Keeping X-Patchwork-Id: 10226849 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 E9CA9602CB for ; Sun, 18 Feb 2018 17:41:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D73722894B for ; Sun, 18 Feb 2018 17:41:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB8CB2894F; Sun, 18 Feb 2018 17:41:54 +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=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 513802894B for ; Sun, 18 Feb 2018 17:41:54 +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:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: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=bE2Jc1gxSOtJOoaOFO/QWwNq3L5VviAl7kuCgqpRTdk=; b=ePl 6w16fHdlE5Z6t9ryOlPlmAjEEunnCCI5RsskCs2fOol+IL3TB9J3lyAInCxXQmqvTscg1V9VjEbco s0trKHP8EEI7NH190yQw3W9zULrLp2hpzcH/OZseXdnrk+C/cVp3z+6UR3Hw18tnL1eUmoM1FDGFJ BObMaMEIsklpgIRmjPXtRllz/BKZrRDyIfy4U1uoItqkCGysSlzfsNC01lyOeWPcxIW1BKp2alNPk +GqcKETRgrNNLViBqKHBJY94HxLsPSBL5rqgsVqMdYVlBAzmV5n7L9+BgNIAgG/qHUd6vJETH3gUP z4/CK5GEV01cF8j+d7xWHoKXa02tHOw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1enSy4-0008LN-Q8; Sun, 18 Feb 2018 17:41:40 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1enSy0-0008KW-UM; Sun, 18 Feb 2018 17:41:36 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Message-Id:Date:Subject:Cc:To:From: Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=eeKPX2JYRnBsNK0JYoleLYq1Y9oHI/j0VpkPgyyP550=; b=iNmrpBkq0bzKPZ3Ci40SFcupg EHiaSYADng4LPdR1LuqD92aNui7bzJh4nj9ErWRl0vByfbBHL/BJSh3TiJPVTDYKyInH2S1CnGSLj w+y9RgyXKEW/wJG3a3fpl5KW0o/gKyD81xzK3mSSHyRqTBBc1sbnp3u6yDbIOy/bEdJZmpu5WVwRT V12yJorWBXiChpcncXmFaadclxs/lQ7y8hMhSxnsSfFLFSRjoX8/dcTElWZGncFaDPEvE7CA1ecUb 3GQUcqM7yrkiIz8/Hg79C6HmRUtbRFLIDeFLJ6FzO67wRHPXby+MRgEtDMl6CwM6+wQHPPwbh3rSs gyw+3TXsA==; Received: from dougal.metanate.com ([90.155.101.14] helo=metanate.com) by merlin.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1enSNs-0007Tk-OC; Sun, 18 Feb 2018 17:04:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=simple/simple; d=metanate.com; s=stronger; h=Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To: MIME-Version:Content-Type:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=wQD/l7V82Or2Zm2aJvDN9aKdEa+/wSniK6HyuE5lkmE=; b=J9rEsj29Chh4JQSJgfrgooLDTH 7NTf7sS5ieiQs0w+Ee+iDaMwzwwd//yB84Zty4tQuO4Wdv4wwdM6G9s8KJ2DayG2tDYxf1Wyvl7oZ xHcgIB7vewvojstcFNT55PNaKBi5fx8LqvjiQ7hXjo2Mbtm+CWIdsFnA1+NciZEx/fv/tHKjD77Mz t50HZ8gtRlmcg/OcmToYa9O43HHAjZ+b3d48YoOjyy5ZYHx1VF7Q0rtDFo5gX6Y45Ti1sDHTIYhfl RceU/l891KnL+fQ5DlrUE+ebPCzKaYpph/0sfX1yj9TEGecxVcDz2JLy0aPE0bza7wbD4wzXfEHcz VlZyUvqQ==; Received: from johnkeeping.plus.com ([81.174.171.191] helo=localhost.localdomain) by shrek.metanate.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1enSNO-0005wn-1g; Sun, 18 Feb 2018 17:03:46 +0000 From: John Keeping To: Heiko Stuebner Subject: [PATCH 1/3] ARM: dts: rockchip: add power key for Rock2 Square Date: Sun, 18 Feb 2018 17:03:34 +0000 Message-Id: <20180218170336.31819-1-john@metanate.com> X-Mailer: git-send-email 2.16.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180218_120416_889216_2A2B7252 X-CRM114-Status: UNSURE ( 8.11 ) 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: linux-rockchip@lists.infradead.org, John Keeping , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 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 Support the power button on Radxa Rock2 Square. Signed-off-by: John Keeping --- arch/arm/boot/dts/rk3288-rock2-square.dts | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/boot/dts/rk3288-rock2-square.dts b/arch/arm/boot/dts/rk3288-rock2-square.dts index 0e084b8a86ac..6adeb331452f 100644 --- a/arch/arm/boot/dts/rk3288-rock2-square.dts +++ b/arch/arm/boot/dts/rk3288-rock2-square.dts @@ -39,6 +39,7 @@ */ /dts-v1/; +#include #include "rk3288-rock2-som.dtsi" / { @@ -49,6 +50,19 @@ stdout-path = "serial2:115200n8"; }; + gpio-keys { + compatible = "gpio-keys"; + + power { + gpios = <&gpio0 RK_PA5 GPIO_ACTIVE_LOW>; + label = "GPIO Power"; + linux,code = ; + pinctrl-names = "default"; + pinctrl-0 = <&pwr_key>; + wakeup-source; + }; + }; + gpio-leds { compatible = "gpio-leds"; @@ -220,6 +234,12 @@ }; }; + keys { + pwr_key: pwr-key { + rockchip,pins = <0 5 RK_FUNC_GPIO &pcfg_pull_up>; + }; + }; + pmic { pmic_int: pmic-int { rockchip,pins = <0 4 RK_FUNC_GPIO &pcfg_pull_up>;