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 <liuxiwei@inspur.com>
Change-Id: Idba650ab8e9df85eaca266ffd678baa48d9c91f3
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
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 43dbdc9..9db14cb 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
@@ -20,6 +20,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": [
                 {