From patchwork Mon Jun 8 19:39:02 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 187606 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp5140270ilo; Mon, 8 Jun 2020 12:39:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzOaStByH7XZ8uetG9mYhzZOHWG3cK/FYuiWt1jAOW0sPjQymuUi/evpfs0Zf31ub9ZWIKV X-Received: by 2002:a50:8307:: with SMTP id 7mr23953453edh.283.1591645172646; Mon, 08 Jun 2020 12:39:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591645172; cv=none; d=google.com; s=arc-20160816; b=FlJ13x9Hu8JzraX6bdZ8zNVAPlSv57XGzD5CQ86bV0418uprEhursbqZoKhrbYblp8 ul7Zo5ys0ulplE63tj9k5YW2QE3KRk7iCouawBTfe3Hve8Z8kOdQTCZSQOu5bSOqLvFt P/BjGA0LCm842fNorFn5Uw2I1oGitlr324+QN3YEzvVD8ykWh7kM4RqL9J+wN8I5nIGC VxNLNWBNsSV+Tu8gf0KX9CkWUfBeryC2rOvJiiThgqqDmdp1Fk/Ae7ImC0Liz4sPnGNV Im22U5zpjPirJl94tZcPQTofc/qjwl5u/i3BPVSPN/SBi8zvSj7310cmJYIQLQKD8Pw9 J35g== 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=p3el6r3iFT6tyZHvcT3VOEaphwFqZKjosskfvLkSjGk=; b=lXulMqnfo9fMm1g4Q3OFeXf1JOmxH/aX3ivmgeqSFwrGN2qELvLoqCHGVDgZ3HK6kO 8pTiRuIzfDZTDDEsFMGWkg1TEostOmAYNI225M82f9f/sJLe5SDwVesvMXcbt1zDw2ek T6msy0FkHDrOyGg2bs690iFdbx0+e5GQq83LtsOFMQSoZJ76PABm7/6A0H1bico+238C Kfl43CF3CmLYA95z2eMAhKL4DGmsfoIxMYbiwJqpyzGFxHub0CmXWMK3coqojuny309D JdTs4cr6aDJNWnKn+a6Lu04Q7Rx+q38JO4ELuhUEjQ2NgCpdG25s1Di8jt6DPQY+ccTn nV6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=vEdlapUc; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 z23si8937197ejw.331.2020.06.08.12.39.32; Mon, 08 Jun 2020 12:39:32 -0700 (PDT) Received-SPF: pass (google.com: domain of devicetree-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=vEdlapUc; spf=pass (google.com: domain of devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S1726409AbgFHTjc (ORCPT + 6 others); Mon, 8 Jun 2020 15:39:32 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:52688 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726406AbgFHTjb (ORCPT ); Mon, 8 Jun 2020 15:39:31 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 058JdOuJ007940; Mon, 8 Jun 2020 14:39:24 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1591645164; bh=p3el6r3iFT6tyZHvcT3VOEaphwFqZKjosskfvLkSjGk=; h=From:To:CC:Subject:Date; b=vEdlapUcZ/2jZ8g4lNgHQ5neWHy2f5C7YvL4i0o2stJLQcNd4EbHCHY8zrSDV3icb mx363Y8nQwi0GgCtLDn8harxtX8o+W0IZscx8lALnmjwTxokRidCOTfdT0xTjtNk62 eN34AxThRFxkZXqugNaqLgUlDCqbZpLNnAbaAPhY= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 058JdOkj002245 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 8 Jun 2020 14:39:24 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE114.ent.ti.com (10.64.6.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 8 Jun 2020 14:39:24 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE102.ent.ti.com (10.64.6.23) 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; Mon, 8 Jun 2020 14:39:24 -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 058JdOZ1061651; Mon, 8 Jun 2020 14:39:24 -0500 From: Dan Murphy To: , CC: , , , Dan Murphy Subject: [PATCH v27 00/15] Multicolor Framework v27 Date: Mon, 8 Jun 2020 14:39:02 -0500 Message-ID: <20200608193917.13084-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: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@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 (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 | 218 +++++ 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 | 210 +++++ 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