aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts
diff options
context:
space:
mode:
authorDavid Bauer <mail@david-bauer.net>2019-01-17 00:43:12 +0100
committerChristian Lamparter <chunkeey@gmail.com>2019-01-26 17:10:19 +0100
commit90bfbed7c2b2977776154010459cecb03b239ec0 (patch)
treef54215e92c406c8ff127e68d6e5dd029f1ed06cf /target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts
parentb2e1333de3d47dede02fa6109063df6c0432e732 (diff)
downloadupstream-90bfbed7c2b2977776154010459cecb03b239ec0.tar.gz
upstream-90bfbed7c2b2977776154010459cecb03b239ec0.tar.bz2
upstream-90bfbed7c2b2977776154010459cecb03b239ec0.zip
mpc85xx: use generic diag.sh
This commit removes the target-specific diag.sh script. This way, the generic one is used for the target, which uses DT-aliases to specify the LEDs used. This way, we are also able to use different LEDs to indicate different states. We use green status LEDs for indicating boot and a running system. Where possible, the red status LED is used to indicate failsafe mode and a running upgrade. Signed-off-by: David Bauer <mail@david-bauer.net>
Diffstat (limited to 'target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts')
-rw-r--r--target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts11
1 files changed, 9 insertions, 2 deletions
diff --git a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts
index 5e732664aa..c4abc905e9 100644
--- a/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts
+++ b/target/linux/mpc85xx/files/arch/powerpc/boot/dts/hiveap-330.dts
@@ -14,6 +14,13 @@
model = "Aerohive HiveAP-330";
compatible = "aerohive,hiveap-330";
+ aliases {
+ led-boot = &tricolor_green;
+ led-failsafe = &tricolor_red;
+ led-running = &tricolor_green;
+ led-upgrade = &tricolor_red;
+ };
+
chosen {
bootargs-override = "console=ttyS0,9600";
};
@@ -109,12 +116,12 @@
compatible = "national,lp5521";
reg = <0x32>;
clock-mode = /bits/ 8 <2>;
- chan0 {
+ tricolor_red: chan0 {
chan-name = "hiveap-330:red:tricolor0";
led-cur = /bits/ 8 <0x2f>;
max-cur = /bits/ 8 <0x5f>;
};
- chan1 {
+ tricolor_green:chan1 {
chan-name = "hiveap-330:green:tricolor0";
led-cur = /bits/ 8 <0x2f>;
max-cur = /bits/ 8 <0x5f>;