From: Thierry Reding <thierry.reding@gmail.com>
To: Jon Hunter <jonathanh@nvidia.com>
Cc: linux-tegra@vger.kernel.org, Alexandre Courbot <gnurou@gmail.com>,
linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH 09/11] arm64: tegra: Add GPIO keys on P2771
Date: Wed, 8 Mar 2017 14:47:28 +0100 [thread overview]
Message-ID: <20170308134728.GG29118@ulmo.ba.sec> (raw)
In-Reply-To: <ae214cf3-df2d-1036-b702-c8436471bfe8@nvidia.com>
[-- Attachment #1.1: Type: text/plain, Size: 2643 bytes --]
On Wed, Mar 08, 2017 at 12:15:53PM +0000, Jon Hunter wrote:
>
> On 08/03/17 12:03, Jon Hunter wrote:
> >
> >
> > On 23/02/17 17:30, Thierry Reding wrote:
> >> From: Thierry Reding <treding@nvidia.com>
> >>
> >> The P2771 has three keys (power, volume up and volume down) that are
> >> connected to pins on the AON GPIO controller.
> >>
> >> Signed-off-by: Thierry Reding <treding@nvidia.com>
> >> ---
> >> arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts | 34 ++++++++++++++++++++++
> >> 1 file changed, 34 insertions(+)
> >>
> >> diff --git a/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts b/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts
> >> index 0d3c0996d832..1c195d71806d 100644
> >> --- a/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts
> >> +++ b/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts
> >> @@ -1,8 +1,42 @@
> >> /dts-v1/;
> >>
> >> +#include <dt-bindings/input/linux-event-codes.h>
> >> +
> >> #include "tegra186-p3310.dtsi"
> >>
> >> / {
> >> model = "NVIDIA Tegra186 P2771-0000 Development Board";
> >> compatible = "nvidia,p2771-0000", "nvidia,tegra186";
> >> +
> >> + gpio-keys {
> >> + compatible = "gpio-keys";
> >> +
> >> + power {
> >> + label = "Power";
> >> + gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 0)
> >> + GPIO_ACTIVE_LOW>;
> >> + linux,input-type = <EV_KEY>;
> >> + linux,code = <KEY_POWER>;
> >> + debounce-interval = <10>;
> >> + wakeup-source;
> >> + };
> >> +
> >> + volume-up {
> >> + label = "Volume Up";
> >> + gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 1)
> >> + GPIO_ACTIVE_LOW>;
> >> + linux,input-type = <EV_KEY>;
> >> + linux,code = <KEY_VOLUMEUP>;
> >> + debounce-interval = <10>;
> >> + };
> >
> > My schematic shows this pin as 'force-recovery'.
> >
> >> +
> >> + volume-down {
> >> + label = "Volume Down";
> >> + gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 2)
> >> + GPIO_ACTIVE_LOW>;
> >> + linux,input-type = <EV_KEY>;
> >> + linux,code = <KEY_VOLUMEDOWN>;
> >> + debounce-interval = <10>;
> >> + };
> >> + };
> >> };
> >
> > And this one as 'sleep_l'.
>
> Actually, I do see this as "VOL Down". So ignore that and I assume we
> re-use recovery so ...
>
> Acked-by: Jon Hunter <jonathanh@nvidia.com>
Yes, the board marks FF.02 as "VOL D" and I figured that recovery isn't
useful during normal system operation and "VOL U" would be the natural
choice. Often these keys end up being used for menu navigation in some
Android bootloader. That's not relevant to Linux, but it gives us some
consistency across the board.
Thierry
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 176 bytes --]
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
WARNING: multiple messages have this Message-ID (diff)
From: thierry.reding@gmail.com (Thierry Reding)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 09/11] arm64: tegra: Add GPIO keys on P2771
Date: Wed, 8 Mar 2017 14:47:28 +0100 [thread overview]
Message-ID: <20170308134728.GG29118@ulmo.ba.sec> (raw)
In-Reply-To: <ae214cf3-df2d-1036-b702-c8436471bfe8@nvidia.com>
On Wed, Mar 08, 2017 at 12:15:53PM +0000, Jon Hunter wrote:
>
> On 08/03/17 12:03, Jon Hunter wrote:
> >
> >
> > On 23/02/17 17:30, Thierry Reding wrote:
> >> From: Thierry Reding <treding@nvidia.com>
> >>
> >> The P2771 has three keys (power, volume up and volume down) that are
> >> connected to pins on the AON GPIO controller.
> >>
> >> Signed-off-by: Thierry Reding <treding@nvidia.com>
> >> ---
> >> arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts | 34 ++++++++++++++++++++++
> >> 1 file changed, 34 insertions(+)
> >>
> >> diff --git a/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts b/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts
> >> index 0d3c0996d832..1c195d71806d 100644
> >> --- a/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts
> >> +++ b/arch/arm64/boot/dts/nvidia/tegra186-p2771-0000.dts
> >> @@ -1,8 +1,42 @@
> >> /dts-v1/;
> >>
> >> +#include <dt-bindings/input/linux-event-codes.h>
> >> +
> >> #include "tegra186-p3310.dtsi"
> >>
> >> / {
> >> model = "NVIDIA Tegra186 P2771-0000 Development Board";
> >> compatible = "nvidia,p2771-0000", "nvidia,tegra186";
> >> +
> >> + gpio-keys {
> >> + compatible = "gpio-keys";
> >> +
> >> + power {
> >> + label = "Power";
> >> + gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 0)
> >> + GPIO_ACTIVE_LOW>;
> >> + linux,input-type = <EV_KEY>;
> >> + linux,code = <KEY_POWER>;
> >> + debounce-interval = <10>;
> >> + wakeup-source;
> >> + };
> >> +
> >> + volume-up {
> >> + label = "Volume Up";
> >> + gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 1)
> >> + GPIO_ACTIVE_LOW>;
> >> + linux,input-type = <EV_KEY>;
> >> + linux,code = <KEY_VOLUMEUP>;
> >> + debounce-interval = <10>;
> >> + };
> >
> > My schematic shows this pin as 'force-recovery'.
> >
> >> +
> >> + volume-down {
> >> + label = "Volume Down";
> >> + gpios = <&gpio_aon TEGRA_AON_GPIO(FF, 2)
> >> + GPIO_ACTIVE_LOW>;
> >> + linux,input-type = <EV_KEY>;
> >> + linux,code = <KEY_VOLUMEDOWN>;
> >> + debounce-interval = <10>;
> >> + };
> >> + };
> >> };
> >
> > And this one as 'sleep_l'.
>
> Actually, I do see this as "VOL Down". So ignore that and I assume we
> re-use recovery so ...
>
> Acked-by: Jon Hunter <jonathanh@nvidia.com>
Yes, the board marks FF.02 as "VOL D" and I figured that recovery isn't
useful during normal system operation and "VOL U" would be the natural
choice. Often these keys end up being used for menu navigation in some
Android bootloader. That's not relevant to Linux, but it gives us some
consistency across the board.
Thierry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20170308/a3a4d435/attachment-0001.sig>
next prev parent reply other threads:[~2017-03-08 13:47 UTC|newest]
Thread overview: 64+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-23 17:30 [PATCH 01/11] arm64: tegra: Add PMC controller on Tegra186 Thierry Reding
2017-02-23 17:30 ` Thierry Reding
[not found] ` <20170223173053.19701-1-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-02-23 17:30 ` [PATCH 02/11] arm64: tegra: Add ethernet support for Tegra186 Thierry Reding
2017-02-23 17:30 ` Thierry Reding
2017-03-07 20:42 ` Jon Hunter
2017-03-07 20:42 ` Jon Hunter
2017-02-23 17:30 ` [PATCH 03/11] arm64: tegra: Invert the PMC interrupt on P3310 Thierry Reding
2017-02-23 17:30 ` Thierry Reding
2017-03-07 10:25 ` Jon Hunter
2017-03-07 10:25 ` Jon Hunter
2017-02-23 17:30 ` [PATCH 04/11] arm64: tegra: Enable I2C controllers " Thierry Reding
2017-02-23 17:30 ` Thierry Reding
2017-03-07 10:38 ` Jon Hunter
2017-03-07 10:38 ` Jon Hunter
2017-02-23 17:30 ` [PATCH 05/11] arm64: tegra: Enable ethernet " Thierry Reding
2017-02-23 17:30 ` Thierry Reding
2017-03-07 21:04 ` Jon Hunter
2017-03-07 21:04 ` Jon Hunter
2017-02-23 17:30 ` [PATCH 06/11] arm64: tegra: Add initial power tree for P3310 Thierry Reding
2017-02-23 17:30 ` Thierry Reding
2017-03-08 11:18 ` Jon Hunter
2017-03-08 11:18 ` Jon Hunter
2017-03-08 13:24 ` [PATCH v2] " Thierry Reding
2017-03-08 13:24 ` Thierry Reding
2017-03-08 14:24 ` Jon Hunter
2017-03-08 14:24 ` Jon Hunter
2017-02-23 17:30 ` [PATCH 07/11] arm64: tegra: Enable SDHCI controllers on P3110 Thierry Reding
2017-02-23 17:30 ` Thierry Reding
2017-03-08 11:46 ` Jon Hunter
2017-03-08 11:46 ` Jon Hunter
2017-03-08 13:18 ` Thierry Reding
2017-03-08 13:18 ` Thierry Reding
2017-03-08 13:39 ` [PATCH v2 1/2] " Thierry Reding
2017-03-08 13:39 ` Thierry Reding
2017-03-08 13:39 ` [PATCH v2 2/2] arm64: tegra: Enable SD/MMC slot on P2771 Thierry Reding
2017-03-08 13:39 ` Thierry Reding
[not found] ` <20170308133944.32568-2-thierry.reding-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2017-03-08 14:26 ` Jon Hunter
2017-03-08 14:26 ` Jon Hunter
2017-03-08 14:26 ` [PATCH v2 1/2] arm64: tegra: Enable SDHCI controllers on P3110 Jon Hunter
2017-03-08 14:26 ` Jon Hunter
2017-02-23 17:30 ` [PATCH 08/11] arm64: tegra: Enable current monitors on P3310 Thierry Reding
2017-02-23 17:30 ` Thierry Reding
2017-03-08 11:52 ` Jon Hunter
2017-03-08 11:52 ` Jon Hunter
2017-02-23 17:30 ` [PATCH 09/11] arm64: tegra: Add GPIO keys on P2771 Thierry Reding
2017-02-23 17:30 ` Thierry Reding
2017-03-08 12:03 ` Jon Hunter
2017-03-08 12:03 ` Jon Hunter
2017-03-08 12:15 ` Jon Hunter
2017-03-08 12:15 ` Jon Hunter
2017-03-08 13:47 ` Thierry Reding [this message]
2017-03-08 13:47 ` Thierry Reding
2017-02-23 17:30 ` [PATCH 10/11] arm64: tegra: Add power monitors " Thierry Reding
2017-02-23 17:30 ` Thierry Reding
2017-03-08 12:06 ` Jon Hunter
2017-03-08 12:06 ` Jon Hunter
2017-02-23 17:30 ` [PATCH 11/11] arm64: tegra: Add GPIO expanders " Thierry Reding
2017-02-23 17:30 ` Thierry Reding
2017-03-08 12:11 ` Jon Hunter
2017-03-08 12:11 ` Jon Hunter
2017-03-08 18:29 ` [PATCH 01/11] arm64: tegra: Add PMC controller on Tegra186 Thierry Reding
2017-03-08 18:29 ` Thierry Reding
2017-03-07 9:48 ` Jon Hunter
2017-03-07 9:48 ` Jon Hunter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170308134728.GG29118@ulmo.ba.sec \
--to=thierry.reding@gmail.com \
--cc=gnurou@gmail.com \
--cc=jonathanh@nvidia.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-tegra@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.