Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2122804imw; Sun, 17 Jul 2022 01:50:54 -0700 (PDT) X-Google-Smtp-Source: AGRyM1seI25NbalpktOdcyeRG4GFslOPXEl89tkVd5CYbFTE4U+jxkCbGAXaas7zc8DvHidAKXHs X-Received: by 2002:a63:4d1:0:b0:419:af9f:385e with SMTP id 200-20020a6304d1000000b00419af9f385emr16200955pge.590.1658047854323; Sun, 17 Jul 2022 01:50:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658047854; cv=none; d=google.com; s=arc-20160816; b=sJ7jsi1cOnEkQNJjfc7XF7F3DppPauqaR42zvHZXJAadeiESAM3V7hhoF4+zNB6UMi CQOvRMF1b9A3yMxSrIZYlQQSNxWR0sEe1hnz5r/OTJ3oywzNExfc3LKd0IhBGjyOj915 BQFiOoFbFaG/CFLh1XiOWv5+uGmrBQEB+R8eFtbe20dXO3b8u4xDkYzd6PLO9clbQWdG zRwfCMZGc8W4liIgQTossk7btzf/RgzJsP6rSKSUv4h2PAo0xcGoKphdhZ/rX6LPisVy k2DZMhxgxIGH19S8uwcmML9RLvU35of+rJSUi+PsteohSOdWLVV/lSsqqRpzJP3mrc21 XvlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=4f64FZhtfQR2a3FCAYRr0ogYWj/q8DKyVYT+VvicBeQ=; b=X0XgjnA7O0bxxs4rF3xqdQAHFo9UsrBV+joEXfgD63ZyIAjjy3JKcgSuNDIEh0UTZj hayP3QRPckrRb3My9kJb3MaHMC5b+ICCW0DTSUErslUMUuMOWwNuX2MxL1rEC+L+wPsz AUtqPvFQJ3Tjnm75CwecAKCYjtRIDV8xSjO47MYtK/Bs0CgTmSrx6EOdJ8T96PgTO7rA Fr/Ab/BeR2SDR9/leRwFCattrAX2wdHLeNym+qX3qn4qw5YNNGktYdh+X5SadRS+2qSt WpQ6yx6lpNQLbWwAOEfxNDV+BwnWgUkLpHuI0p3ryOWilG2ycIu7CWzmHptW5JgPkYfq +Wag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ucw.cz header.s=gen1 header.b="X/BFAsMq"; 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=ucw.cz Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j33-20020a632321000000b00419d02d34b7si9572609pgj.757.2022.07.17.01.50.39; Sun, 17 Jul 2022 01:50:54 -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=@ucw.cz header.s=gen1 header.b="X/BFAsMq"; 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=ucw.cz Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232254AbiGQIqu (ORCPT + 99 others); Sun, 17 Jul 2022 04:46:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53618 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230137AbiGQIqr (ORCPT ); Sun, 17 Jul 2022 04:46:47 -0400 Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D43C119013; Sun, 17 Jul 2022 01:46:45 -0700 (PDT) Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id A19441C0003; Sun, 17 Jul 2022 10:46:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucw.cz; s=gen1; t=1658047603; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=4f64FZhtfQR2a3FCAYRr0ogYWj/q8DKyVYT+VvicBeQ=; b=X/BFAsMq23/Z925NfDrqcBTa1+NMdOyKTvWC/jcKDAR6LqTUqqHZoUtcXNlv78JOtxgGnV KEEYsSPoUk1QuhIMUdjyfj3xzKKwVS0zAwbCUcypphXNu5ux3xhohdBfmM7V0g4XNKdvZk vtsZgzTGRnv3Kh57WLG7g5U2h7I81C8= Date: Sun, 17 Jul 2022 10:46:43 +0200 From: Pavel Machek To: ChiaEn Wu Cc: lee.jones@linaro.org, daniel.thompson@linaro.org, jingoohan1@gmail.com, 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, chiaen_wu@richtek.com, alice_chen@richtek.com, cy_huang@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, szunichen@gmail.com Subject: Re: [PATCH v5 11/13] leds: mt6370: Add MediaTek MT6370 current sink type LED Indicator support Message-ID: <20220717084643.GA14285@duo.ucw.cz> References: <20220715112607.591-1-peterwu.pub@gmail.com> <20220715112607.591-12-peterwu.pub@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="M9NhX3UHpAaciwkO" Content-Disposition: inline In-Reply-To: <20220715112607.591-12-peterwu.pub@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) 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_NONE 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 --M9NhX3UHpAaciwkO Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > The MediaTek MT6370 is a highly-integrated smart power management IC, > which includes a single cell Li-Ion/Li-Polymer switching battery > charger, a USB Type-C & Power Delivery (PD) controller, dual > Flash LED current sources, a RGB LED driver, a backlight WLED driver, > a display bias driver and a general LDO for portable devices. >=20 > In MediaTek MT6370, there are four channel current-sink RGB LEDs that > support hardware pattern for constant current, PWM, and breath mode. > Isink4 channel can also be used as a CHG_VIN power good indicator. >=20 > Signed-off-by: ChiYuan Huang > index a49979f..71bacb5 100644 > --- a/drivers/leds/Kconfig > +++ b/drivers/leds/Kconfig > @@ -244,6 +244,20 @@ config LEDS_MT6323 > This option enables support for on-chip LED drivers found on > Mediatek MT6323 PMIC. > =20 > +config LEDS_MT6370_RGB > + tristate "LED Support for MediaTek MT6370 PMIC" > + depends on LEDS_CLASS > + depends on MFD_MT6370 > + select LINEAR_RANGE > + help > + Say Y here to enable support for MT6370_RGB LED device. > + In MT6370, there are four channel current-sink LED drivers that > + support hardware pattern for constant current, PWM, and breath mode. > + Isink4 channel can also be used as a CHG_VIN power good Should this go to leds/rgb directory, and should it depend on multicolor framework? Best regards, Pavel --=20 People of Russia, stop Putin before his war on Ukraine escalates. --M9NhX3UHpAaciwkO Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCYtPMcwAKCRAw5/Bqldv6 8kpOAJ9ibEmS72bgf9dapQwzhfeNWkBoRACdEEQFY+HUneM6yUqd3lRjlWgYdx0= =17QR -----END PGP SIGNATURE----- --M9NhX3UHpAaciwkO--