i2c/sensors: Add driver for W83793 hardware monitorThe Winbond/Nuvoton W83793G system monitor chip includes many featuresnot currently supported by this driver. The following are currentlysuppor
i2c/sensors: Add driver for W83793 hardware monitorThe Winbond/Nuvoton W83793G system monitor chip includes many featuresnot currently supported by this driver. The following are currentlysupported:* Up to 6 temperature sensors, 4 of which have 10-bit resolution (8.2),two with 8-bit resolution (no decimal component)* Up to 12 fans - Fans 0-4 (1-5 on the datasheet) are always enabled. The remaining 7 fans are individually enabled.* Multiple voltage sensors, reading up to 10 voltage sources. Sysctls are labeled to match the datasheet.* Chassis open detection.The W83793AG is a feature-reduced version, which lacks 3 thermal diodesand 2 voltage monitors. Since there is no way to tell the differencebetween the W83793AG and W83793G programmatically, sensors reported onthe W83793AG will report strange values.Temperature sensors and 7 of the fans can be individually enabled on thechip, but currently not configured by this driver. The driver onlyreports what was configured by the firmware. Additionally, this drivernumbers the sensors and fans according to the datasheet, so even if, forinstance, fan 8 is disabled, it would skip from fan 7 to fan 9, it doesnot renumber. This makes it easier to follow for hardware debuggingpurposes.Missing features:* Smart Fan support* Fan PWM control* ASF (Alert Standard Format)Only Bank 0 registers are used at this time.Reviewed by: adrianDifferential Revision: https://reviews.freebsd.org/D56776
show more ...