From patchwork Thu May 23 19:08:11 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 165072 Delivered-To: patch@linaro.org Received: by 2002:a92:9e1a:0:0:0:0:0 with SMTP id q26csp2646530ili; Thu, 23 May 2019 12:52:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqzb4bttgz8RiJzdtnZHGb3rCOzhe8G4D0R9Tx2q7KvGnToYGRd4JuX1vrQ9V0tMhRNjyZuQ X-Received: by 2002:a17:902:7591:: with SMTP id j17mr40758863pll.200.1558641128202; Thu, 23 May 2019 12:52:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558641128; cv=none; d=google.com; s=arc-20160816; b=Mzubc3fPfOm7AbYLWEifE6YQxi8yV+zv/z9/OxY93rRZRlL8yrLX1EvpCNPI8F29lG QB6ao9IHY2vcEVOLPt0oBT8Yvk/kHOzKswmM7iQZR2pgZ+fA86CEwqfgWnxaqzStHCo1 dFnKXsco+G/U+TpkCuxEDSHxUYLC/A6FeOL/YeoSrdzxcvFXqR0xfgUgq95lteiLg54O 8t4hoLrlFU6CNwcFKbD/7Fuzk7Ywtp7QyrsmpJg5L0Mh5g/8ljHv6RHVX/yyyJC03NU4 5hr1JFqYumINRhJEV14RjK69O9c1Ct3oAYkXLF4Pm25dz0suVGMazTrJ49eDYtRyTnmv zNhQ== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=pVZocLlK6FwBNcQR7i4409JPN7kIWTMb5k5JK/XjDDY=; b=Tu7F4wES9HVcbruPMCyjjIirpjX/EYFLTs4xnf7rFSpDuPXzsjbfydPITCsG/76nK0 ZYE/R6ke6Hx6xOl0sEW0/x7LbOsDfJ2344m90dWl4qp1UIJatMjCxMg+3wSClhGRZvBa W0V4dPEPoGcYgDQInueIRYIpEOl4mpi+RvIeQvZFJa2oK0gZlCEPvEoJ5mMmfFy8TBSs dDyVhLqqtWwS1TSFxxqI/XVW+TskWHOsUu9Fk0+XzirghZNZeK+k55CC5Tj0WTsXzx8m lEJSFPbZu4eyfmdKwmFpihRWlckxfAvJ6QlcImyk/IGl14MXSR4iD07MH7Ev2PrVLsau aCUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=oo4cMjTq; 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 f34si747023plf.258.2019.05.23.12.52.07; Thu, 23 May 2019 12:52: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=@ti.com header.s=ti-com-17Q1 header.b=oo4cMjTq; 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 S2388419AbfEWTwH (ORCPT + 30 others); Thu, 23 May 2019 15:52:07 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:56298 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731840AbfEWTIm (ORCPT ); Thu, 23 May 2019 15:08:42 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x4NJ8bcv092481; Thu, 23 May 2019 14:08:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1558638517; bh=pVZocLlK6FwBNcQR7i4409JPN7kIWTMb5k5JK/XjDDY=; h=From:To:CC:Subject:Date; b=oo4cMjTq51aQlWO2MQlLJ86GWlh+lt9R0+VZlVOf2tk4nHQDOaTRNPcFOc6y5svx0 vBlNWCY5joaXrsZmnzNHBu9bzPkNzmYVNzr3sV3o4owJ3E6cbQLcuV+YfjXU7i7OUD Sswrrb5C99NzKbfX6HXnsItESnxXnoBExhIGibnc= Received: from DFLE111.ent.ti.com (dfle111.ent.ti.com [10.64.6.32]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x4NJ8bnd123847 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 23 May 2019 14:08:37 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE111.ent.ti.com (10.64.6.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 23 May 2019 14:08:36 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE115.ent.ti.com (10.64.6.36) 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; Thu, 23 May 2019 14:08:36 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id x4NJ8a3A027514; Thu, 23 May 2019 14:08:36 -0500 From: Dan Murphy To: , , CC: , , , Dan Murphy Subject: [PATCH v3 0/9] Multicolor Framework update Date: Thu, 23 May 2019 14:08:11 -0500 Message-ID: <20190523190820.29375-1-dmurphy@ti.com> X-Mailer: git-send-email 2.21.0.5.gaeb582a983 MIME-Version: 1.0 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 Hello In this series I have done quite a bit of rework and since there was not to many review comments we can pretty much treat this as unreviewed. I have removed the brightness-model definition from this series as it is an enhancement to the multi color framework but is not required in the initial submission. And this seems to be the biggest source of contention in the patch set. So the idea is to get the base MC FW in place and let developers play with it. I have converted the LP5523 to use the MC framework and will update a couple more drivers once I have the test harnesses to verify the implementation. The biggest change to this series is that the parent brightness file now controls all the color LEDs brightness within the directory. I have written a script that writes brightness values to the colors and then proceeds to write the parent brightness from 0->255 and then back to 0. Basically pulsing the LED group. I found that the color is uniform across the brightness ranges. Dan Dan Murphy (9): leds: multicolor: Add sysfs interface definition dt: bindings: Add multicolor class dt bindings documention documention: leds: Add multicolor class documentation dt-bindings: leds: Add multicolor ID to the color ID list leds: Add multicolor ID to the color ID list leds: multicolor: Introduce a multicolor class definition dt: bindings: lp50xx: Introduce the lp50xx family of RGB drivers leds: lp50xx: Add the LP50XX family of the RGB LED driver leds: Update the lp55xx to use the multi color framework .../ABI/testing/sysfs-class-led-multicolor | 57 ++ .../bindings/leds/leds-class-multicolor.txt | 97 +++ .../devicetree/bindings/leds/leds-lp50xx.txt | 142 ++++ Documentation/leds/leds-class-multicolor.txt | 99 +++ drivers/leds/Kconfig | 17 + drivers/leds/Makefile | 2 + drivers/leds/led-class-multicolor.c | 421 +++++++++++ drivers/leds/led-core.c | 1 + drivers/leds/leds-lp50xx.c | 714 ++++++++++++++++++ drivers/leds/leds-lp5523.c | 13 + drivers/leds/leds-lp55xx-common.c | 133 +++- drivers/leds/leds-lp55xx-common.h | 10 + include/dt-bindings/leds/common.h | 3 +- include/linux/led-class-multicolor.h | 95 +++ include/linux/platform_data/leds-lp55xx.h | 5 + 15 files changed, 1789 insertions(+), 20 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-class-led-multicolor create mode 100644 Documentation/devicetree/bindings/leds/leds-class-multicolor.txt create mode 100644 Documentation/devicetree/bindings/leds/leds-lp50xx.txt create mode 100644 Documentation/leds/leds-class-multicolor.txt create mode 100644 drivers/leds/led-class-multicolor.c create mode 100644 drivers/leds/leds-lp50xx.c create mode 100644 include/linux/led-class-multicolor.h -- 2.21.0.5.gaeb582a983