From da357ce3d4c7f4bef572dff6c0cbbb16c0b6f1d8 Mon Sep 17 00:00:00 2001 From: George Liu Date: Tue, 26 May 2020 17:58:01 +0800 Subject: fp5280g2: Load LED manager with JSON configuration Since the led manager used the default YAML to generated led-gen.hpp and creates D-Bus object for the groups, and we tend to use JSON instead of YAML to create it. Tested: built successfully on phosphor-led-manager and create D-Bus object used JSON configuration. (From meta-inspur rev: 911c71c43beb4a3696f5c846bee06bc0a0d7bab2) Signed-off-by: George Liu Change-Id: Ibc72f26519bb968ed4b4c8df4e068206ab9c0704 Signed-off-by: Andrew Geissler --- .../phosphor-led-manager/led-group-config.json | 35 ++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 meta-inspur/meta-fp5280g2/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json (limited to 'meta-inspur/meta-fp5280g2/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json') diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json b/meta-inspur/meta-fp5280g2/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json new file mode 100644 index 000000000..43dbdc93e --- /dev/null +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json @@ -0,0 +1,35 @@ +{ + "leds": [ + { + "group": "bmc_booted", + "members": [ + { + "Name": "power", + "Action": "Blink", + "DutyOn": 50, + "Period": 1000, + "Priority": "On" + }, + { + "Name": "init_ok", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "On" + } + ] + }, + { + "group": "power_on", + "members": [ + { + "Name": "power", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "On" + } + ] + } + ] +} -- cgit v1.2.3 From f6f3328c6831148f10c85b9d29a6d1217b229f9e Mon Sep 17 00:00:00 2001 From: George Liu Date: Thu, 23 Jul 2020 17:54:14 +0800 Subject: fp5280g2: leds: Add JSON configuration file having Group definition This commit adds the JSON configuration file having LED Group definitions and also enables using JSON at runtime than using the compile time generated group definition from YAML. (From meta-inspur rev: 88e5fee64a82d51e3f10137e9248a5aa72201c06) Signed-off-by: George Liu Change-Id: Idba650ab8e9df85eaca266ffd678baa48d9c91f3 Signed-off-by: Andrew Geissler --- .../phosphor-led-manager/led-group-config.json | 588 +++++++++++++++++++++ 1 file changed, 588 insertions(+) (limited to 'meta-inspur/meta-fp5280g2/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json') diff --git a/meta-inspur/meta-fp5280g2/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json b/meta-inspur/meta-fp5280g2/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json index 43dbdc93e..9db14cb0a 100644 --- a/meta-inspur/meta-fp5280g2/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json +++ b/meta-inspur/meta-fp5280g2/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json @@ -19,6 +19,594 @@ } ] }, + { + "group": "bmc_fault", + "members": [ + { + "Name": "front_syshealth", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm0_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm1_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm2_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm3_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm4_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm5_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm6_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm7_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm8_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm9_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm10_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm11_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm12_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm13_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm14_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "dimm15_fault", + "members": [ + { + "Name": "front_memory", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "cpu0_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "cpu1_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core0_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core1_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core2_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core3_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core4_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core5_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core6_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core7_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core8_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core9_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core10_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core11_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core12_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core13_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core14_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core15_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core16_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core17_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core18_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core19_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core20_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core21_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core22_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "core23_fault", + "members": [ + { + "Name": "front_syshot", + "Action": "On", + "DutyOn": 50, + "Period": 0, + "Priority": "Blink" + } + ] + }, + { + "group": "fan0_fault", + "members": [ + { + "Name": "front_fan", + "Action": "Blink", + "DutyOn": 50, + "Period": 1000, + "Priority": "Blink" + } + ] + }, + { + "group": "fan1_fault", + "members": [ + { + "Name": "front_fan", + "Action": "Blink", + "DutyOn": 50, + "Period": 1000, + "Priority": "Blink" + } + ] + }, + { + "group": "fan2_fault", + "members": [ + { + "Name": "front_fan", + "Action": "Blink", + "DutyOn": 50, + "Period": 1000, + "Priority": "Blink" + } + ] + }, + { + "group": "fan3_fault", + "members": [ + { + "Name": "front_fan", + "Action": "Blink", + "DutyOn": 50, + "Period": 1000, + "Priority": "Blink" + } + ] + }, + { + "group": "powersupply0_fault", + "members": [ + { + "Name": "front_psu", + "Action": "Blink", + "DutyOn": 50, + "Period": 1000, + "Priority": "Blink" + } + ] + }, + { + "group": "powersupply1_fault", + "members": [ + { + "Name": "front_psu", + "Action": "Blink", + "DutyOn": 50, + "Period": 1000, + "Priority": "Blink" + } + ] + }, { "group": "power_on", "members": [ -- cgit v1.2.3