lkml.org 
[lkml]   [2021]   [Sep]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH v2 1/2] dt-bindings: hwmon: Add nct7802 bindings
From
Document bindings for the Nuvoton NCT7802Y driver.

Signed-off-by: Oskar Senft <osk@google.com>
---
.../bindings/hwmon/nuvoton,nct7802.yaml | 92 +++++++++++++++++++
1 file changed, 92 insertions(+)
create mode 100644 Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml

diff --git a/Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml b/Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml
new file mode 100644
index 000000000000..7512acbc9d1a
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/nuvoton,nct7802.yaml
@@ -0,0 +1,92 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+
+$id: http://devicetree.org/schemas/hwmon/nuvoton,nct7802.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Nuvoton NCT7802Y Hardware Monitoring IC
+
+maintainers:
+ - Guenter Roeck <linux@roeck-us.net>
+
+description: |
+ The NCT7802Y is a hardware monitor IC which supports one on-die and up to
+ 5 remote temperature sensors with SMBus interface.
+
+ Datasheets:
+ https://www.nuvoton.com/export/resource-files/Nuvoton_NCT7802Y_Datasheet_V12.pdf
+
+properties:
+ compatible:
+ enum:
+ - nuvoton,nct7802
+
+ reg:
+ maxItems: 1
+
+ temperature-sensors:
+ type: object
+ description:
+ |
+ Configuration for temperature sensors. If temperature-sensors
+ is not provided at all, the internal temperature sensor will be
+ enabled. If temperature-sensors is provided, only the listed
+ sensors will be configured as specified. The runtime configuration
+ for un-listed sensors will not be touched in the chip. This allows
+ sensors to be configured at power-up time from an EEPROM connected
+ to the chip and at the sime time allows to override these settings
+ using device tree configuration.
+
+ properties:
+ ltd:
+ type: object
+ description: Internal Temperature Sensor ("LTD")
+
+ rtd3:
+ type: object
+ description:
+ |
+ Remote Temperature Sensor ("RTD3"). This sensor only supports
+ thermistor mode.
+
+ patternProperties:
+ "^rtd[1-2]$":
+ type: object
+ description: Remote Temperature Sensor ("RTDx")
+ properties:
+ "type":
+ description: Sensor type (3=thermal diode, 4=thermistor).
+ allOf:
+ - $ref: "http://devicetree.org/schemas/types.yaml#/definitions/uint32"
+ - items:
+ - enum: [ 3, 4 ]
+
+required:
+ - compatible
+ - reg
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ nct7802@28 {
+ compatible = "nuvoton,nct7802";
+ reg = <0x28>;
+
+ temperature-sensors {
+ ltd {
+ status = "disabled";
+ };
+
+ rtd1 {
+ status = "okay";
+ type = <4> /* thermistor */;
+ };
+ };
+ };
+ };
--
2.33.0.464.g1972c5931b-goog
\
 
 \ /
  Last update: 2021-09-21 04:12    [W:0.149 / U:0.300 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site