From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jeffy Chen Subject: [PATCH v2 0/3] gpio-keys: Add support for specifying wakeup event action Date: Sat, 10 Feb 2018 19:09:04 +0800 Message-ID: <20180210110907.5504-1-jeffy.chen@rock-chips.com> Return-path: Sender: linux-kernel-owner@vger.kernel.org To: linux-kernel@vger.kernel.org Cc: briannorris@google.com, dtor@google.com, dianders@google.com, 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@lists.infradead.org, Kate Stewart , linux-input@vger.kernel.org, Will Deacon , Matthias Kaehlcke , devicetree@vger.kernel.org, stephen lu , Greg Kroah-Hartman List-Id: devicetree@vger.kernel.org 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