From 862ac59a52945ada1a6e641ab625dc18ec614192 Mon Sep 17 00:00:00 2001 From: Patrick Venture Date: Wed, 20 Dec 2017 09:08:29 -0800 Subject: 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 --- xyz/openbmc_project/Control/FanPwm.interface.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 xyz/openbmc_project/Control/FanPwm.interface.yaml 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 -- cgit v1.2.1