Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp8917814ybi; Tue, 23 Jul 2019 18:03:31 -0700 (PDT) X-Google-Smtp-Source: APXvYqyyiX5P+B9yGr2mRR+KRcLrbBmEEj6WiX/yr8YNTMusuSFo/VN9x3fM1Jzn2F7gq92DOrnI X-Received: by 2002:a17:902:82c4:: with SMTP id u4mr83113865plz.196.1563930211424; Tue, 23 Jul 2019 18:03:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563930211; cv=none; d=google.com; s=arc-20160816; b=lPwGXq63yKUmBM8X/Jb+Z+8rev05hcGk+3hgwS+Ss4HKjyPqvEL3nxaCu34gIwn3xV MZpzhGIFkNAW49dteDA5FYrPhTjE/xZVqLWNamHKThgE0BGXUB2kfTfK2RWsNSZ91Vtm 0q/D6KaKEb2ADksxft/9ZMw7V33RAR30JRTe9uBUGmvUBh6kmtyeOEQauZiaN8gDXFVJ rVOZmQRKZfzmofDjC8cf8m2+BeDZV4GamISmymW4zVR6g1sdnkByOfGSuF+f37E2CuWs FXLcMZIBaCT901E72lJcBUjw4HOu9Wct47MYdqH35DdpWDwFr6+l9BuoVKzlMWv8wfyd S46Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=BnpzLYQscthG64FXJPL0D5x3+LttJD4n7FxCLVoQ0rA=; b=M/B/ex17Rcxn2nAiuM6h/Ae0m4Rm/uuE0SZF8KdB+7g9ckRUK8XPDo9nWv3iVAxNjM LAIHXUEMskMSXrt87kB1FyvoHpRN4fjJf6qe4/T73LIXx756IWIKeKyfmLL2Ky2CKeqB mtO/DPRw4Hdtx2UUYg+g/IcacH8sMHnfiVdNr/Dz3z4iRvVXpLxLG6b2DFWl1Als49Hi /ko+4LQ5l3Kde2236ygztczYryv8db4G1Y6cd93TLsdlZBTvvoDDhmes9yaaCdDdbJ2W Kx0SX5bKMi0LaBiAPCt396JWXqiQAfEZgZR7U5b8Z128Cqz8w80zhgOTyYg53HVPpqB1 H5EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gkraDMxJ; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z4si13610868plk.364.2019.07.23.18.03.15; Tue, 23 Jul 2019 18:03:31 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=gkraDMxJ; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732525AbfGWPx2 (ORCPT + 99 others); Tue, 23 Jul 2019 11:53:28 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:38888 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730033AbfGWPx2 (ORCPT ); Tue, 23 Jul 2019 11:53:28 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x6NFrHdq123362; Tue, 23 Jul 2019 10:53:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1563897197; bh=BnpzLYQscthG64FXJPL0D5x3+LttJD4n7FxCLVoQ0rA=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=gkraDMxJpl13gmc0klMe62QZD5YLEBklo56Rv8top1IngDZE9KlmpfkvrrdenAnpw TQ8GrX5yR+mAPQyR0Oh8LrD66BgHfo9ZvM7y99x+1GiGruvaXAIsVrP8pU1F4MlKQo vOS5dopVL2UbV+bnnhcoATqIi3tx/ra1ezJKEwPM= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x6NFrHbk101439 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 23 Jul 2019 10:53:17 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Tue, 23 Jul 2019 10:53:17 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Tue, 23 Jul 2019 10:53:17 -0500 Received: from [10.250.65.13] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x6NFrG4X017922; Tue, 23 Jul 2019 10:53:16 -0500 Subject: Re: Backlight in motorola Droid 4 To: Pavel Machek , , , , , , CC: , , References: <20181219162626.12297-1-dmurphy@ti.com> <20190722205921.GA24787@amd> From: Dan Murphy Message-ID: Date: Tue, 23 Jul 2019 10:53:16 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0 MIME-Version: 1.0 In-Reply-To: <20190722205921.GA24787@amd> Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pavel 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? In the LM3552 driver we are changing the Full scale brightness registers for the specific control bank. #define LM3532_REG_CTRL_A_BRT??? 0x17 #define LM3532_REG_CTRL_B_BRT??? 0x19 #define LM3532_REG_CTRL_C_BRT??? 0x1b In the ti-lmu code the ALS zones were being modified not the control bank brightness. #define LM3532_REG_BRT_A??? ??? ??? 0x70??? /* zone 0 */ #define LM3532_REG_BRT_B??? ??? ??? 0x76??? /* zone 1 */ #define LM3532_REG_BRT_C??? ??? ??? 0x7C??? /* zone 2 */ Not sure how the ALS is attached in the system if it reports to the host and the host manages the back light or if the the ALS is connected directly to the LM3532. Maybe the ALS zone targets need to be updated to allow a fuller range.? The LM3532 may be stuck in a certain zone. Probably should set up the ALS properties in the device tree. Dan > Thanks, > Pavel >