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

dt-bindings: input: qcom,pm8xxx-vib: convert to yaml

Convert the PM8xxx PMIC Vibrator bindings to dt-schema.

Signed-off-by: Luca Weiss <luca@z3ntu.xyz>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20220917155705.2284-1-luca@z3ntu.xyz
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

authored by

Luca Weiss and committed by
Dmitry Torokhov
4160f968 6dc0a438

+38 -23
-23
Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.txt
··· 1 - Qualcomm PM8xxx PMIC Vibrator 2 - 3 - PROPERTIES 4 - 5 - - compatible: 6 - Usage: required 7 - Value type: <string> 8 - Definition: must be one of: 9 - "qcom,pm8058-vib" 10 - "qcom,pm8916-vib" 11 - "qcom,pm8921-vib" 12 - 13 - - reg: 14 - Usage: required 15 - Value type: <prop-encoded-array> 16 - Definition: address of vibration control register 17 - 18 - EXAMPLE 19 - 20 - vibrator@4a { 21 - compatible = "qcom,pm8058-vib"; 22 - reg = <0x4a>; 23 - };
+38
Documentation/devicetree/bindings/input/qcom,pm8xxx-vib.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,pm8xxx-vib.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm PM8xxx PMIC Vibrator 8 + 9 + maintainers: 10 + - Bjorn Andersson <andersson@kernel.org> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - qcom,pm8058-vib 16 + - qcom,pm8916-vib 17 + - qcom,pm8921-vib 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + required: 23 + - compatible 24 + - reg 25 + 26 + additionalProperties: false 27 + 28 + examples: 29 + - | 30 + pmic { 31 + #address-cells = <1>; 32 + #size-cells = <0>; 33 + 34 + vibrator@4a { 35 + compatible = "qcom,pm8058-vib"; 36 + reg = <0x4a>; 37 + }; 38 + };