Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp1397796rwb; Fri, 28 Jul 2023 08:52:32 -0700 (PDT) X-Google-Smtp-Source: APBJJlHqlapG+U6svDY8HQdcj6fYMpj/1GKYs5iHi09q45bsF5VXOXXQBQsZkYdhfzFSwXlMECzt X-Received: by 2002:a17:902:ea05:b0:1bb:809d:ae72 with SMTP id s5-20020a170902ea0500b001bb809dae72mr1662729plg.33.1690559551788; Fri, 28 Jul 2023 08:52:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690559551; cv=none; d=google.com; s=arc-20160816; b=tS47JYWJiRCUideaVtOMfNatLHQ+CqCTbOdTkcM8ayMHc8gUvpPmmfRaxTZwuIqGgD xZlF7htpuOTHHjLGcZzwB/CYrp/wPZQlbF1gRPDaEM9UiYwlk7xY6ZqOtE+fIiypdM/G WxGAlJuyEdn01xCzPFItfuyI11U6EOH+tQPkHaCpHjlyARv+1dKMYGJqF2OEQtuZNXWP gApWO17WI43RXqhSr7kbpok7wIkjCh8egSZK7fiugpSYRYmTDwkemS49ykOOFOmuzttQ 3lOe/EhZ9T6dqxJvf4SMK9fjDeA0e2wCRAzmZTp0PpMysvyFkWVaTHAnwhOVuTjILmVa p1UA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=fRnw/c0+/6mvIqjou8P61LOaEZeGYQMoJ4tqrSJp8Lg=; fh=J54VzJjs+XkXKzHgi3S348u+pwBeG3WdfFeIDFZrg08=; b=m1PCIAf5bK0PNlPqz1/Y7uCKieTxYipbzwcFuSVJdnUxyMskGroopmNB4R3gDb6vm7 Sqq4IUSatENFsJrA2dI47G+BeETpJZlzvCpBv0cMgsbN+x7BtINtytWp1/ivCHzOLV9i nez1H2fK5dn72IOSOuinux4Y7q/i/TmfJJY92X7V5BiQe26ANHn+zwYXf9DpYrMW7qa+ CjRX38WFtiIHGQ8W/xqsfse8XzGI4Z5zGdlWDS6zvW6o1pqSbHeR9GcPXLKZhEFcpiEj zgm92cDaGnufDmCY0fjMfbnwq5krGWKeq9d2gm5SiIjUqh66X4WNLxU11e2yo8+DHUCM bo7A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j9-20020a170902da8900b001bbaa259eddsi3327619plx.356.2023.07.28.08.52.18; Fri, 28 Jul 2023 08:52:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237459AbjG1Pq3 (ORCPT + 99 others); Fri, 28 Jul 2023 11:46:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237455AbjG1PqZ (ORCPT ); Fri, 28 Jul 2023 11:46:25 -0400 X-Greylist: delayed 508 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 28 Jul 2023 08:46:13 PDT Received: from 2.mo562.mail-out.ovh.net (2.mo562.mail-out.ovh.net [178.33.252.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D1CBC30FB for ; Fri, 28 Jul 2023 08:46:13 -0700 (PDT) Received: from director1.derp.mail-out.ovh.net (director1.derp.mail-out.ovh.net [51.68.80.175]) by mo562.mail-out.ovh.net (Postfix) with ESMTPS id C3DC122DB7; Fri, 28 Jul 2023 15:37:43 +0000 (UTC) Received: from director1.derp.mail-out.ovh.net (director1.derp.mail-out.ovh.net. [127.0.0.1]) by director1.derp.mail-out.ovh.net (inspect_sender_mail_agent) with SMTP for ; Fri, 28 Jul 2023 15:37:43 +0000 (UTC) Received: from pro2.mail.ovh.net (unknown [10.109.138.11]) by director1.derp.mail-out.ovh.net (Postfix) with ESMTPS id 74047201385; Fri, 28 Jul 2023 15:37:43 +0000 (UTC) Received: from traphandler.com (88.161.25.233) by DAG1EX1.emp2.local (172.16.2.1) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Fri, 28 Jul 2023 17:37:42 +0200 From: Jean-Jacques Hiblot To: , , , , CC: , , , Jean-Jacques Hiblot , Rob Herring Subject: [RESEND] [PATCH v11 3/4] dt-bindings: leds: Add binding for a multicolor group of LEDs Date: Fri, 28 Jul 2023 17:37:30 +0200 Message-ID: <20230728153731.3742339-4-jjhiblot@traphandler.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230728153731.3742339-1-jjhiblot@traphandler.com> References: <20230728153731.3742339-1-jjhiblot@traphandler.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [88.161.25.233] X-ClientProxiedBy: CAS4.emp2.local (172.16.1.4) To DAG1EX1.emp2.local (172.16.2.1) X-Ovh-Tracer-Id: 16196914587960949201 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedviedrieeigdekkecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfqggfjpdevjffgvefmvefgnecuuegrihhlohhuthemucehtddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufffkffojghfggfgtghisehtkeertdertddtnecuhfhrohhmpeflvggrnhdqlfgrtghquhgvshcujfhisghlohhtuceojhhjhhhisghlohhtsehtrhgrphhhrghnughlvghrrdgtohhmqeenucggtffrrghtthgvrhhnpedttdffveeljeetleeijefhffevtdffleejheejiefgjeeludefvdevjedutdejhfenucffohhmrghinhepuggvvhhitggvthhrvggvrdhorhhgnecukfhppedtrddtrddtrddtpdekkedrudeiuddrvdehrddvfeefnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmohguvgepshhmthhpohhuthdphhgvlhhopeguihhrvggtthhorhdurdguvghrphdrmhgrihhlqdhouhhtrdhovhhhrdhnvghtpdhinhgvtheptddrtddrtddrtddpmhgrihhlfhhrohhmpehjjhhhihgslhhothesthhrrghphhgrnhgulhgvrhdrtghomhdpnhgspghrtghpthhtohepuddprhgtphhtthhopehlihhnuhigqdhlvggushesvhhgvghrrdhkvghrnhgvlhdrohhrghdpoffvtefjohhsthepmhhoheeivd X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This allows to group multiple monochromatic LEDs into a multicolor LED, e.g. RGB LEDs. Signed-off-by: Jean-Jacques Hiblot Reviewed-by: Rob Herring --- .../bindings/leds/leds-group-multicolor.yaml | 64 +++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-group-multicolor.yaml diff --git a/Documentation/devicetree/bindings/leds/leds-group-multicolor.yaml b/Documentation/devicetree/bindings/leds/leds-group-multicolor.yaml new file mode 100644 index 000000000000..8ed059a5a724 --- /dev/null +++ b/Documentation/devicetree/bindings/leds/leds-group-multicolor.yaml @@ -0,0 +1,64 @@ +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) +%YAML 1.2 +--- +$id: http://devicetree.org/schemas/leds/leds-group-multicolor.yaml# +$schema: http://devicetree.org/meta-schemas/core.yaml# + +title: Multi-color LED built with monochromatic LEDs + +maintainers: + - Jean-Jacques Hiblot + +description: | + This driver combines several monochromatic LEDs into one multi-color + LED using the multicolor LED class. + +properties: + compatible: + const: leds-group-multicolor + + leds: + description: + An aray of monochromatic leds + $ref: /schemas/types.yaml#/definitions/phandle-array + +required: + - leds + +allOf: + - $ref: leds-class-multicolor.yaml# + +unevaluatedProperties: false + +examples: + - | + #include + #include + + monochromatic-leds { + compatible = "gpio-leds"; + + led0: led-0 { + gpios = <&mcu_pio 0 GPIO_ACTIVE_LOW>; + color = ; + }; + + led1: led-1 { + gpios = <&mcu_pio 1 GPIO_ACTIVE_HIGH>; + color = ; + }; + + led2: led-2 { + gpios = <&mcu_pio 2 GPIO_ACTIVE_HIGH>; + color = ; + }; + }; + + multi-led { + compatible = "leds-group-multicolor"; + color = ; + function = LED_FUNCTION_INDICATOR; + leds = <&led0>, <&led1>, <&led2>; + }; + +... -- 2.34.1