Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2257370ybi; Mon, 1 Jul 2019 08:52:40 -0700 (PDT) X-Google-Smtp-Source: APXvYqwDJHsRgBZUP7xTgulu2GWL4QelJDbd19tB15lE72VSQ+IwLK7Li+c3go5bMPqKeE7lGXsS X-Received: by 2002:a17:902:583:: with SMTP id f3mr29535898plf.137.1561996360101; Mon, 01 Jul 2019 08:52:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561996360; cv=none; d=google.com; s=arc-20160816; b=nDiFTfBF6Hac5zWUf+JJzKhHwWdWcIpGce7W8z2oizOwAyz0xWodcu42THqidK5JVM ddzFB6+9+9oHO17THhqSSQEMwVHCV1RWh9n8U7hNV+BfyhUHTJEHm7iPYlPYxEFqQGkz cUBeiiSvqVJ0pmQf/yW6jGlM+d7ECesVEKDq4f7Qxsr0+BhrtV5OPkQM3MzLLHJhWMbI ViYE7f8ZboaGsEtRlsBK+cwQXyQHZ4A+VYVE7tvrBZrT7Av1n2qS9SZGalOIvbZQ2z4G nGQELVljKuCp2y22D6llLopoWnHo+4KE5TVGeheMCFQ83q8PZ9gJ7Irt8q/yKLKzFijZ +CCg== 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=8ZPMCskt8nRAXKm5rMG8eKdJwKab0ooefSSXjtYKA2w=; b=o+GEAgG6Gpl0auuZSOjDpWymh0gwg8/jAGmAjCFEvyTpS/yz5Fagd3rl6UdONEHwg/ zQ9T6ObxcNQWT/VvJFsMZOPq8Sb9CPYCGylZuOMnrWLcr7taxPRAOVHWFEbjH8SFtmO6 yevdde7ofiloWGx6ekXK7hIiXR9CxPgsf58l06Z1xVXnW2H7ru9VkLCWOcYlqHOHte9l 93JNGbxPIlssxgH4po1Ljmb5vCree0sh3lRIj3xC29qkixWCZMnL0O1hlj4O4oEYuzIJ WfAmZn8fm1xsFsM4fv9zvo4ur9sdVauUvLmbRNKv34KuaAgzi3ZMi93IEM/bM93czaW+ +Wvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ecku1xWw; 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 u12si6682795pfm.6.2019.07.01.08.52.24; Mon, 01 Jul 2019 08:52:40 -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=ecku1xWw; 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 S1730314AbfGAPPZ (ORCPT + 99 others); Mon, 1 Jul 2019 11:15:25 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:36186 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730177AbfGAPOg (ORCPT ); Mon, 1 Jul 2019 11:14:36 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x61FERSA124727; Mon, 1 Jul 2019 10:14:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1561994067; bh=8ZPMCskt8nRAXKm5rMG8eKdJwKab0ooefSSXjtYKA2w=; h=From:To:CC:Subject:Date; b=ecku1xWwcUY7k8zzijG0i0WVvjwfg/wYTo2GTb9ZFGj6PV7Ajm8qroD90sHlLA56C 7bxb8XMqaZ5WJ0i73T+LXITf5/9cU0yq7EUMNV1kJeGHvN5NiSpYDA0kyPGXNDTYv/ LzJPN0hog0Ni5E2XCZb+4RJbVpl6qwimqMqG6bUw= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x61FERJW055541 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 1 Jul 2019 10:14:27 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 1 Jul 2019 10:14:26 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE100.ent.ti.com (157.170.170.30) 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; Mon, 1 Jul 2019 10:14:26 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id x61FEQDs043919; Mon, 1 Jul 2019 10:14:26 -0500 From: Jean-Jacques Hiblot To: , , , , , , CC: , , , , , Jean-Jacques Hiblot Subject: [PATCH 0/4] Add a generic driver for LED-based backlight Date: Mon, 1 Jul 2019 17:14:19 +0200 Message-ID: <20190701151423.30768-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. 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. Jean-Jacques Hiblot (2): leds: of: create a child device if the LED node contains a "compatible" string devicetree: Update led binding Tomi Valkeinen (2): backlight: add led-backlight driver devicetree: Add led-backlight binding .../devicetree/bindings/leds/common.txt | 3 + .../video/backlight/led-backlight.txt | 39 ++++ drivers/leds/led-class.c | 16 ++ drivers/video/backlight/Kconfig | 7 + drivers/video/backlight/Makefile | 1 + drivers/video/backlight/led_bl.c | 217 ++++++++++++++++++ include/linux/leds.h | 11 + 7 files changed, 294 insertions(+) create mode 100644 Documentation/devicetree/bindings/video/backlight/led-backlight.txt create mode 100644 drivers/video/backlight/led_bl.c -- 2.17.1