GPIO valve: add configuration interface
Add configuration interface for GPIO based valve where the valve's open
status is depicted by a GPIO. This configuration will be consumed by
ValveMonitor service which will be added to dbus-sensors repository.
Change-Id: I79374eba4fd80e2fe3876aad1c47cbefb72c93ca
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/yaml/xyz/openbmc_project/Configuration/GPIOValve.interface.yaml b/yaml/xyz/openbmc_project/Configuration/GPIOValve.interface.yaml
new file mode 100644
index 0000000..12c476e
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Configuration/GPIOValve.interface.yaml
@@ -0,0 +1,38 @@
+description: >
+ Implement to provide entity manager configuration for the gpio based valve.
+
+properties:
+ - name: Type
+ type: string
+ description: >
+ The type of configuration object.
+ flags:
+ - readonly
+ - name: Name
+ type: string
+ description: >
+ The name of the valve.
+ flags:
+ - readonly
+ - name: OpenPinName
+ type: string
+ description: >
+ The name of the GPIO pin that shows the valve's open status.
+ flags:
+ - readonly
+ - name: OpenPolarity
+ type: string
+ description: >
+ The GPIO polarity depicting valve's open status.
+ flags:
+ - readonly
+ - name: OpenControlPinName
+ type: string
+ description: >
+ The name of the GPIO pin that controls opening the valve.
+ flags:
+ - readonly
+ - name: OpenControlValue
+ type: boolean
+ description: >
+ The GPIO value to set to open the valve.