From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=178.238.236.174 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796472974; b=YdJCgAnvasyg9Xiqk2rB+/Tv1rvypka9X+/DuDuE0U3SiQ1LgxwAvyd/d2bgz971aL8/ 4/BC/ZfA9K2i4Cj/3X2NE5RYJyGSpBVQhfETBLs85CrBfjlGwxBvbrqyEDL98L8jthKCS zsDNlvlgiEwCa0dkHgqrgtQALJLXX3SCuXZz1xhk67BpMpS+JfPhCH/ODs4KH2tQTQJ8t O3P1H4uUDWs1vE26TgeKW1Lig8bSJbe94syTKmMdc9Gs3DxPq+hVpQNESlnS14OcBHBmw BNnVkIoCTjKsudQYcDw86gV5hZOX0AVZ9LtbTtsqdtWes375lbmlxQjCm9ztcpjxQGw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796472974; h=DMARC-Filter:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: In-Reply-To:References:X-Mailer:MIME-Version:Content-Type: Content-Transfer-Encoding; bh=9w99WITR3V9JyVLOMOFVtLBrp6hMVfhfkhVzOZjF4YI=; b=oUOawdMz74Gfz/DUpC5MtkwCmKmVSmwO2QVqNpnjuGgLPNIzuh+/v8iaVVYa2N5lTKiP LMPAQDMjf9DiwEvIh5UIakpt5oz/LIrPbhmZsGLBrtj8/FsOeUZamUAQ8i/mRZgb7Pwq9 xOD+Ppj/1hO05PR8c/UhnjVq/yu2kcforpeaRStuUtwPmblkbhc7jAUDlk5NDFZ4ZRDj2 e8VnYZYwuzefgKrwK3uerTucEDyv5VVXQQdPPIxCvgaSQ3mTz5bMrQVhlP7z0EB4m/cj3 BUGClkC+szoWok5TAbpQVY3cVrhnNM0+4KCFC5/oLB3TEw4/5Ozfg7InQY/Y/sqx8SA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=kemnade.info; spf=pass smtp.mailfrom=kemnade.info; dkim=pass header.d=kemnade.info header.i=@kemnade.info header.a=rsa-sha256 header.s=20220719 header.b=uQ8djdX0; arc=none smtp.remote-ip=178.238.236.174 Received: from mail.andi.de1.cc (mail.andi.de1.cc [178.238.236.174]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6413A606A322; Sat, 5 Dec 2026 12:16:14 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6413A606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=kemnade.info Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kemnade.info Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=kemnade.info header.i=@kemnade.info header.a=rsa-sha256 header.s=20220719 header.b=uQ8djdX0 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=kemnade.info; s=20220719; h=References:In-Reply-To:Subject:Cc:To:From: Reply-To:Content-ID:Content-Description; bh=9w99WITR3V9JyVLOMOFVtLBrp6hMVfhfkhVzOZjF4YI=; t=1796472974; x=1797682574; b=uQ8djdX05szNJsOIDEc5gSLKdwME0sXDIe9G9AK3XwCLvnk5grDhMVImWh07er7XVTH4LtS+Lvl AJxnwl/0D4okCXBejSUSlqowZ09IWQIMYvlbOO7gsANwfqf5+4bhUjenvNYSn7ONBqKFoF+w+nCPM 4MEzOgDz44FzU9OLD+hKKXmtbcnLONG/9RqO9J+VUbB1JwNT4GqdaAuTAEUFEXjxtiNdsN4T/xQ8R 4jJ0ETRJoeq5a6Pc9m7MCdKxhVWkMJdNqi4638cg3UqyuALgXQbflH66aEbeS3u7tOmx1K82Kx37L flvhqXHAyGMVCtS30M3ehy5n8H1jB/sOL9OQ==; Date: Sat, 5 Dec 2026 13:16:01 +0100 From: Andreas Kemnade To: Luka Panio Cc: lee@kernel.org, danielt@kernel.org, jingoohan1@gmail.com, pavel@kernel.org, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, deller@gmx.de, griffin@kroah.com, junjie.cao@linux.dev, mitltlatltl@gmail.com, dri-devel@lists.freedesktop.org, linux-leds@vger.kernel.org, devicetree@vger.kernel.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/6] backlight: aw99706: Add Awinic AW99703 support Message-ID: <20261205131601.37d78f97@kemnade.info> In-Reply-To: <20261205005118.884885-1-lukapanio@gmail.com> References: <20261205005118.884885-1-lukapanio@gmail.com> X-Mailer: Claws Mail 4.3.1 (GTK 3.24.49; aarch64-unknown-linux-gnu) X-Mailing-List: linux-fbdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Sat, 5 Dec 2026 01:51:12 +0100 Luka Panio wrote: > The Awinic AW99703 is a 3-channel WLED driver with an integrated boost > converter and 11-bit brightness control over I2C, used for the panel > backlight of the Nexphone (QCM6490). > A general word to the process here: My devicetree has something like this: &i2c1 { pinctrl-names = "default","sleep"; pinctrl-0 = <&pinctrl_i2c1>; pinctrl-1 = <&pinctrl_i2c1_sleep>; clock-frequency = <100000>; status = "okay"; /* backlight aw99703 at 0x36 */ }; The idea is to describe the hardware as good as possible, as well as indicating a source of possible testes and helpers. I buy the device after having the impression that I could do what I want to do with it. Then I put together things and am happy if they compile and basically work. Then I replace drivers with cleaner ones. I am wondering if the process can be more automated to that comments like that would lead to being automatically added in driver submissions. > As suggested on v1, this version adds the AW99703 to the existing aw99706 > driver instead of adding a new one. The two chips share the programming > model but have different register maps, so the driver is first converted > to per-chip data. Following the binding review, the AW99703 binding uses > the standard led-sources and led-max-microamp properties, and the > AW99706 binding gains led-max-microamp as well, with the vendor > awinic,iled-max-microamp property deprecated but still read. > > Patch 3 is a fix for the existing driver: the chip ID was read before > HWEN was asserted. > > Andreas, your Kobo Clara 2e series [1] adds a separate aw99703 driver > and binding for the same chip. Hopefully we can settle on 1 driver, > please test this driver and let me know if it works for you, or you > have any other ideas. > I added the led-sources property and tested: Issues found: - After booting I found that backlight in sysfs is set to 1023, but backlight is off. After a suspend resume cycle, backlight is on. Test was done from a minimal initramfs system without any userspace controlling the backlight Expected behaviour: brightness value in sysfs matches the hardware state and is the same before and after suspend. - hwen/regulator stays on even when backlight is off (can be solved after this series is in with a bit more thought) Regards, Andreas