diff options
author | Christian Marangi <ansuelsmth@gmail.com> | 2023-04-17 18:17:24 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2023-04-19 14:59:15 +0300 |
commit | 1e264f9d2918b5737023c44a23ae04def1095210 (patch) | |
tree | 91b160b3071748b5cf504c000a078a17577ebd1f /drivers/net/dsa/qca/Kconfig | |
parent | 3e8b4d6277fd19d98c817576954dd6a4ff3caa2b (diff) | |
download | linux-1e264f9d2918b5737023c44a23ae04def1095210.tar.xz |
net: dsa: qca8k: add LEDs basic support
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>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/qca/Kconfig')
-rw-r--r-- | drivers/net/dsa/qca/Kconfig | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/net/dsa/qca/Kconfig b/drivers/net/dsa/qca/Kconfig index ba339747362c..7a86d6d6a246 100644 --- a/drivers/net/dsa/qca/Kconfig +++ b/drivers/net/dsa/qca/Kconfig @@ -15,3 +15,11 @@ config NET_DSA_QCA8K help This enables support for the Qualcomm Atheros QCA8K Ethernet switch chips. + +config NET_DSA_QCA8K_LEDS_SUPPORT + bool "Qualcomm Atheros QCA8K Ethernet switch family LEDs support" + depends on NET_DSA_QCA8K + depends on LEDS_CLASS + help + This enabled support for LEDs present on the Qualcomm Atheros + QCA8K Ethernet switch chips. |