lkml.org 
[lkml]   [2023]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [net-next PATCH v7 02/16] net: dsa: qca8k: add LEDs basic support
From
On 4/17/23 08:17, Christian Marangi wrote:
> Add LEDs basic support for qca8k Switch Family by adding basic
> brightness_set() support.
>
> Since these LEDs refelect port status, the default label is set to
> ":port". DT binding should describe the color and function of the
> LEDs using standard LEDs api.
> Each LED always have the device name as prefix. The device name is
> composed from the mii bus id and the PHY addr resulting in example
> names like:
> - qca8k-0.0:00:amber:lan
> - qca8k-0.0:00:white:lan
> - qca8k-0.0:01:amber:lan
> - qca8k-0.0:01:white:lan
>
> These LEDs supports only blocking variant of the brightness_set()
> function since they can sleep during access of the switch leds to set
> the brightness.
>
> While at it add to the qca8k header file each mode defined by the Switch
> Documentation for future use.
>
> Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>

Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
--
Florian

\
 
 \ /
  Last update: 2023-04-17 20:30    [W:0.114 / U:0.324 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site