Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp548178pxf; Wed, 17 Mar 2021 10:14:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzlfnf2kwlPKd/+PVQioLUFgurYhWH4W/uItoR52gOVoB66NllYjgOIK++P/vWc9fm1icI+ X-Received: by 2002:a05:6402:5211:: with SMTP id s17mr44110566edd.327.1616001254438; Wed, 17 Mar 2021 10:14:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616001254; cv=none; d=google.com; s=arc-20160816; b=A4u41VHJhPYuaj5DKwLPKtttsaOrxxiiUfoe4X0n4SHtBDS2yll+maTnj2J0UOybVj LOsLmKNl+iFg8wOlXRTNrYUH8i8Aw7nZo3nbF/95VxtpgcRxqylHTNCeoYF0kbI2XZ90 h51udK/GWpZfjzdz77/0zk+ZLLXgJv7RFP/fU4KCSxszlW/hldPgoi/K1wNYLPVtaC/e Ib67I2F/LB2YJpcxKu976XkqmKb3I+FN9nH9jpKQpNVQBBdPsInCsBBhjYmutQrncy/j LgnN0gOxWFoTufPLTEI1bLvo9bMXWZ5Mc3L5j/0WxwzuljuIgknd55KpIBVjmCna0FiF 6f8g== 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=VH18yUlKDmQmxRVJMZvJnPMOXSb9+yFOjsyEg+0Thr0=; b=uzW19UHAFTQUXnFcwS6ymaTtaeA8yobysTtrhEvJuxvA0FC8cuXtkPz7tSDAvdYaEy oz3gZyvqQ6Zxfw3GxLKwOzsYtOkyazCjgpZzW4w51eZql/WWCQ0SNHm9wvJ1vMsVfMr8 Q58QbnKv6QMrgDCdpqYrAZSnDXuUpYC+e3VnK3ZHPuZVEGBWWz1XpiiR1HoF7ckWsWBq 4zej/zz25iEFgkBPfmc88VClQ6Mq/Rc4laOQ83HbUSxyBudnDpUZYPRzkBLOWTR5tcId Ez417drvvJ5vbXG58M8NQUVKx/jfqqrxYIMdMoyhKpYuS6IJoG26DV2Wq6E0NAyJvCs/ 4bdQ== 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 d3si17339850eds.83.2021.03.17.10.13.50; Wed, 17 Mar 2021 10:14:14 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231942AbhCQNvF (ORCPT + 99 others); Wed, 17 Mar 2021 09:51:05 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:56224 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231484AbhCQNtO (ORCPT ); Wed, 17 Mar 2021 09:49:14 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id D612C1F45223 Received: by jupiter.universe (Postfix, from userid 1000) id 0C5B8480113; Wed, 17 Mar 2021 14:49:06 +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: [PATCHv2 26/38] dt-bindings: power: supply: pm8941-coincell: Convert to DT schema format Date: Wed, 17 Mar 2021 14:48:52 +0100 Message-Id: <20210317134904.80737-27-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210317134904.80737-1-sebastian.reichel@collabora.com> References: <20210317134904.80737-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 | 57 +++++++++++++++++++ 2 files changed, 57 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..0450f4dd4e51 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/qcom,pm8941-coincell.yaml @@ -0,0 +1,57 @@ +# 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: + 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.2