Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2342767pxj; Mon, 10 May 2021 00:02:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsZaWC1vLVONEJ7g6RwegiVJCC+em/txkI46NLhzyNhnZrXog6cVUTWa4Jc59OUVefz2pn X-Received: by 2002:a92:d8c5:: with SMTP id l5mr16395975ilo.198.1620630169737; Mon, 10 May 2021 00:02:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620630169; cv=none; d=google.com; s=arc-20160816; b=QMHp31ThckayHHgs07cyM1b2FzWYa5yy4d5fumQcC+5WpqRoeB7Xz6q8vMumJnDr0r Wv5YFo8H1/RaJuyzxui0MsuzFQ2MeXKeq2hJqYaOH7dN4W9qo+7CznlVS3dOCyX3p9xl YnF1TOfaAB0LaYVqTjg1LbYC2xY0nzgweh1kpxXc8FbyfKNxqcBeFPmbztBYhIqcOEkA DGV6C23rj59Jr8JPFITANI43Cni5XSh7wxWiRX2ud0exW8yVp+foF2dSWxCGj2tIslmD 8sbC6qfLrOssOmCQyT9T9IP5mRLxuEhuIZxy1S50s8xw+BX6WLWXy3LbMe+j6LFT6kGG qqLQ== 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:message-id:date:subject :cc:to:from; bh=+VdlgVidiAAuTGWP0KjBqOZenaAAGxI8Lm4UotC1snA=; b=FeA3i1gbIoUS1H929EjU5DwA+2z07kLQnN48Rp8Sevf1S86NIyHtQ3f9ULNHWJDeff 52Bpf/F6RvGznRqBMNAcNri+4NG6TwHKRA774Edn6z5kCeClrMi9ny9Ah9+ONHmMm9tC 6lM2VIAskMyZ16kpz48zoZRsUZ2vj7nJ2CuOwyLBx7DZwK//3ytBUCOKek2ChNBgL0vC hyqjKz2KVQAgU2mUwYch0GN8af1vV9XRgnZzffBu3WmLFdLb/zMm+C4ArOAUQ937AfBk Kvu4Lqaam/jcPAY7azbFIYsQgRQutbkPpx6Ra+Qw6JtZKc9gzDXJKFS2G3ItRnHx9yu3 EQPA== 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 t14si13960637iol.93.2021.05.10.00.02.37; Mon, 10 May 2021 00:02: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 S230176AbhEJHDK (ORCPT + 99 others); Mon, 10 May 2021 03:03:10 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:2227 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230050AbhEJHDJ (ORCPT ); Mon, 10 May 2021 03:03:09 -0400 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 10 May 2021 00:02:02 -0700 X-QCInternal: smtphost Received: from ironmsg01-blr.qualcomm.com ([10.86.208.130]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 10 May 2021 00:01:58 -0700 X-QCInternal: smtphost Received: from c-skakit-linux.ap.qualcomm.com (HELO c-skakit-linux.qualcomm.com) ([10.242.51.242]) by ironmsg01-blr.qualcomm.com with ESMTP; 10 May 2021 12:31:21 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 006094F2B; Mon, 10 May 2021 12:31:19 +0530 (IST) From: satya priya To: Dmitry Torokhov , Rob Herring , Sebastian Reichel , Andy Gross , Bjorn Andersson Cc: David Collins , kgunda@codeaurora.org, linux-input@vger.kernel.org, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, Courtney Cavin , Vinod Koul , Andy Yan , satya priya Subject: [PATCH V3 5/5] dt-bindings: power: reset: qcom-pon: Convert qcom PON binding to yaml Date: Mon, 10 May 2021 12:31:04 +0530 Message-Id: <1620630064-16354-6-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1620630064-16354-1-git-send-email-skakit@codeaurora.org> References: <1620630064-16354-1-git-send-email-skakit@codeaurora.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert qcom PON binding from .txt to .yaml format. The example has been removed in favour of full example being available in the qcom,pm8941-pwrkey binding. Signed-off-by: satya priya --- Changes in V2: - As per Rob's comments, converted the main PON binding and added in V2. Changes in V3: - As per Sebastian's comments, added allOf to refer reboot-mode.yaml and used unevaluatedProperties = false. Added maxItems for reg. .../devicetree/bindings/power/reset/qcom,pon.txt | 49 ---------------------- .../devicetree/bindings/power/reset/qcom,pon.yaml | 44 +++++++++++++++++++ 2 files changed, 44 insertions(+), 49 deletions(-) delete mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.txt create mode 100644 Documentation/devicetree/bindings/power/reset/qcom,pon.yaml diff --git a/Documentation/devicetree/bindings/power/reset/qcom,pon.txt b/Documentation/devicetree/bindings/power/reset/qcom,pon.txt deleted file mode 100644 index 0c0dc3a..0000000 --- a/Documentation/devicetree/bindings/power/reset/qcom,pon.txt +++ /dev/null @@ -1,49 +0,0 @@ -Qualcomm PON Device - -The Power On device for Qualcomm PM8xxx is MFD supporting pwrkey -and resin along with the Android reboot-mode. - -This DT node has pwrkey and resin as sub nodes. - -Required Properties: --compatible: Must be one of: - "qcom,pm8916-pon" - "qcom,pms405-pon" - "qcom,pm8998-pon" - --reg: Specifies the physical address of the pon register - -Optional subnode: --pwrkey: Specifies the subnode pwrkey and should follow the - qcom,pm8941-pwrkey.txt description. --resin: Specifies the subnode resin and should follow the - qcom,pm8xxx-pwrkey.txt description. - -The rest of the properties should follow the generic reboot-mode description -found in reboot-mode.txt - -Example: - - pon@800 { - compatible = "qcom,pm8916-pon"; - - reg = <0x800>; - mode-bootloader = <0x2>; - mode-recovery = <0x1>; - - pwrkey { - compatible = "qcom,pm8941-pwrkey"; - interrupts = <0x0 0x8 0 IRQ_TYPE_EDGE_BOTH>; - debounce = <15625>; - bias-pull-up; - linux,code = ; - }; - - resin { - compatible = "qcom,pm8941-resin"; - interrupts = <0x0 0x8 1 IRQ_TYPE_EDGE_BOTH>; - debounce = <15625>; - bias-pull-up; - linux,code = ; - }; - }; diff --git a/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml new file mode 100644 index 0000000..439f082 --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/reset/qcom,pon.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm PON Device + +maintainers: + - Vinod Koul + +description: | + The Power On device for Qualcomm PM8xxx is MFD supporting pwrkey + and resin along with the Android reboot-mode. + + This DT node has pwrkey and resin as sub nodes. + +allOf: + - $ref: reboot-mode.yaml# + +properties: + compatible: + enum: + - qcom,pm8916-pon + - qcom,pms405-pon + - qcom,pm8998-pon + + reg: + maxItems: 1 + + pwrkey: + type: object + $ref: "../../input/qcom,pm8941-pwrkey.yaml#" + + resin: + type: object + $ref: "../../input/qcom,pm8941-pwrkey.yaml#" + +required: + - compatible + - reg + +unevaluatedProperties: false +... -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation