文章目录1.hwmon子系统1.1 hwmon驱动节点1.2 简化is_visible2.读pxe1410电压和电流2.1 1ine112.2 1ine16/vid/direct2.3 调压3.xdpe3.1 xdpe12284c读vout电压转换3.2 xdpe132g5c调压3.3 创建节点3.4 调压节点4.读ads7830的8个channel电压5.读ina系列电流1.hwmon子系统sensor type如下,参考【openbmc7】。如下attribute对应如上sensor type,xxxx表示最大/小/当前值(input)。1.1 hwmon驱动节点type - attr -channel:因为attr=hwmon_temp_input没有write权限,所以下面case中没有。如下有3个sensor,一个c