hwmon: lm90: Add support for NCT7716, NCT7717 and NCT7718
v2 cover hwmon: lm90: Add support for NCT7716, NCT7717 and NCT7718
The patch series add support for NCT7716, NCT7717 and NCT7718 from Nuvoton in lm90.
NCT7716 and NCT7717 only have 8 bit resolution local thermal sensor. NCT7718 has local sensor and 11 bit resoulution remote thermal sensor.
Changes since version 1:
- Add new detection function lm90_detect_nuvoton_50()
- Fix the check for register values.
Ming Yu (2):
hwmon: (lm90): Add support for NCT7716, NCT7717 and NCT7718
dt-bindings: hwmon: lm90: Add support for NCT7716, NCT7717 and NCT7718
.../bindings/hwmon/national,lm90.yaml | 6 ++ Documentation/hwmon/lm90.rst | 43 ++++++++++ drivers/hwmon/Kconfig | 2 +- drivers/hwmon/lm90.c | 82 ++++++++++++++++++- 4 files changed, 130 insertions(+), 3 deletions(-)
Signature · 1 line
2.34.1
PATCH v2 1/2 hwmon: (lm90): Add support for NCT7716, NCT7717 and NCT7718
NCT7716 is similar to NCT7717 but has one more address support, both of them only have a 8 bit resolution local thermal sensor.
NCT7718 has 11 bit resoulution remote thermal sensor.
--- Documentation/hwmon/lm90.rst | 43 +++++++++++++++++++ drivers/hwmon/Kconfig | 2 +- drivers/hwmon/lm90.c | 82 +++++++++++++++++++++++++++++++++++- 3 files changed, 124 insertions(+), 3 deletions(-)
Documentation/hwmon/lm90.rst +43 -0
@@ -365,6 +365,34 @@ Supported chips: Datasheet: Not publicly available, can be requested from Nuvoton + * Nuvoton NCT7716 + + Prefix: 'nct7716' + + Addresses scanned: I2C 0x48, 0x49 + + Datasheet: Not publicly available, can be requested from Nuvoton + + * Nuvoton NCT7717 + + Prefix: 'nct7717' + + Addresses scanned: I2C 0x48 + + Datasheet: Publicly available at Nuvoton website + + https://www.nuvoton.com/resource-files/Nuvoton_NCT7717U_Datasheet_V111.pdf + + * Nuvoton NCT7718 + + Prefix: 'nct7718' + + Addresses scanned: I2C 0x4c + + Datasheet: Publicly available at Nuvoton website + + https://www.nuvoton.com/resource-files/Nuvoton_NCT7718W_Datasheet_V11.pdf + * Philips/NXP SA56004X Prefix: 'sa56004'
@@ -573,6 +601,21 @@ W83L771AWG/ASG * The AWG and ASG variants only differ in package format. * Diode ideality factor configuration (remote sensor) at 0xE3 +NCT7716: + * 8 bit sensor resolution + * Selectable address + * Configurable conversion rate + +NCT7717: + * 8 bit sensor resolution + * Configurable conversion rate + +NCT7718: + * Temperature offset register for remote temperature sensor + * 11 bit resolution for remote temperature sensor + * Low temperature limits + * Configurable conversion rate + SA56004X: * Better local resolution
drivers/hwmon/Kconfig +1 -1
@@ -1517,7 +1517,7 @@ config SENSORS_LM90 MAX6657, MAX6658, MAX6659, MAX6680, MAX6681, MAX6692, MAX6695, MAX6696, ON Semiconductor NCT1008, NCT210, NCT72, NCT214, NCT218, - Winbond/Nuvoton W83L771W/G/AWG/ASG, + Winbond/Nuvoton W83L771W/G/AWG/ASG, NCT7716, NCT7717 and NCT7718, Philips NE1618, SA56004, GMT G781, Texas Instruments TMP451 and TMP461 sensor chips.
drivers/hwmon/lm90.c +80 -2
142 lines not on this page · raw message
Signature · 1 line
2.34.1
PATCH v2 2/2 dt-bindings: hwmon: lm90: Add support for NCT7716, NCT7717 and NCT7718
In reply to Ming YuAdd support for the Nuvoton NCT7716/7717/7718 thermal sensors.
NCT7716 and NCT7717 do not support to add temperature offset. The maximum offset supported by NCT7718 is 127875 millicelsius
--- Documentation/devicetree/bindings/hwmon/national,lm90.yaml | 6 ++++++ 1 file changed, 6 insertions(+)
Documentation/devicetree/bindings/hwmon/national,lm90.yaml +6 -0
@@ -32,6 +32,9 @@ properties: - national,lm89 - national,lm90 - national,lm99 + - nuvoton,nct7716 + - nuvoton,nct7717 + - nuvoton,nct7718 - nxp,sa56004 - onnn,nct1008 - ti,tmp451
@@ -120,6 +123,8 @@ allOf: - dallas,max6659 - dallas,max6695 - dallas,max6696 + - nuvoton,nct7716 + - nuvoton,nct7717 then: patternProperties: "^channel@([0-2])$":
@@ -155,6 +160,7 @@ allOf: - national,lm89 - national,lm90 - national,lm99 + - nuvoton,nct7718 - nxp,sa56004 - winbond,w83l771 then:
Signature · 1 line
2.34.1
Re: [PATCH v2 2/2] dt-bindings: hwmon: lm90: Add support for NCT7716, NCT7717 and NCT7718
Quoted 7 lines · Ming Yu
Add support for the Nuvoton NCT7716/7717/7718 thermal sensors.
NCT7716 and NCT7717 do not support to add temperature offset. The maximum offset supported by NCT7718 is 127875 millicelsius
Reviewed-by Krzysztof Kozlowski <[email protected]>Signed-off-by Ming Yu <[email protected]>
Applied to hwmon-next.
Note that the branch will only be pushed to linux-next after the commit window closed.
Thanks,
Guenter
Re: [PATCH v2 1/2] hwmon: (lm90): Add support for NCT7716, NCT7717 and NCT7718
In reply to Ming YuQuoted 6 lines · Ming Yu
NCT7716 is similar to NCT7717 but has one more address support, both of them only have a 8 bit resolution local thermal sensor.
NCT7718 has 11 bit resoulution remote thermal sensor.
Signed-off-by Ming Yu <[email protected]>
Applied to hwmon-next.
Note that the branch will only be pushed to linux-next after the commit window closed.
Thanks,
Guenter