From patchwork Mon Jul 13 15:45:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 235459 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp2951342ilg; Mon, 13 Jul 2020 08:46:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwhDTEGGm56BIYa4QSDIqAbVg85PWl7rEI9gz095ZsPIcHp8+Tdex2+zwhjqjr03LDo+k9+ X-Received: by 2002:a17:907:6fc:: with SMTP id yh28mr333868ejb.267.1594655180195; Mon, 13 Jul 2020 08:46:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594655180; cv=none; d=google.com; s=arc-20160816; b=X7LldRiP+0FyB1iLoNGgChHy/bTHRZ44rB9JZE1BcqcFJs7bGKGq3yZjt5G4ojLPH0 euS4oo9Xy8SkQz3lakiRW7bR944voEa8bUHxEqMq8puOlw9EI35ZTORjQxVHfLpfwIMh DEdgtoQl3UzugcPAx3JJk9co8/KlA1G/RKXldEt2mfyySCRccADaVNMldpyJr58Ujz2a xQJPCGpcyvVVxBdlFjPjoP7ICaQKGvPCjUGY1oRfAVPy49Msxv6A3C/Qzc1Ny6ztjV09 ywpuWGfiYvq66ZInqfclo0d2eomK4Xa32C6SAe3sLZiwrPD90eRwI9p9vzvJfr6waCGu VjAA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=guAebOmRuPZn0pCzc4snOkbfY7Zfn23fU9q10KQYjVc=; b=EBXcRA6bI1mZII+6evWQsIMev+mZdnRojAxhHnog6VbkapgAGaQFSVcSSOMuChAVa9 XPErbEl2EHKE/4A7j/f99GlebqWurUr9SikLwJaT42blefHplRQD1HSUSWtbwh2zDLkh PXJoTtbUqMFiA8N7WeAowKwHxboRcgIeckSrsN3dAJbMVeFN6xHCLkXBQaB8Rtld69g4 +Empt28BCQY9+LohCBDUNQA2ycB5J36ZMTmiXxZJQCqvzRf/za9GE6p4yrMPcUwlc1ek OKXJLE35wCY6RAg0nFBiryxCLwHgSOdc3+I4oSMTUyTVO64YRZVFgoFQuqhFP++7txtX doCA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="bKxou/eN"; 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 h16si9564420ejx.446.2020.07.13.08.46.20; Mon, 13 Jul 2020 08:46:20 -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="bKxou/eN"; 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 S1730218AbgGMPqS (ORCPT + 6 others); Mon, 13 Jul 2020 11:46:18 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:55508 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730180AbgGMPqM (ORCPT ); Mon, 13 Jul 2020 11:46:12 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 06DFju71018930; Mon, 13 Jul 2020 10:45:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1594655156; bh=guAebOmRuPZn0pCzc4snOkbfY7Zfn23fU9q10KQYjVc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=bKxou/eNtjIIKQ5jUVoAvJGfc6fiscGCgGUNmQgaseFDCnV9viGrZc5MCUDgIHVXl GcM1XJf0kf2NJmO0Z9mSZR6j4GRWK/Nf4SJpWFEGFrUvlZFAOSwfRM1hX7BXQGudEo DfwH10Uu2enkmyVWMz3t7Iu+APjOKeZKfz2AeI6U= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 06DFjuhi066826 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 13 Jul 2020 10:45:56 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) 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.1979.3; Mon, 13 Jul 2020 10:45:56 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE115.ent.ti.com (157.170.170.26) 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, 13 Jul 2020 10:45:56 -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 06DFjukX033617; Mon, 13 Jul 2020 10:45:56 -0500 From: Dan Murphy To: , , , CC: , , , , Dan Murphy Subject: [PATCH v30 03/16] dt: bindings: Add multicolor class dt bindings documention Date: Mon, 13 Jul 2020 10:45:31 -0500 Message-ID: <20200713154544.1683-4-dmurphy@ti.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200713154544.1683-1-dmurphy@ti.com> References: <20200713154544.1683-1-dmurphy@ti.com> 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 Add DT bindings for the LEDs multicolor class framework. Add multicolor ID to the color ID list for device tree bindings. CC: Rob Herring Reviewed-by: Rob Herring Acked-by: Pavel Machek Acked-by: Jacek Anaszewski Signed-off-by: Dan Murphy --- .../bindings/leds/leds-class-multicolor.yaml | 37 +++++++++++++++++++ include/dt-bindings/leds/common.h | 3 +- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml -- 2.27.0 diff --git a/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml b/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml new file mode 100644 index 000000000000..b55e1f1308a4 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml @@ -0,0 +1,37 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/leds-class-multicolor.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Common properties for the multicolor LED class. + +maintainers: + - Dan Murphy + +description: | + Bindings for multi color LEDs show how to describe current outputs of + either integrated multi-color LED elements (like RGB, RGBW, RGBWA-UV + etc.) or standalone LEDs, to achieve logically grouped multi-color LED + modules. This is achieved by adding multi-led nodes layer to the + monochrome LED bindings. + The nodes and properties defined in this document are unique to the multicolor + LED class. Common LED nodes and properties are inherited from the common.txt + within this documentation directory. + +patternProperties: + "^multi-led@([0-9a-f])$": + type: object + description: Represents the LEDs that are to be grouped. + properties: + color: + const: 8 # LED_COLOR_ID_MULTI + description: | + For multicolor LED support this property should be defined as + LED_COLOR_ID_MULTI which can be found in include/linux/leds/common.h. + + $ref: "common.yaml#" + + required: + - color +... diff --git a/include/dt-bindings/leds/common.h b/include/dt-bindings/leds/common.h index 0ce7dfc00dcb..a463ce6a8794 100644 --- a/include/dt-bindings/leds/common.h +++ b/include/dt-bindings/leds/common.h @@ -30,7 +30,8 @@ #define LED_COLOR_ID_VIOLET 5 #define LED_COLOR_ID_YELLOW 6 #define LED_COLOR_ID_IR 7 -#define LED_COLOR_ID_MAX 8 +#define LED_COLOR_ID_MULTI 8 +#define LED_COLOR_ID_MAX 9 /* Standard LED functions */ /* Keyboard LEDs, usually it would be input4::capslock etc. */