From patchwork Fri Oct 18 12:25:02 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 176819 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp789100ill; Fri, 18 Oct 2019 05:27:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqziwgRpYrq8TcaxhmxUYM89/cFYrLbWTktDbRpsHDMUtvAaxBl10ImLIV96eHUR3WUWIgX1 X-Received: by 2002:a50:cd17:: with SMTP id z23mr9441901edi.250.1571401635716; Fri, 18 Oct 2019 05:27:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571401635; cv=none; d=google.com; s=arc-20160816; b=jlxuxyaV3XzCt/CeKV0g5lfEktzPjuRt05DiZb4tMg1cS30xrXx8lBQRuRjAjx6QKF YIS9G0uD36deenMAXUy29fXA4S2oGn6mQIepCfnTC5rlRVEtcw9DveMgtwwrMDA42lNw HK/LYuMdRwGOxvZikpsI8WtTvllPsDJeJfFmKsSd6kNLPwsLAGsRZaJIvUseBzjkqnr7 YjfotDatUD9HzHMLo300uJoHGwSO2yCJNbn09chJWgl2sqLODsyqBLld9BI8Z0muezGU msffnR0iirhxHvWG4Z+RLIc1SEvzvkTgL385WiSyfoRzDbn5dTlUUbCpSAPxXmRgUVpN 4C+g== 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=WYbItaF+PhoT25Xi4tBJupjh3c8kvM30RcC17GuTSik=; b=oZA5Wzb1T3Z9HckIJ2kY4cGps2iLMVmoduC1WdF9ARdej2fPVtlfub6IfBTApem7Eq y3GrmsDJJ1iojMK0aw10wqb9yCj9iojMW78A5IiObrLfe2kK3iJ5GBvG8VYa/ws+00E9 Blio42CPp5TxRVQ33U7G1vaf0yxR2J7wNjGPxvEzqorCzlR12eW7mHa60r6TOv49EdYD vShWWIEp8dQJ2eYMk17CHjQ3yvQcLmwDE3PvD71u/HvW+dLboiQ+N6QLZshfeqoSYXVv lbzF3m0S4Cv9mbFRyNmy3Jms09AXoKYm3brMFNYT9qfrI0swMAy4757BBfZ/D4NvXcur rlPw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=f+ks6zQg; 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 v27si3173275ejb.182.2019.10.18.05.27.15; Fri, 18 Oct 2019 05:27:15 -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=f+ks6zQg; 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 S2633892AbfJRM1N (ORCPT + 26 others); Fri, 18 Oct 2019 08:27:13 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:48392 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2392707AbfJRMZ7 (ORCPT ); Fri, 18 Oct 2019 08:25:59 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id x9ICPti9066211; Fri, 18 Oct 2019 07:25:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1571401555; bh=WYbItaF+PhoT25Xi4tBJupjh3c8kvM30RcC17GuTSik=; h=From:To:CC:Subject:Date; b=f+ks6zQgX+efJr2uq/08DLlF1zblCnTii1x2O8L4NmLr3q5pbTAJoFbLjdfLKmdph 5M4yr9gs1bzN10i9tPSuyf7jwAWLF4JgsUNAKJhcOtLvMc3HMxPmeIvmYJilqDiK+a OW3lhrQi3kGvbYgvyuiCDUFiYtZ7e0bbU3H6zS/U= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x9ICPtYF053618 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Oct 2019 07:25:55 -0500 Received: from DLEE113.ent.ti.com (157.170.170.24) 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.1713.5; Fri, 18 Oct 2019 07:25:46 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) 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.1713.5 via Frontend Transport; Fri, 18 Oct 2019 07:25:46 -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 x9ICPshL073298; Fri, 18 Oct 2019 07:25:54 -0500 From: Dan Murphy To: , CC: , , Dan Murphy Subject: [PATCH v14 00/19] MultiColor Framework v14 Date: Fri, 18 Oct 2019 07:25:02 -0500 Message-ID: <20191018122521.6757-1-dmurphy@ti.com> X-Mailer: git-send-email 2.22.0.214.g8dca754b1e MIME-Version: 1.0 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 Changes made from v13: https://lore.kernel.org/patchwork/project/lkml/list/?series=414566 Added 1 patch for removing extern from lp55xx-common header MC Class: Updated documentation to include statement on keeping max_intensity consistent across all clustered LEDs. LP55xx: Renamed color_component to color_components ifdef out multicolor class code when CONFIG_MULTI_COLOR is not selected Removed devm_*_unregister code from LP55xx/21/23 and LP8501 n900: Fixed commit message 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 | 96 +++ 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 | 29 +- drivers/leds/leds-lp5523.c | 48 +- drivers/leds/leds-lp55xx-common.c | 220 +++-- drivers/leds/leds-lp55xx-common.h | 35 +- drivers/leds/leds-lp8501.c | 9 +- include/dt-bindings/leds/common.h | 3 +- include/linux/led-class-multicolor.h | 97 +++ include/linux/platform_data/leds-lp55xx.h | 7 + 22 files changed, 2008 insertions(+), 142 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