Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp3520724rwb; Tue, 16 Aug 2022 04:42:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR7D7PobumxEthK2vSVMnWn8kHv1SiEJN20JGSS0QoOdcT6nt2xDT/NFOgthF9e3m1LAkDeg X-Received: by 2002:a17:907:3e03:b0:722:e694:438 with SMTP id hp3-20020a1709073e0300b00722e6940438mr13469222ejc.755.1660650137853; Tue, 16 Aug 2022 04:42:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660650137; cv=none; d=google.com; s=arc-20160816; b=jZ1mIGoAyFOIEoW1rawxKDFwFI+rQwrxyRV7mRRKFDvhThWO8jAzPnMQp05EE4X1j4 cEiAHIMwyiKyQR8QnFByg+ziXDeFex6BAfcmfF5KM4hTySj6L20nc9K0oZkcbEKLakZI FzMpDyVDesSTsP8/UJWuMHBqHJV+zHfJZhf9h0kq5by/tE/1qor99QHs8yLyufoY73Ss 9Ewxznlie9exzFMfR3ZId0daO98v/uImh8iRI62tvUPGLZVzC6Sd0FpzZgzhf9qq44e/ QQsiXrd3EABlXXv0SMo0MM0rV5ig5qHcP+xerI5cTOLNE8P9Kx4G+rQonp2lPFw9DbVq YLEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=I5SqP35XC1263ityEmHuahEtnvYD9OPIC1kK87SGfRw=; b=wW3Y30wA5ZifF2Osr4/kP5J6gf2OF+2Z7cZvEtTFG7sEL/rkjmvIJ4nUsyd/fg6lvs 7AFWXRQqjGIYAsK6AkXGha94KY+uVZaCULI6kmx+DsGHNPV0ymYvqqquwYYlmGotZn9Q 3zGJaK6tNpZLOW/diswwkRgOva7r6Uwn3eVXjkcQRRG0NDAwMSNrcSa7/0Py4IZsEbYC FKWIVCMfj4AYG9AV4EDCBYWitiP6pW3xP7yJEytZgMvtSQU1JAHVhNyHITwTR6AFyeqU dfcHlPnaTDdcTa/VSS6oMEV0mArtm4Bpn6b/y/llvWBeD3CQE4rO74vAedgD24Ckw9bU rKog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GG76BEFF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id dy17-20020a05640231f100b0043d88b58552si9428159edb.425.2022.08.16.04.41.52; Tue, 16 Aug 2022 04:42:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=GG76BEFF; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235116AbiHPLEH (ORCPT + 99 others); Tue, 16 Aug 2022 07:04:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32846 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235081AbiHPLDq (ORCPT ); Tue, 16 Aug 2022 07:03:46 -0400 Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 444FB9F0EA for ; Tue, 16 Aug 2022 03:13:23 -0700 (PDT) Received: by mail-lj1-x235.google.com with SMTP id v10so10025432ljh.9 for ; Tue, 16 Aug 2022 03:13:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc; bh=I5SqP35XC1263ityEmHuahEtnvYD9OPIC1kK87SGfRw=; b=GG76BEFFH8QopWBCiOBntKXwcAX7YWOUOgmNyASJ6GEoYLq58DYf15P+iP97FxOg4B KjDaJEUrkA70ApHUjT+FWRX9DVIm1N4FveTnXJsj1bwwKg9k/nWwYY4N2FBwYTs1pST7 3snLlHdooPCoOILcUKxpsXT0nUuhOwVLBgLcwzaAMLwsqBwfwsUxFWrvl63bMa8wO6+b P/tlXSY/kMnb3qOxP/UoznLJeEBju5oWeVLMNlmxpnkaOeJKxiiiBYqeVsYoKc84HnBY 7/U4xiutBBix58jCLqHm+QqRUeNvFfvsoqfQdQXr78xeD6wjWdbxc+OJkB4BuTKOZVqm fxmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc; bh=I5SqP35XC1263ityEmHuahEtnvYD9OPIC1kK87SGfRw=; b=wkzMcan/UAT8E9qNaryr/5VhkP+9qDyz6a8Dejm5YArpD05hIWlhOu78iFzP2XMNXJ 14H+EjB6e/+zwfaP3T+UycCxDlqfbcUL+7DtQNGcUPT8RQvdlAHdqq1uIeL6/CIcp/EB p3OTHiI4m3aWuhQbi9j5Erh84rwU9g+bshCxURlx7e8l2CrWnVKtQ0llXsD0103fGI7Z ZCPn5M2OKQD5LZiaMV1ElhOW3k/eG8lokOODdn4i30QW93/qle/ITh0IZJ5OzyLxvGke sdMbL3tVdFMJeUCSMlaDnGGXsm8pJB/jFO7NvIxzKeY4Cu2c1QvWoOlxjom7sZUSdPu2 ZJ9w== X-Gm-Message-State: ACgBeo3A8hvAi2hkf5SfLqHrmPMRlnQDSbzykcmqwCSpd1IpZ4ie5hU+ EMdwL44qMPz+hB7XzZcwmSnhxQ== X-Received: by 2002:a05:651c:244:b0:253:ecad:a4ee with SMTP id x4-20020a05651c024400b00253ecada4eemr5833229ljn.21.1660644802065; Tue, 16 Aug 2022 03:13:22 -0700 (PDT) Received: from ?IPV6:2001:14bb:ae:539c:1782:dd68:b0c1:c1a4? (d15l54g8c71znbtrbzt-4.rev.dnainternet.fi. [2001:14bb:ae:539c:1782:dd68:b0c1:c1a4]) by smtp.gmail.com with ESMTPSA id d21-20020ac244d5000000b0048afccdd6e8sm1339250lfm.105.2022.08.16.03.13.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 16 Aug 2022 03:13:21 -0700 (PDT) Message-ID: <488ccf2a-5058-d3c6-43ad-8ec2b541fb86@linaro.org> Date: Tue, 16 Aug 2022 13:13:20 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH v2 1/2] dt-bindings: power: supply: Add Richtek RT9471 battery charger Content-Language: en-US To: cy_huang , robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, sre@kernel.org Cc: alina_yu@richtek.com, cy_huang@richtek.com, alinayu829@gmail.com, linux-pm@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org References: <1660548852-6222-1-git-send-email-u0084500@gmail.com> <1660548852-6222-2-git-send-email-u0084500@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <1660548852-6222-2-git-send-email-u0084500@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 15/08/2022 10:34, cy_huang wrote: > From: ChiYuan Huang > > Add bindings for the Richtek RT9471 I2C controlled battery charger. > > Co-developed-by: Alina Yu > Signed-off-by: Alina Yu > Signed-off-by: ChiYuan Huang > --- > Since v2 > - Remove the properties for interrupt controller things in the binding documentation. > - Fix dtc error for typo, it's 'regulator-name', not 'regulator-compatible'. > - Add regulator min/max microamp to allow otg vbus current adjustable in example. > - Specify the active-level for charge-enable-gpios in binding example. > > --- > .../bindings/power/supply/richtek,rt9471.yaml | 73 ++++++++++++++++++++++ > 1 file changed, 73 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/supply/richtek,rt9471.yaml > > diff --git a/Documentation/devicetree/bindings/power/supply/richtek,rt9471.yaml b/Documentation/devicetree/bindings/power/supply/richtek,rt9471.yaml > new file mode 100644 > index 00000000..9286b82 > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/supply/richtek,rt9471.yaml > @@ -0,0 +1,73 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/power/supply/richtek,rt9471.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Richtek RT9471 3A Single Cell Switching Battery charger > + > +maintainers: > + - Alina Yu > + - ChiYuan Huang > + > +description: | > + RT9471 is a switch-mode single cell Li-Ion/Li-Polymer battery charger for > + portable applications. It supports USB BC1.2 port detection, current and > + voltage regulations in both charging and boost mode. > + > + Datasheet is available at > + https://www.richtek.com/assets/product_file/RT9471=RT9471D/DS9471D-02.pdf > + > +properties: > + compatible: > + const: richtek,rt9471 > + > + reg: > + maxItems: 1 > + > + charge-enable-gpios: > + description: GPIO used to turn on and off charging. > + maxItems: 1 > + > + wakeup-source: true > + > + interrupts: > + maxItems: 1 > + > + usb-otg-vbus-regulator: > + type: object > + unevaluatedProperties: false > + $ref: /schemas/regulator/regulator.yaml# ref goes before unevaluatedProperties (so one line up) with above: Reviewed-by: Krzysztof Kozlowski Best regards, Krzysztof