forked from Ivasoft/openwrt
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>
This commit is contained in:
committed by
Christian Lamparter
parent
b2e1333de3
commit
90bfbed7c2
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user