Add Control.FanPwm interface
The following reference indicates that pwm[n], when available
are consistently implemented. Therefore, it's a valid approach.
https://www.kernel.org/doc/Documentation/hwmon/sysfs-interface
I'd like to use this interface with phosphor-hwmon to control our
fans in a similar fashion to RPM-driven control via a target.
Change-Id: Ic1d9363d616e650ba7d5162f424700d6768cdf1f
Signed-off-by: Patrick Venture <venture@google.com>
diff --git a/xyz/openbmc_project/Control/FanPwm.interface.yaml b/xyz/openbmc_project/Control/FanPwm.interface.yaml
new file mode 100644
index 0000000..0c711db
--- /dev/null
+++ b/xyz/openbmc_project/Control/FanPwm.interface.yaml
@@ -0,0 +1,16 @@
+description: >
+ Implement to provide fan pwm control. The method of control is hardware
+ dependent and objects implementing Control.FanPwm must be instantiated
+ within the sensors/fan_tach namespace.
+
+ Any service implementing Control.FanPwm on one or more objects must
+ implement xyz.openbmc_project.Sensors.Value on the object and
+ org.freedesktop.DBus.ObjectManager on the sensors namespace root.
+
+ All Control.FanPwm properties are read-write.
+
+properties:
+ - name: Target
+ type: uint64
+ description: >
+ The fan pwm target value. 0 - 255