Received: by 2002:a25:86ce:0:0:0:0:0 with SMTP id y14csp2191848ybm; Thu, 23 May 2019 12:53:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqyt7ZVEUXoiKsFqAFGTlWVgeQCXBPmEA9G1JV3OXLQC//DOBwYrMkOF4dyj8D64nrpsUub1 X-Received: by 2002:a65:5347:: with SMTP id w7mr43942530pgr.375.1558641202723; Thu, 23 May 2019 12:53:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558641202; cv=none; d=google.com; s=arc-20160816; b=RyHi/0RybPTf22KwnGzjst9wDkOp+rDUcx3RoZxkCwv3Y0voqKXdRYASViM/fIVFCt mr9GoGgw4MKp7ZT4KEP+S04t46kZ+pdOl9IL13xO7A+qICxCARmi7lao8Hel6CT7kAd0 TrqPjzDdbscPuRZ6hugjwhrm0NK+MrgvskAfI09KvB2VUjw4mmA8gzx6WYEVrjffCFUA lSeUY+/Qn97Vh7uip+odSWKJ6ZEUkwFYr9ow966dPAVUnRxN8Ef4/9T9BdUDar7+vxXu /soky5MwJZ6EFWq6wLjB9ydkFpZC/4MnpRsiLU6MkaEZB9kIvIcgHmWc4l+r1Z+eFu3W y/RA== 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 b8si766588ple.370.2019.05.23.12.53.07; Thu, 23 May 2019 12:53:22 -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 S2388404AbfEWTwG (ORCPT + 99 others); Thu, 23 May 2019 15:52:06 -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 Content-Transfer-Encoding: 8bit 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 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