Add power cap boundary validation

Limit the power cap boundaries based on values from the MRW.
Use OPEN_POWER_N_PLUS_ONE_BULK_POWER_LIMIT_WATTS and
OPEN_POWER_SOFT_MIN_PCAP_WATTS from the MRW for the boundaries.

Resolves openbmc/openbmc#1863

Change-Id: I16ff55dc8dab8a0f8b837e815e9e409ad23db644
Signed-off-by: Gunnar Mills <gmills@us.ibm.com>
diff --git a/meta-witherspoon/recipes-phosphor/settings/phosphor-settings-read-settings-mrw/mrw-override-settings.yaml b/meta-witherspoon/recipes-phosphor/settings/phosphor-settings-read-settings-mrw/mrw-override-settings.yaml
new file mode 100644
index 0000000..0bfd515
--- /dev/null
+++ b/meta-witherspoon/recipes-phosphor/settings/phosphor-settings-read-settings-mrw/mrw-override-settings.yaml
@@ -0,0 +1,11 @@
+/xyz/openbmc_project/control/host0/power_cap:
+    - Interface: xyz.openbmc_project.Control.Power.Cap
+      Properties:
+          PowerCap:
+              Default: 0
+              Validation:
+                  Type: "range"
+                  Validator: "MRW_OPEN_POWER_SOFT_MIN_PCAP_WATTS..MRW_OPEN_POWER_N_PLUS_ONE_BULK_POWER_LIMIT_WATTS"
+                  Unit: "Watts"
+          PowerCapEnable:
+               Default: 'false'