-------------------------------------------------------------------------------
* 15ba90f Add support for external LED application.
* da6eb1d Add functionality to change default brightness for SK9822 LEDs.
-------------------------------------------------------------------------------
commit 15ba90f01914113e7c5e8f8a6df6279c882e8265
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2021-05-11 09:52:55 +0200
Add support for external LED application.
Add support for a callback script/application to control LEDs.
This commits adds the ability to control a LED via an external application.
The API is simple and is described in
'iopsys-brcm63xx-arm/tiger/base-files/sbin/external_led_ctrl.sh'.
To avoid unnecessary execution of the callback-script, logic has been added
to keep track on when to update the LEDs.
Base directory -> /
src/gpio_led.c | 133 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 132 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit da6eb1d6c0fd03d45cbf5213acd5c2ff07b45bf5
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2021-05-11 09:40:00 +0200
Add functionality to change default brightness for SK9822 LEDs.
This commit adds the 'sk9822_brightness_file' option. The option can be used
to adjust the default maximum brightness for the SK9822 LED driver.
Base directory -> /
src/gpio_led.c | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
As Broadcom has moved to standard interfaces, peripheral_manager no
longer depends on Broadcom headers or executables.
Remove the dependency and preprocessor options.
-------------------------------------------------------------------------------
* d9c2222 Revert "If state is the same as what has already been applied, don't do"
-------------------------------------------------------------------------------
commit d9c22221f6cb414126978c92295fdcc0885e3285
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-03-23 17:24:33 +0100
Revert "If state is the same as what has already been applied, don't do"
This reverts commit 4763b55173a50c572ef91ae4c9889d37200a3997.
Base directory -> /
src/gpio_led.c | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
* 4763b55 If state is the same as what has already been applied, don't do anything.
* 27b0656 sk9822: Add brightness capability
* 44a458c Add advanced LED indicators for button-press
-------------------------------------------------------------------------------
commit 4763b55173a50c572ef91ae4c9889d37200a3997
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2021-02-19 13:15:03 +0100
If state is the same as what has already been applied, don't do anything.
This is a workaround for a bug in the Broadcom CLED driver which causes
flickering of LED:s when brightness is repeatedly set.
Base directory -> /
src/gpio_led.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 27b06566339f22ec0fdc3c71bb9e45c7b22cad86
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2021-01-29 10:38:07 +0100
sk9822: Add brightness capability
When using the sk9822 interface we can set the brightness via an updated
kernel module.
This commit adds support for using the updated API.
Base directory -> /
src/gpio_led.c | 35 ++++++++++++++++++++++++++++++++++-
1 file changed, 34 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
commit 44a458c77543da8f7b97cc5e7c11fa16b986831e
Author: Markus Gothe <markus.gothe@genexis.eu>
Date: 2021-01-29 10:42:27 +0100
Add advanced LED indicators for button-press
On some products it's necessary to disable the button indicators for certain
buttons or only enable a short-press indicator when the long-press event
occurs.
This commit adds a third state to solve this as well as options to disable
the press indicators for a specific button.
Base directory -> /
src/button.c | 26 ++++++++++++++++++++++++--
1 file changed, 24 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
* c1598f9 added support for Linux LED
-------------------------------------------------------------------------------
commit c1598f9dc8f2d67fbfcfd831052f40b3cde3d19c
Author: Oussama Ghorbel <oussama.ghorbel@iopsys.eu>
Date: 2019-04-12 14:11:06 +0200
added support for Linux LED
Base directory -> /
src/gpio_led.c | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 74 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
* 5eaa810 Prevent adding the same button twice.
* d9307f7 if config read from /lib/db/config/hw then do not allow any changes.
* a930a09 Read button config from two places.
-------------------------------------------------------------------------------
commit 5eaa810747ec7c130df2a2e6ac3a1df664c8f06b
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-09-26 19:02:20 +0200
Prevent adding the same button twice.
Base directory -> /
src/button.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
-------------------------------------------------------------------------------
commit d9307f796d8b30170fdff7451c4efc35ed3cd428
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-09-26 18:54:53 +0200
if config read from /lib/db/config/hw then do not allow any changes.
Base directory -> /
src/button.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
-------------------------------------------------------------------------------
commit a930a095a0f2f4a338de846fd5a01de609588365
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-09-26 18:40:05 +0200
Read button config from two places.
First read /lib/db/config/hw then /etc/config/button
Base directory -> /
src/button.c | 317 ++++++++++++++++++++++++++++++++++-------------------------
1 file changed, 182 insertions(+), 135 deletions(-)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
* a9e0b8e wlctl needs to have the interface as argument.
-------------------------------------------------------------------------------
commit a9e0b8ea80511ef16ef71c59412bcd9b90beb7fe
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-06-09 16:54:25 +0200
wlctl needs to have the interface as argument.
On systems with multiple wifi chips we need to specify what chip the led is
connected to.
Also fix an issue with address could only be 0-9 and we need 0-31.
Base directory -> /
src/wlctl_led.c | 26 +++++++++++++++++++-------
1 file changed, 19 insertions(+), 7 deletions(-)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
* ff2cf8b Remove gpio_test program as it does not compile with musl
-------------------------------------------------------------------------------
commit ff2cf8bfbd3a04731088e9f4540796696e961382
Author: Jonas Höglund <jonas.hoglund@embeddednation.com>
Date: 2017-04-05 10:16:15 +0200
Remove gpio_test program as it does not compile with musl
Base directory -> /
Makefile.am | 15 +--------------
1 file changed, 1 insertion(+), 14 deletions(-)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
* a6eaaae Implement support function for led driver.
-------------------------------------------------------------------------------
commit a6eaaae28519e1b77cd6e7a95c28bf9b113afecb
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-03-16 16:43:47 +0100
Implement support function for led driver.
Need this to avoid led module to set leds to unsupported state.
Base directory -> /
src/gpio_led.c | 16 ++++++++++++++++
src/touch_sx9512.c | 16 ++++++++++++++++
2 files changed, 32 insertions(+)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
* c3c2a59 change catv montor to run 10 times slower when no module is detected.
* 9700e9d Add delay for gpio.
-------------------------------------------------------------------------------
commit c3c2a591ad74ae0bdc255e8255045879502b2522
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-03-07 15:58:57 +0100
change catv montor to run 10 times slower when no module is detected.
Base directory -> /
src/catv_monitor.c | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
commit 9700e9d11a146344b80e17dcd093474a15f8262a
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2017-03-07 15:47:06 +0100
Add delay for gpio.
This delay is how long to wait in microseconds after a gpio value is set.
Used to work around HW issue with setting bits where the hardware uses a
read modify write on a pin with a large capacitor.
Base directory -> /
src/gpio.c | 8 ++++----
src/gpio.h | 2 +-
src/gpio_led.c | 15 ++++++++++++---
src/gpio_shift_register.c | 16 ++++++++--------
src/gpio_test.c | 2 +-
5 files changed, 26 insertions(+), 17 deletions(-)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
* 8ff193b When sending a ubus button event, include info about short or long press (like is beeing done for /sbin/hotplug-call). refs #9873
-------------------------------------------------------------------------------
commit 8ff193b389aa5d960225166b92cc60b32721504f
Author: Ronny Nilsson <ronny.nilsson@inteno.se>
Date: 2016-08-29 15:23:12 +0200
When sending a ubus button event, include info about short or long press
(like is beeing done for /sbin/hotplug-call). refs #9873
Base directory -> /
src/button.c | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
* 4a64f96 Workaround for ghost gpio press directly after start
-------------------------------------------------------------------------------
commit 4a64f969af4ee38507e83ed113e4e6a6fa9b9cf1
Author: Benjamin Larsson <benjamin@southpole.se>
Date: 2016-08-17 11:41:09 +0200
Workaround for ghost gpio press directly after start
On platforms with gpio buttons we have seen that sometimes buttons get
pressed directly after start and thus disabling the wifi. This change
implements a dummy read to flush out the bad states. Also implemented is a
check if a button is pressed directly 4 seconds after start. If that is the
case the press is logged to the syslog and then ignored.
Base directory -> /
src/button.c | 13 ++++++++++++-
src/gpio_button.c | 12 ++++++++++--
src/peripheral_manager.c | 2 ++
src/server.c | 6 ++++++
src/server.h | 3 +++
5 files changed, 33 insertions(+), 3 deletions(-)
-------------------------------------------------------------------------------
-------------------------------------------------------------------------------
* dfcf187 Do not try to set flash state to led panel leds.
-------------------------------------------------------------------------------
commit dfcf187cf3961841dee750371d3999d23297b74c
Author: Kenneth Johansson <kenneth@southpole.se>
Date: 2016-07-11 17:04:50 +0200
Do not try to set flash state to led panel leds.
Ask driver if it supports hardware flash if not do not set it. This to avoid
a printout from the actual driver that complain it can't set this state.
refs #9720
Base directory -> /
src/led.c | 11 ++++++++++-
1 file changed, 10 insertions(+), 1 deletion(-)
-------------------------------------------------------------------------------