led: led_cortina: Add CAxxx LED support
PATCH v9 1/2 led: led_cortina: Add CAxxx LED support
From: Jway Lin <[email protected]>
Add Cortina Access LED controller support for CAxxxx SOCs
Add head file fixed link error and remove unused flashing function
---
Changes in v9:
- Remove unused LED blink function
- Include log.h and linux/bitops.h to avoid compile warnings
Changes in v8:
- No code change
- Split out individual driver from Cortina Package 2 patch series to help streamline acceptence into master
Changes in v7:
- rename OFFSET to SHIFT from macros
- add additinal struct comments
- Reading the DT should really happen in the ofdata_to_platdata method
Changes in v4:
- remove unused macros
- remove cortina prefix from macros
- remove use BSS variable
- further cleanup to meet code style guidelines
- add additinal struct comments
- rename DT blink rate symbol
MAINTAINERS | 8 +- drivers/led/Kconfig | 8 ++ drivers/led/Makefile | 1 + drivers/led/led_cortina.c | 298 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 314 insertions(+), 1 deletion(-) create mode 100644 drivers/led/led_cortina.c
MAINTAINERS +7 -1
@@ -182,6 +182,9 @@ F: drivers/gpio/cortina_gpio.c F: drivers/watchdog/cortina_wdt.c F: drivers/serial/serial_cortina.c F: drivers/mmc/ca_dw_mmc.c +F: drivers/i2c/i2c-cortina.c +F: drivers/i2c/i2c-cortina.h +F: drivers/led/led_cortina.c ARM/CZ.NIC TURRIS MOX SUPPORT M: Marek Behun <[email protected]>
@@ -738,6 +741,9 @@ F: drivers/gpio/cortina_gpio.c F: drivers/watchdog/cortina_wdt.c F: drivers/serial/serial_cortina.c F: drivers/mmc/ca_dw_mmc.c +F: drivers/i2c/i2c-cortina.c +F: drivers/i2c/i2c-cortina.h +F: drivers/led/led_cortina.c MIPS MSCC M: Gregory CLEMENT <[email protected]>
@@ -830,7 +836,7 @@ S: Maintained F: arch/powerpc/ POWERPC MPC8XX -M: Christophe Leroy <[email protected]> +M: Christophe Leroy <[email protected]> S: Maintained T: git https://gitlab.denx.de/u-boot/custodians/u-boot-mpc8xx.git F: arch/powerpc/cpu/mpc8xx/
drivers/led/Kconfig +8 -0
@@ -35,6 +35,14 @@ config LED_BCM6858 This option enables support for LEDs connected to the BCM6858 HW has blinking capabilities and up to 32 LEDs can be controlled. +config LED_CORTINA + bool "LED Support for Cortina Access CAxxxx SoCs" + depends on LED && (CORTINA_PLATFORM) + help + This option enables support for LEDs connected to the Cortina + Access CAxxxx SOCs. + + config LED_BLINK bool "Support LED blinking" depends on LED
drivers/led/Makefile +1 -0
@@ -8,3 +8,4 @@ obj-$(CONFIG_LED_BCM6328) += led_bcm6328.o obj-$(CONFIG_LED_BCM6358) += led_bcm6358.o obj-$(CONFIG_LED_BCM6858) += led_bcm6858.o obj-$(CONFIG_$(SPL_)LED_GPIO) += led_gpio.o +obj-$(CONFIG_LED_CORTINA) += led_cortina.o
drivers/led/led_cortina.c new file +298 -0
298 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH v9 2/2 board: presidio: add LED support
From: Jway Lin <[email protected]>
Add LED support for Cortina Access Presidio Engineering Board
---
(no changes since v4)
Changes in v4:
- rename DT blink rate symbol
arch/arm/dts/ca-presidio-engboard.dts | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+)
arch/arm/dts/ca-presidio-engboard.dts +31 -0
@@ -64,4 +64,35 @@ spi-max-frequency = <108000000>; }; }; + + leds: led-controller at f43200f0 { + compatible = "cortina,ca-leds"; + reg = <0x0 0xf43200f0 0x40>; + + cortina,blink-rate1 = <256>; + cortina,blink-rate2 = <512>; + + led at 0 { + pin = <0>; + active-low; + blink-sel =<0>; + port = <0>; + off-event = <0>; + label = "led0"; + }; + + led at 1 { + pin = <1>; + active-low; + blink-sel =<1>; + label = "led1"; + }; + + led at 2 { + pin = <2>; + active-low; + label = "led2"; + }; + + }; };
Signature · 1 line
2.7.4
PATCH v9 2/2 board: presidio: add LED support
Quoted 9 lines · Alex Nemirovsky
From: Jway Lin <[email protected]>
Add LED support for Cortina Access Presidio Engineering Board
Signed-off-by Jway Lin <[email protected]>Signed-off-by Alex Nemirovsky <[email protected]>Reviewed-by Simon Glass <[email protected]>CC Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200808/985d94c6/attachment.sig>
PATCH v9 1/2 led: led_cortina: Add CAxxx LED support
In reply to Alex NemirovskyQuoted 35 lines · Alex Nemirovsky
From: Jway Lin <[email protected]>
Add Cortina Access LED controller support for CAxxxx SOCs
Signed-off-by Jway Lin <[email protected]>Signed-off-by Alex Nemirovsky <[email protected]>CC Simon Glass <[email protected]>Add head file fixed link error and remove unused flashing function
---
Changes in v9:
- Remove unused LED blink function
- Includelog.handlinux/bitops.hto avoid compile warningsChanges in v8:
- No code change
- Split out individual driver from Cortina Package 2 patch series to help streamline acceptence into masterChanges in v7:
- rename OFFSET to SHIFT from macros
- add additinal struct comments
- Reading the DT should really happen in theofdata_to_platdatamethodChanges in v4:
- remove unused macros
- remove cortina prefix from macros
- remove use BSS variable
- further cleanup to meet code style guidelines
- add additinal struct comments
- rename DT blink rate symbol
Quoted 6 lines
MAINTAINERS | 8 +- drivers/led/Kconfig | 8 ++ drivers/led/Makefile | 1 + drivers/led/led_cortina.c | 298 ++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 314 insertions(+), 1 deletion(-) create mode 100644 drivers/led/led_cortina.c
PATCH v9 1/2 led: led_cortina: Add CAxxx LED support
In reply to Alex NemirovskyQuoted 10 lines · Alex Nemirovsky
From: Jway Lin <[email protected]>
Add Cortina Access LED controller support for CAxxxx SOCs
Signed-off-by Jway Lin <[email protected]>Signed-off-by Alex Nemirovsky <[email protected]>CC Simon Glass <[email protected]>Add head file fixed link error and remove unused flashing function
Reviewed-by Simon Glass <[email protected]>
Applied to u-boot/master, thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 659 bytes Desc: not available URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200808/786459fc/attachment.sig>