01 Jun, 2017
2 commits
-
Adjust this function to us an ofnode instead of an offset, so it can be
used with livetree. This involves updating all callers.Signed-off-by: Simon Glass
-
These support the flat device tree. We want to use the dev_read_..()
prefix for functions that support both flat tree and live tree. So rename
the existing functions to avoid confusion.In the end we will have:
1. dev_read_addr...() - works on devices, supports flat/live tree
2. devfdt_get_addr...() - current functions, flat tree only
3. of_get_address() etc. - new functions, live tree onlyAll drivers will be written to use 1. That function will in turn call
either 2 or 3 depending on whether the flat or live tree is in use.Note this involves changing some dead code - the imx_lpi2c.c file.
Signed-off-by: Simon Glass
10 May, 2017
2 commits
-
This driver is a simplified version of linux/drivers/leds/leds-bcm6358.c
Signed-off-by: Álvaro Fernández Rojas
Reviewed-by: Simon Glass -
This driver is a simplified version of linux/drivers/leds/leds-bcm6328.c,
simplified to remove HW leds and blink fallbacks.Signed-off-by: Álvaro Fernández Rojas
Reviewed-by: Simon Glass
15 Apr, 2017
6 commits
-
Allow LEDs to be blinked if the driver supports it. Enable this for
sandbox so that the tests run.Signed-off-by: Simon Glass
Reviewed-by: Ziping Chen -
Add support for toggling an LED into the uclass interface. This can be
efficiently implemented by the driver.Signed-off-by: Simon Glass
Reviewed-by: Ziping Chen -
It is useful to be able to read the LED as well as write it. Add this to
the uclass and update the GPIO driver.Signed-off-by: Simon Glass
Reviewed-by: Ziping Chen -
At present this is very simple, supporting only on and off. We want to
also support toggling and blinking. As a first step, change the name of
the main method and use an enum to indicate the state.Signed-off-by: Simon Glass
Reviewed-by: Ziping Chen -
These structures are normally named with 'uc' instead of 'uclass'. Change
this one for consistency.Signed-off-by: Simon Glass
Reviewed-by: Ziping Chen -
There should be a blank line between each option. Add one before LED_GPIO.
Signed-off-by: Simon Glass
Reviewed-by: Ziping Chen
08 Feb, 2017
1 commit
-
At present devices use a simple integer offset to record the device tree
node associated with the device. In preparation for supporting a live
device tree, which uses a node pointer instead, refactor existing code to
access this field through an inline function.Signed-off-by: Simon Glass
22 Jan, 2017
1 commit
-
Move all of the status LED feature to drivers/led/Kconfig.
doc/README.LED updated to reflect the Kconfig implementation.Tested boards: CL-SOM-AM57x, CM-T335
Signed-off-by: Uri Mashiach
03 Sep, 2015
1 commit
-
At present SPL does not have its own option. But these features can
increase SPL code size. Adjust the Kconfig and Makefile so that
separate a SPL option can be selected.Signed-off-by: Simon Glass
19 Aug, 2015
1 commit
-
Signed-off-by: Masahiro Yamada
Reviewed-by: Tom Rini
Reviewed-by: Simon Glass
13 Aug, 2015
1 commit
-
The menuconfig for drivers are getting more and more cluttered
and unreadable because too many entries are displayed in a single
flat menu. Use hierarchic menu for each category.Signed-off-by: Masahiro Yamada
Reviewed-by: Simon Glass
[trini: Update to apply again in a few places, drop USB hunk]
Signed-off-by: Tom Rini
22 Jul, 2015
4 commits
-
Add a test to confirm that we can adjust LEDs using the led_gpio driver.
Signed-off-by: Simon Glass
-
We normally use -ENODEV for a missing device, rather than -ENOENT. The
latter is reserved for when we have a device but cannot find something
within it.Also avoid looking at the root LED device since it is only a container.
Signed-off-by: Simon Glass
-
Add a simple driver which allows use of LEDs attached to GPIOs. The linux
device tree binding is used.Signed-off-by: Simon Glass
-
Add a simple uclass for LEDs, so that these can be controlled by the device
tree and activated when needed. LEDs are referred to by their label.This implementation requires a driver for each type of LED (e.g GPIO, I2C).
Signed-off-by: Simon Glass