Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1216599ybv; Thu, 20 Feb 2020 15:43:26 -0800 (PST) X-Google-Smtp-Source: APXvYqwLCans2X+0XLhL9acNQP/Zz/8umIblW9NU4NAk9kl8asYIG7GQpbvmOhCb1qFQWpVAtKNC X-Received: by 2002:aca:5ad5:: with SMTP id o204mr3813410oib.2.1582242206061; Thu, 20 Feb 2020 15:43:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582242206; cv=none; d=google.com; s=arc-20160816; b=0gEOXzbc001C6ulXLWBJEMdtf7G+8y0afaK0yjvRNKgHtFnTSP6cBLl1woKit5W3jn HeJ1DO32xA1aTryVp4/0DSzZ+5LmTlM+jZ/LuDC2KFoA9wDvff3DG4mpD9pdb35iyT20 T23ronuLlYElJIvUjHbx3T3gcUVbicz0zB/fyTkYyxVNVp/aLX/rJYG2OQFzllBieoqD 1Gnl25YFDC6re1cMFmlePil4CIA+4sXZJu9Tl+HaQ6Am5ItywqqVmQdF2CXsbGcLITwJ Fdw8goTeyHHqNGn0j4uwkvWxOvGgD57Jq1gycKHDWEkHcYh/KgHkcZLtKiIOs2XTet9H tcDg== 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=3uN1zGIs2DilG/4w9a+NSK3dLkrPKQXLVwuD+o3YlN8=; b=uGA4pKzck1NVKfAtMNKFi2qlUHznh1PILU0e4Mvds2aVtorLpKLTlGrTU5LbOzZB8j SRegehRTiMYshiix2VZwa+c/W0snzX50O4MqSJoT8staYU86/ztC/efqVlfQsT5XsVbR RNVSjiMb1YhoY9A9vzRaMROlXxgFUBDF0sOPl7/+/dYou+XypLys9SZRbzz7+YpHpC94 8CRtJz7mcQ57617OgC3DOPozm2Np/68bcfPmn/xQaKZk1Mps9nRQnm5l1aRMlMONfWZw QfVquydt4Ieo7YLxH+jORLyFAJYl5ttgYzhbbmvUpO+pc9iHIGzhB0R/gCQ3OyeT+0iF YUfQ== 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 v21si462935otj.282.2020.02.20.15.43.14; Thu, 20 Feb 2020 15:43:26 -0800 (PST) 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 S1729409AbgBTXlx (ORCPT + 99 others); Thu, 20 Feb 2020 18:41:53 -0500 Received: from jabberwock.ucw.cz ([46.255.230.98]:51358 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729234AbgBTXlw (ORCPT ); Thu, 20 Feb 2020 18:41:52 -0500 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id 5FD9B1C0141; Fri, 21 Feb 2020 00:41:51 +0100 (CET) Date: Fri, 21 Feb 2020 00:41:51 +0100 From: Pavel Machek To: Guido =?iso-8859-1?Q?G=FCnther?= Cc: kernel list , linux-arm-kernel Subject: Camera LED on Librem 5 was Re: [PATCH] backlight: add led-backlight driver Message-ID: <20200220234151.GB1544@amd> References: <20200219191412.GA15905@amd> <20200220082956.GA3383@bogon.m.sigxcpu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cmJC7u66zC7hs+87" Content-Disposition: inline In-Reply-To: <20200220082956.GA3383@bogon.m.sigxcpu.org> 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 --cmJC7u66zC7hs+87 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > > This patch adds a led-backlight driver (led_bl), which is similar to > > pwm_bl except the driver uses a LED class driver to adjust the > > brightness in the HW. Multiple LEDs can be used for a single backlight. >=20 > Tested-by: Guido G=FCnther Thanks for testing! I noticed blog post about using Librem 5 torch. Unfortunately, it used very strange/non-standard interface, first using LED as a GPIO to enable LED controller, then direct i2c access. That is not acceptable interface for mainline, and it would be better not to advertise such code, as it will likely become broken in future. https://puri.sm/posts/easy-librem-5-app-development-flashlight/ Best regards, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --cmJC7u66zC7hs+87 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iEUEARECAAYFAl5PGT8ACgkQMOfwapXb+vKXXACgieHtSmG/OaQuYS/IMFe6SvbQ kJgAmL4xWRvXq6Hjsr2Tnlx3h5AuUig= =Poch -----END PGP SIGNATURE----- --cmJC7u66zC7hs+87--