From patchwork Tue May 3 11:27:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Schwermer X-Patchwork-Id: 569172 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3F19C433F5 for ; Tue, 3 May 2022 11:27:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234586AbiECLbA (ORCPT ); Tue, 3 May 2022 07:31:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37510 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234304AbiECLa6 (ORCPT ); Tue, 3 May 2022 07:30:58 -0400 Received: from mail.schwermer.no (mail.schwermer.no [49.12.228.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3DD762B27B; Tue, 3 May 2022 04:27:25 -0700 (PDT) X-Virus-Scanned: Yes From: Sven Schwermer DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=svenschwermer.de; s=mail; t=1651577243; bh=X1P1czu7olInCuAQsy8kh9ER4hFIClKs76hLpKYw1KQ=; h=From:To:Cc:Subject:In-Reply-To:References; b=C++waFrmpLW4z31URtuRSBlGy4QI0L2rbDWoUO0GDTF7R07CpWNLWq+fAFfWfYf4/ TnhEW3Uaz+dbwcBhEq9TVXDqef0KGLqi07m78Pzr3Yp1I+orngCyr3t1HoSKcVjwb0 dhSUxaWYTLtQfHNoBfTTzCg+8FX/3wcG0HGAkNaG+YGM9lRNHLn5McrmMtP0opPrlF 0SjV3M2W6rz7wRckPlp9uvR6NRFxSzczMo+IlXOQ3N1tta44NzPfJHoR0NUF3pIKRD WBxk3a03yBW7tkkRgdG6F0yABOt9mnEKc1AiFVnTTRvyvhXo3WQct/J9iKc+VmvTil cPep9RBxYGCJg== To: linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org, pavel@ucw.cz, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, dmurphy@ti.com, devicetree@vger.kernel.org Cc: Sven Schwermer Subject: [PATCH v2 1/2] dt-bindings: leds: Add multi-color default-intensities property Date: Tue, 3 May 2022 13:27:06 +0200 Message-Id: <364df52a196fa0ae5db07e599995fcf8dfafb43e.1651577132.git.sven.schwermer@disruptive-technologies.com> In-Reply-To: <20220502204616.GA27288@ucw.cz> References: <20220502204616.GA27288@ucw.cz> Mime-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-leds@vger.kernel.org From: Sven Schwermer This allows to assign intensity values to the indivisual sub LEDs (colors) at driver probe time, i.e. most commonly at kernel boot time. This is crucial for setting a specific color early in the boot process. Signed-off-by: Sven Schwermer --- Notes: V1->V2: no changes .../devicetree/bindings/leds/leds-class-multicolor.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml b/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml index 37445c68cdef..c483967a847c 100644 --- a/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml +++ b/Documentation/devicetree/bindings/leds/leds-class-multicolor.yaml @@ -31,6 +31,13 @@ patternProperties: include/linux/leds/common.h. enum: [ 8, 9 ] + default-intensities: + description: | + This parameter, if present, sets the initial intensities of the + individual colors. This array must have the same length as the + multi-color LED has sub LEDs (colors). + $ref: /schemas/types.yaml#/definitions/uint32-array + $ref: "common.yaml#" required: