Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp347873pxf; Thu, 8 Apr 2021 04:33:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcQTayO/W2cgEfkQTjK8eC7Aif6I2JmMnjlR09ZhfnMG3IetAWv7x1lPNfGl4ZKyu43KlT X-Received: by 2002:a17:906:f24f:: with SMTP id gy15mr9498038ejb.428.1617881616259; Thu, 08 Apr 2021 04:33:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617881616; cv=none; d=google.com; s=arc-20160816; b=lPERh8OfIezZdajhiZne9xrHt2iMu0UE6SBrLmBu2S3hjrMCV9uCEba+eh4sogL6Gs A52xMpL9cusX/CNFfd6UmQZCuk0DmHRLVS5oDGxcJgTuU7iXB+yj4xrX/cvbLqCCxNpW pelqJ68/BIj0dcuQLB6i5Tpb/Gd/e4UpkqOx8m2o/EoN6gEIYAbBcCZmN6OPJCIZpwb5 AScWiq83RIQ40VhghWSWhyN8+TF8IQ1gNexnNHyjwYL2ra6Xc6ajjnNvqCxTlD6jH5ei PQ+fLT/WoiZR/w3KFWJZv9lwvP/BclFSaNk+kPZaqwRhC4bCgoTXPWJRdzv+DLNqkF5f 4BRQ== 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=VkYFYwfJHRKyZSXtNj0fPvvg4kB8p8mLq2TCKcCfvJA=; b=l2zRDuAlxQKT20cJ9dAxmwTiWDYi3DJRm45AgOlv6r7F8EeCxqo6b9g8Kz/jzTi7wV /iAudxtLT6OWtyKAHUkfmd6I8CnblKHifqffkxc+o/GOys027N5FT4VQMysSIrt1o0K0 lKpk+1QUrBv1xs+3qNDsn6olbt+96pAY91Ap70sqoqLt0QkespoffSm0D0bxkkw1cNbp DBJ/FM9ZfV2S8u9HLQczAKcngIZbbh1VJAic8U+nVMtspz9v2Y/xZpgxVxXeFi9biLGA utSHlaOZMRbZO4OWrvHU136hu500d22KVjdBdpo7L5877baBDeKn22OONv8/S1chn4Md 0Vyg== 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 br20si15505599ejb.26.2021.04.08.04.33.13; Thu, 08 Apr 2021 04:33:36 -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 S231163AbhDHLcZ (ORCPT + 99 others); Thu, 8 Apr 2021 07:32:25 -0400 Received: from alexa-out.qualcomm.com ([129.46.98.28]:40502 "EHLO alexa-out.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229751AbhDHLcY (ORCPT ); Thu, 8 Apr 2021 07:32:24 -0400 Received: from ironmsg09-lv.qualcomm.com ([10.47.202.153]) by alexa-out.qualcomm.com with ESMTP; 08 Apr 2021 04:32:13 -0700 X-QCInternal: smtphost Received: from ironmsg02-blr.qualcomm.com ([10.86.208.131]) by ironmsg09-lv.qualcomm.com with ESMTP/TLS/AES256-SHA; 08 Apr 2021 04:32:10 -0700 X-QCInternal: smtphost Received: from c-skakit-linux.ap.qualcomm.com (HELO c-skakit-linux.qualcomm.com) ([10.242.51.242]) by ironmsg02-blr.qualcomm.com with ESMTP; 08 Apr 2021 17:01:39 +0530 Received: by c-skakit-linux.qualcomm.com (Postfix, from userid 2344709) id 8AB2D4F01; Thu, 8 Apr 2021 17:01:38 +0530 (IST) From: satya priya To: Dmitry Torokhov , Rob Herring , Andy Gross , Bjorn Andersson , Sebastian Reichel Cc: David Collins , kgunda@codeaurora.org, Vinod Koul , Courtney Cavin , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-msm@vger.kernel.org, linux-pm@vger.kernel.org, satya priya Subject: [PATCH V2 3/4] dt-bindings: power: reset: qcom-pon: Convert qcom PON binding to yaml Date: Thu, 8 Apr 2021 17:01:08 +0530 Message-Id: <1617881469-31965-4-git-send-email-skakit@codeaurora.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1617881469-31965-1-git-send-email-skakit@codeaurora.org> References: <1617881469-31965-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. Signed-off-by: satya priya --- Changes in V2: - As per Rob's comments, converted the main PON binding and added in V2. .../devicetree/bindings/power/reset/qcom,pon.txt | 49 ---------------------- .../devicetree/bindings/power/reset/qcom,pon.yaml | 41 ++++++++++++++++++ 2 files changed, 41 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..40eea5f1 --- /dev/null +++ b/Documentation/devicetree/bindings/power/reset/qcom,pon.yaml @@ -0,0 +1,41 @@ +# 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. + +properties: + compatible: + enum: + - qcom,pm8916-pon + - qcom,pms405-pon + - qcom,pm8998-pon + + reg: + description: Specifies the physical address of the pon register + + pwrkey: + type: object + $ref: "../../input/qcom,pm8941-pwrkey.yaml#" + + resin: + type: object + $ref: "../../input/qcom,pm8941-pwrkey.yaml#" + +required: + - compatible + - reg + +additionalProperties: true +... -- QUALCOMM INDIA, on behalf of Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by The Linux Foundation