Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1361168pxf; Fri, 12 Mar 2021 07:54:23 -0800 (PST) X-Google-Smtp-Source: ABdhPJyZbonbEK2n909elAJOaepK8F5GSG5hbkGkv/V9jGXnG3TkkhUA4ydYM/BxIrKfpWaedu6u X-Received: by 2002:aa7:d4ca:: with SMTP id t10mr14716564edr.388.1615564463171; Fri, 12 Mar 2021 07:54:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615564463; cv=none; d=google.com; s=arc-20160816; b=WMR5Zw0/SRLj+8JUOS/tlnlczoHbI6oMVJ4G2NLxbbtPgGuZ6PI3Fjc+YMhPjZNGAI pD7u96YQ4pHD68jRuAsCGb74vjsAoI3v3EI/RmKg754UGtRFC/WmerQk0LC1yWJ8OIqq LOs0DJIjoBz//4+QYP7qI8K7teL6xi4lX4/qiGAXIIwckkZtk4FFSo8DMWC4hVIjjvym tBprELYTFIiqR+Lk9Bp+b9gzSkjq3tqogLtiCc0snMvzD5dyKD65Cu+LyOYNSNMp1LQ+ o3QNtf7GJPwPCFS4/FJzRqOTTsKhUB5YBeWxSyjA4l0d9K3pnu2oaUIN2F7/5GjK1fSz qHAg== 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=QGF/B3bw+nkYYDOP4NQAxh9apx7p1onMxuTriEaNg9E=; b=t3TcEdo3PpFqa4R8DEFhFPd/kieTrhqsRPNF7lTgPdQf5zNhDlySY0WF8e82i9tYWI TtKVmQ/vRiAtqPk85sSZoNaGgFTQVYJTp9qmkCAiTtqU8TZXnNa+uuSfM/0F+4j7Ej7R coDl4S1ermMA8avAc8AkwEdtDAzSSMjtb5GF2+MOqSEf9kLLGFZjngM3YvcC6FJxoIYL xFj7AkxCNhdKn1rzvw/jMstrV/kU6HhJBLetvRuXiFr5BHUQeDWWPQ9WBN+nwdCBdog+ gdQ3d2xYUK70QhtnP0Z0PWvHRoBcAJ57QScSphNN5phVxf3QdUjtbFT06krIYavg1cZS BQaA== 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 c68si4677785edf.568.2021.03.12.07.54.00; Fri, 12 Mar 2021 07:54:23 -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 S232554AbhCLPwp (ORCPT + 99 others); Fri, 12 Mar 2021 10:52:45 -0500 Received: from bhuna.collabora.co.uk ([46.235.227.227]:55864 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232030AbhCLPwa (ORCPT ); Fri, 12 Mar 2021 10:52:30 -0500 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: sre) with ESMTPSA id AF29D1F46E80 Received: by jupiter.universe (Postfix, from userid 1000) id 5B931480107; 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 21/38] dt-bindings: power: supply: max14656: Convert to DT schema format Date: Fri, 12 Mar 2021 16:43:40 +0100 Message-Id: <20210312154357.1561730-22-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,max14656.txt | 23 ---------- .../bindings/power/supply/maxim,max14656.yaml | 45 +++++++++++++++++++ 2 files changed, 45 insertions(+), 23 deletions(-) delete mode 100644 Documentation/devicetree/bindings/power/supply/maxim,max14656.txt create mode 100644 Documentation/devicetree/bindings/power/supply/maxim,max14656.yaml diff --git a/Documentation/devicetree/bindings/power/supply/maxim,max14656.txt b/Documentation/devicetree/bindings/power/supply/maxim,max14656.txt deleted file mode 100644 index f956247d493e..000000000000 --- a/Documentation/devicetree/bindings/power/supply/maxim,max14656.txt +++ /dev/null @@ -1,23 +0,0 @@ -Maxim MAX14656 / AL32 USB Charger Detector - -Required properties : -- compatible : "maxim,max14656"; -- reg: i2c slave address -- interrupts: interrupt line - -Example: - -&i2c2 { - clock-frequency = <50000>; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_i2c2>; - - max14656@35 { - compatible = "maxim,max14656"; - reg = <0x35>; - pinctrl-names = "default"; - pinctrl-0 = <&pinctrl_charger_detect>; - interrupt-parent = <&gpio6>; - interrupts = <26 IRQ_TYPE_LEVEL_HIGH>; - }; -}; diff --git a/Documentation/devicetree/bindings/power/supply/maxim,max14656.yaml b/Documentation/devicetree/bindings/power/supply/maxim,max14656.yaml new file mode 100644 index 000000000000..0a41078ebd99 --- /dev/null +++ b/Documentation/devicetree/bindings/power/supply/maxim,max14656.yaml @@ -0,0 +1,45 @@ +# SPDX-License-Identifier: GPL-2.0 +%YAML 1.2 +--- +$id: "http://devicetree.org/schemas/power/supply/maxim,max14656.yaml#" +$schema: "http://devicetree.org/meta-schemas/core.yaml#" + +title: Maxim MAX14656 DT bindings + +maintainers: + - Sebastian Reichel + +allOf: + - $ref: power-supply.yaml# + +properties: + compatible: + const: maxim,max14656 + + reg: + maxItems: 1 + + interrupts: + maxItems: 1 + +required: + - compatible + - reg + - interrupts + +additionalProperties: false + +examples: + - | + #include + i2c0 { + #address-cells = <1>; + #size-cells = <0>; + + charger-detector@35 { + compatible = "maxim,max14656"; + reg = <0x35>; + interrupt-parent = <&gpio6>; + interrupts = <26 IRQ_TYPE_LEVEL_HIGH>; + }; + }; -- 2.30.1