add configuration interface for ModbusRTUDetect
Add the configuration interface for ModbusRTUDetect which exposes modbus
configuration for discovering Modbus devices. This is based on EM Schema
[1].
[1]: https://gerrit.openbmc.org/c/openbmc/entity-manager/+/77223
Change-Id: I3ab6d9bd102df3be0c400ea1e5291e5af0382fbd
Signed-off-by: Jagpal Singh Gill <paligill@gmail.com>
diff --git a/yaml/xyz/openbmc_project/Configuration/ModbusRTUDetect.interface.yaml b/yaml/xyz/openbmc_project/Configuration/ModbusRTUDetect.interface.yaml
new file mode 100644
index 0000000..3abc7c5
--- /dev/null
+++ b/yaml/xyz/openbmc_project/Configuration/ModbusRTUDetect.interface.yaml
@@ -0,0 +1,29 @@
+description: >
+ Implement to provide the Modbus RTU detection configuration for Modbus
+ devices.
+
+properties:
+ - name: Type
+ type: string
+ description: >
+ The type of configuration object.
+ flags:
+ - readonly
+ - name: Name
+ type: string
+ description: >
+ The name of the Modbus device.
+ flags:
+ - readonly
+ - name: DataParity
+ type: string
+ description: >
+ The data parity of the Modbus device.
+ flags:
+ - readonly
+ - name: BaudRate
+ type: uint64
+ description: >
+ The baud rate of the Modbus device.
+ flags:
+ - readonly