FanSensor: Add initial of pwm enable file

  For some fan controller, they need to set the specific regulator mode
to make the corresponding fan be able to be updated.
  For example, we are using fan controller MAX31790 and it need to write
1 into ./hwmon1/pwm1_enable to make ./hwmon1/fan1_input be able to be
updated.
  Add MAX31790 in sensor type and make it write 1 into pwm*_enable file
automatically.

Tested:
1. Remove entry "Pwm" in connector of some I2CFan in json and verify
   pass.

Signed-off-by: Jeff Lin <JeffLin2@quantatw.com>
Change-Id: Id97282bcd12b70fb7fc92f4d06e0e326522894a3
1 file changed
tree: 3537dcc5e6f7513901ffaa42f441d157fe1f295c
  1. include/
  2. service_files/
  3. src/
  4. tests/
  5. .clang-format
  6. .clang-ignore
  7. .clang-tidy
  8. .gitignore
  9. Jenkinsfile
  10. LICENSE
  11. MAINTAINERS
  12. meson.build
  13. meson_options.txt
  14. README.md
README.md

dbus-sensors

dbus-sensors is a collection of sensor applications that provide the xyz.openbmc_project.Sensor collection of interfaces. They read sensor values from hwmon, d-bus, or direct driver access to provide readings. Some advance non-sensor features such as fan presence, pwm control, and automatic cpu detection (x86) are also supported.

key features

  • runtime re-configurable from d-bus (entity-manager or the like)

  • isolated: each sensor type is isolated into its own daemon, so a bug in one sensor is unlikely to affect another, and single sensor modifications are possible

  • async single-threaded: uses sdbusplus/asio bindings

  • multiple data inputs: hwmon, d-bus, direct driver access

sensor documentation