Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2298844ybi; Thu, 18 Jul 2019 06:22:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqxh+wSkf54uTOiBN332T9GriAGBCysc2eLXgCDBgOT1rakyku59T8wNj8WtF0y4pF3AIlG+ X-Received: by 2002:a63:c70d:: with SMTP id n13mr47099272pgg.171.1563456128917; Thu, 18 Jul 2019 06:22:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1563456128; cv=none; d=google.com; s=arc-20160816; b=ujNuPQNAmOkAkPL242BFDSZNLHuso+H3KBanfaK0St5Yat1NS7jHUE7OkGbcLOqpo/ nAU/IxJojew7EOvea+JVBpujEJhLraXVUbCMikmxWuDFh0N/+id8mBMnlt77d7DWioSE r+ju0YSRY9aVvnq+sJgy7brRb5vgn3CKkyAGcbv6mxE/JTxQYrVkqhTxI7n3RKoplxxV HgXm96CqWvOFUctwV8fxymiskHwBIJ2j+SNNm3I+jB7IbuUJaLkSg8wkdDfA+OOeEDfa 36CyXLJJ8e+D1/rXnR26fWZQVKTLehiUODORNZTSNDNThNbTtYhTuuPs32Zs+6Gm/gM+ 7Qtw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:openpgp:from:references:cc:to:subject :dkim-signature; bh=OLDs21KMIbgvdFUuvjXWKrJvzDqxKAC/PhzEbEX10Nc=; b=v0zuH2o7WaYyILoPZtMvZtVWboo730qW+n+oPZ+0/+PO/u69xVnmxPWFVSdW1YVyg3 CcBv/KS77YV+Ar6CHy4DM0X3QoCkuLiVJ361JenGCdfc1J4hFC4pupT+swYCJjWTUeoz bxJpcoJVtaiPpdUWuY+vDCtT2gboZUuIyr3XewFlr+bC7FszmHCZ4Jc7MWm00F7FaTTt tkUvmWTrYgXM37Ts0dXge3++YLZY5iMJlHs+vxIxq04vtL0QTU33ngCuqDpafNbK8EhG I/d/XGaXrlNKt3jfawd0mJav9bsXDKx8OaDOfeEzoCaVn5fo0b6JQ2XrGVd5sKUnaIPJ mFyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=n8id90Wd; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w1si2275780pfn.129.2019.07.18.06.21.52; Thu, 18 Jul 2019 06:22: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=@gmail.com header.s=20161025 header.b=n8id90Wd; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390390AbfGRNTu (ORCPT + 99 others); Thu, 18 Jul 2019 09:19:50 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:39965 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726608AbfGRNTt (ORCPT ); Thu, 18 Jul 2019 09:19:49 -0400 Received: by mail-wr1-f66.google.com with SMTP id r1so28658100wrl.7; Thu, 18 Jul 2019 06:19:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:openpgp:autocrypt:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=OLDs21KMIbgvdFUuvjXWKrJvzDqxKAC/PhzEbEX10Nc=; b=n8id90WdayYJdA5Hv1yRTX+yHg1lxWjz2Kq24cUbg9XU12h91f7jAgtkTNpq0AA947 jMmcZxlIjzUWp9B+89O7ijwBdWv7Flt4G4skmojcF3E/C/q4O+ze4ZVmwCsnj6r/ybMj UrZ/LhqPXj0YI4La3rihQBrb8tppwfyltLg6N5tHGFrNK2qmUXifpPnL0L4Wv72OIg0f FgPHa4B5rn2Jv7HxbL0EHcUTODNqDQv7FSW7gYXEi35wMBqneDRdDPu/pSELK+lUyNE5 mH2TcLYp6YOiw9OOMFzGm79V4Xi6qHABFLy7rd572ufVYbVgnDsUr8z2cG7HRFiYgfsL tEOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:openpgp:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=OLDs21KMIbgvdFUuvjXWKrJvzDqxKAC/PhzEbEX10Nc=; b=VHGDBmkQG5EcETw1+oRZmtKAU3rNGnDHaiEfVgFTxNIXwbrcTQQvKdsm8Zrleo81Vz 2N5Pe5QGeXZxlXQo5b6O4BjldlbNTi/pIARGrrVtPy2vACsqbgozSgIlQDEIMnIXyaHB ba25dQs//tS/tous1vUpw+GxtFDnEf7eS9wa8ldzWFk7qq3iMn39PzqgAMmo3c4Um0rI ZcykMMhxU5GPOdYoWP94inkKGPw3AGr072smgnbbC8QeJakaK6SKGa95hgGJgT31Chdv QMKybmxzWCYdE6CLom5o4iHhXfpVuIuVvuqeT++ISiJN2r5CwIjiLjjizJpKeDl3aayF RnYQ== X-Gm-Message-State: APjAAAX0D6uE/1OJ+QEeVB9tHzN6ed6XrKCOm5Gh5pfaAa9uwpx2r86S fQh3Ubzn19innGGm29J1ADY= X-Received: by 2002:a5d:4108:: with SMTP id l8mr49151936wrp.113.1563455986905; Thu, 18 Jul 2019 06:19:46 -0700 (PDT) Received: from [192.168.1.19] (bkt159.neoplus.adsl.tpnet.pl. [83.28.187.159]) by smtp.gmail.com with ESMTPSA id c30sm42096099wrb.15.2019.07.18.06.19.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 Jul 2019 06:19:46 -0700 (PDT) Subject: Re: [PATCH v4 0/4] Add a generic driver for LED-based backlight To: lee.jones@linaro.org Cc: Jean-Jacques Hiblot , pavel@ucw.cz, robh+dt@kernel.org, mark.rutland@arm.com, daniel.thompson@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 References: <20190717141514.21171-1-jjhiblot@ti.com> From: Jacek Anaszewski Openpgp: preference=signencrypt Autocrypt: addr=jacek.anaszewski@gmail.com; prefer-encrypt=mutual; keydata= mQINBFWjfaEBEADd66EQbd6yd8YjG0kbEDT2QIkx8C7BqMXR8AdmA1OMApbfSvEZFT1D/ECR eWFBS8XtApKQx1xAs1j5z70k3zebk2eeNs5ahxi6vM4Qh89vBM46biSKeeX5fLcv7asmGb/a FnHPAfQaKFyG/Bj9V+//ef67hpjJWR3s74C6LZCFLcbZM0z/wTH+baA5Jwcnqr4h/ygosvhP X3gkRzJLSFYekmEv+WHieeKXLrJdsUPUvPJTZtvi3ELUxHNOZwX2oRJStWpmL2QGMwPokRNQ 29GvnueQdQrIl2ylhul6TSrClMrKZqOajDFng7TLgvNfyVZE8WQwmrkTrdzBLfu3kScjE14Q Volq8OtQpTsw5570D4plVKh2ahlhrwXdneSot0STk9Dh1grEB/Jfw8dknvqkdjALUrrM45eF FM4FSMxIlNV8WxueHDss9vXRbCUxzGw37Ck9JWYo0EpcpcvwPf33yntYCbnt+RQRjv7vy3w5 osVwRR4hpbL/fWt1AnZ+RvbP4kYSptOCPQ+Pp1tCw16BOaPjtlqSTcrlD2fo2IbaB5D21SUa IsdZ/XkD+V2S9jCrN1yyK2iKgxtDoUkWiql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ru0RwTv9oyThOsK3HQjI7NCIsDzVpolaGQPd9E7xwOVHhhDcXRqqNjLzHUSe eGGiEQ== Message-ID: <283d9044-df2d-b176-bea9-7e1520d9cf56@gmail.com> Date: Thu, 18 Jul 2019 15:19:44 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190717141514.21171-1-jjhiblot@ti.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/17/19 4:15 PM, 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. > > changes in v4: > - fix dev_err() messages and commit logs following the advices of Pavel > - cosmetic changes (indents, getting rid of "? 1 : 0" in > led_match_led_node()) > > changes in v3: > - dt binding: don't limit the brightness range to 0-255. Use the range of > the underlying LEDs. as a side-effect, all LEDs must now have the same > range > - driver: Adapt to dt binding update. > - driver: rework probe() for clarity and remove the remaining goto. > > changes in v2: > - handle more than one LED. > - don't make the backlight device a child of the LED controller. > - make brightness-levels and default-brightness-level optional > - removed the option to use a GPIO enable. > - removed the option to use a regulator. It should be handled by the LED > core > - don't make any change to the LED core (not needed anymore) > > Jean-Jacques Hiblot (2): > leds: Add managed API to get a LED from a device driver > dt-bindings: backlight: Add led-backlight binding > > Tomi Valkeinen (2): > leds: Add of_led_get() and led_put() > backlight: add led-backlight driver > > .../bindings/leds/backlight/led-backlight.txt | 28 ++ > drivers/leds/led-class.c | 92 ++++++ > drivers/video/backlight/Kconfig | 7 + > drivers/video/backlight/Makefile | 1 + > drivers/video/backlight/led_bl.c | 268 ++++++++++++++++++ > include/linux/leds.h | 6 + > 6 files changed, 402 insertions(+) > create mode 100644 Documentation/devicetree/bindings/leds/backlight/led-backlight.txt > create mode 100644 drivers/video/backlight/led_bl.c > For the whole set: Acked-by: Jacek Anaszewski Lee - we need to create immutable branch for this set since there will be some interfering changes in the LED core in this cycle. I can create the branch and send the pull request once we will obtain the ack from Rob for DT bindings, unless you have other preference. -- Best regards, Jacek Anaszewski