From patchwork Wed Jun 17 15:09:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 190865 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp538062ilo; Wed, 17 Jun 2020 08:09:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPYNY6PkigUXQ6suu/Gq5JGWySNEGcAFmDNSa2W8f/gO4cfQsdH+TSMHP3iEnsygXK6DfJ X-Received: by 2002:a17:906:b293:: with SMTP id q19mr8290055ejz.412.1592406581519; Wed, 17 Jun 2020 08:09:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592406581; cv=none; d=google.com; s=arc-20160816; b=XOgQgIkqwENWxyaNNIpPIHdLsO+B1D94jX71YfgCpi0GsnEvbRaXJIZPnmaV0Za6kC erBfeWLrufVnBUPyi2ouTcF7UjxYKQW7hrK0tYRnQzatebwo3PJsxHsMuNmRXoXs7wOI v+0N3AozeTTZIwsdHsp7HU8TFt0if5grrSOaKnABWtOI55EgQsexZ+GlWMrK4mI4tYJF bTjr8Bjg+2I+lzQTJPal1V1kljUKMVyi8133pz62ZEeo3pipjJsIdxhZGlOOYorF7gA/ Tt2I3BHCZRUKaDK1YDp+76ixY5nK/aYOgU8l1sUV8VOoyYbUwbDrQwamje2U2Na5jUpR ksHw== 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=O9T9JY2iqiPYluK+I3tef3TRjBhdtQRGfsyZ7iAU/uk=; b=HUnerrYKZvRRix/1BpWXlHEEBcNK7oNnEGuUgHmevDfGM1rShTIBzpU5YkHB8z5roO zXuzz8BaJsmaADheIiX2s8Um/lNSjDZEqbz76xRTbi5Z/xuU2b/FNoYKJkkhzNHxhABz DoSFKV2Saz+swLmNcU1PV4PVAW7Di3unytjSPWBzzUkPIq0FF+L6Sl/AFbY6rBe464Ch y72U4Bu2Zh+bxBEoVI0xr0yofjQScn+Qu+D1DVvrV3viyEoDhAHO6/+G0GPMxlfUDz+0 Z3Ep3whjGOLhRYPgbRXj+41vNnlamj/fT0RI3RZLA1Ay07sxJ6+TUXLVrijaTQFZKuTo bcQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=naB1zYGP; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-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 n16si168780edo.74.2020.06.17.08.09.41; Wed, 17 Jun 2020 08:09:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-leds-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=naB1zYGP; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-leds-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 S1726931AbgFQPJj (ORCPT + 1 other); Wed, 17 Jun 2020 11:09:39 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:40460 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726867AbgFQPJh (ORCPT ); Wed, 17 Jun 2020 11:09:37 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 05HF9VTx004962; Wed, 17 Jun 2020 10:09:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1592406571; bh=O9T9JY2iqiPYluK+I3tef3TRjBhdtQRGfsyZ7iAU/uk=; h=From:To:CC:Subject:Date; b=naB1zYGPEgISptmpKUbEfDoJNZAS19I+/webBY8F59OfUlIdlgeb2Lj1+JKFxmI8r Ip3NM/c1Qvy4j3KgCvbPilHKX9PyL0yHobU9ZNHCR2MZk0aIj7O9hlTi1kR+zWxSO7 CYJbaBTW908zzPxhUJ8UugGxpgk/UFaIhJPDQb4g= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 05HF9VL7117945 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 17 Jun 2020 10:09:31 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) 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.1979.3; Wed, 17 Jun 2020 10:09:31 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE115.ent.ti.com (157.170.170.26) 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, 17 Jun 2020 10:09:31 -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 05HF9VLn106021; Wed, 17 Jun 2020 10:09:31 -0500 From: Dan Murphy To: , , CC: , , , Dan Murphy Subject: [PATCH v28 00/15] Multicolor Framework v28 Date: Wed, 17 Jun 2020 10:09:09 -0500 Message-ID: <20200617150924.12665-1-dmurphy@ti.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-leds-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-leds@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 Minor changes to the lp55xx yaml for min and max of led-cur Removed if check in the multicolor file in the for loop. Dan Dan Murphy (15): 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: leds: Convert leds-lp55xx to yaml 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 file permissions to use DEVICE_ATTR macros leds: lp5523: Fix various formatting issues in the code .../ABI/testing/sysfs-class-led-multicolor | 36 + .../bindings/leds/leds-class-multicolor.yaml | 37 + .../devicetree/bindings/leds/leds-lp50xx.yaml | 130 +++ .../devicetree/bindings/leds/leds-lp55xx.txt | 228 ----- .../devicetree/bindings/leds/leds-lp55xx.yaml | 220 +++++ Documentation/leds/index.rst | 1 + Documentation/leds/leds-class-multicolor.rst | 88 ++ 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 | 24 + drivers/leds/Makefile | 2 + drivers/leds/led-class-multicolor.c | 208 +++++ drivers/leds/led-core.c | 1 + drivers/leds/leds-lp50xx.c | 783 ++++++++++++++++++ drivers/leds/leds-lp5521.c | 43 +- drivers/leds/leds-lp5523.c | 62 +- drivers/leds/leds-lp5562.c | 22 +- drivers/leds/leds-lp55xx-common.c | 212 +++-- 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, 1978 insertions(+), 355 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 delete mode 100644 Documentation/devicetree/bindings/leds/leds-lp55xx.txt create mode 100644 Documentation/devicetree/bindings/leds/leds-lp55xx.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.26.2