Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1958512ybz; Thu, 23 Apr 2020 09:03:48 -0700 (PDT) X-Google-Smtp-Source: APiQypJu6M3xjfzYeh+aeE2aWrs0UmPnZUKH7bLaH8k1XCaESOmp4OqBBv+/YY9kmYfBIg8Ke0tb X-Received: by 2002:a17:906:5003:: with SMTP id s3mr3127024ejj.266.1587657828313; Thu, 23 Apr 2020 09:03:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587657828; cv=none; d=google.com; s=arc-20160816; b=GD9vuU0YNMLbhfNHPaauitaMfWjcU9znKbUTwkut94mZ8saRPEwfECCnjjxCZDBnD2 nhTLLUn1k2Ek44CrxntQgtF67YnZiWmGQrQPsc+sNQH8zgc+Dz0jii8D3DkxkDEmGC+g OfZBZWRwmghMxHMbLVhl+W1ajsjH+rrgMCVS3WHG2b6qM/qfL5wwaeIkP0t+kaA2YcZT r4/q2jyTur8mdZPDJ4nn/tbmpYDs35ezzE2QCBnhm/DGeFUUI2u+jhNPO9c3jH4nT21p 2+kXftkdbFVHAN4OPR2ZS6rJrrDaB5HUKrXeAnNj0yWRknpYXZtlknjlrt02Gqg5mPeP zN1g== 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=3EMZJugifEJV7++cTG3bh5SqWq/CwODT2ggcLh7vMbg=; b=o5aMLaiFonmi6WsoRoCmzrghWNZcd0QIDS7cOjebQFNcIbnWBl3X5sRYd315awq8Yk 6nfaCfbe4xns4EKteO2PxPdnqWFxhIxbAattV1p7rOV7Bz0rEBd7hZvJlm6a25ruwLzM fl2DcQU9CcJOOk0XZJbh9gBzqAlmMbI8kab0+rX60sfcEc73jdLxuc6V+VASVG1/hq7L V59ZmPfS7AvfdjVOg71+Guqx4y2Kscwb6YrrWipz4j4ar9oO9pLpJ2UyF59lLlv332Wj 8Ozj+vP1htDfAj0P1ehlVgT3I9eVbX7axTwQ5eZUr/2r3biG+ry/StHaEaOMTPZPGGah 4Q1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RBHKEas8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id n1si1339804edo.354.2020.04.23.09.03.23; Thu, 23 Apr 2020 09:03:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RBHKEas8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1729423AbgDWQBa (ORCPT + 99 others); Thu, 23 Apr 2020 12:01:30 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:51108 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729176AbgDWQBa (ORCPT ); Thu, 23 Apr 2020 12:01:30 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 03NG1MuR027754; Thu, 23 Apr 2020 11:01:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1587657682; bh=3EMZJugifEJV7++cTG3bh5SqWq/CwODT2ggcLh7vMbg=; h=From:To:CC:Subject:Date; b=RBHKEas83f2sDRSSacALL3hBBmFIYMJPKYB7smqpEDa4g9/OawPgE9cT0ogaEHkz2 h01FZEghM6Fe3AiPLUML8vcTsQG5NRSad/iXgm8EaZ/cGt745hMS5W9x4TsODxoTSK tQViiJPvwGdCJlI6ce1Nbb5woXrrZX6u2eXrxtFI= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 03NG1Mq6059382 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 23 Apr 2020 11:01:22 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Thu, 23 Apr 2020 11:01:22 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Thu, 23 Apr 2020 11:01:22 -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 03NG1MS8025980; Thu, 23 Apr 2020 11:01:22 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v20 00/17] Multicolor Framework (array edition) Date: Thu, 23 Apr 2020 10:55:07 -0500 Message-ID: <20200423155524.13971-1-dmurphy@ti.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit 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 is the multi color LED framework. This framework presents clustered colored LEDs into an array and allows the user space to adjust the brightness of the cluster using a single file write. The individual colored LEDs intensities are controlled via a single file that is an array of LEDs A design alternative to having files that have multiple values written to a single file is here: https://lore.kernel.org/patchwork/patch/1186194/* Dan Murphy (17): dt: bindings: Add multicolor class dt bindings documention 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 dt: bindings: lp55xx: Be consistent in the document with LED acronym dt: bindings: lp55xx: Update binding for Multicolor Framework ARM: dts: n900: Add reg property to the LP5523 channel node ARM: dts: imx6dl-yapp4: Add reg property to the lp5562 channel node ARM: dts: ste-href: Add reg property to the LP5521 channel nodes leds: lp55xx: Convert LED class registration to devm_* leds: lp55xx: Add multicolor framework support to lp55xx leds: lp5523: Update the lp5523 code to add multicolor brightness function leds: lp5521: Add multicolor framework multicolor brightness support leds: lp55xx: Fix checkpatch file permissions issues leds: lp5523: Fix checkpatch issues in the code dt: bindings: Update lp55xx binding to recommended LED naming .../ABI/testing/sysfs-class-led-multicolor | 42 + .../bindings/leds/leds-class-multicolor.txt | 98 +++ .../devicetree/bindings/leds/leds-lp50xx.txt | 148 ++++ .../devicetree/bindings/leds/leds-lp55xx.txt | 163 +++- Documentation/leds/index.rst | 1 + Documentation/leds/leds-class-multicolor.rst | 92 +++ arch/arm/boot/dts/imx6dl-yapp4-common.dtsi | 14 +- arch/arm/boot/dts/omap3-n900.dts | 29 +- arch/arm/boot/dts/ste-href.dtsi | 22 +- drivers/leds/Kconfig | 22 + drivers/leds/Makefile | 2 + drivers/leds/led-class-multicolor.c | 206 +++++ drivers/leds/led-core.c | 1 + drivers/leds/leds-lp50xx.c | 778 ++++++++++++++++++ drivers/leds/leds-lp5521.c | 43 +- drivers/leds/leds-lp5523.c | 62 +- drivers/leds/leds-lp5562.c | 22 +- drivers/leds/leds-lp55xx-common.c | 213 +++-- drivers/leds/leds-lp55xx-common.h | 13 +- drivers/leds/leds-lp8501.c | 23 +- include/dt-bindings/leds/common.h | 3 +- include/linux/led-class-multicolor.h | 121 +++ include/linux/platform_data/leds-lp55xx.h | 8 + 23 files changed, 1968 insertions(+), 158 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.rst 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.25.1