From patchwork Tue Dec 5 20:43:21 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 120750 Delivered-To: patch@linaro.org Received: by 10.80.152.193 with SMTP id j59csp2636774edb; Tue, 5 Dec 2017 12:44:32 -0800 (PST) X-Google-Smtp-Source: AGs4zMaO6kxwnNW88wTii4yRbQUozGlaaVZwenoXj2paFDwfVAp2mO8xbGHHaqCaIBQ0eqihQTJf X-Received: by 10.159.230.15 with SMTP id u15mr853936plq.392.1512506672014; Tue, 05 Dec 2017 12:44:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512506672; cv=none; d=google.com; s=arc-20160816; b=tDr5p4JAArERN+C4dBlQlEi7dtycQ1Dwh7LvsTqTyjNbo4tSJbx6D6vo/k4U3DNhhI vHbcKy0zUl65MQU53BgGcx5MsA5zOauHUSZQvrzWn2fU63NrpM0SZYbVV7YScMByEWSs DGGxBXTW8MuxV8ePqyVLxcjmD37vwFLyci8zp0gEjen3+SQQzUD2g/k/5AkGOSLfSvNr XsaG//SGvRen4G7aL/fmeJDWXZngs2j+4FxDlzvtjA0O0vMcjJcQjdld3Wmgxpx2Po3i /KQTOJ56BImiL8M6b9+pBejSJgj/vpzBoxLlXuFzSJ0map3D1OPDR08IkLidAPW1XT2d FC4A== 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:arc-authentication-results; bh=lAJ7HUWTlKFrfAy32EmOpEG8dX9mep5TpFeN2/DTsw8=; b=mSKiOvkxTW0NIF0uDe21BoPb7UqzS5vjyB+ITtZWPO91eF6Jm7NYFa6sGYU4BVkWPG QudMHR1dpzot1ernAu6EZH9u28cFt2Z1aFRE0qd9tAOTO/asgT1PGw5gClhLbaYAUPp0 QkAveY5WaCpp+bR9wnXznnw9W2gA7B9ClY6hOQ5HIqreP2bS4Lg3jQZHs8xELKxkfHyk 2Pfa1c34tbgy048U9tkvAKnbvLXkgt+6tv9pgw1qe76LFTZRAxkJ9Jb7LVUrELn2rj6E poTpwzxSOzhhJUhGqolnVXFsGlTuaDWh3zyirgbPr9gvMSmyvOJo/gycqj/0SOShm3v3 1VTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aoZ4GvWG; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-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 b12si640919plk.435.2017.12.05.12.44.31 for ; Tue, 05 Dec 2017 12:44:32 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-leds-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=aoZ4GvWG; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-leds-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 S1752194AbdLEUoa (ORCPT ); Tue, 5 Dec 2017 15:44:30 -0500 Received: from fllnx210.ext.ti.com ([198.47.19.17]:36531 "EHLO fllnx210.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751473AbdLEUnt (ORCPT ); Tue, 5 Dec 2017 15:43:49 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx210.ext.ti.com (8.15.1/8.15.1) with ESMTP id vB5KhV6G020070; Tue, 5 Dec 2017 14:43:31 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1512506611; bh=g0fTRCz9JGSFNU5wLmsTovYHdtyk/365JnyARBlDcsk=; h=From:To:CC:Subject:Date; b=aoZ4GvWGCitssH0oHFqLu2FYJblA/PKy5NEt+3pPEaj9A1jpteXbHptT4MC4kavTT SWF1z1wSZMCTvYqRu3pkqAeskZe6us160+eLuvbp0Cenfw1s5RVmkPVwG8JWwmCXmW Gb1XtTNbjPu0Uuf0BoV86UYOw1tq1zVZDOG6sdVE= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id vB5KhVp2012464; Tue, 5 Dec 2017 14:43:31 -0600 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Tue, 5 Dec 2017 14:43:30 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Tue, 5 Dec 2017 14:43:30 -0600 Received: from legion.dal.design.ti.com (legion.dal.design.ti.com [128.247.22.53]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id vB5KhUgg003766; Tue, 5 Dec 2017 14:43:30 -0600 Received: from localhost (a0272616local-lt.dhcp.ti.com [172.22.93.77]) by legion.dal.design.ti.com (8.11.7p1+Sun/8.11.7) with ESMTP id vB5KhU325061; Tue, 5 Dec 2017 14:43:30 -0600 (CST) From: Dan Murphy To: , , , , CC: , , , Dan Murphy Subject: [PATCH v2 0/6] Updated lp8860 led driver Date: Tue, 5 Dec 2017 14:43:21 -0600 Message-ID: <20171205204327.12111-1-dmurphy@ti.com> X-Mailer: git-send-email 2.12.2 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org All v2 - Added an initial patch to bring the DT binding up to standard prior to adding the changes for the label and triggers. v1 Cover letter repeat below After creating a new LED driver for the LM3692x device I went back to the LP8860 driver that I authored and found some updates that need to be applied. First the way the LP8860 retrieved the label from the DT was incorrect as the label should have been from a child node as opposed to the parent. This is now fixed with this series. Second, since that device can be used to as either a backlight driver or as a string agnostic driver a trigger to the backlight needed to be added. Finally there are changes to the driver that need to be made as either unnoticed bugs or updates to the driver to align with the current LED framework. For instance moving to the devm LED class registration, destroying the mutex upon driver removal and removing the in driver dependency on CONFIG_OF and moving it to the Kconfig. With these changes this should at least bring the driver into a better shape. There are additional changes coming for this driver but I wanted to get the driver up to snuff before adding a feature to it. Dan Dan Murphy (6): dt: bindings: lp8860: Update bindings for lp8860 dt: bindings: lp8860: Update DT label binding leds: lp8860: Update the dt parsing for LED labeling dt: bindings: lp8860: Add trigger binding to the lp8860 leds: lp8860: Add DT parsing to retrieve the trigger node leds: lp8860: Various fixes to align with LED framework .../devicetree/bindings/leds/leds-lp8860.txt | 39 ++++++++++++++------- drivers/leds/Kconfig | 2 +- drivers/leds/leds-lp8860.c | 40 ++++++++++++---------- 3 files changed, 49 insertions(+), 32 deletions(-) -- 2.15.0.124.g7668cbc60