Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp1812304iog; Thu, 16 Jun 2022 14:32:35 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tgRHavvSo0Q74QhSheAEI1XuiokDIzTT5pMzuznwykRzvfizK7S3t7T3D5M9rOglAFpFom X-Received: by 2002:a63:2482:0:b0:3fc:55e3:1410 with SMTP id k124-20020a632482000000b003fc55e31410mr6334016pgk.583.1655415155150; Thu, 16 Jun 2022 14:32:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655415155; cv=none; d=google.com; s=arc-20160816; b=WBbk9v72R7W833B1EHrs/Cd8/6KTTbqtndwrgcssQUebQJ9d0FWlCt0jmjkbzR+iSo wJGhSHTNrfewTNokxyW/vanlzNpiAV3wA8iNAm2anUqkavB0xOGPqqBNunFcfCLTRMcQ 0iI2bZte5Iq4d+e+Dlzu9R6fwzFbg8s1ctkJz6j/GU6JUSo9PuCcnyfh42g+KjCfHdPN jhslgGx2iksUH5/c9qbiRHIGYzo7w7/Kb5KLOphuJQgxYXxqjQvLHknbLnBqNAeflz52 cXKlCJD4y2Dt0LADBtWVcCJq4wc6WRwDvNls9R+0npx8B342o/+a4u2CWQmhkJJuIRtC a2dA== 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=qWeAN6wBOdgTg8JbowHd+2FzjeCfu8a+6968a4QI8WI=; b=vRNhWiRNaUsFoVvVpOAyAMG4nIpChJNMFPKYfSNcdr/gYgAjqmH3bmN+MNYhq4IDiz o09e7m3j909ic0ulaR29VGPE6kYhW45td3hqcDxyZb5DixbdvRp5eG2pmKepOpZfJXyK hS3NP2krM2blsNvQO2SdFmOH+1B1Dmzr0oEilaqOqSdvJiO8nNkBayUl90/EH5jozvMZ Mhle7ktMD9F/qYYuKZzh9dKjLQZXfhtzxJ6RJFdH4BynAfUYfv3jyVDPGarqrc1Ebi8y OkuwLcYMhKZq2bOmZ5McJXjZF2zA0gB9Sq3tzhRsMsMjwgOoUJgUcE3SVbL/vq/xTIAz smJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=N5ZFoL+a; 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 kb12-20020a17090ae7cc00b001cd51f48295si4173651pjb.174.2022.06.16.14.32.22; Thu, 16 Jun 2022 14:32:35 -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=N5ZFoL+a; 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 S1378932AbiFPVFl (ORCPT + 99 others); Thu, 16 Jun 2022 17:05:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1378925AbiFPVFj (ORCPT ); Thu, 16 Jun 2022 17:05:39 -0400 Received: from mail-pl1-x631.google.com (mail-pl1-x631.google.com [IPv6:2607:f8b0:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 34E4E606F1 for ; Thu, 16 Jun 2022 14:05:37 -0700 (PDT) Received: by mail-pl1-x631.google.com with SMTP id t2so2225824pld.4 for ; Thu, 16 Jun 2022 14:05:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=qWeAN6wBOdgTg8JbowHd+2FzjeCfu8a+6968a4QI8WI=; b=N5ZFoL+aFoUS6hB954SKMlb7yCUNVwnEz5QTGbIWpo81EwQ1sMXtUJNQgQWUFXyaqj B3EKyPgnhgeP6Zxqc0o0AXWyPWgb2jZKHij8R6bu7VXYG/qL6Jeu3Pus4aTVrIH5N/up 1mVgnWLjqxO/IM/TYAske9+86aHB4TE/sPT2q6jKDvKrVbIRbqCUop88VsbKe70HL/Xn WD13w1gMuXTC77dfwj7AUO0e7PAT47hYpwj/3hqPUXU+ijawuZQFwT1JvD33vRGoqe5d JySTlKChot+aWilu0E/PsGcDvuRxR9SgKE0cOeMTOx1RDYK8f3vG2bi+O+s59MTFKM8U 9Wlg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=qWeAN6wBOdgTg8JbowHd+2FzjeCfu8a+6968a4QI8WI=; b=Hs6shr11+Bws3ilTVbJC6ymiNMNs9b5vVFIkIazRwsFQcAtoEp2BPs3xClGj+nuTOr i1anfnRPY8UpGjBQB1nqZir2GVFU54bVlITVgbMjT/gm1Ix5XD46W9zUOdesW3BDTfXj Z5sj3xxZh0v18z2j59UyiuKg70KG7/xTyq7BrFFzmYykK+8UEXydvhokdvgchlEKEFsY FO5OtMbsH67IynynFHadw1wLjeFbhYK9Ln2WPwsUU5rhitA16hSv1t+KXdsLLYby882P LQwVTVzkgM6pPvfifCDZBDb0onu7JGL+r+1Oh+WDgSjI5Bee7IFOfw4nX68bL2fko41s hZ9Q== X-Gm-Message-State: AJIora9cO20KbU6TaYvPP9ucd5utGiwyKbUX4sX+m6SzR9rGpf7nVhbI 3a+62a/CnNIGx19oWdtaX3mkrQ== X-Received: by 2002:a17:90b:4d8a:b0:1e6:87ad:bfd3 with SMTP id oj10-20020a17090b4d8a00b001e687adbfd3mr7000104pjb.138.1655413536660; Thu, 16 Jun 2022 14:05:36 -0700 (PDT) Received: from [172.22.33.138] ([192.77.111.2]) by smtp.gmail.com with ESMTPSA id y5-20020a17090ad70500b001dd16b86fc0sm4249403pju.19.2022.06.16.14.05.34 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Jun 2022 14:05:36 -0700 (PDT) Message-ID: Date: Thu, 16 Jun 2022 14:05:34 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0 Subject: Re: [PATCH v2 02/15] dt-bindings: power: supply: Add Mediatek MT6370 Charger Content-Language: en-US To: ChiaEn Wu , jic23@kernel.org, lars@metafoo.de, matthias.bgg@gmail.com, lee.jones@linaro.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org Cc: linux-iio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-usb@vger.kernel.org, linux-fbdev@vger.kernel.org, szunichen@gmail.com, ChiaEn Wu References: <20220613111146.25221-1-peterwu.pub@gmail.com> <20220613111146.25221-3-peterwu.pub@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20220613111146.25221-3-peterwu.pub@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 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 13/06/2022 04:11, ChiaEn Wu wrote: > From: ChiaEn Wu > > Add Mediatek MT6370 Charger binding documentation. > > Signed-off-by: ChiaEn Wu > --- > .../power/supply/mediatek,mt6370-charger.yaml | 60 +++++++++++++++++++ > 1 file changed, 60 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 000000000000..b63553ebb15b > --- /dev/null > +++ b/Documentation/devicetree/bindings/power/supply/mediatek,mt6370-charger.yaml > @@ -0,0 +1,60 @@ > +# 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. IRQ > + "MT6370_IRQ_CHG_MIVR", "MT6370_IRQ_ATTACH" and "MT6370_IRQ_OVPCTRL_UVP_D" > + are required. > + items: > + - description: BC1.2 done irq > + - description: usb plug in irq > + - description: mivr irq > + > + 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. Ibus ADC channel > + is required. Add io-channel-names and describe each item - what type of ADC it is expected to be. > + minItems: 1 > + maxItems: 9 > + > + usb-otg-vbus-regulator: > + type: object > + description: OTG boost regulator. > + $ref: /schemas/regulator/regulator.yaml# unevaluatedProperties: false > + > + properties: > + enable-gpio: "gpios", so: enable-gpios > + maxItems: 1 > + > +required: > + - compatible > + - interrupts > + - interrupt-names > + - io-channels > + > +additionalProperties: false > + > +... Best regards, Krzysztof