Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1360735pxf; Fri, 12 Mar 2021 07:53:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJwm3RzBCDq6ZYQfzfm+0JH+6UtHxfwQnjnq6krFFP/FeSxHfo4J0I6q5hb/GGzTQbv0RKTb X-Received: by 2002:a17:906:da0e:: with SMTP id fi14mr9565888ejb.188.1615564434874; Fri, 12 Mar 2021 07:53:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615564434; cv=none; d=google.com; s=arc-20160816; b=L3vHt3430GxniBbjdeu/NuOmHf0L0rrp0lHl2M9Yhy3JAxsjJb64nOZs0pp1Gb968s 5itlpLymtEoskNjWkTzIVXNkYgLw2cRz8K0KFmXzfQSyJGZ/mKkmLsOzSqo+r6Q/nxkB 6m+0iILfypm6FRgstxzVnK8oWoL+8ZNRjKiBFir6a5VQhbU3xcf0hyL9GizBeYABHXzz VnswTgSu6Hs2GlMafqrykltJZteKMQvEmnieWaOuA0MyZuqiNsDWyHDc3tm7/fqHwb1L 8FqKMmH6tLcKief1GrKw8sKzlJhLrUlKYhGo3hp7uBk0Luj0GJIUXlP+7oUBxgXxGonz 3SIw== 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=5SMTe4jOBVfZwAl44kCZCRL6nxzUTgHntXW/JDsXyEw=; b=sR4k3LHYe/YlFYTsmIfJhY2fe1xrqa2ILkx9hauXvPWI36DXQI/osl3AhDHwZuuNAt EuTGTJKfGaS5SZRk4J9RMt4XqwELl6P/MCXLpbS7E2qT2Wq8xSPOrh/OxSBU/EP2mvr1 tvPCu0ddu8zV/sAABfHhaBLM2YHRXFrEZQ44pKI5GcGXd9yAZ2/QOUqGUV5zCEQqJUsC UcWEuW3p+zqRrJDOFEnXKSMtysn4NieL16U7sEVcaXEK2TS2CtX2VZb6msVbXHUAuVIC 1dVE36E2Wc82yJsqznZID05bkXrBd/l+jpPzhOw42+qRIIH9gAl+hW9v3tKAoZDwcAe4 pINQ== 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 v15si4563615ede.1.2021.03.12.07.53.31; Fri, 12 Mar 2021 07:53:54 -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 S232709AbhCLPwk (ORCPT + 99 others); Fri, 12 Mar 2021 10:52:40 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:55840 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231925AbhCLPw3 (ORCPT ); Fri, 12 Mar 2021 10:52:29 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 7D3041F46E74 Received: by jupiter.universe (Postfix, from userid 1000) id 6D943480119; 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 31/38] dt-bindings: power: supply: lt3651: Convert to DT schema format Date: Fri, 12 Mar 2021 16:43:50 +0100 Message-Id: <20210312154357.1561730-32-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/lltc,lt3651-charger.yaml | 44 +++++++++++++++++++ .../bindings/power/supply/lt3651-charger.txt | 29 ------------ 2 files changed, 44 insertions(+), 29 deletions(-) create mode 100644 Documentation/devicetree/bindings/power/supply/lltc,lt3651-charger.yaml delete mode 100644 Documentation/devicetree/bindings/power/supply/lt3651-charger.txt diff --git a/Documentation/devicetree/bindings/power/supply/lltc,lt3651-charger.yaml b/Documentation/devicetree/bindings/power/supply/lltc,lt3651-charger.yaml new file mode 100644 index 000000000000..e2d8d2aebb73 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/lltc,lt3651-charger.yaml @@ -0,0 +1,44 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/power/supply/lltc,lt3651-charger.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Analog Devices LT3651 Charger Power Supply bindings + +maintainers: + - Sebastian Reichel + +allOf: + - $ref: power-supply.yaml# + +properties: + compatible: + enum: + - lltc,lt3651-charger + - lltc,ltc3651-charger # deprecated, use lltc,lt3651-charger + + lltc,acpr-gpios: + maxItems: 1 + + lltc,fault-gpios: + maxItems: 1 + + lltc,chrg-gpios: + maxItems: 1 + +required: + - compatible + - lltc,acpr-gpios + +additionalProperties: false + +examples: + - | + #include + charger { + compatible = "lltc,lt3651-charger"; + lltc,acpr-gpios = <&gpio0 68 GPIO_ACTIVE_LOW>; + lltc,fault-gpios = <&gpio0 64 GPIO_ACTIVE_LOW>; + lltc,chrg-gpios = <&gpio0 63 GPIO_ACTIVE_LOW>; + }; diff --git a/Documentation/devicetree/bindings/power/supply/lt3651-charger.txt b/Documentation/devicetree/bindings/power/supply/lt3651-charger.txt deleted file mode 100644 index 40811ff8de10..000000000000 --- a/Documentation/devicetree/bindings/power/supply/lt3651-charger.txt +++ /dev/null @@ -1,29 +0,0 @@ -Analog Devices LT3651 Charger Power Supply bindings: lt3651-charger - -Required properties: -- compatible: Should contain one of the following: - * "lltc,ltc3651-charger", (DEPRECATED: Use "lltc,lt3651-charger") - * "lltc,lt3651-charger" - - lltc,acpr-gpios: Connect to ACPR output. See remark below. - -Optional properties: - - lltc,fault-gpios: Connect to FAULT output. See remark below. - - lltc,chrg-gpios: Connect to CHRG output. See remark below. - -The lt3651 outputs are open-drain type and active low. The driver assumes the -GPIO reports "active" when the output is asserted, so if the pins have been -connected directly, the GPIO flags should be set to active low also. - -The driver will attempt to aquire interrupts for all GPIOs to detect changes in -line state. If the system is not capabale of providing interrupts, the driver -cannot report changes and userspace will need to periodically read the sysfs -attributes to detect changes. - -Example: - - charger: battery-charger { - compatible = "lltc,lt3651-charger"; - lltc,acpr-gpios = <&gpio0 68 GPIO_ACTIVE_LOW>; - lltc,fault-gpios = <&gpio0 64 GPIO_ACTIVE_LOW>; - lltc,chrg-gpios = <&gpio0 63 GPIO_ACTIVE_LOW>; - }; -- 2.30.1