summaryrefslogtreecommitdiff
path: root/meta-ampere
diff options
context:
space:
mode:
authorChanh Nguyen <chanh@os.amperecomputing.com>2024-02-20 10:16:46 +0300
committerThang Q. Nguyen <thang@os.amperecomputing.com>2024-08-09 06:59:39 +0300
commit21d821fcf7e773f3c0e205b29b8ea950c9c22781 (patch)
tree786b1be27302c5847f9bd1ca2bbedfce85e9dd03 /meta-ampere
parentf36ed163cfb756281a505930033088699d2827d6 (diff)
downloadopenbmc-21d821fcf7e773f3c0e205b29b8ea950c9c22781.tar.xz
meta-ampere: mtmitchell: led: update led configuration
Update LED names to follow LED name convention at https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/devicetree/bindings/leds/leds-gpio.yaml Also add more LED groups that applications might potential use. Tested: 1. Check LED group in dbus to have expected groups root@mtmitchell-dcscm:~# busctl tree xyz.openbmc_project.LED.GroupManager `- /xyz `- /xyz/openbmc_project `- /xyz/openbmc_project/led `- /xyz/openbmc_project/led/groups |- /xyz/openbmc_project/led/groups/bmc_booted |- /xyz/openbmc_project/led/groups/enclosure_identify |- /xyz/openbmc_project/led/groups/enclosure_identify_blink |- /xyz/openbmc_project/led/groups/fan0_fault |- /xyz/openbmc_project/led/groups/fan1_fault |- /xyz/openbmc_project/led/groups/fan2_fault |- /xyz/openbmc_project/led/groups/fan3_fault |- /xyz/openbmc_project/led/groups/fan4_fault |- /xyz/openbmc_project/led/groups/fan5_fault |- /xyz/openbmc_project/led/groups/gpio_fault |- /xyz/openbmc_project/led/groups/overtemp_fault |- /xyz/openbmc_project/led/groups/power_on |- /xyz/openbmc_project/led/groups/psu_fault |- /xyz/openbmc_project/led/groups/ras_ue_fault `- /xyz/openbmc_project/led/groups/systemFault 2. Check journal log to ensure no error related to LED configuration. Change-Id: I2ef1ba810a6b91dad7d87d9dffb06145ce023e9d Signed-off-by: Chanh Nguyen <chanh@os.amperecomputing.com> Signed-off-by: Thang Q. Nguyen <thang@os.amperecomputing.com>
Diffstat (limited to 'meta-ampere')
-rw-r--r--meta-ampere/meta-mitchell/recipes-phosphor/leds/phosphor-led-manager/com.ampere.Hardware.Chassis.Model.MtMitchell.json75
1 files changed, 57 insertions, 18 deletions
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 8cd5d1beae..577b7f8e77 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
@@ -4,14 +4,14 @@
"group": "bmc_booted",
"members": [
{
- "Name": "bmc_ready",
+ "Name": "led_bmc_ready",
"Action": "On",
"DutyOn": 50,
"Period": 0,
"Priority": "On"
},
{
- "Name": "sw_heartbeat",
+ "Name": "led_sw_heartbeat",
"Action": "Blink",
"DutyOn": 50,
"Period": 2000,
@@ -28,7 +28,7 @@
"group": "systemFault",
"members": [
{
- "Name": "fault",
+ "Name": "led_fault",
"Action": "On",
"DutyOn": 50,
"Period": 0,
@@ -40,7 +40,7 @@
"group": "enclosure_identify",
"members": [
{
- "Name": "identify",
+ "Name": "led_identify",
"Action": "On",
"DutyOn": 50,
"Period": 1000
@@ -51,7 +51,7 @@
"group": "enclosure_identify_blink",
"members": [
{
- "Name": "identify",
+ "Name": "led_identify",
"Action": "Blink",
"DutyOn": 50,
"Period": 1000
@@ -62,13 +62,13 @@
"group": "fan0_fault",
"members": [
{
- "Name": "fan_fault",
+ "Name": "led_fan_fault",
"Action": "On",
"DutyOn": 50,
"Period": 1000
},
{
- "Name": "fault",
+ "Name": "led_fault",
"Action": "On",
"DutyOn": 50,
"Period": 1000
@@ -79,13 +79,13 @@
"group": "fan1_fault",
"members": [
{
- "Name": "fan_fault",
+ "Name": "led_fan_fault",
"Action": "On",
"DutyOn": 50,
"Period": 1000
},
{
- "Name": "fault",
+ "Name": "led_fault",
"Action": "On",
"DutyOn": 50,
"Period": 1000
@@ -96,13 +96,13 @@
"group": "fan2_fault",
"members": [
{
- "Name": "fan_fault",
+ "Name": "led_fan_fault",
"Action": "On",
"DutyOn": 50,
"Period": 1000
},
{
- "Name": "fault",
+ "Name": "led_fault",
"Action": "On",
"DutyOn": 50,
"Period": 1000
@@ -113,13 +113,13 @@
"group": "fan3_fault",
"members": [
{
- "Name": "fan_fault",
+ "Name": "led_fan_fault",
"Action": "On",
"DutyOn": 50,
"Period": 1000
},
{
- "Name": "fault",
+ "Name": "led_fault",
"Action": "On",
"DutyOn": 50,
"Period": 1000
@@ -130,13 +130,13 @@
"group": "fan4_fault",
"members": [
{
- "Name": "fan_fault",
+ "Name": "led_fan_fault",
"Action": "On",
"DutyOn": 50,
"Period": 1000
},
{
- "Name": "fault",
+ "Name": "led_fault",
"Action": "On",
"DutyOn": 50,
"Period": 1000
@@ -147,13 +147,41 @@
"group": "fan5_fault",
"members": [
{
- "Name": "fan_fault",
+ "Name": "led_fan_fault",
"Action": "On",
"DutyOn": 50,
"Period": 1000
},
{
- "Name": "fault",
+ "Name": "led_fault",
+ "Action": "On",
+ "DutyOn": 50,
+ "Period": 1000
+ }
+ ]
+ },
+ {
+ "group": "psu_fault",
+ "members": [
+ {
+ "Name": "led_psu_fault",
+ "Action": "On",
+ "DutyOn": 50,
+ "Period": 1000
+ },
+ {
+ "Name": "led_fault",
+ "Action": "On",
+ "DutyOn": 50,
+ "Period": 1000
+ }
+ ]
+ },
+ {
+ "group": "ras_ue_fault",
+ "members": [
+ {
+ "Name": "led_fault",
"Action": "On",
"DutyOn": 50,
"Period": 1000
@@ -164,7 +192,18 @@
"group": "overtemp_fault",
"members": [
{
- "Name": "fault",
+ "Name": "led_fault",
+ "Action": "On",
+ "DutyOn": 50,
+ "Period": 1000
+ }
+ ]
+ },
+ {
+ "group": "gpio_fault",
+ "members": [
+ {
+ "Name": "led_fault",
"Action": "On",
"DutyOn": 50,
"Period": 1000