Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1025635ybz; Wed, 29 Apr 2020 13:38:53 -0700 (PDT) X-Google-Smtp-Source: APiQypLfV70wFNjFi7ON5h6LNC7TVSM7rRkRggJ8/UsmdHKnKVifPaTgJL5KcZ6/ZxIwbP93HRiw X-Received: by 2002:aa7:c983:: with SMTP id c3mr4339980edt.343.1588192733520; Wed, 29 Apr 2020 13:38:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588192733; cv=none; d=google.com; s=arc-20160816; b=AMeebPOAFxATm+sawRxvu1sK0HdCAM8RYqxHjuU6THiZ47lE69XDC+4SinZr2yu8Vl 4Qx2PpIQkl/2p+S/8auSfW+iJvuL+JRmyIkakj0df0Po5iwLDTu0D+sGGr5TIHAT3iov mIICM0N8zzAf441FPfIgFjcKB/WDXz/AyB7C6SDT6DcY1vX37u22zOLWgH+qQHrUUPt3 WC4+/MgYXyKBdWZmpH0Nc0nNZx6++S7Zue40c/bvITYmHjAiYP5GxfPogQI8h6nOv/WX Se71Ur7EJP7Y1VFh4AkF6SIIrDX8XMqP4JTNi+psXoH3k+KTaw5uLVnRnNQqiflUDm+x C+lg== 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=6n+4d/+0YDxslFrMhjg9UzNZ0Ew6YLvVvMxgo6mg1u0=; b=V4eDoeivC+fPPh6KVOVO20OrLyMe785+gFJT9W8O/pLITydqOT7X+lFfTM7pLy7OpD 03Ippecy3FIPKpjgsHPGAl7dA0flWI+c3Bfx4SV9Xm568hn8aqN1+zLCK2JDRrPRIv4E R8Q4r7Q0zoUkV9yDvxfQv5cJmBXW4HB3dB3eBYVDwZMasXCUjxZAqTqL6RViv0BRx8sh GjO8vHNtRrrV0Uc7fcH0qjW4cHsQsIzlNx9BC61111hN9wGY/7EylRKvxdEMh2dtMoz7 MbeFrSMrxZEw1yVdROJxRicV5Ivf1PpMb7xCdeFYsy9fEpkg2nKUtI3dbE0v95hcPIPT Ho4w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=xdi9NQ44; 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 c7si4596578ejx.28.2020.04.29.13.38.30; Wed, 29 Apr 2020 13:38:53 -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=xdi9NQ44; 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 S1727073AbgD2UhA (ORCPT + 99 others); Wed, 29 Apr 2020 16:37:00 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:54878 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726481AbgD2Ug7 (ORCPT ); Wed, 29 Apr 2020 16:36:59 -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 03TKas8T118266; Wed, 29 Apr 2020 15:36:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1588192614; bh=6n+4d/+0YDxslFrMhjg9UzNZ0Ew6YLvVvMxgo6mg1u0=; h=From:To:CC:Subject:Date; b=xdi9NQ44jhtI9ASD0Ziq1jlDFRPQGcdYNYfABlUFkQg5OigiyGoGACm+eCPTBeDsq nhV9dS3TnSkFelSq5d3vXdbgexHAUtHFCzX3unp6aCV0mkOKIcFNnMhAJrKqt/wvLG QB9egA9NAvdruADRCvsDCMJwMEyxDkv9YyAehtvE= 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 03TKasZf003581 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 29 Apr 2020 15:36:54 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) 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; Wed, 29 Apr 2020 15:36:54 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE101.ent.ti.com (157.170.170.31) 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; Wed, 29 Apr 2020 15:36:54 -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 03TKarer081378; Wed, 29 Apr 2020 15:36:53 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v23 00/16] Multicolor Framework v23 Date: Wed, 29 Apr 2020 15:28:00 -0500 Message-ID: <20200429202816.26501-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 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 Dan Dan Murphy (16): dt: bindings: Add multicolor class dt bindings documention 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 | 34 + .../bindings/leds/leds-class-multicolor.yaml | 70 ++ .../devicetree/bindings/leds/leds-lp50xx.yaml | 179 ++++ .../devicetree/bindings/leds/leds-lp55xx.txt | 163 +++- Documentation/leds/index.rst | 1 + Documentation/leds/leds-class-multicolor.rst | 86 ++ MAINTAINERS | 8 + 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 | 210 +++++ drivers/leds/led-core.c | 1 + drivers/leds/leds-lp50xx.c | 777 ++++++++++++++++++ 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 | 16 +- 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 + 24 files changed, 1970 insertions(+), 159 deletions(-) create mode 100644 Documentation/ABI/testing/sysfs-class-led-multicolor create mode 100644 Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml create mode 100644 Documentation/devicetree/bindings/leds/leds-lp50xx.yaml 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