From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Chauveau Subject: Re: [PATCH v3 6/8] arm64: dts: rockchip: Add power key to GeekBox Date: Fri, 11 Mar 2016 00:09:04 +0100 Message-ID: References: <1457294038-14243-1-git-send-email-afaerber@suse.de> <1457294038-14243-7-git-send-email-afaerber@suse.de> Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: In-Reply-To: <1457294038-14243-7-git-send-email-afaerber@suse.de> Sender: linux-kernel-owner@vger.kernel.org To: =?utf-8?Q?Andreas_F=C3=A4rber?= Cc: "open list:ARM/Rockchip SoC..." , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Catalin Marinas , Will Deacon , Heiko Stuebner , "open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS" , "moderated list:ARM64 PORT" , open list List-Id: devicetree@vger.kernel.org > Le 6 mars 2016 =C3=A0 20:53, Andreas F=C3=A4rber a= =C3=A9crit : >=20 > Signed-off-by: Andreas F=C3=A4rber > --- > v2 -> v3: > * Adopted wakeup-source instead of gpio-key,wakeup (Julien) > * Dropped gpio-keys #address-cells and #size-cells properties (Julien= ) > * Dropped power button reg property (Julien) > * Adopted KEY_POWER (Julien) > * Fixed power button pinctrl pull setting (Julien) >=20 > v2: New >=20 > arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts | 20 ++++++++++++++++= ++++ > 1 file changed, 20 insertions(+) >=20 > diff --git a/arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts b/arch/a= rm64/boot/dts/rockchip/rk3368-geekbox.dts > index 098be3700a6f..7036b49c9206 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts > +++ b/arch/arm64/boot/dts/rockchip/rk3368-geekbox.dts > @@ -42,6 +42,7 @@ >=20 > /dts-v1/; > #include "rk3368.dtsi" > +#include >=20 > / { > model =3D "GeekBox"; > @@ -70,6 +71,19 @@ > pinctrl-0 =3D <&ir_int>; > }; >=20 > + keys: gpio-keys { I think you don't need the "keys" label, because there=E2=80=99s no pha= ndle that refers to this. > + compatible =3D "gpio-keys"; > + pinctrl-names =3D "default"; > + pinctrl-0 =3D <&pwr_key>; > + > + button@0 { Here you should use "power" instead of "button@0". > + gpios =3D <&gpio0 2 GPIO_ACTIVE_LOW>; > + label =3D "GPIO Power"; > + linux,code =3D ; According to Documentation/input/event-codes.txt, there=E2=80=99s a spe= cial event type for the power button. Should we use it here for that purpose? linux,input-type =3D > + wakeup-source; > + }; > + }; > + > leds: gpio-leds { > compatible =3D "gpio-leds"; >=20 > @@ -265,6 +279,12 @@ > }; > }; >=20 > + keys { > + pwr_key: pwr-key { > + rockchip,pins =3D <0 2 RK_FUNC_GPIO &pcfg_pull_none>; > + }; > + }; > + > pmic { > pmic_sleep: pmic-sleep { > rockchip,pins =3D <0 0 RK_FUNC_2 &pcfg_pull_none>; > --=20 > 2.6.2 >=20