From patchwork Mon Apr 1 17:33:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 161560 Delivered-To: patch@linaro.org Received: by 2002:a02:c6d8:0:0:0:0:0 with SMTP id r24csp738526jan; Mon, 1 Apr 2019 10:34:17 -0700 (PDT) X-Google-Smtp-Source: APXvYqyi5O/UTThraMYZva+G9mdUvL5S5VRlzA01DYkC6KD0ad/kIK6q44IXAZ/BMP7p2KJbe0Z6 X-Received: by 2002:a63:1654:: with SMTP id 20mr16131029pgw.166.1554140057010; Mon, 01 Apr 2019 10:34:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554140057; cv=none; d=google.com; s=arc-20160816; b=ZI0p2ByUH+KlJpUJedZfk3u33jMEX/BKkQ7HgPEu3a2HXgL++H5ScKg99pL09uOD8C 6a9y0KbV7ZWz6vTx9gvwLz/Sm7nyk9ARod4f3V/bJh05LSCZWkcerw7w0/BuZdRpWrMW hYty6ND+tX0bCcVF45RV82PnfO/uIwnQkUOcK6QxXRbGkzeg/flr5KUm/nlahoNnmOpF qfAeB+OTbBcnjLJWjLIUNZY6vU5ybuXcxzHCtVUKyB6d4srlvmhpaP5FbN7Uj0EAWvCT Zm3WfQq2tBsTHR9X7qe5aiZuQ6Sx8InYbW862WP1L2BFx+3Udyr27CO/zUF6/5JbUIaE s0CQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature; bh=nVTzF3ZsJhZcdBwTpUvvEXweKXa6yyasZxp5U0uP2RU=; b=fr1zEhkgz3ZvE9TSymxbiI7AifLuguyammRvXNwArIoOpRUE1OBPEXcBUTD1z3n6wA Wv38VfiBFOMhX/wN0PZ53Q/rnwwCoXl075QoNSe0mMdB/ecXcKfRkE+Rnzlqb91RmDLJ 26dbfF3CKA3zblOBQEn8vSh9M/uHHQ5MxWzajKkM2bJK581QtlyFaIJUdiMlSZb7Ew4E kz0RmmAkZW708OIQIojn2iOm80WaGjMdZaltJ6sWa0J4M2TCtGrmmY86024bTh1Bl9Xl heq+eTAQpCQ+QbvntUSjbZA4xTEEsaSiUMlplvmLFZqohlf1l2cz4zr4sINj/PhBc4la Ok8Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=HnUvzP4G; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id r3si2727800pgp.45.2019.04.01.10.34.16; Mon, 01 Apr 2019 10:34:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-leds-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=HnUvzP4G; spf=pass (google.com: best guess record for domain of linux-leds-owner@vger.kernel.org designates 209.132.180.67 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 S2387734AbfDAReQ (ORCPT + 1 other); Mon, 1 Apr 2019 13:34:16 -0400 Received: from lelv0143.ext.ti.com ([198.47.23.248]:33132 "EHLO lelv0143.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387563AbfDAReP (ORCPT ); Mon, 1 Apr 2019 13:34:15 -0400 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id x31HY3iU012072; Mon, 1 Apr 2019 12:34:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1554140043; bh=nVTzF3ZsJhZcdBwTpUvvEXweKXa6yyasZxp5U0uP2RU=; h=From:To:CC:Subject:Date; b=HnUvzP4GEZl/4tLY/X0h+eWFLougT726H9YOsfvQJEa6GWgL6gXTCHcDArhCDExjp A2DkBAtwOm1c5x7BHL5+y7dUycbpGFQBUZkUuWolSdxBND0XHwGl+jA1hka0fFZANQ V1zjjO2yfGBWkDhyTp2tpDQpHTKT1/BoQtU5FUZk= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id x31HY3EQ071780 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 1 Apr 2019 12:34:03 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1713.5; Mon, 1 Apr 2019 12:34:03 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE101.ent.ti.com (157.170.170.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, 1 Apr 2019 12:34:03 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id x31HY3lK015158; Mon, 1 Apr 2019 12:34:03 -0500 From: Dan Murphy To: , , CC: , , , Dan Murphy Subject: [RFC PATCH 0/5] MultiColor LED framework Documentation Date: Mon, 1 Apr 2019 12:33:55 -0500 Message-ID: <20190401173400.14238-1-dmurphy@ti.com> X-Mailer: git-send-email 2.12.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 I am RFCing these patches to start this Multicolor framework as it appears we have a few devices that need to leverage a framework like this. I have attempted to create as much documentation as possible and have no issue in combining documents into a single document but I think this patchset is logical. I have also added the dt-bindings patch that include the COLOR_ID and COLOR_NAME and documented the existing patch on the mail list. I have added this only for demonstration purposes. Finally the code itself is a work in progress that at the very least will create a colors directory as well as the associated colors. The code works in principle but I need to scrub it for issues. The framework code also does not contain the available brightness support as this seems to be a sticky point. Dan Dan Murphy (5): leds: multicolor: Add sysfs interface definition dt: bindings: Add multicolor class dt bindings documention documention: leds: Add multicolor class documentation dt-bindings: leds: Add LED_COLOR_ID and COLOR_NAME definitions leds: multicolor: Introduce a multicolor class definition .../ABI/testing/sysfs-class-led-multicolor | 91 ++++ .../bindings/leds/leds-class-multicolor.txt | 140 ++++++ Documentation/leds/leds-class-multicolor.txt | 99 +++++ drivers/leds/Kconfig | 10 + drivers/leds/Makefile | 1 + drivers/leds/led-class-multicolor.c | 411 ++++++++++++++++++ include/dt-bindings/leds/common.h | 19 + include/linux/led-class-multicolor.h | 69 +++ 8 files changed, 840 insertions(+) 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/leds/leds-class-multicolor.txt create mode 100644 drivers/leds/led-class-multicolor.c create mode 100644 include/linux/led-class-multicolor.h -- 2.19.0