Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp5125882ybb; Tue, 24 Mar 2020 11:21:48 -0700 (PDT) X-Google-Smtp-Source: ADFU+vsJUpGuBUUba0cWqz5262fSvV4PurXkds27vK5ekEZWhu5Qw4u/3h/SbOUfcUsTqesbrPW1 X-Received: by 2002:a9d:548:: with SMTP id 66mr6050640otw.227.1585074108656; Tue, 24 Mar 2020 11:21:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585074108; cv=none; d=google.com; s=arc-20160816; b=g1YloflDV5Vl4jnxgN/bxbzLrIkULVLLyBiq1H1LwWKM+4u+JumH86qAk7SGqgzyJq rK5ee7A+4CJvPowMBnVqyN5GINtzh8fpgiEd+c4m/WijT/TwmQ/2rcOZGytGKkXm7QjJ uVXDBc6E7VitzLEDij6rMPJ4xc/McWQxp15BzW6b+5YHNMu64nDSFmSG9/csLJxwNRyD 1zBCP1/YrlOj6LDGOge19/AmbWlz1knktHimgx6hUmpq6umBaLj9reMeuFpqiSStZW5f l+/ShcmAd1Dcar1laQb9OTbfycu5oZFL1TorvxyO888QxylBo+dQG9J6XJcA5PxEJO+v j3JQ== 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=J3mZ3nmzF0wHtBE0U1+YbpsX0WsYfOsuVjuEIKOh1Sk=; b=CO27oXhOCUP8b1TF/Xa4Fkc5/HqzkBWnl+OEqrcLmWZDWocEW6TnZihKzd3CcrHWBg qkMAZnvRlUjx8M8h2vS0eB9+z1bdhWPW3wUnlE1JJ9BxOpUJBSyeO1Jbr+6NHF97CUdH K+MhVl00Zmq6dZ6iZBVV3ua6FPXEjIV0DgcxU/YI1qdODoVLrQMPj6Tu632RDnLW+kcp +jxGIhGx6enXZNl9BIf5n/bIvRl/KXzEDw2uygRkTIP978DYmbwSwuWHWzLZiLcsOGnl 8iWnDJEJVcUAgV4DErCaaQWhfLymQlyDvR6WFKiVK8h714TrkFCu2KBTkpI99eGLjmhr HqGw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="RPz3pC5/"; 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 w83si8917092oie.244.2020.03.24.11.21.31; Tue, 24 Mar 2020 11:21:48 -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="RPz3pC5/"; 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 S1727937AbgCXSU3 (ORCPT + 99 others); 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