[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <AM3PR04MB1315677CAB91C4236AFAB03EF5B00@AM3PR04MB1315.eurprd04.prod.outlook.com>
Date: Mon, 16 Apr 2018 08:25:48 +0000
From: Anson Huang <anson.huang@....com>
To: "A.s. Dong" <aisheng.dong@....com>,
"shawnguo@...nel.org" <shawnguo@...nel.org>,
"kernel@...gutronix.de" <kernel@...gutronix.de>,
Fabio Estevam <fabio.estevam@....com>,
"robh+dt@...nel.org" <robh+dt@...nel.org>,
"mark.rutland@....com" <mark.rutland@....com>,
"linux@...linux.org.uk" <linux@...linux.org.uk>
CC: dl-linux-imx <linux-imx@....com>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH] ARM: dts: imx7d-sdb: add gpio key support
Ping...
Anson Huang
Best Regards!
> -----Original Message-----
> From: A.s. Dong
> Sent: Friday, March 16, 2018 6:28 PM
> To: Anson Huang <anson.huang@....com>; shawnguo@...nel.org;
> kernel@...gutronix.de; Fabio Estevam <fabio.estevam@....com>;
> robh+dt@...nel.org; mark.rutland@....com; linux@...linux.org.uk
> Cc: dl-linux-imx <linux-imx@....com>; linux-arm-kernel@...ts.infradead.org;
> devicetree@...r.kernel.org; linux-kernel@...r.kernel.org
> Subject: RE: [PATCH] ARM: dts: imx7d-sdb: add gpio key support
>
> > -----Original Message-----
> > From: Anson Huang [mailto:Anson.Huang@....com]
> > Sent: Friday, March 16, 2018 4:55 PM
> > To: shawnguo@...nel.org; kernel@...gutronix.de; Fabio Estevam
> > <fabio.estevam@....com>; robh+dt@...nel.org; mark.rutland@....com;
> > linux@...linux.org.uk
> > Cc: dl-linux-imx <linux-imx@....com>;
> > linux-arm-kernel@...ts.infradead.org;
> > devicetree@...r.kernel.org; linux-kernel@...r.kernel.org
> > Subject: [PATCH] ARM: dts: imx7d-sdb: add gpio key support
> >
> > Add support for imx7d-sdb board's gpio keys:
> >
> > S1(FUNC1): KEY_VOLUMEUP
> > S3(FUNC2): KEY_VOLUMEDOWN
> >
>
> Acked-by: Dong Aisheng <aisheng.dong@....com>
>
> Regards
> Dong Aisheng
>
> > Signed-off-by: Anson Huang <Anson.Huang@....com>
> > ---
> > arch/arm/boot/dts/imx7d-sdb.dts | 24 ++++++++++++++++++++++++
> > 1 file changed, 24 insertions(+)
> >
> > diff --git a/arch/arm/boot/dts/imx7d-sdb.dts
> > b/arch/arm/boot/dts/imx7d- sdb.dts index 7f241af..e47b5b2 100644
> > --- a/arch/arm/boot/dts/imx7d-sdb.dts
> > +++ b/arch/arm/boot/dts/imx7d-sdb.dts
> > @@ -52,6 +52,24 @@
> > reg = <0x80000000 0x80000000>;
> > };
> >
> > + gpio-keys {
> > + compatible = "gpio-keys";
> > + pinctrl-names = "default";
> > + pinctrl-0 = <&pinctrl_gpio_keys>;
> > +
> > + volume-up {
> > + label = "Volume Up";
> > + gpios = <&gpio5 11 GPIO_ACTIVE_LOW>;
> > + linux,code = <KEY_VOLUMEUP>;
> > + };
> > +
> > + volume-down {
> > + label = "Volume Down";
> > + gpios = <&gpio5 10 GPIO_ACTIVE_LOW>;
> > + linux,code = <KEY_VOLUMEDOWN>;
> > + };
> > + };
> > +
> > spi4 {
> > compatible = "spi-gpio";
> > pinctrl-names = "default";
> > @@ -519,6 +537,12 @@
> > >;
> > };
> >
> > + pinctrl_gpio_keys: gpio_keysgrp {
> > + fsl,pins = <
> > + MX7D_PAD_SD2_RESET_B__GPIO5_IO11
> > 0x59
> > + MX7D_PAD_SD2_WP__GPIO5_IO10
> > 0x59
> > + >;
> > + };
> >
> > pinctrl_hog: hoggrp {
> > fsl,pins = <
> > --
> > 2.7.4
Powered by blists - more mailing lists