Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp529276pxa; Fri, 14 Aug 2020 10:26:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8Ip4mSxBlSAwX9FCIOoy1bBD75BWLWc7pq7iEr7uWmdPIN69ePKSS/en6MlRqNmwmKq4K X-Received: by 2002:a17:906:7752:: with SMTP id o18mr3340411ejn.150.1597426009539; Fri, 14 Aug 2020 10:26:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597426009; cv=none; d=google.com; s=arc-20160816; b=BvXsD0Ky6qzbT8nOPrpXjSH+EI+vW+esM8OyWB59LjP+YOA1ptpLMhIvYsSjrCPLH1 U7Co/sb8ike8u0pxadZ1M3z8DhNqeVKIwNUq5FG+9ZsJ3TCGRtLWvGI3YcjUj+AkMeC1 klVCko2bP5ilVKgS/+mL/LH0NMF4H0WSDTNAM7Xmtbg70hPHt/TIfrxhT0rJzdpgcLLF uL4RYHKDGEnZ6VMqIdsV1W4TeOI9ffxNtYYovWSsmUVQ2ej5WjOu/MPjfdIxlO94si8t R760cORvkxHtEhDdJzPuGHtAu8jHUnt8x/ldce0XYA8Y49s31SZ8u8dkCPLd+fgwlaza /V/Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=PeV1amf53ZG7f6gow5fM1s8VkuM1sSx1FhpkFN+fnsM=; b=wJNCS8ZrdmjYuL/ZO0btty0LE4ioW7lgM8jBYS+xmiJL0QPf2iagqN6v0tiP/rX6LP 1qzqx3Z7YAHCRB/yVUhBWOnyKGc9aF+Xh+fZsqmmJfZC/2hC1a0E6tW1wZF8r7bqwOnX MUCdj6+uHicem2329ODx+sk/9Z+gBvgpnEu4Dwn2w2kLD3EUe9MZvEulOa67D0jba4GR my5pFLTpJCEtB+egtmBwQP0KBsupc7RIBGJHbsmb0+eDEXVb5IWP26O03D/hbiovhuov HqRIoh7vFYX8FfKih59UejS1LSt0yR1ZBEgpqOcsrwGz5bCG4VatXqoHbyggpyo4p8ED A1LA== 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 v18si5863380ejj.270.2020.08.14.10.26.26; Fri, 14 Aug 2020 10:26:49 -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 S1728400AbgHNRXY (ORCPT + 99 others); Fri, 14 Aug 2020 13:23:24 -0400 Received: from honk.sigxcpu.org ([24.134.29.49]:47860 "EHLO honk.sigxcpu.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727894AbgHNRXX (ORCPT ); Fri, 14 Aug 2020 13:23:23 -0400 Received: from localhost (localhost [127.0.0.1]) by honk.sigxcpu.org (Postfix) with ESMTP id 0B015FB03; Fri, 14 Aug 2020 19:23:22 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at honk.sigxcpu.org Received: from honk.sigxcpu.org ([127.0.0.1]) by localhost (honk.sigxcpu.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Cirbr_6XKokd; Fri, 14 Aug 2020 19:23:20 +0200 (CEST) Received: by bogon.sigxcpu.org (Postfix, from userid 1000) id 3D040457CC; Fri, 14 Aug 2020 19:23:20 +0200 (CEST) Date: Fri, 14 Aug 2020 19:23:20 +0200 From: Guido =?iso-8859-1?Q?G=FCnther?= To: Pavel Machek Cc: kernel list , linux-arm-kernel Subject: Re: Camera LED on Librem 5 was Re: [PATCH] backlight: add led-backlight driver Message-ID: <20200814172320.GA740513@bogon.m.sigxcpu.org> References: <20200219191412.GA15905@amd> <20200220082956.GA3383@bogon.m.sigxcpu.org> <20200220234151.GB1544@amd> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20200220234151.GB1544@amd> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Pavel, On Fri, Feb 21, 2020 at 12:41:51AM +0100, Pavel Machek wrote: > 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. > > > > Tested-by: Guido G?nther > > 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. 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 https://lkml.org/lkml/2018/5/6/30 I also couldn't find an in tree driver that registers a flashlight as a v4l subdev. Did i miss that? Cheers, -- Guido