From patchwork Thu Apr 11 19:38:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 162079 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp7821061jan; Thu, 11 Apr 2019 12:39:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzziw1rK3BnJ9zj3lTNhlco0csKJImbkgqopmiKKyIVB+9S1OuLiYJl48ldzgt5E2hhoebu X-Received: by 2002:a17:902:e01:: with SMTP id 1mr52832976plw.128.1555011595433; Thu, 11 Apr 2019 12:39:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555011595; cv=none; d=google.com; s=arc-20160816; b=F5lFTHSVDP5/zBgP4NWv26t/v78wj9j29ee/ETSrLCIulhCiVhcX9MBGNxE6LQeoIg bG6krQGKVHhWf4vP880QXYDoto3d78eJAJ5kX2GxgtKzS1My2eUUuqKDmXK1gOKiYOo9 bra77pwGv/juizJgDBZkFf78ARaRMXQY3m+c6xFe0U7nRnDyaetY13QGLqgU1YiLFxBP 4J7HSPMXCn5oXBMN2ra+27NgAvHfvTMV582GrDgOVy2aLmQLJ+T8pWMC9TrCot4gz5l/ JJdpxP7TwZiH5bM5BnJGS4mXGoaNexlo7LvWWnxYVw4SuhKQeT7GPHcABzXfWGkD6ABx EfNg== 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=5G6Ljq4Dr2dteCKjHGZ3Qf2Oc7FENGSX4rNStT8Zc+Q=; b=R9in1U9zIFWBJU9jsYwkElihRBmA81ckZa54E/oZM6K/ooS0PJG0Ij9aCz0BoK2efB q3TXfNOxL5/8QV894m1UFW390gUBnHQfVmC4ND7Fdgc5Mf3SgcjFcBNpsPVPcLY75rPI dsedUwMAl6837T7baFRF/FcV46MYp09EXiVsBxG9IQkk8yjdcQTTzBROnQBynfodtA8H fCVYEHh2N9yjVK9E/IdmuokREsqicJnDwVM2T7EA3tKu44Ohp/CWCe2xYSD721c6T1cv mDOVKN/z48oQOHw7OmhABGM9U5FXDp1huJNI06ze6ptRcfZAR2FAKUzyMMb8z7IjVbpx 2Atw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=j+fC+evh; 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 q7si35139486pls.259.2019.04.11.12.39.55; Thu, 11 Apr 2019 12:39:55 -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=j+fC+evh; 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 S1726998AbfDKTjx (ORCPT + 31 others); Thu, 11 Apr 2019 15:39:53 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:50454 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726636AbfDKTjL (ORCPT ); Thu, 11 Apr 2019 15:39:11 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id x3BJco8o097024; Thu, 11 Apr 2019 14:38:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1555011530; bh=5G6Ljq4Dr2dteCKjHGZ3Qf2Oc7FENGSX4rNStT8Zc+Q=; h=From:To:CC:Subject:Date; b=j+fC+evhSfWnrL7bkKa9xP0xJGPlM9A2OSD47dBqKotLkW1w4gwlr2kJ3EL9N9gEN COy9p0n71R7UKP4R6E3OkkCetuM8MvZJSc3h8+CwyNBPLgpUdnjyMERCVTdKwdmTp+ fHifg7XbINXnAnlgAJ1dSPB4OJ+TrlE5YCR3oJlk= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x3BJcnQW105850 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 11 Apr 2019 14:38:50 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Thu, 11 Apr 2019 14:38:49 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE105.ent.ti.com (10.64.6.26) 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; Thu, 11 Apr 2019 14:38:49 -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 x3BJcnhn082059; Thu, 11 Apr 2019 14:38:49 -0500 From: Dan Murphy To: , , , , CC: , , , Dan Murphy Subject: [PATCH v2 0/7] Multicolor Framework Date: Thu, 11 Apr 2019 14:38:41 -0500 Message-ID: <20190411193848.23140-1-dmurphy@ti.com> X-Mailer: git-send-email 2.21.0.5.gaeb582a983 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 I have updated the patchset for the multicolor framework and scrubed the base code. I have incoroporated the minor changes that were asked for. But I still have not added any code for the brightness models as this is still in discussion. I have also included the TI LP50xx driver that demonstrates how to use the Multicolor framework. Finally I have built this on top of Jacek's LED name composition patchset https://lore.kernel.org/patchwork/project/lkml/list/?series=388765 The MC FW will leverage the COLOR_ID and led_colors definitions provided there. And I have added a new COLOR_ID to support this framework because with multicolor having to declare a top level color for the directory just did not make sense So the directory would be appended with multicolor which would denote that this directory supports the MC FW multicolor:activity multicolor:standby multicolor:status Dan Dan Murphy (7): leds: multicolor: Add sysfs interface definition dt: bindings: Add multicolor class dt bindings documention documention: leds: Add multicolor class documentation dt-bindings: 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 .../ABI/testing/sysfs-class-led-multicolor | 91 +++ .../devicetree/bindings/leds/common.txt | 2 + .../bindings/leds/leds-class-multicolor.txt | 142 ++++ .../devicetree/bindings/leds/leds-lp50xx.txt | 142 ++++ Documentation/leds/leds-class-multicolor.txt | 99 +++ Documentation/leds/leds-lp50xx.txt | 36 + drivers/leds/Kconfig | 17 + drivers/leds/Makefile | 2 + drivers/leds/led-class-multicolor.c | 401 ++++++++++ drivers/leds/led-class.c | 1 + drivers/leds/leds-lp50xx.c | 716 ++++++++++++++++++ include/dt-bindings/leds/common.h | 3 +- include/linux/led-class-multicolor.h | 74 ++ 13 files changed, 1725 insertions(+), 1 deletion(-) 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.txt create mode 100644 Documentation/leds/leds-lp50xx.txt 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.21.0.5.gaeb582a983