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

dt-bindings: input: pm8941-pwrkey: Convert pm8941 power key binding to yaml

Convert qcom pm8941 power key binding from .txt to .yaml format.

The example has been removed in favour of full example being
available in the qcom,pon.yaml binding.

Signed-off-by: satya priya <skakit@codeaurora.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Link: https://lore.kernel.org/r/1620800053-26405-5-git-send-email-skakit@codeaurora.org
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

satya priya and committed by
Dmitry Torokhov
400793bc da5e96ff

+51 -55
-55
Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.txt
··· 1 - Qualcomm PM8941 PMIC Power Key 2 - 3 - PROPERTIES 4 - 5 - - compatible: 6 - Usage: required 7 - Value type: <string> 8 - Definition: must be one of: 9 - "qcom,pm8941-pwrkey" 10 - "qcom,pm8941-resin" 11 - "qcom,pmk8350-pwrkey" 12 - "qcom,pmk8350-resin" 13 - 14 - - reg: 15 - Usage: required 16 - Value type: <prop-encoded-array> 17 - Definition: base address of registers for block 18 - 19 - - interrupts: 20 - Usage: required 21 - Value type: <prop-encoded-array> 22 - Definition: key change interrupt; The format of the specifier is 23 - defined by the binding document describing the node's 24 - interrupt parent. 25 - 26 - - debounce: 27 - Usage: optional 28 - Value type: <u32> 29 - Definition: time in microseconds that key must be pressed or released 30 - for state change interrupt to trigger. 31 - 32 - - bias-pull-up: 33 - Usage: optional 34 - Value type: <empty> 35 - Definition: presence of this property indicates that the KPDPWR_N pin 36 - should be configured for pull up. 37 - 38 - - linux,code: 39 - Usage: optional 40 - Value type: <u32> 41 - Definition: The input key-code associated with the power key. 42 - Use the linux event codes defined in 43 - include/dt-bindings/input/linux-event-codes.h 44 - When property is omitted KEY_POWER is assumed. 45 - 46 - EXAMPLE 47 - 48 - pwrkey@800 { 49 - compatible = "qcom,pm8941-pwrkey"; 50 - reg = <0x800>; 51 - interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; 52 - debounce = <15625>; 53 - bias-pull-up; 54 - linux,code = <KEY_POWER>; 55 - };
+51
Documentation/devicetree/bindings/input/qcom,pm8941-pwrkey.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/input/qcom,pm8941-pwrkey.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm PM8941 PMIC Power Key 8 + 9 + maintainers: 10 + - Courtney Cavin <courtney.cavin@sonymobile.com> 11 + - Vinod Koul <vkoul@kernel.org> 12 + 13 + allOf: 14 + - $ref: input.yaml# 15 + 16 + properties: 17 + compatible: 18 + enum: 19 + - qcom,pm8941-pwrkey 20 + - qcom,pm8941-resin 21 + - qcom,pmk8350-pwrkey 22 + - qcom,pmk8350-resin 23 + 24 + interrupts: 25 + maxItems: 1 26 + 27 + debounce: 28 + description: | 29 + Time in microseconds that key must be pressed or 30 + released for state change interrupt to trigger. 31 + $ref: /schemas/types.yaml#/definitions/uint32 32 + 33 + bias-pull-up: 34 + description: | 35 + Presence of this property indicates that the KPDPWR_N 36 + pin should be configured for pull up. 37 + $ref: /schemas/types.yaml#/definitions/flag 38 + 39 + linux,code: 40 + description: | 41 + The input key-code associated with the power key. 42 + Use the linux event codes defined in 43 + include/dt-bindings/input/linux-event-codes.h 44 + When property is omitted KEY_POWER is assumed. 45 + 46 + required: 47 + - compatible 48 + - interrupts 49 + 50 + unevaluatedProperties: false 51 + ...