* [PATCH v2 0/3] gpio-keys: Add support for specifying wakeup event action
@ 2018-02-10 11:09 Jeffy Chen
[not found] ` <20180210110907.5504-1-jeffy.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
0 siblings, 1 reply; 4+ messages in thread
From: Jeffy Chen @ 2018-02-10 11:09 UTC (permalink / raw)
To: linux-kernel
Cc: briannorris, dtor, dianders, Jeffy Chen, Arnd Bergmann, Joseph Lo,
Rob Herring, Catalin Marinas, Emil Renner Berthing,
Enric Balletbo i Serra, Heiko Stuebner, Brian Norris,
Thomas Gleixner, Philippe Ombredanne, linux-rockchip,
Kate Stewart, linux-input, Will Deacon, Matthias Kaehlcke,
devicetree, stephen lu, Greg Kroah-Hartman
On chromebook kevin, we are using gpio-keys for pen insert event. But
we only want it to wakeup the system when ejecting the pen.
So we may need to change the interrupt trigger type during suspending.
Changes in v2:
Specify wakeup event action instead of irq trigger type as Brian
suggested.
Jeffy Chen (3):
Input: gpio-keys - add support for wakeup event action
Input: gpio-keys - allow setting wakeup event action in DT
arm64: dts: rockchip: Avoid wakeup when inserting the pen
.../devicetree/bindings/input/gpio-keys.txt | 8 +++++++
arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts | 2 ++
drivers/input/keyboard/gpio_keys.c | 27 ++++++++++++++++++++++
include/linux/gpio_keys.h | 2 ++
include/uapi/linux/input-event-codes.h | 9 ++++++++
5 files changed, 48 insertions(+)
--
2.11.0
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH v2 3/3] arm64: dts: rockchip: Avoid wakeup when inserting the pen
[not found] ` <20180210110907.5504-1-jeffy.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
@ 2018-02-10 11:09 ` Jeffy Chen
2018-02-14 13:39 ` [PATCH v2 0/3] gpio-keys: Add support for specifying wakeup event action Heiko Stübner
1 sibling, 0 replies; 4+ messages in thread
From: Jeffy Chen @ 2018-02-10 11:09 UTC (permalink / raw)
To: linux-kernel-u79uwXL29TY76Z2rM5mHXA
Cc: briannorris-hpIqsD4AKlfQT0dZR+AlfA, dtor-hpIqsD4AKlfQT0dZR+AlfA,
dianders-hpIqsD4AKlfQT0dZR+AlfA, Jeffy Chen, Matthias Kaehlcke,
devicetree-u79uwXL29TY76Z2rM5mHXA, Arnd Bergmann,
Emil Renner Berthing, Heiko Stuebner, Brian Norris,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Rob Herring,
Dmitry Torokhov,
linux-arm-kernel-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Will Deacon,
Mark Rutland, Catalin Marinas
Add wakeup event action for Pen Insert gpio key, to avoid wakeup when
inserting the pen.
Signed-off-by: Jeffy Chen <jeffy.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
---
Changes in v2:
Specify wakeup event action instead of irq trigger type as Brian
suggested.
arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts b/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts
index 191a6bcb1704..ef2de0057c5c 100644
--- a/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts
+++ b/arch/arm64/boot/dts/rockchip/rk3399-gru-kevin.dts
@@ -134,6 +134,8 @@
gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
linux,code = <SW_PEN_INSERTED>;
linux,input-type = <EV_SW>;
+ /* Wakeup only when ejecting */
+ wakeup-event-action = <EV_ACT_DEASSERTED>;
wakeup-source;
};
};
--
2.11.0
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 0/3] gpio-keys: Add support for specifying wakeup event action
[not found] ` <20180210110907.5504-1-jeffy.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2018-02-10 11:09 ` [PATCH v2 3/3] arm64: dts: rockchip: Avoid wakeup when inserting the pen Jeffy Chen
@ 2018-02-14 13:39 ` Heiko Stübner
2018-02-23 9:43 ` JeffyChen
1 sibling, 1 reply; 4+ messages in thread
From: Heiko Stübner @ 2018-02-14 13:39 UTC (permalink / raw)
To: Jeffy Chen
Cc: linux-kernel-u79uwXL29TY76Z2rM5mHXA,
briannorris-hpIqsD4AKlfQT0dZR+AlfA, dtor-hpIqsD4AKlfQT0dZR+AlfA,
dianders-hpIqsD4AKlfQT0dZR+AlfA, Arnd Bergmann, Joseph Lo,
Rob Herring, Catalin Marinas, Emil Renner Berthing,
Enric Balletbo i Serra, Brian Norris, Thomas Gleixner,
Philippe Ombredanne,
linux-rockchip-IAPFreCvJWM7uuMidbF8XUB+6BGkLq7r, Kate Stewart,
linux-input-u79uwXL29TY76Z2rM5mHXA, Will Deacon,
Matthias Kaehlcke, devicetree-u79uwXL29TY76Z2rM5mHXA, stephen lu,
Greg Kroah-Hartman, Arvind Yadav <arvind.yada>
Hi Jeffy,
Am Samstag, 10. Februar 2018, 12:09:04 CET schrieb Jeffy Chen:
> On chromebook kevin, we are using gpio-keys for pen insert event. But
> we only want it to wakeup the system when ejecting the pen.
>
> So we may need to change the interrupt trigger type during suspending.
>
> Changes in v2:
> Specify wakeup event action instead of irq trigger type as Brian
> suggested.
>
> Jeffy Chen (3):
> Input: gpio-keys - add support for wakeup event action
> Input: gpio-keys - allow setting wakeup event action in DT
> arm64: dts: rockchip: Avoid wakeup when inserting the pen
The recipient-selection for the mail thread seems to be a bit off and
I only got the cover-letter and patch 3/3.
Therefore I won't really see if and when the Input-changes get
accepted. So please ping me once that has happened so I can pick up
the rockchip dts change for it.
Thanks
Heiko
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 0/3] gpio-keys: Add support for specifying wakeup event action
2018-02-14 13:39 ` [PATCH v2 0/3] gpio-keys: Add support for specifying wakeup event action Heiko Stübner
@ 2018-02-23 9:43 ` JeffyChen
0 siblings, 0 replies; 4+ messages in thread
From: JeffyChen @ 2018-02-23 9:43 UTC (permalink / raw)
To: Heiko Stübner
Cc: Kate Stewart, Mark Rutland, Emil Renner Berthing, stephen lu,
Catalin Marinas, Will Deacon, Joseph Lo, Brian Norris,
linux-rockchip, Matthias Kaehlcke, linux-input, Arvind Yadav,
dtor, devicetree, Arnd Bergmann, dianders, Rob Herring,
briannorris, Thomas Gleixner, linux-arm-kernel,
Greg Kroah-Hartman, Dmitry Torokhov, linux-kernel,
Philippe Ombredanne, Enric Balletbo i Serra <enric.bal>
Hi Heiko,
Thanks for your reply :)
On 02/14/2018 09:39 PM, Heiko Stübner wrote:
> Hi Jeffy,
>
> Am Samstag, 10. Februar 2018, 12:09:04 CET schrieb Jeffy Chen:
>> On chromebook kevin, we are using gpio-keys for pen insert event. But
>> we only want it to wakeup the system when ejecting the pen.
>>
>> So we may need to change the interrupt trigger type during suspending.
>>
>> Changes in v2:
>> Specify wakeup event action instead of irq trigger type as Brian
>> suggested.
>>
>> Jeffy Chen (3):
>> Input: gpio-keys - add support for wakeup event action
>> Input: gpio-keys - allow setting wakeup event action in DT
>> arm64: dts: rockchip: Avoid wakeup when inserting the pen
>
> The recipient-selection for the mail thread seems to be a bit off and
> I only got the cover-letter and patch 3/3.
> Therefore I won't really see if and when the Input-changes get
> accepted. So please ping me once that has happened so I can pick up
> the rockchip dts change for it.
oops, sorry, i'll add you to the CC list in the next version :)
>
>
> Thanks
> Heiko
>
>
>
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-02-23 9:43 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-10 11:09 [PATCH v2 0/3] gpio-keys: Add support for specifying wakeup event action Jeffy Chen
[not found] ` <20180210110907.5504-1-jeffy.chen-TNX95d0MmH7DzftRWevZcw@public.gmane.org>
2018-02-10 11:09 ` [PATCH v2 3/3] arm64: dts: rockchip: Avoid wakeup when inserting the pen Jeffy Chen
2018-02-14 13:39 ` [PATCH v2 0/3] gpio-keys: Add support for specifying wakeup event action Heiko Stübner
2018-02-23 9:43 ` JeffyChen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox