Received: by 2002:a05:6358:489b:b0:bb:da1:e618 with SMTP id x27csp5048414rwn; Mon, 12 Sep 2022 03:41:58 -0700 (PDT) X-Google-Smtp-Source: AA6agR67bEcEz95GFK60XXLR9J+KJWrydZhpHgjG1Gg6Iv655s2N94sbQK8X8gGHYyjrJ7Fmmb/S X-Received: by 2002:a05:6402:1d55:b0:451:756e:439d with SMTP id dz21-20020a0564021d5500b00451756e439dmr6335410edb.226.1662979317779; Mon, 12 Sep 2022 03:41:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1662979317; cv=none; d=google.com; s=arc-20160816; b=eVO1IxYWGmOBWX63DwIKXymXaR+JyubfdvZ+g/YQpQ/jkNgNArIChUGiB8B3QwMmRp nNRxfsoZ5XB95SC85iwcSMDcDkMfl8vuaq58lMRhZERISDq121t/2EOTFVvr43PSW0F4 5azuW0wP/fq3+AQMrRQDTmj3X/Z9/rDey3HwDRm2u+mkDBgUr9GQmaPShTlOJLIod0Jy Jk3MAPp+dYj9b+uw8sHNIBNTkLa5CNRoX23W2q0jW5hjYU7v555Dncx7KM/A2VL8r4O5 t3s1wRvz+bXfHkqLQBYhC9vU6ugQcIDFQejaHIqsZ/GwNQcT8nsMa1a6V3c3HIjidfq4 lv8g== 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=DhmnVGZ1xwRrwcxQQcxn7z/LNtnaTF5xaqQKhD6XZ0U=; b=Hye/bLkj9HRPX4567AkMgR8BZ5AAcbUvwfAW/7u2cHHoE1IeMWYNgMoxALqoF1Uny8 i8NtFzikAsGTDP6bIFel04Xezl9dBe3sUkJYREkFDr7CU6xkVTOsOPELF9mzCZzvjO+u 1bv9yzylcuDRrg6sDCH9sAHqs5dLDijE4SJWDULRrHeZSl3844BvlvOMASclnGFO3LMc 1H8qNp0V393STyF/LeX7xoDZHHSUp9B9urZBpbLZ6KKA7dUIJJyyv4BaG368X4MkpBuQ /CsPIkRt4uOvIjLFUVwdBahRGwmfHyFu0poOwr5ov72KHYRRPn5cnvAkKW4/kYzWwrdf fooQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=MSBzYp8s; 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 bt20-20020a170906b15400b007763cc7093csi5496779ejb.884.2022.09.12.03.41.32; Mon, 12 Sep 2022 03:41:57 -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=MSBzYp8s; 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 S229512AbiILKYP (ORCPT + 99 others); Mon, 12 Sep 2022 06:24:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229842AbiILKYN (ORCPT ); Mon, 12 Sep 2022 06:24:13 -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 60F3F357DE; Mon, 12 Sep 2022 03:24:12 -0700 (PDT) Received: from mercury (unknown [185.122.133.20]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: sre) by madras.collabora.co.uk (Postfix) with ESMTPSA id 23F4A6601FD2; Mon, 12 Sep 2022 11:24:11 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1662978251; bh=wGBIlvKje4FgHqTdo2MburWH2bvJgnDyHAqqfxkP0yo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=MSBzYp8s99gXfGN5lZJrpXNDS7i0MFjnjP5ccBa7zLkGNKTJU7vNZMzNObIZ3AjMD ZRPA+eXE7rj+nhMfMpi2qdru9eMKj9cMJ9VHNl6MOMqyqvSFHQpoYTDkbRLo4sYKjk gAVm4qZa8blIyMFgD4nwahT9lT+8CHrI5ioAyAhAc7podq+Iiu0oc8LIY8ej9I4ixf /WaK2BnKU4KygHuXdc1lHYdk3Jr2F0PE5TcLqvbRp9j+SQ2xHCMF+gUT/W/NMgTY0I mMm0KxoDCrM/2+5c2bOZCgd2PouSmTprbUQxTwufEv7Zjv8cea4dLG/ShWumhcbuRA kWoWLo09WYfKw== Received: by mercury (Postfix, from userid 1000) id E32EA106084A; Mon, 12 Sep 2022 12:24:07 +0200 (CEST) Date: Mon, 12 Sep 2022 12:24:07 +0200 From: Sebastian Reichel To: ChiaEn Wu Cc: pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, jic23@kernel.org, lars@metafoo.de, broonie@kernel.org, mazziesaccount@gmail.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 v10 1/8] dt-bindings: power: supply: Add MediaTek MT6370 Charger Message-ID: <20220912102407.znzd2buqpkopvawp@mercury.elektranox.org> References: <3184e9e5f59edf41788bb95e2ad496772dc70a4a.1662476695.git.chiaen_wu@richtek.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="zly4a6vosjjv2mrv" Content-Disposition: inline In-Reply-To: <3184e9e5f59edf41788bb95e2ad496772dc70a4a.1662476695.git.chiaen_wu@richtek.com> 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, T_SCC_BODY_TEXT_LINE 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 --zly4a6vosjjv2mrv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, On Tue, Sep 06, 2022 at 04:33:57PM +0800, ChiaEn Wu wrote: > From: ChiaEn Wu >=20 > Add MediaTek MT6370 Charger binding documentation. >=20 > Reviewed-by: Krzysztof Kozlowski > Signed-off-by: ChiaEn Wu > --- > .../power/supply/mediatek,mt6370-charger.yaml | 88 ++++++++++++++++= ++++++ > 1 file changed, 88 insertions(+) > create mode 100644 Documentation/devicetree/bindings/power/supply/mediat= ek,mt6370-charger.yaml >=20 > diff --git a/Documentation/devicetree/bindings/power/supply/mediatek,mt63= 70-charger.yaml b/Documentation/devicetree/bindings/power/supply/mediatek,m= t6370-charger.yaml > new file mode 100644 > index 0000000..bd09a0a > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/supply/mediatek,mt6370-char= ger.yaml > @@ -0,0 +1,88 @@ > +# 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 drive= r. IRQ > + "MT6370_IRQ_CHG_MIVR", "MT6370_IRQ_ATTACH" and "MT6370_IRQ_OVPCTRL= _UVP_D" > + are required. This does not look like a useful description. It just lists the below in wrong order? > + items: > + - description: BC1.2 done irq > + - description: usb plug in irq > + - description: mivr irq I had to lookup, that mivr is supposed to mean "minimum input voltage regul= ation" for Mediatek/Richtek. Please spell it out here. -- Sebastian > + > + interrupt-names: > + items: > + - const: attach_i > + - const: uvp_d_evt > + - const: mivr > + > + io-channels: > + description: | > + Use ADC channel to read VBUS, IBUS, IBAT, etc., info. > + minItems: 1 > + items: > + - description: | > + VBUS voltage with lower accuracy (+-75mV) but higher measure > + range (1~22V) > + - description: | > + VBUS voltage with higher accuracy (+-30mV) but lower measure > + range (1~9.76V) > + - description: the main system input voltage > + - description: battery voltage > + - description: battery temperature-sense input voltage > + - description: IBUS current (required) > + - description: battery current > + - description: | > + regulated output voltage to supply for the PWM low-side gate d= river > + and the bootstrap capacitor > + - description: IC junction temperature > + > + io-channel-names: > + minItems: 1 > + items: > + - const: vbusdiv5 > + - const: vbusdiv2 > + - const: vsys > + - const: vbat > + - const: ts_bat > + - const: ibus > + - const: ibat > + - const: chg_vddp > + - const: temp_jc > + > + usb-otg-vbus-regulator: > + type: object > + description: OTG boost regulator. > + unevaluatedProperties: false > + $ref: /schemas/regulator/regulator.yaml# > + > + properties: > + enable-gpios: > + maxItems: 1 > + > +required: > + - compatible > + - interrupts > + - interrupt-names > + - io-channels > + > +additionalProperties: false > + > +... > --=20 > 2.7.4 >=20 --zly4a6vosjjv2mrv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE72YNB0Y/i3JqeVQT2O7X88g7+poFAmMfCMMACgkQ2O7X88g7 +prG+g/+IL/Rc+kycHrb7Jfw2EV0b6A+45R087Ob3Dy1Kf/LHxOHOeyD31c7AMTI aicts0U9FYihYjdXrnAVp32UYgCFQW3HWd0SEcLFqgKaU8Xa/5zy40rCqPmEhc1X PjU6pasOjIhT2uVxqTjdeI3rX7zatlnqAQBEkmRbdfCs9TZY2FPZVt/6916scKjl KzyHyHMaXM/I8BaADFri0bm0SCUSfiewje4R2T6qFYRPYQ3f2K0SJq2lJBDi2qp/ JuFhd/DyvD6C5CrZrF80z6yL8m0XPXWLa58qPSTY8ytmoB7aECt+Xz9J4KFUJJpW AasdfJLmyITBw2c5YJ4tZTice8w3WzijRPI6RCmTgncB0t7NkEt4CXUosXI/A0Tv sM/o/17Av/2XvKbmMHCeoaPaPqnO6qo18aaHpBLbXHHTS503k1SOpYZFtzTPYO0Z 5B09/S1HZGJ6qxcBPRwfzW0Pg9O2lrlKhaExg0RgInRpAZaYDJfC+7UP+oZfmr3K 4P9wim6khdqaAg8b7tFcCYEvjFyIouV4ObwR69WZS6JFyjZAP5QKAOPhvGjn5RPK 4rW77VttfIARWAjtRbqq7LU1N8yu2gwe2OwW6++TNnpS72cBhuKeNd3R9eyS7Ki+ zko36FKuEdMnU5LCWUBDmbHXBvrovj++3N4s5qB5tZCSmvD+os8= =QiKk -----END PGP SIGNATURE----- --zly4a6vosjjv2mrv--