Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp1034622rwb; Sat, 1 Oct 2022 13:41:27 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4b+zFMMdpcSZWUHAmi/MRv0GXkuLdXVRqo0vStU0L6JAHywIq60kXj2KEQ5KXjlv0i97e8 X-Received: by 2002:a05:6402:190f:b0:452:d6ba:a150 with SMTP id e15-20020a056402190f00b00452d6baa150mr12649841edz.126.1664656886929; Sat, 01 Oct 2022 13:41:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664656886; cv=none; d=google.com; s=arc-20160816; b=G9PcPZ+J2fkpeurcoMEQFHL1uFPy++rq+KTPi0t5+gGy0XJOp0QHwyDhtFwCcuVpBD RHwAwMNEfZkDTCAvEafrRHWpjp6S3gscvcj4BSRov1YXaRwJbL/4y2tmvOV7qUu5MAM5 2CNLnybehwI+M6BsB6wPB7LOT0kc+a/7pF86R6qmxrqRw1puhToEnGoiKsKcsUWk4i4H 2VvHto9ODYpv9txvJglc13jnazoMFpNPuYYI1PpRrMueZSFf0WNkq3dVhXIANIIpE8EY MAdwZTzGXoPyXLTDFvO0v8t21ElhSQRzy7EoWbO3LeD/vaQaY/BNFens5LhxeFtnGuBa fb8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=nyyeWCDYT2e3CzcoRSHH3//24O1DQyXnWOqLy9Xu+zQ=; b=OtdYKzRPvR/g7cKoo5H9GOdUP0ttjSvOd8hUBRz1TG7TYhFS+SKbYskHLOiVGUgofb f5h58D+hZ6N5dM4qElIwUFbIZNM6wQ5GOC9nlNKK8J/uIaIIOSV8rrIsxVslMcuqNaaV tUAPWOGKuOGmSTGUgk0tE1JI/GLmcPmTs6lnWM474k1UZYYsAGg35nuCS6QQDztzxaR3 otzng7tEnf1WSfyP8sJdOWWyiNMCNalu4QAFmkJLh7BHhX0s2BN2yMOtpkIAiPOrFLBM UXFW8HQ3kTiEd9kkyp5XqA3gc3dXIjDnvPALBnapnwsDMrIOhJ2zMtQoYGfec0z5VTC4 618g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=dVfAgPTN; 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=collabora.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji16-20020a170907981000b007414dda0c62si5152147ejc.817.2022.10.01.13.41.02; Sat, 01 Oct 2022 13:41:26 -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=@collabora.com header.s=mail header.b=dVfAgPTN; 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229687AbiJAU3Z (ORCPT + 99 others); Sat, 1 Oct 2022 16:29:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37418 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229620AbiJAU3X (ORCPT ); Sat, 1 Oct 2022 16:29:23 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [IPv6:2a00:1098:0:82:1000:25:2eeb:e5ab]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4D774419A0; Sat, 1 Oct 2022 13:29:22 -0700 (PDT) Received: from mercury (unknown [185.209.196.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id DE0BC6602056; Sat, 1 Oct 2022 21:29:20 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1664656161; bh=GbqOd45+B69iop5KOZFk6L2zfF4jSUmsDB16falyAG8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=dVfAgPTN/qSyC+mo0Cuken4g9GkZJyX8Oju5sSBYkj7Y29KkeotlRyOdR7Hh21f78 Bv3IYyztUKcQk7NURth6D2uPiC8h4e4zQNWcGgL6ZlKI3zZCwiyFLyyIL2icUdO0BR wZKrLoow4cZZ4bFX0WfsFSOqV/QKQPHtu0zqRo+9ZS2Of9ooYHm4ecR0A1CwUAhFU+ 5BlzRcYxflUolxcRwMxPUv/d0BeSqH/uw8TbSa1ef+qwDk2HxZCt/T3kg2/Z5JkKan 9HFES3rz1A6478uzPB6u7dUfdyDJ0vOMIgMENIypeybPZdSlld5iU9BZ6CVtkNiMZD W79scUmn3wZaA== Received: by mercury (Postfix, from userid 1000) id 89FB1106090C; Sat, 1 Oct 2022 22:29:18 +0200 (CEST) Date: Sat, 1 Oct 2022 22:29:18 +0200 From: Sebastian Reichel To: Rob Herring Cc: ChiaEn Wu , pavel@ucw.cz, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, 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 Subject: Re: [PATCH v11 1/8] dt-bindings: power: supply: Add MediaTek MT6370 Charger Message-ID: <20221001202918.me7z2qzm7cmrkzsg@mercury.elektranox.org> References: <9382254831bb6ed8c228398a68896b0e8e61c7c4.1663254344.git.chiaen_wu@richtek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ubomutkj3cdfuzuy" Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 --ubomutkj3cdfuzuy Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Mon, Sep 26, 2022 at 09:52:06AM -0500, Rob Herring wrote: > 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/medi= atek,mt6370-charger.yaml > > > > diff --git a/Documentation/devicetree/bindings/power/supply/mediatek,mt= 6370-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-ch= arger.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-charge= r.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 dri= ver. > > + We need to use the IRQ "MT6370_IRQ_OVPCTRL_UVP_D" to know when U= SB > > + 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 k= now > > + the result of BC1.2 detection. > > + When the IRQ "MT6370_IRQ_CHG_MIVR" is triggered, it means that t= he > > + 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 >=20 > Now warning in linux-next: >=20 > /builds/robherring/linux-dt/Documentation/devicetree/bindings/mfd/mediate= k,mt6370.example.dtb: > charger: interrupt-names:0: 'uvp_d_evt' was expected > From schema: /builds/robherring/linux-dt/Documentation/devicetree/bindin= gs/power/supply/mediatek,mt6370-charger.yaml > /builds/robherring/linux-dt/Documentation/devicetree/bindings/mfd/mediate= k,mt6370.example.dtb: > charger: interrupt-names:1: 'attach_i' was expected > From schema: /builds/robherring/linux-dt/Documentation/devicetree/bindin= gs/power/supply/mediatek,mt6370-charger.yaml Looks like the example in the MFD binding has the order of uvp_d_evt and attach_i swapped. ChiaEn Wu, please send a fix. -- Sebastian --ubomutkj3cdfuzuy Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmM4ox4ACgkQ2O7X88g7 +pqiyA/9HXF36bAyC9iIpST8niA6muqyZfyOveLj5kVZ3S11bsd/z4T/M/R2UqOY DxCrfDzDFEk9oaG4yQfnEkhsTQDpcKnXsHtvKYOtL3M69BN+jS5yNiUE8BaD+imk ZCEHfb58sLh+qUavxwpTbSoCD8pN/sorE/gN2XDf0CC6lV0dq2+AlIYsk1zmzTnX iOi6267Gkzq10oZKQYBIV95AjBBUhdDLKwF1fY9ZDLI8sqce94u51+bc0UxPrVSg ebcTLn+AfEShc46x8gDJciFVefpyTLG7QUSpp9TFq1uCqVLjzK7avE4nNyL20Sfb UqTcywtvGR+hBrZwNY/XWZlRznUHX9Sf0VwrDcG6HrNtyAMCRk4m7PM6NQ9NEe6A jgQcVKnSvaVzUsgfsPSCU1UjiB0CcdOyhhjw5rhFX7Jw5Vm6oNODADMkkGeyPGdV uJh2Oy17rAa79UjG/uvqiwawqF3OouO3T4IhGlX1Oe0SEuDngmg4nXhXpR8fLCbf Lbikea2i0bwfwEroIgOA7lSrQsvBBHE5oaCMbKn7niPa44eg+FRqu52XQQtVV/eP CEnvMXqEIoFOJuK+0rqZdaVaiIMAjdS0GXL1reeKSchutJb60HkasffA7YuFytGr Jg9UGEuC8GkNWwp8EETNu45A5pKaq35hzV/E8WfSPaAQ9t6sa2I= =bCC4 -----END PGP SIGNATURE----- --ubomutkj3cdfuzuy--