From 7bfedcf46b05c55266fb7bdd253ce81975dfa9d9 Mon Sep 17 00:00:00 2001 From: Lotus Xu Date: Wed, 8 Dec 2021 14:21:07 +0800 Subject: bytedance: g220a: Modify power-control config Tested: Test on qemu ipmi chassis status cmd work correct Signed-off-by: Lotus Xu Change-Id: I60d20bf58c21b5c81d5fbad7649c1e2b43351392 --- .../x86-power-control/power-config-host0.json | 53 ++++++++++++++++++---- 1 file changed, 44 insertions(+), 9 deletions(-) (limited to 'meta-bytedance/meta-g220a/recipes-phosphor/chassis/x86-power-control') diff --git a/meta-bytedance/meta-g220a/recipes-phosphor/chassis/x86-power-control/power-config-host0.json b/meta-bytedance/meta-g220a/recipes-phosphor/chassis/x86-power-control/power-config-host0.json index c16564440..1ca0e613d 100644 --- a/meta-bytedance/meta-g220a/recipes-phosphor/chassis/x86-power-control/power-config-host0.json +++ b/meta-bytedance/meta-g220a/recipes-phosphor/chassis/x86-power-control/power-config-host0.json @@ -1,11 +1,46 @@ { - "gpio_configs": { - "NMIButton": "NMI_BUTTON", - "NMIOut": "NMI_OUT", - "PostComplete": "POST_COMPLETE", - "PwrButton": "POWER_BUTTON", - "PwrOK": "PS_PWROK", - "PwrOut": "POWER_OUT", - "RstOut": "RESET_OUT" - } + "gpio_configs": [ + { + "Name" : "NMIButton", + "LineName" : "NMI_BUTTON", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + { + "Name" : "NMIOut", + "LineName" : "NMI_OUT", + "Type" : "GPIO", + "Polarity" : "ActiveHigh" + }, + { + "Name" : "PostComplete", + "LineName" : "POST_COMPLETE", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + { + "Name" : "PowerButton", + "LineName" : "POWER_BUTTON", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + { + "Name" : "PowerOk", + "LineName" : "PS_PWROK", + "Type" : "GPIO", + "Polarity" : "ActiveHigh" + }, + { + "Name" : "PowerOut", + "LineName" : "POWER_OUT", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + }, + { + "Name" : "ResetOut", + "LineName" : "RESET_OUT", + "Type" : "GPIO", + "Polarity" : "ActiveLow" + } + ] } -- cgit v1.2.3