Add Host selector yaml configuration
Host selector interface is used to keep the position
of the host selector HW switch as a property.
This host selector position value decides which host
or bmc is currently selected in a multihost bmc system
so that the power and reset button events are
routed to the currently selected host or bmc's power control events.
Tested:
It's tested in Facebook multi-host Yosemitev2 system,
including in the Front panel with its selector button.
Signed-off-by: Manikandan Elumalai <manikandan.hcl.ers.epl@gmail.com>
Change-Id: I18b4bd779c467d7ddc5045c5380d93c1b8a73b74
diff --git a/yaml/xyz/openbmc_project/Chassis/Buttons/HostSelector.interface.yaml b/yaml/xyz/openbmc_project/Chassis/Buttons/HostSelector.interface.yaml
new file mode 100644
index 0000000..397460e
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Chassis/Buttons/HostSelector.interface.yaml
@@ -0,0 +1,22 @@
+description: >
+ Host selector interface is used to keep the position of the host
+ selector HW switch as a property.This host selector position value
+ decides which host or bmc is currently selected in a multihost bmc
+ system so that the power and reset button events are routed to
+ the currently selected host or bmc's power control events.
+
+properties:
+ - name: Position
+ type: size
+ default: 0
+ description: >
+ The current position of the selector. Position 1 to N selects
+ Host Instance t to N,Position 0 selects the BMC
+ ( N is maximum number of hosts ).
+ - name: MaxPosition
+ type: size
+ default: 0
+ flags:
+ - readonly
+ description: >
+ Maximum number for position value.