From patchwork Tue May 3 11:04:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sven Schwermer X-Patchwork-Id: 569173 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 90616C433FE for ; Tue, 3 May 2022 11:05:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234571AbiECLIi (ORCPT ); Tue, 3 May 2022 07:08:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46494 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234535AbiECLIh (ORCPT ); Tue, 3 May 2022 07:08:37 -0400 Received: from mail.schwermer.no (mail.schwermer.no [49.12.228.226]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E279E33375; Tue, 3 May 2022 04:05:01 -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=1651575898; bh=f7LOPbAVv1vwG5hpUbka3+lbR6oTfswOHOcwYhEpF88=; h=From:To:Cc:Subject:In-Reply-To:References; b=qyoE/dlTXwTBA+zlQ/8IZClSvD6AdZ5IMUDzVnQsY62rV/sHJ8m+IBt2euZJbtLi3 xLgwLH8t4oujcsKVCBVFQv6EQnt9zgGYIrQ1u7FTejKBQzjyUNSxiHaPJZP6dxBQMx lZilLrbFaTADBPxnmH0Ty31cwyN1G47JR/Dcr9vxt/TsQ4qVpef5m81LTioUN80Soo eFE/8O0hOAEWjv2o8AArvlz8ZXQ9hFi3Nn1BOmIIlYDn18ocMXeuB9CVG5Rfbi2tcL VHkPNw/Nq/AXrXQn7QrstHGQm/wATUnQngo0YfWy8+HHnOVpCaMXbx4uVaC9sqhjO9 S9gSAF1a7eWmA== 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 v1 1/2] dt-bindings: leds: Add multi-color default-intensities property Date: Tue, 3 May 2022 13:04:50 +0200 Message-Id: <364df52a196fa0ae5db07e599995fcf8dfafb43e.1651575831.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 --- .../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: