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

bindings: pm8941-misc: Convert bindings to YAML

Convert bindings from txt to YAML.

Signed-off-by: Guru Das Srinagesh <gurus@codeaurora.org>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>

authored by

Guru Das Srinagesh and committed by
Chanwoo Choi
dd6f5afb e3f60329

+59 -41
-41
Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.txt
··· 1 - Qualcomm's PM8941 USB ID Extcon device 2 - 3 - Some Qualcomm PMICs have a "misc" module that can be used to detect when 4 - the USB ID pin has been pulled low or high. 5 - 6 - PROPERTIES 7 - 8 - - compatible: 9 - Usage: required 10 - Value type: <string> 11 - Definition: Should contain "qcom,pm8941-misc"; 12 - 13 - - reg: 14 - Usage: required 15 - Value type: <u32> 16 - Definition: Should contain the offset to the misc address space 17 - 18 - - interrupts: 19 - Usage: required 20 - Value type: <prop-encoded-array> 21 - Definition: Should contain the usb id interrupt 22 - 23 - - interrupt-names: 24 - Usage: required 25 - Value type: <stringlist> 26 - Definition: Should contain the string "usb_id" for the usb id interrupt 27 - 28 - Example: 29 - 30 - pmic { 31 - usb_id: misc@900 { 32 - compatible = "qcom,pm8941-misc"; 33 - reg = <0x900>; 34 - interrupts = <0x0 0x9 0 IRQ_TYPE_EDGE_BOTH>; 35 - interrupt-names = "usb_id"; 36 - }; 37 - } 38 - 39 - usb-controller { 40 - extcon = <&usb_id>; 41 - };
+59
Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/extcon/qcom,pm8941-misc.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Qualcomm Technologies, Inc. PM8941 USB ID Extcon device 8 + 9 + maintainers: 10 + - Guru Das Srinagesh <gurus@codeaurora.org> 11 + 12 + description: | 13 + Some Qualcomm PMICs have a "misc" module that can be used to detect when 14 + the USB ID pin has been pulled low or high. 15 + 16 + properties: 17 + compatible: 18 + items: 19 + - const: qcom,pm8941-misc 20 + 21 + reg: 22 + maxItems: 1 23 + 24 + interrupts: 25 + maxItems: 1 26 + 27 + interrupt-names: 28 + items: 29 + - const: usb_id 30 + 31 + required: 32 + - compatible 33 + - reg 34 + - interrupts 35 + - interrupt-names 36 + 37 + additionalProperties: false 38 + 39 + examples: 40 + - | 41 + #include <dt-bindings/interrupt-controller/irq.h> 42 + 43 + pmic { 44 + #address-cells = <1>; 45 + #size-cells = <0>; 46 + interrupt-controller; 47 + #interrupt-cells = <4>; 48 + 49 + usb_id: misc@900 { 50 + compatible = "qcom,pm8941-misc"; 51 + reg = <0x900>; 52 + interrupts = <0x0 0x9 0 IRQ_TYPE_EDGE_BOTH>; 53 + interrupt-names = "usb_id"; 54 + }; 55 + }; 56 + 57 + usb-controller { 58 + extcon = <&usb_id>; 59 + };