Skip to content

Commit 95e6b0a

Browse files
z3ntudtor
authored andcommitted
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>
1 parent c87a819 commit 95e6b0a

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ maintainers:
1010
- Courtney Cavin <courtney.cavin@sonymobile.com>
1111
- Vinod Koul <vkoul@kernel.org>
1212

13-
allOf:
14-
- $ref: input.yaml#
15-
1613
properties:
1714
compatible:
1815
enum:
@@ -36,12 +33,30 @@ properties:
3633
configured for pull up.
3734
$ref: /schemas/types.yaml#/definitions/flag
3835

36+
wakeup-source:
37+
description:
38+
Button can wake-up the system. Only applicable for 'resin', 'pwrkey'
39+
always wakes the system by default.
40+
3941
linux,code:
4042
description:
4143
The input key-code associated with the power key. Use the linux event
4244
codes defined in include/dt-bindings/input/linux-event-codes.h.
4345
When property is omitted KEY_POWER is assumed.
4446

47+
allOf:
48+
- $ref: input.yaml#
49+
- if:
50+
properties:
51+
compatible:
52+
contains:
53+
enum:
54+
- qcom,pm8941-pwrkey
55+
- qcom,pmk8350-pwrkey
56+
then:
57+
properties:
58+
wakeup-source: false
59+
4560
required:
4661
- compatible
4762
- interrupts

0 commit comments

Comments
 (0)