Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp351428pxf; Wed, 17 Mar 2021 06:52:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz2th8zNgh/kfTP+u6027nHPgbmu6WSLbLqtsBQYNOhqXMmSOVHN8KTdf1GgrourkdyUVkH X-Received: by 2002:a17:906:3295:: with SMTP id 21mr35175409ejw.88.1615989124313; Wed, 17 Mar 2021 06:52:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615989124; cv=none; d=google.com; s=arc-20160816; b=kYa1ruMwiEs/pZh+Uzxm/ktI2dDZ/w23pVDPBn683nZYHkZgk1mDRnWFe8MJ9tHaFt XDoi1I9reHW3yIHdY+Vl30qt9Rluwvv35A+TjmhTEAHTdWbWZ5mGILzZ/fB6qeHNmH+Z nGy6K0yR3pLsDXfm/f5pq6fQJ0H8jqDYBOfSnPA6JiK85nTZz6yNP1D5+uk6sZh+Q2VK jhp2tstr4SnUILghvOKn7AR6dY0SYmur5/TxKLVyeVu0Ytp2mnMjWnVny8fsfiGmSUke tMAZlV7mvM11WvJna8CmQBHmKb8I8vuve2MKXanVe47n8eag/fMdASMklv0rj5svfV0p wQfQ== 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=6l23ts91zGT3FrN0uQS6yjflY1fXTwvyz2Z2AkeAFCw=; b=TDTTgpQopXgFFLm5B6aw1L5JL1+zuBa6BXpXbVBXm0G8Fm/ggFhzAN1yhzpm7sPkJS mfd7qjEP4z0gHTT/ysdHX1c66D+6R//XMo9a5y/zqCTfGO4QWtGOPAOrysqHWdidrdLE ivbZaPrZ1K0wenBvm4x+F+o6rH0Oj7ZM9cMMXx7mIfg5jEHGftHgSYYS4qkU0OaNf3eB EDEAW5Y2625vwzLwA1MlYe+k1U0WTFmvTAcdmqmjnxsHraugXoNjSq1SvzdQgg9Ua2gb K6wlHFS/mN9ak70H/JUUFEnonBdqWT4iAlZOJkZEoyozsks0shlWsdsdlqXXz3yN1CKm UdjQ== 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 c8si15935622edq.326.2021.03.17.06.51.41; Wed, 17 Mar 2021 06:52:04 -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 S231819AbhCQNua (ORCPT + 99 others); Wed, 17 Mar 2021 09:50:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231469AbhCQNtN (ORCPT ); Wed, 17 Mar 2021 09:49:13 -0400 Received: from bhuna.collabora.co.uk (bhuna.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D89EC06175F; Wed, 17 Mar 2021 06:49:13 -0700 (PDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id BCC711F44EEB Received: by jupiter.universe (Postfix, from userid 1000) id DA8D64800E4; Wed, 17 Mar 2021 14:49:05 +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 12/38] dt-bindings: power: supply: ds2760: Convert to DT schema format Date: Wed, 17 Mar 2021 14:48:38 +0100 Message-Id: <20210317134904.80737-13-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 --- .../bindings/power/supply/maxim,ds2760.txt | 26 ----------- .../bindings/power/supply/maxim,ds2760.yaml | 43 +++++++++++++++++++ 2 files changed, 43 insertions(+), 26 deletions(-) delete mode 100644 Documentation/devicetree/bindings/power/supply/maxim,ds2760.txt create mode 100644 Documentation/devicetree/bindings/power/supply/maxim,ds2760.yaml diff --git a/Documentation/devicetree/bindings/power/supply/maxim,ds2760.txt b/Documentation/devicetree/bindings/power/supply/maxim,ds2760.txt deleted file mode 100644 index 55967a0bee11..000000000000 --- a/Documentation/devicetree/bindings/power/supply/maxim,ds2760.txt +++ /dev/null @@ -1,26 +0,0 @@ -Devicetree bindings for Maxim DS2760 -==================================== - -The ds2760 is a w1 slave device and must hence have its sub-node in DT -under a w1 bus master node. - -The device exposes a power supply, so the details described in -Documentation/devicetree/bindings/power/supply/power_supply.txt apply. - -Required properties: -- compatible: must be "maxim,ds2760" - -Optional properties: -- power-supplies: Refers to one or more power supplies connected to - this battery. -- maxim,pmod-enabled: This boolean property enables the DS2760 to enter - sleep mode when the DQ line goes low for greater - than 2 seconds and leave sleep Mode when the DQ - line goes high. -- maxim,cache-time-ms: Time im milliseconds to cache the data for. When - this time expires, the values are read again from - the hardware. Defaults to 1000. -- rated-capacity-microamp-hours: - The rated capacity of the battery, in mAh. - If not specified, the value stored in the - non-volatile chip memory is used. diff --git a/Documentation/devicetree/bindings/power/supply/maxim,ds2760.yaml b/Documentation/devicetree/bindings/power/supply/maxim,ds2760.yaml new file mode 100644 index 000000000000..818647edf63d --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/maxim,ds2760.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/power/supply/maxim,ds2760.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Maxim DS2760 DT bindings + +maintainers: + - Sebastian Reichel + +description: | + The ds2760 is a w1 slave device and must hence have its sub-node in + DT under a w1 bus master node. + +allOf: + - $ref: power-supply.yaml# + +properties: + compatible: + const: maxim,ds2760 + + maxim,pmod-enabled: + description: | + Allow the DS2760 to enter sleep mode when the DQ line goes low for more than 2 seconds + and leave sleep Mode when the DQ line goes high. + type: boolean + + maxim,cache-time-ms: + description: | + Time im milliseconds to cache the data for. + When this time expires, the values are read again from the hardware. + Defaults to 1000. + + rated-capacity-microamp-hours: + description: | + The rated capacity of the battery, in mAh. + If not specified, the value stored in the non-volatile chip memory is used. + +required: + - compatible + +unevaluatedProperties: false -- 2.30.2