leds: add support for LSI Zevio LED controller
Subsystems (2)
PATCH 1/3 leds: add support for LSI Zevio LED controller
From: Daniel Tang <[email protected]>
This adds initial support for the LED controller found on the LSI Zevio SoC.
Signed-off-by Daniel Tang <[email protected]>
--- drivers/leds/Kconfig | 7 ++ drivers/leds/Makefile | 1 + drivers/leds/leds-zevio.c | 168 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 176 insertions(+) create mode 100644 drivers/leds/leds-zevio.c
drivers/leds/Kconfig +7 -0
@@ -487,6 +487,13 @@ config LEDS_BLINKM This option enables support for the BlinkM RGB LED connected through I2C. Say Y to enable support for the BlinkM LED. +config LEDS_ZEVIO + tristate "LED support for LSI Zevio LED controller" + depends on LEDS_CLASS + help + This option enables support for the LSI Zevio LED controller. + Say Y to enable support for the LSI Zevio LED controller. + comment "LED Triggers" source "drivers/leds/trigger/Kconfig"
drivers/leds/Makefile +1 -0
@@ -54,6 +54,7 @@ obj-$(CONFIG_LEDS_ASIC3) += leds-asic3.o obj-$(CONFIG_LEDS_MAX8997) += leds-max8997.o obj-$(CONFIG_LEDS_LM355x) += leds-lm355x.o obj-$(CONFIG_LEDS_BLINKM) += leds-blinkm.o +obj-$(CONFIG_LEDS_ZEVIO) += leds-zevio.o # LED SPI Drivers obj-$(CONFIG_LEDS_DAC124S085) += leds-dac124s085.o
drivers/leds/leds-zevio.c new file +168 -0
168 lines not on this page · raw message
Signature · 1 line
1.7.10.4
PATCH 2/3 arm: nspire: modify device tree to use the LSI Zevio LED driver
From: Daniel Tang <[email protected]>
Signed-off-by Daniel Tang <[email protected]>
--- arch/arm/boot/dts/nspire.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
arch/arm/boot/dts/nspire.dtsi +3 -2
@@ -167,8 +167,9 @@ reg = <0x900F0000 0x1000>; }; - led: led at 90110000 { - reg = <0x90110000 0x1000>; + led: led at 90110B00 { + compatible = "lsi,zevio-led"; + reg = <0x90110B00 0x100>; }; }; };
Signature · 1 line
1.7.10.4
PATCH 3/3 devicetree: bindings: document lsi,zevio-led
In reply to [email protected]From: Daniel Tang <[email protected]>
This describes the device tree bindings for the LSI Zevio LED Controller
Signed-off-by Daniel Tang <[email protected]>
--- Documentation/devicetree/bindings/leds/leds-zevio.txt | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 Documentation/devicetree/bindings/leds/leds-zevio.txt
Documentation/devicetree/bindings/leds/leds-zevio.txt new file +13 -0
@@ -0,0 +1,13 @@ +LSI Zevio LED controller + +Required properties: + - compatible : should be "lsi,zevio-led". + +Examples: + +led { + compatible = "lsi,zevio-led"; + reg = <0x90110B00 0x100>; +}; + +
Signature · 1 line
1.7.10.4