From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF1F2C2BAEE for ; Tue, 24 Mar 2020 18:20:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id BF6DD20714 for ; Tue, 24 Mar 2020 18:20:30 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="RPz3pC5/" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727954AbgCXSU3 (ORCPT ); Tue, 24 Mar 2020 14:20:29 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:37716 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727834AbgCXSU3 (ORCPT ); Tue, 24 Mar 2020 14:20:29 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 02OIKOEm076038; Tue, 24 Mar 2020 13:20:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1585074024; bh=J3mZ3nmzF0wHtBE0U1+YbpsX0WsYfOsuVjuEIKOh1Sk=; h=From:To:CC:Subject:Date; b=RPz3pC5/4VDZvh7wc9lDH2YkNVbi2H/P0Kkll4kLJDYYRGyimjc2We0tPzyFGSHhm pLf9a2YgeaJpLrzchk6TDAeMVm3ReDTkQltuvFEAN0jUPEcuLczQMUyWJnPkPJ/gxw vsZJEKLMNkBShWBllg0xKrOwZrRG48GJ8YTAyX6A= Received: from DFLE109.ent.ti.com (dfle109.ent.ti.com [10.64.6.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 02OIKO6u112968 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 24 Mar 2020 13:20:24 -0500 Received: from DFLE109.ent.ti.com (10.64.6.30) by DFLE109.ent.ti.com (10.64.6.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1847.3; Tue, 24 Mar 2020 13:20:23 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE109.ent.ti.com (10.64.6.30) 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; Tue, 24 Mar 2020 13:20:23 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 02OIKNww037641; Tue, 24 Mar 2020 13:20:23 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v18 0/4] Multi Color LED Framework Patches Date: Tue, 24 Mar 2020 13:14:30 -0500 Message-ID: <20200324181434.24721-1-dmurphy@ti.com> X-Mailer: git-send-email 2.25.1 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 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 (4): 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 .../ABI/testing/sysfs-class-led-multicolor | 51 ++++ .../bindings/leds/leds-class-multicolor.txt | 98 ++++++++ Documentation/leds/index.rst | 1 + Documentation/leds/leds-class-multicolor.rst | 110 +++++++++ drivers/leds/Kconfig | 10 + drivers/leds/Makefile | 1 + drivers/leds/led-class-multicolor.c | 224 ++++++++++++++++++ drivers/leds/led-core.c | 1 + include/dt-bindings/leds/common.h | 3 +- include/linux/led-class-multicolor.h | 124 ++++++++++ 10 files changed, 622 insertions(+), 1 deletion(-) 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/leds/leds-class-multicolor.rst create mode 100644 drivers/leds/led-class-multicolor.c create mode 100644 include/linux/led-class-multicolor.h -- 2.25.1