schemas: legacy: refine 'BridgeGpio'

'BridgeGpio' was not clearly defined, define it according to the
upstream configurations.

2 Configurations have been adjusted due to misconfiguration of
'Polarity' field. This change should have no effect on runtime behavior,
the code has been checked [1].

Tested: Schema Validator Pass

References:
[1] https://github.com/openbmc/dbus-sensors/blob/408061153b93d3cf1699a019bc76dc5cc2b0c356/src/adc/ADCSensorMain.cpp#L284

Change-Id: Ic4167cbe371cb28d8ad8e8f375dfa5f9c4089019
Signed-off-by: Alexander Hansen <alexander.hansen@9elements.com>
diff --git a/configurations/meta/yosemite4.json b/configurations/meta/yosemite4.json
index 8b90d8a..a3b1ff9 100644
--- a/configurations/meta/yosemite4.json
+++ b/configurations/meta/yosemite4.json
@@ -450,7 +450,7 @@
             "BridgeGpio": [
                 {
                     "Name": "EN_P3V_BAT_SCALED_R",
-                    "Polarity": "H",
+                    "Polarity": "High",
                     "SetupTime": 1
                 }
             ],
diff --git a/configurations/meta/yosemite4n.json b/configurations/meta/yosemite4n.json
index e5d3229..53de562 100644
--- a/configurations/meta/yosemite4n.json
+++ b/configurations/meta/yosemite4n.json
@@ -292,7 +292,7 @@
             "BridgeGpio": [
                 {
                     "Name": "EN_P3V_BAT_SCALED_R",
-                    "Polarity": "H",
+                    "Polarity": "High",
                     "SetupTime": 1
                 }
             ],
diff --git a/schemas/legacy.json b/schemas/legacy.json
index 70d2113..b35ee7a 100644
--- a/schemas/legacy.json
+++ b/schemas/legacy.json
@@ -902,7 +902,25 @@
                 "type": "string"
             },
             "BridgeGpio": {
-                "type": ["number", "array"]
+                "type": "array",
+                "items": {
+                    "additionalProperties": false,
+                    "properties": {
+                        "Name": {
+                            "$ref": "#/$defs/Types/Name"
+                        },
+                        "Label": {
+                            "$ref": "#/$defs/Types/Name"
+                        },
+                        "Polarity": {
+                            "$ref": "#/$defs/Types/Polarity"
+                        },
+                        "SetupTime": {
+                            "type": "number"
+                        }
+                    },
+                    "required": ["Name", "Polarity"]
+                }
             },
             "Bus": {
                 "type": ["string", "number"]