meta-lenovo: obmc-libobmc-intf: Add hr855xg2 GPIO definitions
Add GPIO definitions for the hr855xg2 machine.
Tested: Built hr855xg2 machine and checked that the file
/etc/default/obmc/gpio/gpio_defs.json was correct
for hr855xg2 machine.
Signed-off-by: Lisa Liu <liuyj19@lenovo.com>
Change-Id: I5bed78618d54ea929bb2626b54084171cc4db692
diff --git a/meta-hr855xg2/recipes-phosphor/skeleton/obmc-libobmc-intf/gpio_defs.json b/meta-hr855xg2/recipes-phosphor/skeleton/obmc-libobmc-intf/gpio_defs.json
new file mode 100644
index 0000000..d8213fd
--- /dev/null
+++ b/meta-hr855xg2/recipes-phosphor/skeleton/obmc-libobmc-intf/gpio_defs.json
@@ -0,0 +1,35 @@
+{
+ "gpio_configs": {
+
+ "power_config": {
+ "power_good_in": "PGOOD",
+ "power_up_outs": [
+ ],
+ "reset_outs": [
+ ]
+ }
+ },
+
+ "gpio_definitions": [
+ {
+ "name": "PGOOD",
+ "pin": "H7",
+ "direction": "in"
+ },
+ {
+ "name": "POWER_BUTTON",
+ "pin": "I1",
+ "direction": "both"
+ },
+ {
+ "name": "RESET_BUTTON",
+ "pin": "R0",
+ "direction": "both"
+ },
+ {
+ "name": "ID_BTN",
+ "pin": "Y2",
+ "direction": "both"
+ }
+ ]
+}
diff --git a/meta-hr855xg2/recipes-phosphor/skeleton/obmc-libobmc-intf_%.bbappend b/meta-hr855xg2/recipes-phosphor/skeleton/obmc-libobmc-intf_%.bbappend
new file mode 100644
index 0000000..41eb4e2
--- /dev/null
+++ b/meta-hr855xg2/recipes-phosphor/skeleton/obmc-libobmc-intf_%.bbappend
@@ -0,0 +1,4 @@
+#"Copyright (c) 2019-present Lenovo
+#Licensed under BSD-3, see COPYING.BSD file for details."
+
+FILESEXTRAPATHS_prepend_hr855xg2 := "${THISDIR}/${PN}:"