Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1354756pxf; Fri, 12 Mar 2021 07:46:29 -0800 (PST) X-Google-Smtp-Source: ABdhPJyxBUVY+AldAXh0nMHdQhtRGDVol9FT/DmgFLYNUbPX9uyfnPm4OZDDizySojfoNnF9sl16 X-Received: by 2002:a17:906:af6f:: with SMTP id os15mr9320154ejb.279.1615563989376; Fri, 12 Mar 2021 07:46:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615563989; cv=none; d=google.com; s=arc-20160816; b=WmgPBNEs++fZJY2+3Y1C6er3TGSMnFstVknnjI0PsHvfdzySrKHMVIGcDf5cl+CD/+ nac7zh2jNUqOIbFrDF04WVFfKHOVVwazh6OVjr27e4drM5FFGuPtwd5O9DIyKXJDHoFc 8HWtoZrVBfrfzwvszmMIdZDZnR4WQLNMKF44d5skbCDrFbbn2aWaPDf49KE2vnEk6xjx dMZDSnyJ3NguSvWjK8GqMHTx5MBcw6AEXMmkrpYcZU+JkMwetj5/WB/igw7mbox8YUS0 BAsLM5MrLA5TP1g0ODpz5kWArpR8B/pbIv/ny7Hacg0kIrZbLsY9su9pdg9ptXF1okb5 A/Lw== 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=RfyEviSBDhpPl31IAQh23g9zziDZr+QIpcy2cM6J4ys=; b=OyrIjHGpyC6OSFaagV440hTTRVK7f9VRervxvtusPTmKMTWl+XYliOfOFPYUlNF7SM JxCuEo+aWEK2BI9Rgm5fUGhUqLc7M9Bv0AaglUiK5chtIuSWBdVjmYI2j7+RkrBhZ/c9 FAc+mxTe8PC+buoM+NhVbQRDNi8iUbraCvISAeTDQ5qJAGWagJY2SZNZYVTf43dFhozp gJR0F9WQyUK4mGn6jLhJwhz1fT+mBOEI3yD4KVQFg8Vbw5S5ksK/srkpUiF4ageerpDG OGpzKlVL9v1r/DydYoeY84ICS5RP9u6FGx77g5hH+9vX0GdWzVTY7skJTYJYc/YZ/pFn vhjg== 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 i25si4251390ejf.656.2021.03.12.07.46.06; Fri, 12 Mar 2021 07:46:29 -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 S233062AbhCLPpB (ORCPT + 99 others); Fri, 12 Mar 2021 10:45:01 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:55622 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232530AbhCLPoO (ORCPT ); Fri, 12 Mar 2021 10:44:14 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 9F2E91F46E99 Received: by jupiter.universe (Postfix, from userid 1000) id 47C204800E4; 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 12/38] dt-bindings: power: supply: ds2760: Convert to DT schema format Date: Fri, 12 Mar 2021 16:43:31 +0100 Message-Id: <20210312154357.1561730-13-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 --- .../bindings/power/supply/maxim,ds2760.txt | 26 ----------- .../bindings/power/supply/maxim,ds2760.yaml | 45 +++++++++++++++++++ 2 files changed, 45 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..3b3fb611393a --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/maxim,ds2760.yaml @@ -0,0 +1,45 @@ +# 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: + $ref: /schemas/types.yaml#/definitions/uint32 + 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: + $ref: /schemas/types.yaml#/definitions/uint32 + 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.1