[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-omap
Subject:    Re: [PATCH] ARM: dts: omap4: embt2ws: add LED
From:       Pavel Machek <pavel () ucw ! cz>
Date:       2023-10-31 9:16:35
Message-ID: ZUDF8zuKdYp/k0ox () duo ! ucw ! cz
[Download RAW message or body]


Hi!

> Add LED since the driver is now available.
> 
> Signed-off-by: Andreas Kemnade <andreas@kemnade.info>

Is it one LED or three LEDs?

If it is one, we should use multicolor...

BR,
										Pavel
										
> @@ -206,7 +207,31 @@ &i2c3 {
>  
>  	clock-frequency = <100000>;
>  
> -	/* TODO: BD2606MVV at 0x66 */
> +	led-controller@66 {
> +		compatible = "rohm,bd2606mvv";
> +		reg = <0x66>;
> +
> +		#address-cells = <1>;
> +		#size-cells = <0>;
> +
> +		led@0 {
> +			reg = <0>;
> +			color = <LED_COLOR_ID_GREEN>;
> +			function = LED_FUNCTION_STATUS;
> +		};
> +
> +		led@2 {
> +			reg = <2>;
> +			color = <LED_COLOR_ID_BLUE>;
> +			function = LED_FUNCTION_STATUS;
> +		};
> +
> +		led@4 {
> +			reg = <4>;
> +			color = <LED_COLOR_ID_RED>;
> +			function = LED_FUNCTION_STATUS;
> +		};
> +	};
>  };
>  
>  &i2c4 {

-- 
People of Russia, stop Putin before his war on Ukraine escalates.

["signature.asc" (application/pgp-signature)]

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic