Sensors / Hwmon

The LS1043-S board has several hardware monitoring sensors:

Sensor IC Access via Monitoring
Microchip PAC1934 I2C 0x16 3.3V voltage and current
(hwmon0) CPU VDD (1.0V) voltage and current
5V voltage and current
Input voltage (VIN) voltage only
Microchip EMC1704 I2C 0x4c CPU temperate diode
(hwmon1) 'Internal' (~board) temperature (close to CPU)
Ambient temperature (far from CPU)
RTC Battery voltage
CPU Temperature Diode QorIQ Thermal driver CPU temperature (less accurate than EMC1704)

As of 2018-04-20, neither the PAC1934 or the EMC1704 have drivers in the mainline kernel.

We have written simple drivers for them, which we intend to upstream:

Sysfs access

Generally, all temperatures are in millidegrees C (10^-3), and all voltage in uV (10^-6)

For the EMC1704:

# cat /sys/class/hwmon/hwmon0/internal_temp
54000
# cat /sys/class/hwmon/hwmon0/external1_temp
58500
# cat /sys/class/hwmon/hwmon0/source_voltage
3007800

For the PAC1934

# cat /sys/class/hwmon/hwmon1/vbus0
3319864
# cat /sys/class/hwmon/hwmon1/cur0
3036
# cat /sys/class/hwmon/hwmon1/vbus1
4993216
# cat /sys/class/hwmon/hwmon1/cur1
427
# cat /sys/class/hwmon/hwmon1/vbus2
11792032
# cat /sys/class/hwmon/hwmon1/cur2
0
# cat /sys/class/hwmon/hwmon1/vbus3
3253984
# cat /sys/class/hwmon/hwmon1/cur3
0

The PAC1934 can has accmulator registers for measuring power, but we have not exposed this in our driver as of yet.

For the CPU thermal diode:

# cat /sys/class/thermal/thermal_zone0/temp
57000