Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1355791pxf; Fri, 12 Mar 2021 07:47:48 -0800 (PST) X-Google-Smtp-Source: ABdhPJzJJ8YvNk1xiZ8Olkd66J/G9CXvaBmbohvaZEXtVPbG1K7zhuOrrDWvDoFi/H4fawKbQpB8 X-Received: by 2002:a17:906:ccde:: with SMTP id ot30mr9265274ejb.550.1615564068348; Fri, 12 Mar 2021 07:47:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615564068; cv=none; d=google.com; s=arc-20160816; b=w7pS8Ez9kOZxRoOVsoBXI1hcNWTsVBqoiiRNbImjAaTkXOGVp/nNrP3vMwK9HdoV+P /29FJb84cA2pU94puaGmter5fob7Bvca2THEj8pTpONiHoqNK4JREh4syKHE8aioKTv7 ryi3UK89y56B8ZvT8ULxfHGcJtQHhf6VDleWnJRjAXPE8OEfMkqj5R5tvHsV2VvRBHX8 UDRuvGsYw+9GlSWBlh/Be0SQuZvrNomQfXkVvY46kuXCfGN2v8+LFSvBfeVXFCc06Qzj 8lNyMn4FiD+QU/Bn38Ubc/tOjacVRjGF7w49NPlm1LhywMX+1Pr4JUSs51B+f4I/iM9y cYwA== 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=bHD+uqmkQU78Oz5RVkcPw0QQOG3qBTxstYR/26ONHjw=; b=L8zPrik5YHcLGLiVe+Ua5Tvx6MlGgeR91DtWnoqTz2yeZbaBK+6PLeBXA+eVA0u1Kh C313yR79NfL2th+EFj/sJ9rg7EJXZ18xCxq46SatuR46UrtDBNB8w1J5yqYDC7NMyMqo zBhHHohU8forbayaASgsT3shqOt//UU/ijP8Ov9qmo3JnNi+/YGIiG9swlrf9ryYWFoI FnDSFRMG44Pby2f96+sYA0Cc2Vm9/2Wu8HKBFj1Iak6J7dSbZQIsjvc1zEGAikjH6r5Z NGzLMTrQqxCk7Ej9zz0+Faw8Gj3fqguQPgPTwY3nUuh/mSvx/R0/toSqkxmYdSqcyh0E +kiQ== 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 m12si4210407eje.309.2021.03.12.07.47.25; Fri, 12 Mar 2021 07:47:48 -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 S233089AbhCLPpD (ORCPT + 99 others); Fri, 12 Mar 2021 10:45:03 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:55616 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232527AbhCLPoO (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 8B6331F46E97 Received: by jupiter.universe (Postfix, from userid 1000) id 3FD5B4800E1; 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 09/38] dt-bindings: power: supply: isp1704: Convert to DT schema format Date: Fri, 12 Mar 2021 16:43:28 +0100 Message-Id: <20210312154357.1561730-10-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/isp1704.txt | 17 -------- .../bindings/power/supply/isp1704.yaml | 42 +++++++++++++++++++ 2 files changed, 42 insertions(+), 17 deletions(-) delete mode 100644 Documentation/devicetree/bindings/power/supply/isp1704.txt create mode 100644 Documentation/devicetree/bindings/power/supply/isp1704.yaml diff --git a/Documentation/devicetree/bindings/power/supply/isp1704.txt b/Documentation/devicetree/bindings/power/supply/isp1704.txt deleted file mode 100644 index fa3596907967..000000000000 --- a/Documentation/devicetree/bindings/power/supply/isp1704.txt +++ /dev/null @@ -1,17 +0,0 @@ -Binding for NXP ISP1704 USB Charger Detection - -Required properties: -- compatible: Should contain one of the following: - * "nxp,isp1704" -- nxp,enable-gpio: Should contain a phandle + gpio-specifier - to the GPIO pin connected to the chip's enable pin. -- usb-phy: Should contain a phandle to the USB PHY - the ISP1704 is connected to. - -Example: - -isp1704 { - compatible = "nxp,isp1704"; - nxp,enable-gpio = <&gpio3 3 GPIO_ACTIVE_LOW>; - usb-phy = <&usb2_phy>; -}; diff --git a/Documentation/devicetree/bindings/power/supply/isp1704.yaml b/Documentation/devicetree/bindings/power/supply/isp1704.yaml new file mode 100644 index 000000000000..4c91da70011d --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/isp1704.yaml @@ -0,0 +1,42 @@ +# SPDX-License-Identifier: GPL-2.0 +# Copyright (C) 2021 Sebastian Reichel +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/power/supply/isp1704.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Binding for NXP ISP1704 USB Charger Detection + +maintainers: + - Sebastian Reichel + +allOf: + - $ref: power-supply.yaml# + +properties: + compatible: + const: nxp,isp1704 + + nxp,enable-gpio: + maxItems: 1 + description: GPIO connected to the chip's enable pin + + usb-phy: + $ref: /schemas/types.yaml#/definitions/phandle + description: USB PHY the ISP1704 is connected to + +required: + - compatible + - nxp,enable-gpio + - usb-phy + +additionalProperties: false + +examples: + - | + #include + charger-detect { + compatible = "nxp,isp1704"; + nxp,enable-gpio = <&gpio3 3 GPIO_ACTIVE_LOW>; + usb-phy = <&usb2_phy>; + }; -- 2.30.1