Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9287164ybi; Wed, 24 Jul 2019 01:25:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwq5zzKqp9RFtViSstSDrBIkojtH4MD5ffQ7igk3hHgPmmyx70rHp3z+mdd/nx6MF6K91Bz X-Received: by 2002:a65:4489:: with SMTP id l9mr82799348pgq.207.1563956700203; Wed, 24 Jul 2019 01:25:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563956700; cv=none; d=google.com; s=arc-20160816; b=R3LsNE35QTC9h8sDQSUDzl/kITHz1IyjWX7epkg8xKS/ObTCP6FITKF19sURW+yu6B 9rRuvIz31CZdrPrAAWVV6eFTotZnarLmWVo6GZz6pKlZvZCWwxOcsYv+q2ricXneuwHF g7qAsJHw5/qJJVyeluZDECQXFDMEpcbQCQWJFhFRqcbF6pIsqdcq8CJSSranElRbJDY3 xLCL1mWlmMMHasPFiSA4nVWUVbzIxHZHcoCPTsuEH1QGZZkHADz9Sve/0pMnZe1ayTB8 QJAdEdVOSIUTvLS8rL5Nk4t7+t9O1cwysS1MK/w7MCGE5HiMQeYk93pSAChjdxaEd1n8 CksQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=HUa6tORz9HeHJnC4kDqExYkCtyjpXAvLD91kD+CQS0A=; b=XpaSyT/Xwj1oXe9sbxv2vQEI+CLgvhOKjGVXmYQl4qEetbj3D8WWGMtX8bFdIuKIuH 2/JOYpjPBDTokPp3pkylaSQinKA0SaNjnTsgFCoED0Dz3ni+HyxE79YdrzfQcHIpo72Y jWXX1G7t9M01xZfG39owVqmYS5DCjjKStCWZ48u92fkV/lMcoOUc75asCWTsHYC0Au+w SSl9bvH39Rk1RTqGRbXBZJjopkEw3h4gc36T7HG2UXX8DZpDAqx4p/SLXwviW/8+HErq T22dT2CYUXna63+pMjiHkIVr30Lh39pYE2tuTxEIP3C/mGFS/WPeKqum5i0/PJ6+9X9h 09hw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7si19085572pfb.132.2019.07.24.01.24.45; Wed, 24 Jul 2019 01:25:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726086AbfGXIW5 (ORCPT + 99 others); Wed, 24 Jul 2019 04:22:57 -0400 Received: from atrey.karlin.mff.cuni.cz ([195.113.26.193]:47530 "EHLO atrey.karlin.mff.cuni.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725851AbfGXIW4 (ORCPT ); Wed, 24 Jul 2019 04:22:56 -0400 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 512) id A18978029F; Wed, 24 Jul 2019 10:22:42 +0200 (CEST) Date: Wed, 24 Jul 2019 10:22:53 +0200 From: Pavel Machek To: Dan Murphy Cc: linux-omap@vger.kernel.org, tony@atomide.com, sre@kernel.org, nekit1000@gmail.com, mpartap@gmx.net, merlijn@wizzup.org, jacek.anaszewski@gmail.com, linux-kernel@vger.kernel.org, linux-leds@vger.kernel.org Subject: Re: Backlight in motorola Droid 4 Message-ID: <20190724082253.GA23552@amd> References: <20181219162626.12297-1-dmurphy@ti.com> <20190722205921.GA24787@amd> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HlL+5n6rz5pIUxbD" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --HlL+5n6rz5pIUxbD Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue 2019-07-23 10:53:16, Dan Murphy wrote: > Pavel >=20 > On 7/22/19 3:59 PM, Pavel Machek wrote: > >Hi! > > > >So now the backlight LED can be controlled. Good. (And thanks!) > > > >But I seem to remember that backlight had range from "is it really on?" > >to "very bright"; now it seems to have range from "bright" to "very > >bright". > > > >Any ideas what goes on there? >=20 > In the LM3552 driver we are changing the Full scale brightness registers = for > the >=20 > specific control bank. >=20 > #define LM3532_REG_CTRL_A_BRT=A0=A0=A0 0x17 > #define LM3532_REG_CTRL_B_BRT=A0=A0=A0 0x19 > #define LM3532_REG_CTRL_C_BRT=A0=A0=A0 0x1b Yep, and those registers are 5-bit linear... > In the ti-lmu code the ALS zones were being modified not the control bank > brightness. >=20 > #define LM3532_REG_BRT_A=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 0x70=A0=A0=A0 /* zo= ne 0 */ > #define LM3532_REG_BRT_B=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 0x76=A0=A0=A0 /* zo= ne 1 */ > #define LM3532_REG_BRT_C=A0=A0=A0 =A0=A0=A0 =A0=A0=A0 0x7C=A0=A0=A0 /* zo= ne 2 */ =2E..while these allow 14-bits of control. That explains very limited range of backlight control. Do you have any plans to change that? Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --HlL+5n6rz5pIUxbD Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEYEARECAAYFAl04FV0ACgkQMOfwapXb+vI3tgCguRG0MY2FC+hQMV0vAg4QyYGf mJ8Anix5g0Mp6MVJSUSJhX7Bk6dJOX2a =0ZJs -----END PGP SIGNATURE----- --HlL+5n6rz5pIUxbD--