Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp300264pxx; Thu, 29 Oct 2020 03:01:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwccwkRLIQfnnHq4QqL1drVp2DVLuw70JAVe+U2KbiM027sfrN26w+Ri9T0xNGGauqx94v/ X-Received: by 2002:a17:906:6dc6:: with SMTP id j6mr3410043ejt.354.1603965709015; Thu, 29 Oct 2020 03:01:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603965709; cv=none; d=google.com; s=arc-20160816; b=W/zRR3C77BpthGfpR2gwa6whKmFD10LHO52ax0LhJIgzgXaR5T8/PXUYYjpBTczMjT yuOrSAfAb8oPj8UdIaupJ4coTGQPs+UtDhkE6rCuef0gAEljvqgQ+3RbnDuoU4HOwa63 d+U0PaQyhp7QlV79cs5zB0r41sK3zneQaaQ0MVziN0UUbttND8oGXePA61ogI2H7utUr N2w1KQqwTSi1DJG8jNatq1fUOU/EnrWhjL0kqj89BCx6Fdt2LkGMXeU8KrxqRouX3hZ0 xXp3MKp508H3e5YtoCDaPHkBoTN9WpOxSvPeCiSsmNejpF1hQGggdVxmClWJb/twjX+D cyRQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:references:in-reply-to :message-id:date:subject:cc:to:from; bh=SIEIfnfpa0mz5BfvlD/JOF3o2BrxYgnI3wdhzIze/7A=; b=NepgNMfXUPdeDhLZcQEoGJzFNHtApqDF2UJmXTHP2XTGv9lx8Gr1o25PgfERszL7C8 UtKCdwDEoyQZBXJgYaicMlKMhD1Z53eXrhF8w8k4LsSpmJWhjXYF1QlXqHmD2U7wbT3c J1H9UxhoPF2oN35FXlnKVVQahCQ8NIoYCId1Ha1sqcTe4eg/+7hJDaAIeR5SmvvPgUh3 evV8RfuAX/618PIU/nppjgihq8NkoY14NBc4gMqhbp1nUmUuGPR4DAeTkwxSM6U0q8Py bxv0UmTWx34/151sg6Hd8+KBj2nWQWHj+xRAeoIvd3eIhp9mbH+YVuteXHeCxYAa8DJU 7/mg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dh27si1716157edb.28.2020.10.29.03.01.27; Thu, 29 Oct 2020 03:01:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390401AbgJ1X0P (ORCPT + 99 others); Wed, 28 Oct 2020 19:26:15 -0400 Received: from alexa-out-sd-02.qualcomm.com ([199.106.114.39]:53231 "EHLO alexa-out-sd-02.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390352AbgJ1XZQ (ORCPT ); Wed, 28 Oct 2020 19:25:16 -0400 Received: from unknown (HELO ironmsg02-sd.qualcomm.com) ([10.53.140.142]) by alexa-out-sd-02.qualcomm.com with ESMTP; 28 Oct 2020 00:18:56 -0700 X-QCInternal: smtphost Received: from gurus-linux.qualcomm.com ([10.46.162.81]) by ironmsg02-sd.qualcomm.com with ESMTP; 28 Oct 2020 00:18:56 -0700 Received: by gurus-linux.qualcomm.com (Postfix, from userid 383780) id 1F3C418BB; Wed, 28 Oct 2020 00:18:56 -0700 (PDT) From: Guru Das Srinagesh To: Andy Gross , Bjorn Andersson , linux-arm-msm@vger.kernel.org, Rob Herring Cc: Subbaraman Narayanamurthy , David Collins , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Stephen Boyd , Guru Das Srinagesh Subject: [PATCH v4 1/3] bindings: pm8941-misc: Convert bindings to YAML Date: Wed, 28 Oct 2020 00:18:52 -0700 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: In-Reply-To: References: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert bindings from txt to YAML. Signed-off-by: Guru Das Srinagesh --- .../bindings/extcon/qcom,pm8941-misc.txt | 41 --------------- .../bindings/extcon/qcom,pm8941-misc.yaml | 59 ++++++++++++++++++++++ 2 files changed, 59 insertions(+), 41 deletions(-) delete mode 100644 Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.txt create mode 100644 Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.yaml diff --git a/Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.txt b/Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.txt deleted file mode 100644 index 35383adb..0000000 --- a/Documentation/devicetree/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/Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.yaml b/Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.yaml new file mode 100644 index 0000000..e8eea83 --- /dev/null +++ b/Documentation/devicetree/bindings/extcon/qcom,pm8941-misc.yaml @@ -0,0 +1,59 @@ +# 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: + maxItems: 1 + + interrupt-names: + items: + - const: usb_id + +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>; + }; -- The Qualcomm Innovation Center, Inc. is a member of the Code Aurora Forum, a Linux Foundation Collaborative Project