From a5a4c1d5a3c4f89059fb612b5786ec8b61b959f1 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Mon, 17 May 2021 13:27:45 +0200 Subject: dts: update to v5.13-rc1 Signed-off-by: Sascha Hauer --- dts/Bindings/extcon/qcom,pm8941-misc.txt | 41 -------------------- dts/Bindings/extcon/qcom,pm8941-misc.yaml | 62 +++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+), 41 deletions(-) delete mode 100644 dts/Bindings/extcon/qcom,pm8941-misc.txt create mode 100644 dts/Bindings/extcon/qcom,pm8941-misc.yaml (limited to 'dts/Bindings/extcon') diff --git a/dts/Bindings/extcon/qcom,pm8941-misc.txt b/dts/Bindings/extcon/qcom,pm8941-misc.txt deleted file mode 100644 index 35383adb10..0000000000 --- a/dts/Bindings/extcon/qcom,pm8941-misc.txt +++ /dev/null @@ -1,41 +0,0 @@ -Qualcomm's PM8941 USB ID Extcon device - -Some Qualcomm PMICs have a "misc" module that can be used to detect when -the USB ID pin has been pulled low or high. - -PROPERTIES - -- compatible: - Usage: required - Value type: - Definition: Should contain "qcom,pm8941-misc"; - -- reg: - Usage: required - Value type: - Definition: Should contain the offset to the misc address space - -- interrupts: - Usage: required - Value type: - Definition: Should contain the usb id interrupt - -- interrupt-names: - Usage: required - Value type: - Definition: Should contain the string "usb_id" for the usb id interrupt - -Example: - - pmic { - usb_id: misc@900 { - compatible = "qcom,pm8941-misc"; - reg = <0x900>; - interrupts = <0x0 0x9 0 IRQ_TYPE_EDGE_BOTH>; - interrupt-names = "usb_id"; - }; - } - - usb-controller { - extcon = <&usb_id>; - }; diff --git a/dts/Bindings/extcon/qcom,pm8941-misc.yaml b/dts/Bindings/extcon/qcom,pm8941-misc.yaml new file mode 100644 index 0000000000..6a9c96f035 --- /dev/null +++ b/dts/Bindings/extcon/qcom,pm8941-misc.yaml @@ -0,0 +1,62 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/extcon/qcom,pm8941-misc.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Technologies, Inc. PM8941 USB ID Extcon device + +maintainers: + - Guru Das Srinagesh + +description: | + Some Qualcomm PMICs have a "misc" module that can be used to detect when + the USB ID pin has been pulled low or high. + +properties: + compatible: + items: + - const: qcom,pm8941-misc + + reg: + maxItems: 1 + + interrupts: + minItems: 1 + maxItems: 2 + + interrupt-names: + minItems: 1 + items: + - const: usb_id + - const: usb_vbus + +required: + - compatible + - reg + - interrupts + - interrupt-names + +additionalProperties: false + +examples: + - | + #include + + pmic { + #address-cells = <1>; + #size-cells = <0>; + interrupt-controller; + #interrupt-cells = <4>; + + usb_id: misc@900 { + compatible = "qcom,pm8941-misc"; + reg = <0x900>; + interrupts = <0x0 0x9 0 IRQ_TYPE_EDGE_BOTH>; + interrupt-names = "usb_id"; + }; + }; + + usb-controller { + extcon = <&usb_id>; + }; -- cgit v1.2.3