Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp9158594ybi; Wed, 10 Jul 2019 05:42:24 -0700 (PDT) X-Google-Smtp-Source: APXvYqyq+kRJ9R+yYChYscXG8J9+x2h/be30N0B0wUY3s/B7d1anqqR86cckJ/5+PhYmievAcaxl X-Received: by 2002:a63:6286:: with SMTP id w128mr37729521pgb.12.1562762544135; Wed, 10 Jul 2019 05:42:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562762544; cv=none; d=google.com; s=arc-20160816; b=kkMv3kvwPETkxmAWHgadeLX048CRzQr9jP0CA2p4OiNJmYGY0cTjtAukszUAncc2/2 qwVgh5UEay+woWNoL392ALYoZNazzOvgaH/AwiW/YvR7lzhSh7Me+AfI5f9rwsI3GukG YyvRFdy11vMZFwJ5CgqzCmYilk6cLjBS4iDIBLf2/oj7KG/GWE2PGILdtumGJjnuJ96O UHgZmP1sjGKiGVuOnN2rYAezoOmbFDbk3+iZGvNzER2oNoXH33PJtvobqrFsn1UgaBG7 7v7SHQUbqftF5htxgWXLc2ftzZ3rpGgOgCK8ARxUUGZREZE8F74z3CpM69+pPVZTVXaj AkBw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=BTg5sJ09hjAmyl9lV+ilPYbUgyB7pc/IyYE4O6pyJNg=; b=FYDWi8l+6qAFjDxKXhR0Yauwgeh+E7IA9VyN7ZCXGtGXuQEegYo7PXC6cQnWCRpkA4 cANm4V98EXOtuCVFwFWkY3EWGoWMP3dng2EvEZdURTJXy1j7zA5YhsQwFCVlEUTXC2F7 UOSt1QomdwODG3epUoJVhwiQ78XegmSM/J77zSD95LgNg0mFFAWmWgAJ9UNzfj/XgADt QWFM/ivPPvsBuA3vZJoHW3TPnVWmLrf2xJtWtVJqPaQjVZYE/MKvwW0X6YgAk2x3l/z0 j6LOmbY8Zkg5qq18bck7xmUrFjAkW0hZsRcTxRYD586lNi2NdYdPBgqZuRaXrQB+tZYc t+9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=f+I7sA0q; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f1si2282493pgc.144.2019.07.10.05.42.08; Wed, 10 Jul 2019 05:42:24 -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=@ti.com header.s=ti-com-17Q1 header.b=f+I7sA0q; 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=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727294AbfGJMjs (ORCPT + 99 others); Wed, 10 Jul 2019 08:39:48 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:32776 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726458AbfGJMjs (ORCPT ); Wed, 10 Jul 2019 08:39:48 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x6ACdcQ5118639; Wed, 10 Jul 2019 07:39:38 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1562762378; bh=BTg5sJ09hjAmyl9lV+ilPYbUgyB7pc/IyYE4O6pyJNg=; h=From:To:CC:Subject:Date; b=f+I7sA0qzyuQ2pQ8bnAoApuFmtKmigmtUkGL/TDv5ciZM7slZuci4K3w7mQAcOKLI NOMLwvSAJwPfhS7vwk2G2K/cXFNUrw0i9xLCnMrzpogtlaQBdKw7GjI6zWykqHy8zk 429fY1PcdLlH35slyhOLN6BbHl3chdblMasKQZR0= Received: from DFLE104.ent.ti.com (dfle104.ent.ti.com [10.64.6.25]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x6ACdblg038225 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 10 Jul 2019 07:39:38 -0500 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE104.ent.ti.com (10.64.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Wed, 10 Jul 2019 07:39:37 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Wed, 10 Jul 2019 07:39:37 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id x6ACdaGP129983; Wed, 10 Jul 2019 07:39:37 -0500 From: Jean-Jacques Hiblot To: , , , , , , CC: , , , , , Jean-Jacques Hiblot Subject: [PATCH v3 0/4] Add a generic driver for LED-based backlight Date: Wed, 10 Jul 2019 14:39:28 +0200 Message-ID: <20190710123932.28244-1-jjhiblot@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 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 optionnal - 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 -- 2.17.1