Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1739011pxa; Sun, 23 Aug 2020 14:36:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxbBhGQFuEddEgz/jtUUjSvJaXSce9n3Rzo/uD28Z5aheuh1B80DSeOXyZ4jFfHUhQ7nA3 X-Received: by 2002:a50:d80b:: with SMTP id o11mr2738871edj.148.1598218608451; Sun, 23 Aug 2020 14:36:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598218608; cv=none; d=google.com; s=arc-20160816; b=Ac6GRvHVXyz4wd9GFdpUHi4AmgLADRkAcjwxFsKsPs8B1EbkFaJwxJ/HjGmtto4UGr 0GSUC/wQuAp8JV49OS9QH1wsj1Aqg96CuSLRiJp0GO1xfIkEN6Fbz3tEG28Dgorn0BKI ubpazCJC1Y0gt+k9/tpZqV79dlSiI2deMCgljG9AQPV9WWDrwEUh6vnVg2f+8kmuU8lF 069Rml+V2vE58OE6JS8Llu8Y0Wogu3MwT+ufCXBGkpg7HoCGzoLWjRyoLQ3G0lKbsOq4 PcP774WMn45MJ+s4MLvwPBTM8h58Qqse4GzbE00vQiaqR3Jp+i2nYlx1NoFyvfrwXCFs dywg== 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=3zwAQNa0Vb6mvvVa9+vmI+JEnZ/KBWisGrH0Kcfbq4c=; b=cgJ3x7TeAcgbKhKRx96VtiTiVCtfLtl3Hlce5lG8BcssszvNeJ9r22thnaKHmjrA3t wXJYc+mUyrf5cEX9oQ6T3uf1+A2aw03+dHlz2gU1/5L12oq42aRR9jTdHtjWEExBeKEE 9imuZzbWEK2redqafsfmlf38pVtC+BBaz9qSb220nyTxeZi6LR7fz1f5I/v/07YHuo50 rDEO4vCTkE4EAe4wNlVe3oNS5EvPzRUOGgq8F+GI/XbZjMaZ/ExHShEvlMtCL4USXjYv apEEFL6MQUpi2VroCIW2oVqEmCdBtG5X2Xl/WkYhxfLK6T+nc7LUjhNvmgX/V2LWB/QJ ozRw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f18si5436544ejk.237.2020.08.23.14.36.25; Sun, 23 Aug 2020 14:36:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726215AbgHWVWr (ORCPT + 99 others); Sun, 23 Aug 2020 17:22:47 -0400 Received: from jabberwock.ucw.cz ([46.255.230.98]:37292 "EHLO jabberwock.ucw.cz" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725885AbgHWVWr (ORCPT ); Sun, 23 Aug 2020 17:22:47 -0400 Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id A701F1C0BC1; Sun, 23 Aug 2020 23:22:42 +0200 (CEST) Date: Sun, 23 Aug 2020 23:22:42 +0200 From: Pavel Machek To: Guido =?utf-8?Q?G=C3=BCnther?= Cc: kernel list , linux-arm-kernel Subject: Re: Camera LED on Librem 5 was Re: [PATCH] backlight: add led-backlight driver Message-ID: <20200823212242.incofjd73vemyazj@duo.ucw.cz> References: <20200219191412.GA15905@amd> <20200220082956.GA3383@bogon.m.sigxcpu.org> <20200220234151.GB1544@amd> <20200814172320.GA740513@bogon.m.sigxcpu.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="gg7hbvnjpzpneq4x" Content-Disposition: inline In-Reply-To: <20200814172320.GA740513@bogon.m.sigxcpu.org> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --gg7hbvnjpzpneq4x 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 backli= ght. > > >=20 > > > Tested-by: Guido G=FCnther > >=20 > > Thanks for testing! > >=20 > > 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. >=20 > I agree, there's a driver for the lm3560 in media/ but how would one > expose the torch part as a LED? It seems you hit something similar in >=20 > https://lkml.org/lkml/2018/5/6/30 (Actually, I might have been wrong in that comment). > I also couldn't find an in tree driver that registers a flashlight > as a v4l subdev. Did i miss that? You should get interface similar to this: https://wiki.postmarketos.org/wiki/PINE64_PinePhone_(pine64-pinephone) and the driver to enable that should already be in the mainline: drivers/leds/leds-sgm3140.c Best regards and good luck, Pavel --=20 (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blo= g.html --gg7hbvnjpzpneq4x Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EARECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCX0LeIgAKCRAw5/Bqldv6 8mOkAJ9i0ElcQe6nlwYWmbWd59+TzDAYLACfcpiN96u+qQNzuooxieY/IFWL4cc= =io6p -----END PGP SIGNATURE----- --gg7hbvnjpzpneq4x--