Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3605322pxf; Mon, 15 Mar 2021 13:37:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJynXpws1W6HOyt5nXfyV52iujLoQXMBQiQMAYPsLUpsZjOc+C+/LfTYS8Qx5XMD3SAH1jGM X-Received: by 2002:a17:907:1693:: with SMTP id hc19mr25347304ejc.28.1615840642865; Mon, 15 Mar 2021 13:37:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1615840642; cv=none; d=google.com; s=arc-20160816; b=rKxywOpsTXTsxQVWziwbUXPrhkj/LRGQPZh50+gYUmE90Oz2xQ3lZdWQTk/4q0sQKE RSUWM3LGaQ2N6AgBLNsY3CJbLxk7HFtVxKO6uOstCd63HdsL+yEc4OkUtc2ZkIf6yyQ/ 7z2zheNmcsbnVKgMFUSo9eR1esykKilax/8mAqP5TICRX0flG3X+2W9JtzoK+ceDotiW jXqv7H5vEqkAQIbRaGmRM8bHs3nrq3lIO6tvejzvtbUnXEHZAhv+NzjP4ESeORIAN8BI 1QqukfS8Rbu3ClbNGfaf+bM+ukOEeItJYbv2oa293VlyP638liwpguqIwsVQs0pC5pD/ v2sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=grMaCbmCYMtoDhzroQn7fhx9XLi2gJtXXJfFjZGe7k8=; b=rkX3Tccb4pQz20ryw6yQxuaRm6kczlfPaZeZeP1n6lJBHJ2/km0KtT5VdDFI8ipRrI FgPxT47TmmJsvDKoXDSi5abpVp0QstTpCvOQbW3tuDx/KzZKrr0ar74yNn+Zl7OBPZxT HZvX/WahA3NmJsYhGyr4C2mH7H7IycBWqOeFtD/gQJu2FLNJ0P0yasOr/0SriVBA+jnz DcpVnW7TR2D0As/KiRyrxqUhaEsTjTrxC8YN9VaPmPxTPwZ9yy5Q3EIL242AU9MfJa2F JHd1ydVGeHP+R5mIsYJFIQCLkt8gZ1XQfSNOcEqHuYXRzJr/tGKUhwDKT8k8HDPYkn0y yVjw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qCjpCzFs; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rp14si12149095ejb.435.2021.03.15.13.36.59; Mon, 15 Mar 2021 13:37:22 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=qCjpCzFs; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229681AbhCOSY2 (ORCPT + 99 others); Mon, 15 Mar 2021 14:24:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:51578 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231673AbhCOSYX (ORCPT ); Mon, 15 Mar 2021 14:24:23 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 796F364F42; Mon, 15 Mar 2021 18:24:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615832662; bh=IV0bAkeJaGcIEwdhxf9utetH1kbkq+bzuMqhnbT6NVc=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=qCjpCzFs8GdT/ZJwVi45AiS0fFJ1Ig884mwvJWclXcAdzhkMB4SxYwmxvFqyxt+NB sMVG2QW6tfIYZEnSxy6M2kpK3b/VSauHXqQ4j6+ZQNv0JKR2KsTNIXdv8KFqhj3nYS Lp3/NgNnOiDpLriY06aZoQ4SW30gTaIhXhcM2nNUqJJBMGru3fWjPopyxmo5Qwm4Fe CBVJ5C31F3eoJpkl2DIcL5Y2pgKNJ4Hwcv1XjvIXxmyljDUTbvI+G5WMpSaWLV+egw D9GOZxfl1jGaZy+dchhMA5PIEK4HqbuP9IMYhfQfiRFPvY2WW+qTiZ5BZJ/1H8QBMR FHkFZcK5uYAzw== Received: by mail-ej1-f51.google.com with SMTP id jt13so67995116ejb.0; Mon, 15 Mar 2021 11:24:22 -0700 (PDT) X-Gm-Message-State: AOAM532jwJcEAhR9M7KqRUM8xoYhytsOBrR59HndDz8cOPC4BQbmAEV6 PnHgPD3JaSQxpAZPpl2DoA6UCH89efR3oOVlMA== X-Received: by 2002:a17:906:7806:: with SMTP id u6mr4837571ejm.130.1615832661038; Mon, 15 Mar 2021 11:24:21 -0700 (PDT) MIME-Version: 1.0 References: <20210312154357.1561730-1-sebastian.reichel@collabora.com> <20210312154357.1561730-9-sebastian.reichel@collabora.com> In-Reply-To: <20210312154357.1561730-9-sebastian.reichel@collabora.com> From: Rob Herring Date: Mon, 15 Mar 2021 12:24:09 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 08/38] dt-bindings: power: supply: bq24735: Convert to DT schema format To: Sebastian Reichel Cc: Sebastian Reichel , "open list:THERMAL" , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , Collabora Kernel ML Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 12, 2021 at 8:44 AM Sebastian Reichel wrote: > > Convert the binding to DT schema format. > > Signed-off-by: Sebastian Reichel > --- > .../bindings/power/supply/bq24735.yaml | 88 +++++++++++++++++++ > .../bindings/power/supply/ti,bq24735.txt | 39 -------- > 2 files changed, 88 insertions(+), 39 deletions(-) > create mode 100644 Documentation/devicetree/bindings/power/supply/bq24735.yaml > delete mode 100644 Documentation/devicetree/bindings/power/supply/ti,bq24735.txt > > diff --git a/Documentation/devicetree/bindings/power/supply/bq24735.yaml b/Documentation/devicetree/bindings/power/supply/bq24735.yaml > new file mode 100644 > index 000000000000..8a3a31ada128 > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/supply/bq24735.yaml > @@ -0,0 +1,88 @@ > +# SPDX-License-Identifier: GPL-2.0 > +# Copyright (C) 2021 Sebastian Reichel > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/power/supply/bq24735.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: Binding for TI BQ24735 Li-Ion Battery Charger > + > +maintainers: > + - Sebastian Reichel > + > +allOf: > + - $ref: power-supply.yaml# > + > +properties: > + compatible: > + const: ti,bq24735 > + > + reg: > + maxItems: 1 > + > + interrupts: > + description: AC adapter plug event interrupt > + maxItems: 1 > + > + ti,ac-detect-gpios: > + maxItems: 1 > + description: | > + This GPIO is optionally used to read the AC adapter status. This is a Host GPIO > + that is configured as an input and connected to the ACOK pin on the bq24735. > + Note: for backwards compatibility reasons, the GPIO must be active on AC adapter > + absence despite ACOK being active (high) on AC adapter presence. > + > + ti,charge-current: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: | > + Used to control and set the charging current. > + This value must be between 128mA and 8.128A with a 64mA step resolution. > + The POR value is 0x0000h. This number is in mA (e.g. 8192). > + See spec for more information about the ChargeCurrent (0x14h) register. > + > + ti,charge-voltage: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: | > + Used to control and set the charging voltage. > + This value must be between 1.024V and 19.2V with a 16mV step resolution. > + The POR value is 0x0000h. This number is in mV (e.g. 19200). > + See spec for more information about the ChargeVoltage (0x15h) register. > + > + ti,input-current: > + $ref: /schemas/types.yaml#/definitions/uint32 > + description: | > + Used to control and set the charger input current. > + This value must be between 128mA and 8.064A with a 128mA step resolution. > + The POR value is 0x1000h. This number is in mA (e.g. 8064). > + See the spec for more information about the InputCurrent (0x3fh) register. > + > + ti,external-control: > + type: boolean > + description: | > + Indicates that the charger is configured externally and that the host should not > + attempt to enable/disable charging or set the charge voltage/current. > + > + poll-interval: > + description: | > + If 'interrupts' is not specified, poll AC adapter presence with this interval (milliseconds). Needs a type.