Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp92125rwb; Mon, 26 Sep 2022 09:41:07 -0700 (PDT) X-Google-Smtp-Source: AMsMyM61c8qLCZWLOgsktXCkci/ICF9FrQKz6kvHniRTe1fkuqQwdUrVNYJwS7Vt7WTMkQ7RsvZz X-Received: by 2002:a63:455e:0:b0:439:9496:ddd8 with SMTP id u30-20020a63455e000000b004399496ddd8mr20516127pgk.261.1664210467139; Mon, 26 Sep 2022 09:41:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664210467; cv=none; d=google.com; s=arc-20160816; b=qUW6JgIIh6Tco46d9KcX+WkKCyH4HVAdbpOYvIvZXw4ICrsGwJxghBknDtreQchwhv iSQsUCd7phEUvGBoQ7arp+3Lo9GKwj9QDUUHNc0lLJkysN847LCb9IexFlpcvqP8pUCs RQKehpae4N07RXFFa7GMKxLH04+IX6UxVIxeJL+iL5dq8lXO1FdSpko1ewQlY57rLXV/ c6Bx+ANXR/mpCJrdN8omd2FZMCJTNqk7juqv3Qgen8hKh3U/HsUsfGvGF8GxdkVkRABG 0PuGQoPEhroj/yCdhd3gASpi4/4d4Dq9csDgM4tZ7NOZlxVyjJ5gDPZAUDgJdoFU0HFS kQXA== 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=FPFy//wmMRAK3ZwpN0cSFOYjXlo5NUKCjzjgKPF+ukU=; b=jWMW9RRROKr3/zSzGaKHfA0z9n9tWpF0kIFtZn1b8y9Dn68SBrHLpS+l5LK74dJlzH kEI2hhYsAG3ij01CQjj8y5htGo0zZH+fizBZ2tV0SUAlLq6QAtiVX9iIV5T9aIiVWxlm r4ED6mgz4SCswdy2b7KCDWBqApHmCVmIr0zZmQaAMVA1dHDxg6zSFQlIqu39ESjGM/a+ mV3y5d6BmWRoMiG9WtgWqk5gJdOiC5ttHBbxkl+6B4MHm/jegvxNCUIxGNqdenlBE0Vx U7+LodFERqTgKPeKAR+jxWMSE28A1umdilxAVYerHogoqQa2vID2P9g3WKfs2HR6+pfG mOdA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Tk6RJbMH; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l185-20020a6388c2000000b00438cd7f5b74si18974202pgd.801.2022.09.26.09.40.54; Mon, 26 Sep 2022 09:41:07 -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=@kernel.org header.s=k20201202 header.b=Tk6RJbMH; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234150AbiIZQEN (ORCPT + 99 others); Mon, 26 Sep 2022 12:04:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48332 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233208AbiIZQDa (ORCPT ); Mon, 26 Sep 2022 12:03:30 -0400 Received: from sin.source.kernel.org (sin.source.kernel.org [145.40.73.55]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BE2CA442; Mon, 26 Sep 2022 07:52:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sin.source.kernel.org (Postfix) with ESMTPS id 90E22CE10DE; Mon, 26 Sep 2022 14:52:20 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2A7C1C4347C; Mon, 26 Sep 2022 14:52:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1664203938; bh=K88cm8bIsC2QQhtkF90EpbOoiLRIjlE5ymW1VbMAKXU=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Tk6RJbMHalAj8Tp1/kdQw39Ie/imvaxkRVrFrJjf83J7bkWYPgN/RHc6QDA1L1/t0 z+22Am2AK52EaxI/LJbYrcUxYQHUIgIVx8E+HigPAwnxoeAWRVOfhIzjFFQQY/Zw+Y L/r+kFbHtN1MC4ilwIZQ4Yoo6MuwF5YokIXyB85Vl2sELURjcCEIFt138pxVhcZ7oF yA3jJkyv/DRnvg7J7+6v8ca0vleDjYDq6uIRczUw135JUXy984NFOW0ok8GTYsoado 77iAlTkHKUW+BDkPKoweHJBfWqM5gS06ZDdegZDWO9IKno72YAgYt+9AAV9e1yejzw sWo/A3xxf1gcw== Received: by mail-vs1-f49.google.com with SMTP id d187so6797213vsd.6; Mon, 26 Sep 2022 07:52:18 -0700 (PDT) X-Gm-Message-State: ACrzQf2W7u9a2tt5Tkr+H0T910FFL1iRBVrv/sTdkfBfiB7RlnTNsMwA 0uXJ4PJxWup4lQOTZaZCt8eSnzLHul46KuDWDA== X-Received: by 2002:a05:6102:3211:b0:398:87ba:a1a6 with SMTP id r17-20020a056102321100b0039887baa1a6mr9369144vsf.0.1664203937059; Mon, 26 Sep 2022 07:52:17 -0700 (PDT) MIME-Version: 1.0 References: <9382254831bb6ed8c228398a68896b0e8e61c7c4.1663254344.git.chiaen_wu@richtek.com> In-Reply-To: <9382254831bb6ed8c228398a68896b0e8e61c7c4.1663254344.git.chiaen_wu@richtek.com> From: Rob Herring Date: Mon, 26 Sep 2022 09:52:06 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v11 1/8] dt-bindings: power: supply: Add MediaTek MT6370 Charger To: ChiaEn Wu Cc: pavel@ucw.cz, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, sre@kernel.org, jic23@kernel.org, lars@metafoo.de, broonie@kernel.org, mazziesaccount@gmail.com, andriy.shevchenko@linux.intel.com, chiaen_wu@richtek.com, alice_chen@richtek.com, cy_huang@richtek.com, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, linux-iio@vger.kernel.org, szunichen@gmail.com, Krzysztof Kozlowski Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-7.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Thu, Sep 15, 2022 at 4:49 AM ChiaEn Wu wrote: > > From: ChiaEn Wu > > Add MediaTek MT6370 Charger binding documentation. > > Reviewed-by: Krzysztof Kozlowski > Signed-off-by: ChiaEn Wu > --- > v11 > - Add more detailed description of irqs. > - Adujust the order of irqs > --- > .../power/supply/mediatek,mt6370-charger.yaml | 96 ++++++++++++++++++++++ > 1 file changed, 96 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/supply/mediatek,mt6370-charger.yaml > > diff --git a/Documentation/devicetree/bindings/power/supply/mediatek,mt6370-charger.yaml b/Documentation/devicetree/bindings/power/supply/mediatek,mt6370-charger.yaml > new file mode 100644 > index 0000000..fd491c5 > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/supply/mediatek,mt6370-charger.yaml > @@ -0,0 +1,96 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/power/supply/mediatek,mt6370-charger.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: MediaTek MT6370 Battery Charger > + > +maintainers: > + - ChiaEn Wu > + > +description: | > + This module is part of the MT6370 MFD device. > + Provides Battery Charger, Boost for OTG devices and BC1.2 detection. > + > +properties: > + compatible: > + const: mediatek,mt6370-charger > + > + interrupts: > + description: | > + Specify what irqs are needed to be handled by MT6370 Charger driver. > + We need to use the IRQ "MT6370_IRQ_OVPCTRL_UVP_D" to know when USB > + is plugged in, and then the driver will enable BC1.2 detection. > + After the hardware of MT6370 completes the BC1.2 detection, > + IRQ "MT6370_IRQ_ATTACH" will be triggered, and the driver will know > + the result of BC1.2 detection. > + When the IRQ "MT6370_IRQ_CHG_MIVR" is triggered, it means that the > + hardware enters the "Minimum Input Voltage Regulation loop" and > + a workaround needs to be applied at this time. > + In summary, "MT6370_IRQ_OVPCTRL_UVP_D", "MT6370_IRQ_ATTACH" and > + "MT6370_IRQ_CHG_MIVR" are required in this charger driver. > + items: > + - description: irq of "USB is plugged in" > + - description: irq of "BC1.2 is done" > + - description: irq of "Minimum Input Voltage Regulation loop is active" > + > + interrupt-names: > + items: > + - const: uvp_d_evt > + - const: attach_i > + - const: mivr Now warning in linux-next: /builds/robherring/linux-dt/Documentation/devicetree/bindings/mfd/mediatek,mt6370.example.dtb: charger: interrupt-names:0: 'uvp_d_evt' was expected From schema: /builds/robherring/linux-dt/Documentation/devicetree/bindings/power/supply/mediatek,mt6370-charger.yaml /builds/robherring/linux-dt/Documentation/devicetree/bindings/mfd/mediatek,mt6370.example.dtb: charger: interrupt-names:1: 'attach_i' was expected From schema: /builds/robherring/linux-dt/Documentation/devicetree/bindings/power/supply/mediatek,mt6370-charger.yaml