pinctrl in phosphor-hwmon

Matt Spinler mspinler at linux.ibm.com
Tue Dec 10 01:58:45 AEDT 2019



On 12/9/2019 6:15 AM, Deng Tyler wrote:
> Hi all:
>     Does phosphor-hwmon support changing gpio pin before read 
> /sys/class/hwmon/hwmon0/fan*_input while monitoring fan sensor? In my 
> platform, fans gpio are connect to pin-mux and I need control gpio 
> before get fan tach rpm.

It does have the ability to modify a GPIO before/after a reading:
https://github.com/openbmc/phosphor-hwmon/blob/master/mainloop.cpp#L447

configured by some lines in the conf file, like:
https://github.com/openbmc/meta-ibm/blob/master/meta-romulus/recipes-phosphor/sensors/phosphor-hwmon/obmc/hwmon/iio-hwmon-battery.conf#L4

>
> Regards,
> Tyler



More information about the openbmc mailing list