Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2478091rwd; Fri, 16 Jun 2023 04:22:58 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7tUNZwQy9OebeUY/VQF3P+KFtW4SXcpYEXYBihbRuTlAUVpRfc5gw9p7J1GEZl1/RtaLOA X-Received: by 2002:a05:6a21:9997:b0:10d:bc30:b9ea with SMTP id ve23-20020a056a21999700b0010dbc30b9eamr1849912pzb.39.1686914578553; Fri, 16 Jun 2023 04:22:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686914578; cv=none; d=google.com; s=arc-20160816; b=AJQvNhU+Ub2QGcTewfeY1P+ea5jdQ9P/boZ9ahOqdTTePpIiMpQCr0Xp/vxta8twqy eEHNiscMXHK7IRYtttuMnY5mp1j+pfYmud3I1a1/AUYaAKQLsY7OMLnidHAWiMnT4tHY vqBX6nbrdIPEGQzlViYxBC7zLWtkkHl2hgviUf3rW+sFgyl4QjpcClo5pzYYeLEoUNVM /sAoLj3hDlna0fEtMq9afHhTqHh5oa7d3XQLymXheUP3p4XfekptLoSWIjLYyoMm6XmC pmog018LFGmqcmtjkmEx5ioa3f7F7u18tdMtJLizBHHMXCujQYmIp0FSWRraq/rwmGzE Q14A== 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=; b=RXFeP2rIw+dX6NKcMQ0J0fOAO6cY9V9ixWjSj0JtwHcTIrkYE9iNa2wHE8v5Y+Rm/f Bws0YUBlZZHlny8N1D5SF2x4tg2ndi4eUPe5bCFghl4q9d9PbUVS6XqVIpF0JfCu9u4W wEZdK+BSmoho4ANBhKQSRiPkYfYPukevHnQQ+7/TZ1PlP83KUlpNjXQagiyLilfgSuKm e3xOVPjrsxD+nXH6x3dYHRhjZGGNQA2sbEHAfQwWcSmPdj+uKt0xaTVIK30zMijMi4Ls VhEO2/DRGgCI2PMTOwKL4hJSWgnELdJ/SGF7Us9w5fAe4b4+3Hk2sO1jF/sMPdJdE4Ni GgWg== 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 v62-20020a638941000000b0054fde1643cfsi4804053pgd.127.2023.06.16.04.22.46; Fri, 16 Jun 2023 04:22:58 -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 S1345309AbjFPLQJ (ORCPT + 99 others); Fri, 16 Jun 2023 07:16:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38806 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244639AbjFPLQH (ORCPT ); Fri, 16 Jun 2023 07:16:07 -0400 X-Greylist: delayed 2349 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Fri, 16 Jun 2023 04:15:56 PDT Received: from 9.mo563.mail-out.ovh.net (9.mo563.mail-out.ovh.net [46.105.73.201]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C4C2F13E for ; Fri, 16 Jun 2023 04:15:56 -0700 (PDT) Received: from director1.derp.mail-out.ovh.net (director1.derp.mail-out.ovh.net [51.68.80.175]) by mo563.mail-out.ovh.net (Postfix) with ESMTPS id 5E26623942; Fri, 16 Jun 2023 09:57:56 +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, 16 Jun 2023 09:57:56 +0000 (UTC) Received: from pro2.mail.ovh.net (unknown [10.109.146.141]) by director1.derp.mail-out.ovh.net (Postfix) with ESMTPS id 00B5A1F9474; Fri, 16 Jun 2023 09:57:55 +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, 16 Jun 2023 11:57:55 +0200 From: Jean-Jacques Hiblot To: , , , , CC: , , , Jean-Jacques Hiblot , Rob Herring Subject: [PATCH v9 4/5] dt-bindings: leds: Add binding for a multicolor group of LEDs Date: Fri, 16 Jun 2023 11:57:45 +0200 Message-ID: <20230616095746.872220-5-jjhiblot@traphandler.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230616095746.872220-1-jjhiblot@traphandler.com> References: <20230616095746.872220-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: CAS3.emp2.local (172.16.1.3) To DAG1EX1.emp2.local (172.16.2.1) X-Ovh-Tracer-Id: 3613012804704090577 X-VR-SPAMSTATE: OK X-VR-SPAMSCORE: -100 X-VR-SPAMCAUSE: gggruggvucftvghtrhhoucdtuddrgedvhedrgedvgedgvddvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuqfggjfdpvefjgfevmfevgfenuceurghilhhouhhtmecuhedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujfgurhephffvvefufffkofgjfhgggfgtihesthekredtredttdenucfhrhhomheplfgvrghnqdflrggtqhhuvghsucfjihgslhhothcuoehjjhhhihgslhhothesthhrrghphhgrnhgulhgvrhdrtghomheqnecuggftrfgrthhtvghrnheptddtffevleejteelieejhfffvedtffeljeehjeeigfejledufedvveejuddtjefhnecuffhomhgrihhnpeguvghvihgtvghtrhgvvgdrohhrghenucfkpheptddrtddrtddrtddpkeekrdduiedurddvhedrvdeffeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhhouggvpehsmhhtphhouhhtpdhhvghlohepughirhgvtghtohhruddruggvrhhprdhmrghilhdqohhuthdrohhvhhdrnhgvthdpihhnvghtpedtrddtrddtrddtpdhmrghilhhfrhhomhepjhhjhhhisghlohhtsehtrhgrphhhrghnughlvghrrdgtohhmpdhnsggprhgtphhtthhopedupdhrtghpthhtoheplhhinhhugidqlhgvughssehvghgvrhdrkhgvrhhnvghlrdhorhhgpdfovfetjfhoshhtpehmohehieef 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