Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1355163pxf; Fri, 12 Mar 2021 07:46:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzk0CxqRTJYryYs3Lb5DIMsf3W+Ce5ruMmWw5JTsVx9ENICE5HqPNQQQahQmKEF0hwDz10K X-Received: by 2002:aa7:db0c:: with SMTP id t12mr14601194eds.34.1615564018976; Fri, 12 Mar 2021 07:46:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615564018; cv=none; d=google.com; s=arc-20160816; b=oJkTtKmqJc4lE+758KQIHCi6IxYoJVu7b5tOhx20znIjPbwyOBmmk7CeE7oXqODfAT XfI+WL1c7X6yteSUpD2Wi14RlWCp1AstMeCSrfhJphPOJAXPKhnTT+sUoQ+B3GraZVhv KFPp0CvNokJixyUh2AyTspuDccRDvPid2+j6V1roGTsogd3D6Vp+EP5r9rAIsblnVFby jdf5aXaPf4q5k0kPZIfNY2OEvFWGIB669sOW8yjtTmnR01ECygESFgzSLOA87RmcqWMq ky7k9R7mYdsmPx97QQG6hI1VUzoPkI7bEUjfvGOac27iR7lq66Dyd5Tu8qcmfSg6m850 zf1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Bc+MHVBIPhmJYyHlB5w6ezRxH4YuprcFQ9VE/FXoWJc=; b=LENS1OqVY5ItXZbfcfEzRJ78qnCFjCjYAQYbuWwGjwoRLm/Bxg2DGH7gtAKVy77VIV r/hucCUcySxCqXVNXqxGHKL1cgJhNaHsi2f59Nv1HavlQhZvYGoygst3DJEiR08aTUFs uhLj2EfQMsSqW8qHxPqjc3MxaGYiPGjjHMF+j62++cahivSTlD++TDFgvZb6cQpK6rql YzHzAzAnzbbiJGgd1S/hG6fmbDwnc8P6uPQIiMInOY1TnG6fJc/JrEOPqxDHM3OX6/Wm KxORZpfSG4z95hIpCl4t1KRjeXdMHo1Ehs3KkbD42nw3cPs5LaDnuXjVf1rQf3PWHps9 IXVg== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id a1si4336851eds.169.2021.03.12.07.46.36; Fri, 12 Mar 2021 07:46:58 -0800 (PST) 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233161AbhCLPpb (ORCPT + 99 others); Fri, 12 Mar 2021 10:45:31 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:55676 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232043AbhCLPoR (ORCPT ); Fri, 12 Mar 2021 10:44:17 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 564561F46EC8 Received: by jupiter.universe (Postfix, from userid 1000) id 63CD4480113; Fri, 12 Mar 2021 16:44:08 +0100 (CET) From: Sebastian Reichel To: Sebastian Reichel , Rob Herring Cc: linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Sebastian Reichel , kernel@collabora.com Subject: [PATCH 26/38] dt-bindings: power: supply: pm8941-coincell: Convert to DT schema format Date: Fri, 12 Mar 2021 16:43:45 +0100 Message-Id: <20210312154357.1561730-27-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.30.1 In-Reply-To: <20210312154357.1561730-1-sebastian.reichel@collabora.com> References: <20210312154357.1561730-1-sebastian.reichel@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Convert the binding to DT schema format. Signed-off-by: Sebastian Reichel --- .../power/supply/qcom,coincell-charger.txt | 48 --------------- .../power/supply/qcom,pm8941-coincell.yaml | 58 +++++++++++++++++++ 2 files changed, 58 insertions(+), 48 deletions(-) delete mode 100644 Documentation/devicetree/bindings/power/supply/qcom,coincell-charger.txt create mode 100644 Documentation/devicetree/bindings/power/supply/qcom,pm8941-coincell.yaml diff --git a/Documentation/devicetree/bindings/power/supply/qcom,coincell-charger.txt b/Documentation/devicetree/bindings/power/supply/qcom,coincell-charger.txt deleted file mode 100644 index 747899223262..000000000000 --- a/Documentation/devicetree/bindings/power/supply/qcom,coincell-charger.txt +++ /dev/null @@ -1,48 +0,0 @@ -Qualcomm Coincell Charger: - -The hardware block controls charging for a coincell or capacitor that is -used to provide power backup for certain features of the power management -IC (PMIC) - -- compatible: - Usage: required - Value type: - Definition: must be: "qcom,pm8941-coincell" - -- reg: - Usage: required - Value type: - Definition: base address of the coincell charger registers - -- qcom,rset-ohms: - Usage: required - Value type: - Definition: resistance (in ohms) for current-limiting resistor - must be one of: 800, 1200, 1700, 2100 - -- qcom,vset-millivolts: - Usage: required - Value type: - Definition: voltage (in millivolts) to apply for charging - must be one of: 2500, 3000, 3100, 3200 - -- qcom,charger-disable: - Usage: optional - Value type: - Definition: defining this property disables charging - -This charger is a sub-node of one of the 8941 PMIC blocks, and is specified -as a child node in DTS of that node. See ../mfd/qcom,spmi-pmic.txt and -../mfd/qcom-pm8xxx.txt - -Example: - - pm8941@0 { - coincell@2800 { - compatible = "qcom,pm8941-coincell"; - reg = <0x2800>; - - qcom,rset-ohms = <2100>; - qcom,vset-millivolts = <3000>; - }; - }; diff --git a/Documentation/devicetree/bindings/power/supply/qcom,pm8941-coincell.yaml b/Documentation/devicetree/bindings/power/supply/qcom,pm8941-coincell.yaml new file mode 100644 index 000000000000..bcaf3be1f647 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/qcom,pm8941-coincell.yaml @@ -0,0 +1,58 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/power/supply/qcom,pm8941-coincell.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Qualcomm Coincell Charger + +description: | + The hardware block controls charging for a coincell or capacitor that is + used to provide power backup for certain features of the power management + IC (PMIC) + +maintainers: + - Sebastian Reichel + +properties: + compatible: + const: qcom,pm8941-coincell + + reg: + maxItems: 1 + + qcom,rset-ohms: + $ref: /schemas/types.yaml#/definitions/uint32 + description: resistance (in ohms) for current-limiting resistor + enum: [ 800, 1200, 1700, 2100 ] + + qcom,vset-millivolts: + $ref: /schemas/types.yaml#/definitions/uint32 + description: voltage (in millivolts) to apply for charging + enum: [ 2500, 3000, 3100, 3200 ] + + qcom,charger-disable: + type: boolean + description: defining this property disables charging + +required: + - compatible + - reg + - qcom,rset-ohms + - qcom,vset-millivolts + +additionalProperties: false + +examples: + - | + pmic { + #address-cells = <1>; + #size-cells = <0>; + + charger@2800 { + compatible = "qcom,pm8941-coincell"; + reg = <0x2800>; + qcom,rset-ohms = <2100>; + qcom,vset-millivolts = <3000>; + }; + }; -- 2.30.1