From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754439AbcBHQ0P (ORCPT ); Mon, 8 Feb 2016 11:26:15 -0500 Received: from mail-wm0-f66.google.com ([74.125.82.66]:33887 "EHLO mail-wm0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753379AbcBHQ0K convert rfc822-to-8bit (ORCPT ); Mon, 8 Feb 2016 11:26:10 -0500 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: [PATCH v2 07/10] ARM64: dts: rockchip: Add power key to GeekBox From: Julien Chauveau In-Reply-To: <1454897859-7601-8-git-send-email-afaerber@suse.de> Date: Mon, 8 Feb 2016 17:26:04 +0100 Cc: linux-rockchip@lists.infradead.org, Heiko Stuebner , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" Content-Transfer-Encoding: 8BIT Message-Id: <99011D31-E0AE-4F02-B769-E10617EA4F01@gmail.com> References: <1454897859-7601-1-git-send-email-afaerber@suse.de> <1454897859-7601-8-git-send-email-afaerber@suse.de> To: =?utf-8?Q?Andreas_F=C3=A4rber?= X-Mailer: Apple Mail (2.3112) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello Andreas, > Le 8 févr. 2016 à 03:17, Andreas Färber a écrit : > > Signed-off-by: Andreas Färber > --- > v2: New > > arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts | 22 ++++++++++++++++++++++ > 1 file changed, 22 insertions(+) > > diff --git a/arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts b/arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts > index e84383fd6f10..fe5aa785cfda 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts > +++ b/arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts > @@ -70,6 +70,22 @@ > pinctrl-0 = <&ir_int>; > }; > > + keys: gpio-keys { > + compatible = "gpio-keys"; > + pinctrl-names = "default"; > + pinctrl-0 = <&pwr_key>; > + #address-cells = <1>; > + #size-cells = <0>; I think #address-cells and #size-cells are not necessary. > + > + button@0 { > + reg = <0>; reg can be removed too. > + gpio-key,wakeup = <1>; You should use the new "wakeup-source » property. > + gpios = <&gpio0 2 GPIO_ACTIVE_LOW>; > + label = "GPIO Power"; > + linux,code = <116>; #include and use KEY_POWER instead of 116 > + }; > + }; > + > leds: gpio-leds { > compatible = "gpio-leds"; > > @@ -265,6 +281,12 @@ > }; > }; > > + keys { > + pwr_key: pwr-key { > + rockchip,pins = <0 2 RK_FUNC_GPIO &pcfg_pull_up>; Is there a reason you want to enable the internal pull-up resistor on this pin? The schematic shows there's already an external pull-up resistor so the internal one should not be needed. > + }; > + }; > + > pmic { > pmic_sleep: pmic-sleep { > rockchip,pins = <0 0 RK_FUNC_2 &pcfg_pull_none>;