From patchwork Mon Jun 8 19:39:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Murphy X-Patchwork-Id: 187607 Delivered-To: patch@linaro.org Received: by 2002:a92:cf06:0:0:0:0:0 with SMTP id c6csp5140311ilo; Mon, 8 Jun 2020 12:39:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxChErQOD3Ou8fSm1ouxw3B16bN8h7ZPqbuTib6Yqqs6aWyFAxvm2qPiT7YWw1K8ASDk/Mx X-Received: by 2002:a17:906:af76:: with SMTP id os22mr21333517ejb.191.1591645177191; Mon, 08 Jun 2020 12:39:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591645177; cv=none; d=google.com; s=arc-20160816; b=SLyefgA69vSMdutweenIRYahpIcyIpSemwAFGFL2YSuT7x41/iWEFY9/VPc8otpd90 pN1xPxlacAubKD7Aoktunll3etTFumVndewhI9+IXFu1H3lL6bOCqbpEBnJBasndTaNh qxEggL+XrAqg1gLzxD09f8vW9kYuD7mxkhaCo1kQPFw064f1XmdNzQ90uYBDi/nfSwi/ Sr7v79wGHgwFocdCZRm5zhM+c/fHoRWBiubRSoh25KX62IKVB3zGcY+Wee0mcMLjVWao 9pbV+bCh5rGIZ3CdYNzYtHtrbCHkq5fj8R6lUpx8inbDbQKopBjZHj54KATzz+fbsYrz /gRw== 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=TnIuiU4L4Ys75KBoxjy7Ozi/q+Euq1jENtIbXdIBtxejosD3mwKvDMml/HR6hBk834 RExod3wmkUTg5SH0ddKCKzAHhELhfSNqPKkjPdeVJjpEIx5Iq4UDqPjwoT/FyzSliVW4 Vsl9optSVo5Yi7Ytm4PvqYtNHyDiEzueO38pVAu9OHS4cYSKwFI1Cza3A0lu+/5/el5c xK+jcnlso7KBSaMLiuqbmml/b6UhmvNKYzs0iq/vueX0eGYfnb1Z646uozEXT0GBpd0q 5rulibhrSpp9sviw/g+tUrNYVfXy7Xr2KE8NCSx2UooPiVWscr2ZC9TCVuA99j1zntaz xQtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fMYYag4j; 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 z23si8937197ejw.331.2020.06.08.12.39.37; Mon, 08 Jun 2020 12:39:37 -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=fMYYag4j; 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 S1726597AbgFHTjg (ORCPT + 6 others); Mon, 8 Jun 2020 15:39:36 -0400 Received: from lelv0142.ext.ti.com ([198.47.23.249]:43398 "EHLO lelv0142.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726406AbgFHTje (ORCPT ); Mon, 8 Jun 2020 15:39:34 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 058JdTVH057076; Mon, 8 Jun 2020 14:39:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1591645169; bh=Ris2/4w6GDy898Yv1LyxocRRHlnY97ZT12syvx8SG/4=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=fMYYag4jzrFdARFfieAFNkv7IFNBrXGcZP7Se2aRYDhxEU8vVTGV0Vo2GjOt9GPhI MJ/9kObuusKjQRrTT5kgq5JJho5Jh/dZocJxpRr3Sg8xlmTADbuTBolm27g9j+KT7O AK6IpdP05ozxXqmjf1m6PVsR5vBwrlsp/smG523U= Received: from DLEE114.ent.ti.com (dlee114.ent.ti.com [157.170.170.25]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 058JdTsF028391 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 8 Jun 2020 14:39:29 -0500 Received: from DLEE100.ent.ti.com (157.170.170.30) 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.1979.3; Mon, 8 Jun 2020 14:39:29 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE100.ent.ti.com (157.170.170.30) 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, 8 Jun 2020 14:39:29 -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 058JdTAn050919; Mon, 8 Jun 2020 14:39:29 -0500 From: Dan Murphy To: , CC: , , , Dan Murphy , Rob Herring Subject: [PATCH v27 01/15] dt: bindings: Add multicolor class dt bindings documention Date: Mon, 8 Jun 2020 14:39:03 -0500 Message-ID: <20200608193917.13084-2-dmurphy@ti.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200608193917.13084-1-dmurphy@ti.com> References: <20200608193917.13084-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 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. */