Hi Guenter
Thanks for the quick feedback!
Ha, good point. As I understand, RTD means "Resistance Temperature+ nuvoton,rtd-modes:At the very least, "RTD" should be defined. The datasheet doesn't say explicitly,
+ description: |
+ Select modes for the three RTDs.
+
but I suspect it means "Remote Temperature Diode".
Detector". But TBH, I'm not sure how that squares with Nuvoton's use
of "LTD" for the local sensor ... sigh.
Thanks for that pointer, I now found that in+ Valid values for RTD1 and RTD2 are:I am not sure what "closed" means (the datasheet doesn't say), but I suspect it means
+ "closed",
+ "current",
+ "thermistor",
+ "voltage"
that the sensor is disabled (?). For the other modes, the translation to the standard
ABI is:
Documentation/hwmon/sysfs-interface. Given that there's no definition
for "disabled", I guess I'll just leave that out of the device tree
binding for now? That way we'll stay consistent with the sysfs ABI.
That gives us the following mapping for sysfs / device tree -> nct7802 HW:
2 (3904 transistor) -> 3 (voltage)
3 (thermal diode) -> 1 (current)
4 (thermistor) -> 2 (thermistor)
I'll update the device tree binding to be an array then. I also update
the temp_type functions to support all 3 values.
Oskar.