Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp6762500ybi; Mon, 8 Jul 2019 08:15:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqwhr7qsQgIqUP8xggwGwgplCGdk82xgCfeBjBaUdCa55YH6QHyNkJTsPjCGlLM0I/i317/z X-Received: by 2002:a17:90a:2446:: with SMTP id h64mr27620739pje.0.1562598913374; Mon, 08 Jul 2019 08:15:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562598913; cv=none; d=google.com; s=arc-20160816; b=y/0XjS8rxKiQHPFhrrTOrS5KVk748Gxk56s4TZ8GAl60OWZPik5SAwwIOD/jBTZ5QU 1fL67z75X06kASQ/mxCEKiW4cYpjpBBEEbVLIeTM84azXMkcdthTY/mu64OOsC80EAdE RxJSZ56tpoYWkbBH+mSERfzETD8gGW4XDRCCdiFgN7OLSWpwvijc/Vs0dqDjSlNQWxxG +eDCpN7/KdoDLdWsdxwnSYyHIKOVQMibTOexXJrlgFJkAd8GiIt2dxN8kxbMFTJ6PwFK 26nzhk7fkxUaP/q2DUZxRebdHSmJOON/dl8hurkeeCrzxPljMbgPzYHgb9jQSHwUL2mz 5hYg== 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=lej7Q+QP3kcSJDvUANx4MpD1co7bVMerIr3ru5n/a4c=; b=WRxQsz/apvLC5dvLJjd63nINfli46NfVL1H9mfV7oSoZOihXEoR/GvKBVOglGTM9IP 8Cq7fqIz2i84cNMvXJC/8uAH1hn+ETE4My1fe0k5vCQMFnirhH6SyyJwPdI7YEd7k4jD n2x7RAVFWMr3OinhNWmA7Tccs2pGeyXtUhp6umMYv8kytFsgm3k+YSokVC7cPmhMLU0D TRnv33xU6tt15QfGKOFX0IQGdIS2DP+uqzCku7sCSpKoEhrjRlocrDZ1k3xoyt966EJH W9a5NG92LrlE47NCDgLV7MWW4KAT0oUiqIlg8U7XVx5xcV48+LLZI2/Dk7tKAt9G1DG1 Q8/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=tx0P6Ygy; 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 k32si18401330pjb.11.2019.07.08.08.14.58; Mon, 08 Jul 2019 08:15:13 -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=tx0P6Ygy; 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 S1730213AbfGHKuc (ORCPT + 99 others); Mon, 8 Jul 2019 06:50:32 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:38452 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725941AbfGHKub (ORCPT ); Mon, 8 Jul 2019 06:50:31 -0400 Received: by mail-wr1-f66.google.com with SMTP id g17so6377702wrr.5 for ; Mon, 08 Jul 2019 03:50:30 -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=lej7Q+QP3kcSJDvUANx4MpD1co7bVMerIr3ru5n/a4c=; b=tx0P6Ygyb6DdA7G9POdLYsY1nwSb8R4k49+VwLBqIM1T9U1q/43us/Hdp8RMCdxoM6 CxuFx8aefoTs/hCz3yvx7UmSMCQs75fPh2oqTpzSzgEAVtuMo0TiIddSX/MloG/0NaMC /OuHfKw1t3wHozbRyinjBNu/uYqpLFdPDxvZTgi28Oj1nGIxdbftq3SUKZrE3RxOOkST 1JZo4hQM22IsH+9TgOURFthDgZYKAc/w1OfQpWX5hwJ4HsE0k/ydx+szAcuMarDgp4qs 4If7zr2vnPvh63kFDa+exPDoE6uCHeBsdsee98ujGIC3d2X6vubZP2v1YiFM3agasNf0 SaBQ== 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=lej7Q+QP3kcSJDvUANx4MpD1co7bVMerIr3ru5n/a4c=; b=iTiXQqiFGEVhhTPuBlIp9cKILjEncyMtiesaPXXbWSByPPtP4O8yKSa+Qi0xy5+NDn qqq8kdPtZCNhVrLjaEFNTaCUQ9yD02AXSEzCGSCZMQsurB+UhTNsl7lSA/1aqv08wBZO MyiX6cNN4fPlEJ7udLEn4Bns64pE622l981VY2VMwXGgIDC6A9rs4KLxpMsQz60+qVU/ Fb2Iz0dNEOr0KYamqUdeLydHAnyLTkFsYFADHXCi/4iDYzo1lENcXxfweCm0RJY38PR5 zb/huczoJ1hbZiJSJo8OCk4VMefg2Je++TBLL235BdL2HF7DpEuAufj/jcJvtLOaUI6j 8F0Q== X-Gm-Message-State: APjAAAXBHou/twZb00DKEmjTja5q5FXW6gpRb3leN1RqeSD+kepw3OHC /As4YmcsinVAnK9J3IZiSlb7zQ== X-Received: by 2002:a5d:5446:: with SMTP id w6mr13496134wrv.164.1562583029398; Mon, 08 Jul 2019 03:50:29 -0700 (PDT) Received: from holly.lan (cpc141214-aztw34-2-0-cust773.18-1.cable.virginm.net. [86.9.19.6]) by smtp.gmail.com with ESMTPSA id o11sm16642628wmh.37.2019.07.08.03.50.28 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Mon, 08 Jul 2019 03:50:28 -0700 (PDT) Date: Mon, 8 Jul 2019 11:50:26 +0100 From: Daniel Thompson To: Jean-Jacques Hiblot Cc: jacek.anaszewski@gmail.com, pavel@ucw.cz, 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 v2 3/4] dt-bindings: backlight: Add led-backlight binding Message-ID: <20190708105026.jfl4krv2veb7gzow@holly.lan> References: <20190708102700.23138-1-jjhiblot@ti.com> <20190708102700.23138-4-jjhiblot@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190708102700.23138-4-jjhiblot@ti.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 08, 2019 at 12:26:59PM +0200, Jean-Jacques Hiblot wrote: > Add DT binding for led-backlight. > > Signed-off-by: Jean-Jacques Hiblot > --- > .../bindings/leds/backlight/led-backlight.txt | 29 +++++++++++++++++++ > 1 file changed, 29 insertions(+) > create mode 100644 Documentation/devicetree/bindings/leds/backlight/led-backlight.txt > > diff --git a/Documentation/devicetree/bindings/leds/backlight/led-backlight.txt b/Documentation/devicetree/bindings/leds/backlight/led-backlight.txt > new file mode 100644 > index 000000000000..4f545316b288 > --- /dev/null > +++ b/Documentation/devicetree/bindings/leds/backlight/led-backlight.txt > @@ -0,0 +1,29 @@ > +led-backlight bindings > + > +This binding is used to describe a basic backlight device made of LEDs. > +It can also be used to describe a backlight device controlled by the output of > +a LED driver. > + > +Required properties: > + - compatible: "led-backlight" > + - leds: a list of LEDs > + > +Optional properties: > + - brightness-levels: Array of distinct brightness levels. These > + are in the range from 0 to 255. The actual brightness > + level programmed in each LED will be adjusted based on > + its maximum brightness: > + led brightness = (level * maximum brightness) / 255 8-bits is a narrow range and likely to make animated backlight effects impossible because the stepping artefacts would be too obvious. I'd rather see the brightness-levels table expressed in the native steps of the LEDs in the leds list. I know this means that the LEDs must have identical ranges but I think it is OK. A backlight design whose LEDs are connected to non-identical drivers is either badly broken or sufficiently exotic to need to special purpose driver. The driver can therefore fail to probe if the LEDs are mismatched. > + > + - default-brightness-level: The default brightness level (index into the > + array defined by the "brightness-levels" property). The brightness-levels property is optional... this text needs to be updated. Daniel.