Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp3252621ybi; Fri, 5 Jul 2019 04:27:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqwULinLQspRKfGcKkcE2eTk0hd19yyw3fkn/AVovypehkoq6FfuUkG3+Fljo45c3yA3im04 X-Received: by 2002:a65:458d:: with SMTP id o13mr4962650pgq.34.1562326028316; Fri, 05 Jul 2019 04:27:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562326028; cv=none; d=google.com; s=arc-20160816; b=l/5t3nq23+0wrsMltspQmyg7YRgyOWEJOYvCsMchAc2QFkYy6PGojL1U7fVddNyu5m M5M0IGT4gXk5lPAx9V6SJHABTeCNob2jPsWdZYqdJ9WI/tybcQKk+8u3NYp+OfuRzFIR dedDphkshboUSeoPSxcTRTglyF5uA0KUmRtFowNOfcvQK/xq7ZS4zg5x2j4IbDaLSUOK wmfhzpHa+SVRrGojHbwMjZW9XuF1HSYIYqTlTd3gYC6DcWbuAlpq3pvNSmIXU3BOPfPV RoPjX+jUM7DsLoLJyV1o2++162v+Cnboj4t8KeOdREZz+eNbHscvvKarmZ8nGz9U6Iz9 /V/Q== 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:dkim-signature; bh=MR8qrrLzz1ee0JQetWcmCrqB1Zhi9MpQBveeGBxIzn8=; b=g6Ak94ZFdadZ+uMzPWmuOXtuvhXH5Y8bBIowkJdR0avfhGPyBsCGNW2Xq0YGhs0cJL tpsE/wiwuz6hg0Y1HWlat3MKQp4DoDuC9RbI3cqCAuTE0Ll393RzvF8xdPMmtDWwmeXe XVW9qH8o4+mSKeNk4pz80+jSZ5RbXcmlA6m8ZxcB2JySmBFzHl33XNdFEIbPJIn471pf jYDO5CimRaylZ4petdu/lzwOMnAdGuWBsYj283mPxw7UGMwgTwFrXePJbTmiUMQTagq+ 5P2rLp2sEU7H2SVtoUwtIrReSgoOA+vzFRNfj3UUtzMPHZQaSDzxJglUy4YXQJ9FUXMO Q/NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OZa6F+Ua; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 124si7389139pgg.581.2019.07.05.04.26.53; Fri, 05 Jul 2019 04:27:08 -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=@linaro.org header.s=google header.b=OZa6F+Ua; 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=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728269AbfGEKaK (ORCPT + 99 others); Fri, 5 Jul 2019 06:30:10 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:37529 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727483AbfGEKaK (ORCPT ); Fri, 5 Jul 2019 06:30:10 -0400 Received: by mail-wm1-f68.google.com with SMTP id f17so8822303wme.2 for ; Fri, 05 Jul 2019 03:30:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=MR8qrrLzz1ee0JQetWcmCrqB1Zhi9MpQBveeGBxIzn8=; b=OZa6F+Ua55bJVrO2vEtkAOaJIkayk3hKsgKXfjMjIEqrl21aUvdj0yr81GuNGWuUn+ X6okF+VgbwxcQjKD44wbj7XJO1UGOzBsE7A9xQ4xJNVV1KZrBSi7tPSWgxDxC85AI11W qQE9PlaSMJz8oQiQv6nL+hdwDqyWPV9c89RTpvKcvDQCGO2PmOmusRVZ0HowA2bJ9XM9 RLR8t3DTMADduoe+uYn4EXsRdQPP08xx6yFfoVE5jXIDpwW4H2M3YwawkXB6c9ZfyJfs rTrXzsguklz4vk8ZCE0AdWTXLGS1JyUpD0U01f4QA9RkiYYPNtr3BeKQitVC+gKSuiyH uVrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=MR8qrrLzz1ee0JQetWcmCrqB1Zhi9MpQBveeGBxIzn8=; b=tH+A05cBN+D5nKSy6XHr8ciKNPHX+ygijOEqjqfAJrSNvc7a4Q+AJipmCcMPEzxmGg SlSzj1FJ0uEmLuTHTzV7Gl6AjlUGYs/RdjqGks9k4BtoVfr6B8VwfaVP82Nm0sDMWpUM pqmqFJWYNlhMyu6BVWvi6SRZL5IEOPpApr1ChKL5huNv0ek5nlL05nFQXPtTpmqWwna3 Hb+BH3E4RBZcu9D6VsiA3DFB94FB5zUdXdGPIEA1uxMofNxLPSW0OBpVOZTRKxcEoiaL 9E/2UHZoOfmaEtdVT4P4L2gIRAN8XK+K013oPfwnlDyLSRCZzqavIt2fgEelmd6KVvGG 0R1w== X-Gm-Message-State: APjAAAVLYl0+f87zn9PdW7Dv7iQb1cSdo+/g8H8WVm5hwZS3oJatj+e5 QJCs5YboKWbRC5/qMcT9hZzJ5g== X-Received: by 2002:a1c:acc8:: with SMTP id v191mr2991912wme.177.1562322607796; Fri, 05 Jul 2019 03:30:07 -0700 (PDT) Received: from holly.lan (82-132-213-94.dab.02.net. [82.132.213.94]) by smtp.gmail.com with ESMTPSA id y10sm5524508wmj.2.2019.07.05.03.30.05 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 05 Jul 2019 03:30:07 -0700 (PDT) Date: Fri, 5 Jul 2019 11:29:59 +0100 From: Daniel Thompson To: Pavel Machek Cc: Jean-Jacques Hiblot , jacek.anaszewski@gmail.com, robh+dt@kernel.org, mark.rutland@arm.com, lee.jones@linaro.org, jingoohan1@gmail.com, dmurphy@ti.com, linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, tomi.valkeinen@ti.com Subject: Re: [PATCH 0/4] Add a generic driver for LED-based backlight Message-ID: <20190705102959.cmqhzpzikqjsydlx@holly.lan> References: <20190701151423.30768-1-jjhiblot@ti.com> <20190705101434.fw5rpctnqt6dwg6e@devuan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190705101434.fw5rpctnqt6dwg6e@devuan> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 05, 2019 at 12:14:34PM +0200, Pavel Machek wrote: > On Mon 2019-07-01 17:14:19, Jean-Jacques Hiblot wrote: > > This series aims to add a led-backlight driver, similar to pwm-backlight, > > but using a LED class device underneath. > > > > A few years ago (2015), Tomi Valkeinen posted a series implementing a > > backlight driver on top of a LED device: > > https://patchwork.kernel.org/patch/7293991/ > > https://patchwork.kernel.org/patch/7294001/ > > https://patchwork.kernel.org/patch/7293981/ > > > > The discussion stopped because Tomi lacked the time to work on it. > > > > This series takes it from there and implements the binding that was > > discussed in https://patchwork.kernel.org/patch/7293991/. In this new > > binding the backlight device is a child of the LED controller instead of > > being another platform device that uses a phandle to reference a LED. > > Other option would be to have backlight trigger. What are > advantages/disadvantages relative to that? I spent a little time thinking about that during the recent round of reviews. My rough thoughts were that LED triggers would be a good way to handle it in the kernel code and would trivially solve a backlight composed of multiple LED devices (since all could attach to the same trigger). However I think it would be difficult to use the existing DT bindings for triggers to express things like brightness curves and to handle systems with multiple heads. I'm not *too* worried about conflict with the existing backlight trigger (which isn't actually a backlight... just a hook into the framebuffer code to operate a binary LED). People like Daniel Vetter are labouring diligently to get rid of the notifier it depends on so turning it into a proper backlight device would probably help with that effort. Anyhow... having thought the above I then shook myself a bit and figured it was more important to focus on sane bindings that on what the kernel does under the covers to realize them ;-) and decided to keep quiet until the next set of bindings is proposed. However... since you asked... Daniel.