meta-ampere: Update LED configurations
The phosphor-led-manager no longer assumes a default led priority
of 'Blink'.
Follow the LED priority configuration instruction [1], The LED priority
needs to be explicitly configured.
Also add the gpio_fault, psu_fault, ras_ue_fault led groups to
Mt.Jade's configuration.
[1] https://github.com/openbmc/phosphor-led-manager/blob/master/README.md#configuration-led-priority
Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com>
Change-Id: I4206c8e49cc19bbc56d62afca357446edee874c4
diff --git a/meta-ampere/meta-jade/recipes-phosphor/leds/phosphor-led-manager/com.ampere.Hardware.Chassis.Model.MtJade.json b/meta-ampere/meta-jade/recipes-phosphor/leds/phosphor-led-manager/com.ampere.Hardware.Chassis.Model.MtJade.json
index 8e57947..0d5de3c 100644
--- a/meta-ampere/meta-jade/recipes-phosphor/leds/phosphor-led-manager/com.ampere.Hardware.Chassis.Model.MtJade.json
+++ b/meta-ampere/meta-jade/recipes-phosphor/leds/phosphor-led-manager/com.ampere.Hardware.Chassis.Model.MtJade.json
@@ -11,12 +11,24 @@
]
},
{
+ "group": "gpio_fault",
+ "members": [
+ {
+ "Name": "fault",
+ "Action": "On",
+ "DutyOn": 50,
+ "Period": 0,
+ "Priority": "On"
+ }
+ ]
+ },
+ {
"group": "enclosure_identify",
"members": [
{
"Name": "identify",
"Action": "On",
- "Priority": "Blink",
+ "Priority": "On",
"DutyOn": 50,
"Period": 1000
}
@@ -28,7 +40,7 @@
{
"Name": "identify",
"Action": "Blink",
- "Priority": "Blink",
+ "Priority": "On",
"DutyOn": 50,
"Period": 1000
}
@@ -40,7 +52,7 @@
{
"Name": "fault",
"Action": "On",
- "Priority": "Blink",
+ "Priority": "On",
"DutyOn": 50,
"Period": 1000
}
@@ -52,7 +64,7 @@
{
"Name": "fault",
"Action": "On",
- "Priority": "Blink",
+ "Priority": "On",
"DutyOn": 50,
"Period": 1000
}
@@ -64,7 +76,7 @@
{
"Name": "fault",
"Action": "On",
- "Priority": "Blink",
+ "Priority": "On",
"DutyOn": 50,
"Period": 1000
}
@@ -76,7 +88,7 @@
{
"Name": "fault",
"Action": "On",
- "Priority": "Blink",
+ "Priority": "On",
"DutyOn": 50,
"Period": 1000
}
@@ -88,7 +100,7 @@
{
"Name": "fault",
"Action": "On",
- "Priority": "Blink",
+ "Priority": "On",
"DutyOn": 50,
"Period": 1000
}
@@ -100,7 +112,31 @@
{
"Name": "fault",
"Action": "On",
- "Priority": "Blink",
+ "Priority": "On",
+ "DutyOn": 50,
+ "Period": 1000
+ }
+ ]
+ },
+ {
+ "group": "psu_fault",
+ "members": [
+ {
+ "Name": "fault",
+ "Action": "On",
+ "Priority": "On",
+ "DutyOn": 50,
+ "Period": 1000
+ }
+ ]
+ },
+ {
+ "group": "ras_ue_fault",
+ "members": [
+ {
+ "Name": "fault",
+ "Action": "On",
+ "Priority": "On",
"DutyOn": 50,
"Period": 1000
}
@@ -112,7 +148,7 @@
{
"Name": "fault",
"Action": "On",
- "Priority": "Blink",
+ "Priority": "On",
"DutyOn": 50,
"Period": 1000
}
diff --git a/meta-ampere/meta-mitchell/recipes-phosphor/leds/phosphor-led-manager/com.ampere.Hardware.Chassis.Model.MtMitchell.json b/meta-ampere/meta-mitchell/recipes-phosphor/leds/phosphor-led-manager/com.ampere.Hardware.Chassis.Model.MtMitchell.json
index 577b7f8..e6e7248 100644
--- a/meta-ampere/meta-mitchell/recipes-phosphor/leds/phosphor-led-manager/com.ampere.Hardware.Chassis.Model.MtMitchell.json
+++ b/meta-ampere/meta-mitchell/recipes-phosphor/leds/phosphor-led-manager/com.ampere.Hardware.Chassis.Model.MtMitchell.json
@@ -15,7 +15,7 @@
"Action": "Blink",
"DutyOn": 50,
"Period": 2000,
- "Priority": "On"
+ "Priority": "Blink"
}
]
},
@@ -25,25 +25,14 @@
]
},
{
- "group": "systemFault",
- "members": [
- {
- "Name": "led_fault",
- "Action": "On",
- "DutyOn": 50,
- "Period": 0,
- "Priority": "Blink"
- }
- ]
- },
- {
"group": "enclosure_identify",
"members": [
{
"Name": "led_identify",
"Action": "On",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
}
]
},
@@ -54,7 +43,8 @@
"Name": "led_identify",
"Action": "Blink",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
}
]
},
@@ -65,13 +55,15 @@
"Name": "led_fan_fault",
"Action": "On",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
},
{
"Name": "led_fault",
"Action": "On",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
}
]
},
@@ -82,13 +74,15 @@
"Name": "led_fan_fault",
"Action": "On",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
},
{
"Name": "led_fault",
"Action": "On",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
}
]
},
@@ -99,13 +93,15 @@
"Name": "led_fan_fault",
"Action": "On",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
},
{
"Name": "led_fault",
"Action": "On",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
}
]
},
@@ -116,13 +112,15 @@
"Name": "led_fan_fault",
"Action": "On",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
},
{
"Name": "led_fault",
"Action": "On",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
}
]
},
@@ -133,13 +131,15 @@
"Name": "led_fan_fault",
"Action": "On",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
},
{
"Name": "led_fault",
"Action": "On",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
}
]
},
@@ -150,13 +150,15 @@
"Name": "led_fan_fault",
"Action": "On",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
},
{
"Name": "led_fault",
"Action": "On",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
}
]
},
@@ -167,13 +169,15 @@
"Name": "led_psu_fault",
"Action": "On",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
},
{
"Name": "led_fault",
"Action": "On",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
}
]
},
@@ -184,7 +188,8 @@
"Name": "led_fault",
"Action": "On",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
}
]
},
@@ -195,7 +200,8 @@
"Name": "led_fault",
"Action": "On",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
}
]
},
@@ -206,7 +212,8 @@
"Name": "led_fault",
"Action": "On",
"DutyOn": 50,
- "Period": 1000
+ "Period": 1000,
+ "Priority": "On"
}
]
}