Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3560798ybg; Mon, 28 Oct 2019 15:00:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwPZTZKUri1R3gQjqxx6MsvxEODxGElxCkFP6FW+FIq7P/8Woj5ju7QtIqLvi+lRIx9heNT X-Received: by 2002:a17:906:3053:: with SMTP id d19mr64763ejd.109.1572300035873; Mon, 28 Oct 2019 15:00:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572300035; cv=none; d=google.com; s=arc-20160816; b=yi3J84UKpXLujTcyg7SKZeeA0PyKax1gjrQQNblqJoybK+S6o3W5alUR9P+AE7moyN +ScXVBnSp5JoaVSM1e8etAbue5vrfwVQCvUpmrifO33po2WLa047E6YqE879PQAuf7JO /90DfaagAiuBplTz3TvSqhXvkIr38r4HXU1s+Hy2iIThfIkpYezrB+IUI7HRJoKaQ3Q5 687PDPGD7VSgr4QPkv6yfCC3HkDNTAR62hSY+YZFg5g++ICakXMl3ewmbVHrSnSu7GV4 ZZFPrDeWhQEyqdpanlXa7jjfhAkolEAhX6oN7Sr7pKY7um+gh/iUeUMD2FONxl32cWko uwyw== 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=PfamenJM3deYwpZXFakRAh5uzTF6DAO1HF1Fe5NgHbQ=; b=VzlmSHBNeZomR/hpMhp32bBkBGc22bqew+ACe0soDjyx5/osXgvfnmLKjVkSGwM58R Gc1L79A+QtBa59QMOIkEvlvVQPUNcCVhSgMb0VuiBSVxgk2lEZD31Lz0LCeq1jaUsC4M hL3twKNbkrfQ8qL4EZheAA4+yns34jX7b1wWBSAJQjU+Apm0GIbWvrA2m2NZYLPcR/dn CpZQK43wJwdQOtuutjoVxzXRZBdAdP+vZzhH8laHcI1rteHPL0b+IbXKthw+yOr89DVZ PPyAFKeJDXAWcX+QqIfERz78aNXev3NtZHuLOcYl8jy+k2rQg2WG4OJW/oKTXJ1+qa72 C/Fg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=J6F8dzl0; 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 c25si7020685ejm.241.2019.10.28.15.00.12; Mon, 28 Oct 2019 15:00:35 -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=J6F8dzl0; 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 S1726511AbfJ1ShZ (ORCPT + 99 others); Mon, 28 Oct 2019 14:37:25 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:38300 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725845AbfJ1ShZ (ORCPT ); Mon, 28 Oct 2019 14:37:25 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9SIbJK5049577; Mon, 28 Oct 2019 13:37:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1572287839; bh=PfamenJM3deYwpZXFakRAh5uzTF6DAO1HF1Fe5NgHbQ=; h=From:To:CC:Subject:Date; b=J6F8dzl0jhnnXmKrR6CqGDHFPGbxki3LllNAus09rhslvqsQ4EU+MtHa+XeV+41v2 EJs1DxdJA759aotjtP/1dD39KpqfgQGo0AwpB9JkzM4Qsi9QXa80rsPuvS8+FD7cyd IXt4gyuhvRevFXotvdn4vzn8zbW+bmw7o1P6GAAY= Received: from DFLE114.ent.ti.com (dfle114.ent.ti.com [10.64.6.35]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTP id x9SIbJbo095350; Mon, 28 Oct 2019 13:37:19 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) 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.1713.5; Mon, 28 Oct 2019 13:37:07 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5 via Frontend Transport; Mon, 28 Oct 2019 13:37:07 -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 x9SIbJGa054891; Mon, 28 Oct 2019 13:37:19 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v15 00/19] Multicolor Framework Date: Mon, 28 Oct 2019 13:36:10 -0500 Message-ID: <20191028183629.11779-1-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e 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 I am hoping that this is a final version to get pulled. From there we can patch fixes on top of this code. Changes from v14 MC Framework: Fixed mc_calc_components from color_component->color_components Added back in inline devm functions for when MULTI_COLOR_FRAMEWORK flag is not set. LP55xx Update multi color and single LED DT parsing (From Jacek) Children devices (LP5521/23/62 & LP8501) Update the probe routines for each child device to pass in the chip->cfg so that the LP55xx common code can access the max_channel config data. Dan Dan Murphy (19): 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 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 leds: lp55xx-common: Remove extern from lp55xx-common header .../ABI/testing/sysfs-class-led-multicolor | 36 + .../bindings/leds/leds-class-multicolor.txt | 98 +++ .../devicetree/bindings/leds/leds-lp50xx.txt | 148 ++++ .../devicetree/bindings/leds/leds-lp55xx.txt | 163 +++- Documentation/leds/index.rst | 1 + Documentation/leds/leds-class-multicolor.rst | 100 +++ 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 | 271 ++++++ drivers/leds/led-core.c | 1 + drivers/leds/leds-lp50xx.c | 799 ++++++++++++++++++ drivers/leds/leds-lp5521.c | 43 +- drivers/leds/leds-lp5523.c | 62 +- drivers/leds/leds-lp5562.c | 22 +- drivers/leds/leds-lp55xx-common.c | 235 ++++-- drivers/leds/leds-lp55xx-common.h | 36 +- drivers/leds/leds-lp8501.c | 23 +- include/dt-bindings/leds/common.h | 3 +- include/linux/led-class-multicolor.h | 139 +++ include/linux/platform_data/leds-lp55xx.h | 8 + 23 files changed, 2105 insertions(+), 172 deletions(-) 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/devicetree/bindings/leds/leds-lp50xx.txt 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.22.0.214.g8dca754b1e