Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp2136921ybb; Thu, 2 Apr 2020 13:57:16 -0700 (PDT) X-Google-Smtp-Source: APiQypJr19LMJxREbz3Oy6W7MtkmZO17JPt5heVFe5GwwLx/CiEjiRcgGdaTZUTarDFt6PlPcwW+ X-Received: by 2002:aca:5d04:: with SMTP id r4mr720982oib.94.1585861036143; Thu, 02 Apr 2020 13:57:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585861036; cv=none; d=google.com; s=arc-20160816; b=R8uTrIngejF9kyJ045RIhoxGLFWAK4MWIyP20QlmekD0v6FglL/EAxu7YGuDXoO/sx wHac59BsWBuvzdp1HoTNp0IlVRouDBHH2i/fkYack5Sw4zcLSKTKjQkyA+y4Ev8PbHaj 9bWgdR+7Vvy8e5Cq1DY4xWWtSmSS/Lbyt+G1ttcIhl724nWGzmVFn7mNIW7Mqemr6aY6 VO1eUZZCkmb9LTOoPTMHxnC1Olf+yN8tdps9T0FQOZkjh0wm0wpFfMqJkiU8LuCaYYPU vVcPDxqkEBOnYKpA58eLRaKuILe8gG1mQ4DJCwDL3+hF3M+wz9rU/YwjLb/FvYYEUgMl nseA== 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=i0zZWsX8Dx0G+gTcXcXXsM/jVSV5ZMUFyTOimYeZOdY=; b=WFoitPRKTC0NRWm97enxKuJU7nR3OCbFCx9UXFgBaf9PQRBFpfFDWGWzo3hiJbUcyg BlcNs5A9651c4RymLvyzdLaPhQf5FyOntlDxcFJfFP6K6RjEZVHCNMpA3W0ATZtyynQb KH9Vcsut7LudW9ylwf0jDG2zvJQA+zb+ZzxiRKok4rIRbDT7ayBe9qeel5G0R9OCe0io +D9pBXETMygqmX3CDaU1pGDVPbM4BB0sOjkCpPRzzKVNHMcBpRc10MT+BZMt3rpPYGI1 70n+LYfoOuopNGtJ932QOlrC/PfG1o8uHSPCnO/Pq0IDFE9rJl482KmGRr5gqkpkgXqV /beA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Et7I2mQG; 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 y5si2753196oiy.150.2020.04.02.13.57.03; Thu, 02 Apr 2020 13:57:16 -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=Et7I2mQG; 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 S2389171AbgDBUtJ (ORCPT + 99 others); Thu, 2 Apr 2020 16:49:09 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:37302 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732218AbgDBUtJ (ORCPT ); Thu, 2 Apr 2020 16:49:09 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 032Kn3W4073301; Thu, 2 Apr 2020 15:49:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1585860543; bh=i0zZWsX8Dx0G+gTcXcXXsM/jVSV5ZMUFyTOimYeZOdY=; h=From:To:CC:Subject:Date; b=Et7I2mQGyNJeI+KTFpykkXeOqctH5LShsWnFKS+EH5ELrE2RYQ6PzhDPgmklvP/Db nntj6D8IvUjHA68PM9HWHTvwtoEX2sbmnwuWoEfRaa/K2nbBzU/65Ycmdji5nBcJ3M 2Ez+t69Tza7sM74F3rfQDiSa0hGRDrlqG3iJK5aU= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 032Kn31O083684 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 2 Apr 2020 15:49:03 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Thu, 2 Apr 2020 15:49:03 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3 via Frontend Transport; Thu, 2 Apr 2020 15:49:03 -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 032Kn3VS113492; Thu, 2 Apr 2020 15:49:03 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v19 00/18] Multicolor Framework (array edition) Date: Thu, 2 Apr 2020 15:42:53 -0500 Message-ID: <20200402204311.14998-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 Dan Murphy (18): dt: bindings: Add multicolor class dt bindings documention 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 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 | 95 +++ 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 | 795 ++++++++++++++++++ drivers/leds/leds-lp5521.c | 43 +- drivers/leds/leds-lp5523.c | 62 +- drivers/leds/leds-lp5562.c | 22 +- drivers/leds/leds-lp55xx-common.c | 204 +++-- 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, 1979 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