Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: input: pm8941-pwrkey: Document wakeup-source property

The 'resin' keys (usually connected to a volume-down button) are
generally not supposed to wake up the device from suspend, so explicitly
document a wakeup-source property to enable this wakeup behavior.

For 'pwrkey' the default stays that pressing the button does wake up the
device from suspend.

Signed-off-by: Luca Weiss <luca@lucaweiss.eu>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250909-resin-wakeup-v1-1-46159940e02b@lucaweiss.eu
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Luca Weiss and committed by
Dmitry Torokhov
95e6b0af c87a819b

+18 -3
+18 -3
Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.yaml
··· 10 10 - Courtney Cavin <courtney.cavin@sonymobile.com> 11 11 - Vinod Koul <vkoul@kernel.org> 12 12 13 - allOf: 14 - - $ref: input.yaml# 15 - 16 13 properties: 17 14 compatible: 18 15 enum: ··· 33 36 configured for pull up. 34 37 $ref: /schemas/types.yaml#/definitions/flag 35 38 39 + wakeup-source: 40 + description: 41 + Button can wake-up the system. Only applicable for 'resin', 'pwrkey' 42 + always wakes the system by default. 43 + 36 44 linux,code: 37 45 description: 38 46 The input key-code associated with the power key. Use the linux event 39 47 codes defined in include/dt-bindings/input/linux-event-codes.h. 40 48 When property is omitted KEY_POWER is assumed. 49 + 50 + allOf: 51 + - $ref: input.yaml# 52 + - if: 53 + properties: 54 + compatible: 55 + contains: 56 + enum: 57 + - qcom,pm8941-pwrkey 58 + - qcom,pmk8350-pwrkey 59 + then: 60 + properties: 61 + wakeup-source: false 41 62 42 63 required: 43 64 - compatible