aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/lantiq/base-files/etc/diag.sh
Commit message (Collapse)AuthorAgeFilesLines
* apm821xx, ath79, ipq40xx, ipq806x, lantiq, ramips: base-files: Use generic ↵Petr Štetiar2018-12-061-46/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | diag.sh I wanted to add status LEDs support to my imx6 based board and have found out, that I could use diag.sh script found in ramips platform, which seems to be also shared in a few other platforms: 4801276bc2078c5bcf03003c831e3b0a target/linux/ramips/base-files/etc/diag.sh 4801276bc2078c5bcf03003c831e3b0a target/linux/ipq40xx/base-files/etc/diag.sh 4801276bc2078c5bcf03003c831e3b0a target/linux/ath79/base-files/etc/diag.sh And @chunkeey suggested to me, that I can also add lantiq, ipq806x and apm821xx to the list of platforms which could share this generic diag.sh. I've extended the base diag.sh in a way, that if it detects any of the DTS LED aliases, then it would use the generic DTS set_led_state code. The code in platform's diag.sh has moved to base-files package in this commit: base-files: diag.sh: Make it more generic towards DTS so it could be reused Signed-off-by: Petr Štetiar <ynezz@true.cz> Tested-by: Christian Lamparter <chunkeey@gmail.com> (apm821xx and ipq40xx)
* lantiq: add support for upgrade ledMathias Kresin2018-08-161-0/+9
| | | | | | | | | | Indicate a (sys)upgrade via leds as well. It brings the lantiq diag.sh script en par with the other implementations using devicetree aliases to define multiple leds for boot status indication. By default, use the boot finished led to indicate an upgrade for now. Signed-off-by: Mathias Kresin <dev@kresin.me>
* base-files: unify get_dt_led helper functionChristian Lamparter2017-12-141-5/+4
| | | | | | | | | | | | | | Lantiq and IPQ806X (which includes IPQ40XX) both define the same custom function {ipq806x|lantiq}_get_dt_led. This patch moves the function into the base-file package at lib/functions/leds.sh to make it more accessible for other targets as well. Cc: Mathias Kresin <dev@kresin.me> Cc: John Crispin <john@phrozen.org> Cc: Hannu Nyman <hannu.nyman@iki.fi> Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
* lantiq: cleanup led handling functionsMathias Kresin2016-10-051-3/+3
| | | | | | | | | Use a more generic name for the lantiq_get_dt_led_chosen function. Drop the lantiq_is_dt_led_chosen function. The lantiq_get_dt_led function can be used to achieve the same. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: diag - switch off the power led on failsafeMathias Kresin2016-06-201-0/+4
| | | | | | | | | | | | | | This patch is a follow up to commit 4cf3fd4 "add support for indicating the boot state using three leds". At the time of writing the patch, I wasn't aware that it's possible to switch info failsafe after boot (factory reset). Enabling the failsafe led without disabling the running led causes an unexpected led colour on devices using a single multicolour led to indicate the boot state. Signed-off-by: Mathias Kresin <dev@kresin.me>
* lantiq: Fix typo in LED diag script.John Crispin2016-04-261-1/+1
| | | | | | | Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> Acked-by: Mathias Kresin <openwrt@kresin.me> SVN-Revision: 49242
* lantiq: add support for indicating the boot state using three ledsJohn Crispin2016-01-011-36/+16
| | | | | | | | | | | | | | The BTHOMEHUBV5A has a RGB power led, where every colour is perfect to indicate the current boot state. This patch adds support for such cases. The existing led sequences should be the same as before. Boards which are using a led different from power (like TDW89x0) are changed to switch of the led after boot Signed-off-by: Mathias Kresin <openwrt@kresin.me> SVN-Revision: 48041
* lantiq: use power leds defined in DTSJohn Crispin2016-01-011-15/+19
| | | | | | | | Use the power leds defined in the dts file instead of hardcoded led names. Signed-off-by: Mathias Kresin <openwrt@kresin.me> SVN-Revision: 48039
* lantiq: Fix LED handling.John Crispin2015-12-171-24/+32
| | | | | | | | | | - Use common OpenWrt blink patterns instead of custom ones - Add preinit_regular hook - Handle the TDW89X0 that does not have a configurable power LED Signed-off-by: Vittorio Gambaletta <openwrt@vittgam.net> SVN-Revision: 47914
* lantiq: fix up diag.shJohn Crispin2013-10-081-2/+0
| | | | | | | | init no longer exists as a parameter Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 38342
* lantiq: diag.sh with both red and green power LEDsJohn Crispin2013-06-101-0/+20
| | | | | | | | | | This provides a boot LED sequence suitable for devices with both red and green LEDs for power. This assumes no "default-on" settings in the device tree. Signed-off-by: Daniel Gimpelevich <daniel@gimpelevich.san-francisco.ca.us> SVN-Revision: 36899
* Migrate lantiq platform to common led helper functionsJohn Crispin2013-04-031-29/+11
| | | | | | | | http://patchwork.openwrt.org/patch/3316/ Signed-off-by: Michael Heimpold <mhei@heimpold.de> SVN-Revision: 36187
* cleanup basefilesJohn Crispin2012-12-151-0/+42
SVN-Revision: 34698