lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <GVXP190MB19174C638935B1C6717F8AEBD9C09@GVXP190MB1917.EURP190.PROD.OUTLOOK.COM>
Date:   Tue, 3 May 2022 13:50:58 +0000
From:   Sven Schuchmann <schuchmann@...leissheimer.de>
To:     Sven Schwermer <sven@...nschwermer.de>,
        "linux-leds@...r.kernel.org" <linux-leds@...r.kernel.org>,
        "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
        "pavel@....cz" <pavel@....cz>,
        "robh+dt@...nel.org" <robh+dt@...nel.org>,
        "krzysztof.kozlowski+dt@...aro.org" 
        <krzysztof.kozlowski+dt@...aro.org>,
        "dmurphy@...com" <dmurphy@...com>,
        "devicetree@...r.kernel.org" <devicetree@...r.kernel.org>
CC:     Sven Schwermer <sven.schwermer@...ruptive-technologies.com>
Subject: AW: [PATCH v2 1/2] dt-bindings: leds: Add multi-color
 default-intensities property

Hello Sven,

tried this some time ago for the LP50XX
https://lore.kernel.org/all/20210204143726.27977-1-schuchmann@schleissheimer.de/

Your solution looks much better.
Could you give an example of how to use it?

My Configuration at this time looks like this:

multi-led@0 {
		#address-cells = <1>;
		#size-cells = <0>;
		reg = <0x0>;
		color = <LED_COLOR_ID_RGB>;
		function = "eee-led-status";

		led-0 {
			color = <LED_COLOR_ID_RED>;
		};

		led-1 {
			color = <LED_COLOR_ID_GREEN>;
		};

		led-2 {
			color = <LED_COLOR_ID_BLUE>;
		};
	};


Where do I put the "default-intensities"?

Regards,

   Sven

> -----Ursprüngliche Nachricht-----
> Von: Sven Schwermer <sven@...nschwermer.de>
> Gesendet: Dienstag, 3. Mai 2022 13:27
> An: linux-leds@...r.kernel.org; linux-kernel@...r.kernel.org; pavel@....cz;
> robh+dt@...nel.org; krzysztof.kozlowski+dt@...aro.org; dmurphy@...com;
> devicetree@...r.kernel.org
> Cc: Sven Schwermer <sven.schwermer@...ruptive-technologies.com>
> Betreff: [PATCH v2 1/2] dt-bindings: leds: Add multi-color default-intensities property
> 
> From: Sven Schwermer <sven.schwermer@...ruptive-technologies.com>
> 
> 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 <sven.schwermer@...ruptive-technologies.com>
> ---
> 
> 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:
> --
> 2.36.0

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ