meta-ibm: system1: add phosphor-buttons

Add phosphor-buttons to use the standard GPIOs to power on/off
the machine when the user presses the power button on the system

Also added the GPIO definition for the power button based on the
GPIO it is connected seen in the schematics.

Change-Id: I62e5179de37042020de016cc7b44afbe08e5638f
Signed-off-by: Jinu Joy Thomas <jinu.joy.thomas@in.ibm.com>
diff --git a/meta-ibm/meta-system1/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bbappend b/meta-ibm/meta-system1/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bbappend
index 4af371e..23ceecf 100644
--- a/meta-ibm/meta-system1/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bbappend
+++ b/meta-ibm/meta-system1/recipes-phosphor/packagegroups/packagegroup-obmc-apps.bbappend
@@ -12,6 +12,8 @@
 
 SUMMARY:${PN}-chassis = "OpenPOWER Chassis"
 RDEPENDS:${PN}-chassis = " \
+        obmc-phosphor-buttons-signals \
+        obmc-phosphor-buttons-handler \
         phosphor-power-control \
         phosphor-skeleton-control-power \
 "
diff --git a/meta-ibm/recipes-phosphor/skeleton/obmc-libobmc-intf/system1/gpio_defs.json b/meta-ibm/recipes-phosphor/skeleton/obmc-libobmc-intf/system1/gpio_defs.json
index b5c9aa1..ef09c75 100644
--- a/meta-ibm/recipes-phosphor/skeleton/obmc-libobmc-intf/system1/gpio_defs.json
+++ b/meta-ibm/recipes-phosphor/skeleton/obmc-libobmc-intf/system1/gpio_defs.json
@@ -15,6 +15,11 @@
             "name": "PGOOD",
             "pin": "V3",
             "direction": "in"
+        },
+        {
+            "name": "POWER_BUTTON",
+            "pin": "X6",
+            "direction": "in"
         }
     ]
 }