Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp5073097ioo; Tue, 31 May 2022 19:24:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwviEMnjsRUTEeCy17PH+vah+YDKzgTVWn2Ses6Qlve4ZhGxL7hoaUH8KVoPkjSx4vsRQuX X-Received: by 2002:a05:6402:3291:b0:42d:dd03:cbb1 with SMTP id f17-20020a056402329100b0042ddd03cbb1mr9368125eda.268.1654050288209; Tue, 31 May 2022 19:24:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1654050288; cv=none; d=google.com; s=arc-20160816; b=GQAfohlYQ/htjdUtMlt0VDA+MfK42ojn85fk+TbOlwr+7YQB3FhUs7NvaehUziOfgr +eKyhkVAk0mX5vuNS/hRBs27MAPW6EPC+61/mMhN9Ae26N+bKKiDZvWGIFNxp7PXOl4k BYRdFlVi07bG/1ChCvn0IOUk7owpKx2kZDVVkY39SDw4fcmDrdOX1KEyLVuhpey/md70 wmtbEwuc/1pQiPfnIH01jTzuOWQGAEBIzWzXmVbWby7OYF7QwHE9Sjq7l+/TdDmKhjp0 FijwccB1pmblKTbnPRVT9aDpwgyDT8GJAiDXvF5KuaMjASfV5BcSNnQZmZUi73gs127O s6wQ== 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=oFtwwjCwLQncprSW0uxMAdDJMdxwLty5X6vUURCLEwk=; b=ePCjFS0hgwRr3rJJNIe3cfuTV/psN/GZbyfPULeJUgCG7080DGy9riGwTQULuYd2XF qUMWXRsplaoq+w9EXJjGdcvWoUBPs3U9FjsDkXI4XRVZMAUEAeIiIDGPOQ8hLZtWR2mZ cXKHzIN/4MEjNxAJ65xqgnr/V/kUZPKNCKgiZiqbC8IZRdPSYaz3qtrdRZxO9/xQnMWB l8JN+XTHH+gmoGADbhIs5GjF+hxxAAqi8vFm8XVmuVD5R0e/wTvvIHf1UbvKYjpofuFk 5kC5aGIxNNzgsTSFZrTj6NaFZ3UcXZnIp3b/g7GzSMHamhlNDVBzyIFWHPcK5+grrG4h h6HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ITMWpvDn; 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 bm16-20020a0564020b1000b0042dd46b5a89si403234edb.243.2022.05.31.19.24.22; Tue, 31 May 2022 19:24:48 -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=ITMWpvDn; 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 S1347697AbiEaUPM (ORCPT + 99 others); Tue, 31 May 2022 16:15:12 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1347357AbiEaUPD (ORCPT ); Tue, 31 May 2022 16:15:03 -0400 Received: from mail-ed1-x536.google.com (mail-ed1-x536.google.com [IPv6:2a00:1450:4864:20::536]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9C26970374 for ; Tue, 31 May 2022 13:15:01 -0700 (PDT) Received: by mail-ed1-x536.google.com with SMTP id h19so10929620edj.0 for ; Tue, 31 May 2022 13:15:01 -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=oFtwwjCwLQncprSW0uxMAdDJMdxwLty5X6vUURCLEwk=; b=ITMWpvDnZ+RR0dXG8wMy2xR2rl4TYKiJPd4P2ee+6b+YSNrXIfd5C5/sxHiIaiV8l/ Rr8j5rbfZJQdWDicbqJLULlJ8a1LPJtojDk9pZRk5GN9Grou5i7tAHjAOnAm+43fQbft AItTPaS/anUqkjrgHeA8gWiVTOnJVpyYwkX4kWPrZRx3KFfTtM/N/iDSPeACILsT4aQf M3SWSLCBTTSyyMcH3BloOhEZjIv4V9qKLVXjfngWe+ZrAh5pvVrbUk/ZDUnhXwaHIcji 8VSjsm3e2xhEeVQO89RSDtV5LDweV0ruYx2PZwybiDHSYQi1HJRfQptttYSjG2nvuBwD fRkw== 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=oFtwwjCwLQncprSW0uxMAdDJMdxwLty5X6vUURCLEwk=; b=cHyln+YtEc1bfXiEVamcdLbnqpaHatw2BCw5pFxi4YS8pqeZuWfYfVyJpZZY0iJfTW itriflp09Tpv3RDMxApsngkWYxfRwj3el128n65FuNX8tSZ/NMHg6Rec3x6ki+0lKUzQ J5wW7chOhkICD9ePTuBdE2Uh/vLzRoOK3QRB7eXKxqeyhqPH7K2xYwwmzLIIxLsnpqvr xsgXb/TgHoKxDGQEhaZnRwILoYtg4sZL+ZSG6pyDxMOpiZYusQpxkgLwTosdq1+5Cev4 C/WlMm9eFXNrtfpfYNc0nk/d1a/5jpL8n3NNvEGgn2SFbhch1dezsRwQkSGk+721hCL+ LY4g== X-Gm-Message-State: AOAM53359LI5/waZEKaKVLR63IUW8fseMUs8hv7w2TdvikYhlYsuc82+ veHDf+Xj0br65k1kz4R5CPkhOA== X-Received: by 2002:aa7:d481:0:b0:42d:d5fd:f963 with SMTP id b1-20020aa7d481000000b0042dd5fdf963mr10752639edr.209.1654028100222; Tue, 31 May 2022 13:15:00 -0700 (PDT) Received: from [192.168.0.179] (xdsl-188-155-176-92.adslplus.ch. [188.155.176.92]) by smtp.gmail.com with ESMTPSA id i24-20020a170906091800b006ff05d4726esm5251077ejd.50.2022.05.31.13.14.58 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 31 May 2022 13:14:59 -0700 (PDT) Message-ID: <33a797d7-ca60-5153-2ba1-3a909fcc5965@linaro.org> Date: Tue, 31 May 2022 22:14:58 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH 10/14] dt-bindings: power: supply: Add Mediatek MT6370 Charger binding documentation Content-Language: en-US To: ChiaEn Wu , lee.jones@linaro.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, matthias.bgg@gmail.com, sre@kernel.org, chunfeng.yun@mediatek.com, gregkh@linuxfoundation.org, jic23@kernel.org, lars@metafoo.de, lgirdwood@gmail.com, broonie@kernel.org, linux@roeck-us.net, heikki.krogerus@linux.intel.com, deller@gmx.de Cc: cy_huang@richtek.com, alice_chen@richtek.com, chiaen_wu@richtek.com, dri-devel@lists.freedesktop.org, 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-usb@vger.kernel.org, linux-iio@vger.kernel.org, linux-fbdev@vger.kernel.org References: <20220531104211.17106-1-peterwu.pub@gmail.com> <20220531104211.17106-2-peterwu.pub@gmail.com> From: Krzysztof Kozlowski In-Reply-To: <20220531104211.17106-2-peterwu.pub@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.9 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 31/05/2022 12:42, ChiaEn Wu wrote: > From: ChiaEn Wu > Subject - remove "binding documentation". It's already implied by prefix. > 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..9d5c4487ca9c > --- /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 for mt6370 charger > + - description: usb plug in irq for mt6370 charger > + - description: mivr irq for mt6370 charger s/for mt6370 charger// in each item > + > + 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. Constraints (e.g. maxItems) are needed. > + > + usb-otg-vbus: Let's keep the same name as in MT6360: usb-otg-vbus-regulator > + type: object > + description: OTG boost regulator. > + $ref: /schemas/regulator/regulator.yaml# > + > + properties: > + enable-gpio: > + maxItems: 1 > + description: | > + Specify a valid 'enable' gpio for the regulator and it's optional This description is pointless - does not bring any more information. You repeat the schema. Please, avoid such descriptions. > + > +required: > + - compatible > + - interrupts > + - interrupt-names > + - io-channels > + > +additionalProperties: false How about example? Or is it going to be in MFD schema? Best regards, Krzysztof