Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1356499pxf; Fri, 12 Mar 2021 07:48:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJx3ASKMmFgG7reqlgEDulUHWu9eKq6mEr6s6Oy0KeaNXwUAoPZ6tNokNZizynb+iJZf9Ahi X-Received: by 2002:aa7:c804:: with SMTP id a4mr14646403edt.251.1615564123226; Fri, 12 Mar 2021 07:48:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615564123; cv=none; d=google.com; s=arc-20160816; b=puG9xwYDljm8KGsdTI3SKMCAfrw2ST14jiKJsg3DxxSJqfndWchTjJv5P7odab2zBd fxEeNasDHwF7AWGc45GUFtz4smLgKXTdMMk1a3X8JTUuSoMQsBrHLpMVdgUk/s//EUbc Fs5tR0CrycBGREka7h3z6G28CJXGIBNA3L8UOkTlxxMrZxJEMTKeT7csasdhtKs0waEU 2p+IRsIAprYd9/k5mcCha0RGq3XZAptOcfHe4KxH3pjonDo4Fm/TOOqyTJZ4fzwHddwZ ktAn2BgiWmU8RiHcqatj3noWmGLeAat1FlcFuZQdK+bBYnwJ5I+hea7TOD8AE7cUo5ZS Is5A== 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=FmqLd/qyNcXcAJ8wqfNKKjc8BDLRX5GuxJ+65jh/hHA=; b=PwttZCaeIMQLnm1gmXF9U+NTgTgnBBebZRMfvI3dZES9YJqglw4lffXd0bPdKLuMcn 2WbXP4+dM1QOcXs8xqbUbgyGmpgITOW37Y7u4PqL07xKQTQnS16ki7zy8ew5bmuGt5qU vOiDB8/9JvscQKvOM8jH+1/SQ92fs7E2P0CejL4az9/ghCvMpaGwd12i/6nNAZYGciJD MWLbr9j7XaVvTbN08i003bjmgr1LBozupjAeFMhe6FkewC63TQNZ02MUd8HPmom/MqwY J49XHLw9IcXzV2exABegg44XVbCKPddNdM/TddIObrqnLVj9kMMlL0gYnNiuM79n7PxL TP3g== 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 i5si4266424ejh.313.2021.03.12.07.48.20; Fri, 12 Mar 2021 07:48:43 -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 S232057AbhCLPpJ (ORCPT + 99 others); Fri, 12 Mar 2021 10:45:09 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:55642 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232562AbhCLPoQ (ORCPT ); Fri, 12 Mar 2021 10:44:16 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id 3E8D91F46EC0 Received: by jupiter.universe (Postfix, from userid 1000) id 51937480102; 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 16/38] dt-bindings: power: supply: tps65217: Convert to DT schema format Date: Fri, 12 Mar 2021 16:43:35 +0100 Message-Id: <20210312154357.1561730-17-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/tps65217-charger.yaml | 43 +++++++++++++++++++ .../power/supply/tps65217_charger.txt | 17 -------- 2 files changed, 43 insertions(+), 17 deletions(-) create mode 100644 Documentation/devicetree/bindings/power/supply/tps65217-charger.yaml delete mode 100644 Documentation/devicetree/bindings/power/supply/tps65217_charger.txt diff --git a/Documentation/devicetree/bindings/power/supply/tps65217-charger.yaml b/Documentation/devicetree/bindings/power/supply/tps65217-charger.yaml new file mode 100644 index 000000000000..a33408c3a407 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/tps65217-charger.yaml @@ -0,0 +1,43 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/power/supply/tps65217-charger.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: TPS65217 Charger + +maintainers: + - Sebastian Reichel + +allOf: + - $ref: power-supply.yaml# + +properties: + compatible: + const: ti,tps65217-charger + + interrupts: + minItems: 2 + maxItems: 2 + + interrupt-names: + items: + - const: USB + - const: AC + +required: + - compatible + - interrupts + - interrupt-names + +additionalProperties: false + +examples: + - | + pmic { + charger { + compatible = "ti,tps65217-charger"; + interrupts = <0>, <1>; + interrupt-names = "USB", "AC"; + }; + }; diff --git a/Documentation/devicetree/bindings/power/supply/tps65217_charger.txt b/Documentation/devicetree/bindings/power/supply/tps65217_charger.txt deleted file mode 100644 index a11072c5a866..000000000000 --- a/Documentation/devicetree/bindings/power/supply/tps65217_charger.txt +++ /dev/null @@ -1,17 +0,0 @@ -TPS65217 Charger - -Required Properties: --compatible: "ti,tps65217-charger" --interrupts: TPS65217 interrupt numbers for the AC and USB charger input change. - Should be <0> for the USB charger and <1> for the AC adapter. --interrupt-names: Should be "USB" and "AC" - -This node is a subnode of the tps65217 PMIC. - -Example: - - tps65217-charger { - compatible = "ti,tps65217-charger"; - interrupts = <0>, <1>; - interrupt-names = "USB", "AC"; - }; -- 2.30.1