From patchwork Wed Jun 17 15:09:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 190864 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp538051ilo; Wed, 17 Jun 2020 08:09:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+EzYb8s/9F0+m7Pi8+xhP058X/9lQYzQABPmjaL0l3BBuz03woPMq/aVWqqbWix/HB07P X-Received: by 2002:a17:906:7f94:: with SMTP id f20mr8215043ejr.394.1592406580750; Wed, 17 Jun 2020 08:09:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592406580; cv=none; d=google.com; s=arc-20160816; b=uTbba+X7d2Gm69B5pw17kx15Gf/3pIvWhApkkpdZbZU3QCuGE+NQc2v2VvvNwRL3vj Df5tMNnpXpqQLPz3s1/5gld8RkINY81eq5uIw7ydMwVAL7Ga/l+ULboa2lMYmtpoArCv 0V0jhvd9d7MQrgMKCJWvx+MqcWcM5CD+sJjb17nLOdTCvWWiIO84QWAH17+GbgfcnpKq v2m3PzYX5Uhaqd1x9z48n7hMOFmAkUXeZobe1TF/ST0CGqqfl3wkyvqkZA+oWyv977sD 0uHiU4eVenOMMLJa3SlRAR9HdOln5Gd2PhIqCse2WOin11XiGMYAl4ULJcEyQRr1cWzQ s1gw== 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=Ris2/4w6GDy898Yv1LyxocRRHlnY97ZT12syvx8SG/4=; b=A2Un2Hs4M7GaOQa+/Tdq9wtfufpdSi8IqKOZLWkGUA0u8+S4QKNr6RhYn9W1deIeOi O9GwdtWykPWqLodTEnerv53PnZJbEyj4sSMlcLI9eqpEsaNuyk4ltmYRfcuPXop96xCa lN+oNYx+ros2RULxEkHGURvJq+Qa8s9B51ZgSuFNx8v2QzI7wAP1+ibIDr1Lc1xujbr6 MlZzfRHjfjEY1Fj3hPm1TcOB924IR5QB+5SFT6JMbZX1DwEaWtJC3P/eKfVrgGtNdO9/ 9GEa6I51Wsfroh2Rsp/3rPINL2/3Kehbue6iKD999KS6swLNOum5tyYO9K5699gX9fke R2yQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="yG/UGFgS"; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id n16si168780edo.74.2020.06.17.08.09.40; Wed, 17 Jun 2020 08:09:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-leds-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="yG/UGFgS"; spf=pass (google.com: domain of linux-leds-owner@vger.kernel.org designates 23.128.96.18 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 S1726909AbgFQPJj (ORCPT + 1 other); Wed, 17 Jun 2020 11:09:39 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:32774 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726879AbgFQPJi (ORCPT ); Wed, 17 Jun 2020 11:09:38 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 05HF9VIh116869; Wed, 17 Jun 2020 10:09:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1592406571; bh=Ris2/4w6GDy898Yv1LyxocRRHlnY97ZT12syvx8SG/4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=yG/UGFgSXbMAc8GnVTd1ztLFNJwB9YdkXeGZmIFvzkR6CHFPcOX3u+oCk/Hx83tWk 7Cw6rLo4viz8q2ZNauE/+dywoPDQqjjl+oMepKYP4D/Zp+v4p+oQcHK4ROZR6r8De3 vO/m3vH7CSNiqhgYCj5UJw+cJwy4nfkPZ1yLFa/U= Received: from DLEE111.ent.ti.com (dlee111.ent.ti.com [157.170.170.22]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 05HF9VUm088186 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 17 Jun 2020 10:09:31 -0500 Received: from DLEE109.ent.ti.com (157.170.170.41) by DLEE111.ent.ti.com (157.170.170.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Wed, 17 Jun 2020 10:09:31 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE109.ent.ti.com (157.170.170.41) 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; Wed, 17 Jun 2020 10:09:31 -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 05HF9Vjk106931; Wed, 17 Jun 2020 10:09:31 -0500 From: Dan Murphy To: , , CC: , , , Dan Murphy Subject: [PATCH v28 01/15] dt: bindings: Add multicolor class dt bindings documention Date: Wed, 17 Jun 2020 10:09:10 -0500 Message-ID: <20200617150924.12665-2-dmurphy@ti.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200617150924.12665-1-dmurphy@ti.com> References: <20200617150924.12665-1-dmurphy@ti.com> 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 Add DT bindings for the LEDs multicolor class framework. Add multicolor ID to the color ID list for device tree bindings. CC: 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.26.2 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. */