[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20231204055650.788388-2-kcfeng0@nuvoton.com>
Date: Mon, 4 Dec 2023 13:56:49 +0800
From: baneric926@...il.com
To: jdelvare@...e.com, linux@...ck-us.net, robh+dt@...nel.org,
krzysztof.kozlowski+dt@...aro.org, conor+dt@...nel.org,
corbet@....net
Cc: linux-hwmon@...r.kernel.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org, linux-doc@...r.kernel.org,
openbmc@...ts.ozlabs.org, kwliu@...oton.com, kcfeng0@...oton.com,
DELPHINE_CHIU@...ynn.com, Bonnie_Lo@...ynn.com
Subject: [PATCH v1 1/2] dt-bindings: hwmon: Add nct736x bindings
From: Ban Feng <kcfeng0@...oton.com>
This change documents the device tree bindings for the Nuvoton
NCT7362Y, NCT7363Y driver.
Signed-off-by: Ban Feng <kcfeng0@...oton.com>
---
.../bindings/hwmon/nuvoton,nct736x.yaml | 80 +++++++++++++++++++
MAINTAINERS | 6 ++
2 files changed, 86 insertions(+)
create mode 100644 Documentation/devicetree/bindings/hwmon/nuvoton,nct736x.yaml
diff --git a/Documentation/devicetree/bindings/hwmon/nuvoton,nct736x.yaml b/Documentation/devicetree/bindings/hwmon/nuvoton,nct736x.yaml
new file mode 100644
index 000000000000..f98fd260a20f
--- /dev/null
+++ b/Documentation/devicetree/bindings/hwmon/nuvoton,nct736x.yaml
@@ -0,0 +1,80 @@
+# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
+%YAML 1.2
+---
+
+$id: http://devicetree.org/schemas/hwmon/nuvoton,nct736x.yaml#
+$schema: http://devicetree.org/meta-schemas/core.yaml#
+
+title: Nuvoton NCT736X Hardware Monitoring IC
+
+maintainers:
+ - Ban Feng <kcfeng0@...oton.com>
+
+description: |
+ The NCT736X is a Fan controller which provides up to 16 independent
+ FAN input monitors, and up to 16 independent PWM output with SMBus interface.
+ Besides, NCT7363Y has a built-in watchdog timer which is used for
+ conditionally generating a system reset output (INT#).
+
+additionalProperties: false
+
+properties:
+ compatible:
+ enum:
+ - nuvoton,nct7362
+ - nuvoton,nct7363
+
+ reg:
+ maxItems: 1
+
+ nuvoton,pwm-mask:
+ description: |
+ each bit means PWMx enable/disable setting, where x = 0~15.
+ 0: disabled, 1: enabled
+ $ref: /schemas/types.yaml#/definitions/uint32
+ minimum: 0x0
+ maximum: 0xFFFF
+ default: 0x0
+
+ nuvoton,fanin-mask:
+ description: |
+ each bit means FANINx monitoring enable/disable setting,
+ where x = 0~15.
+ 0: disabled, 1: enabled
+ $ref: /schemas/types.yaml#/definitions/uint32
+ minimum: 0x0
+ maximum: 0xFFFF
+ default: 0x0
+
+ nuvoton,wdt-timeout:
+ description: |
+ Watchdog Timer time configuration for NCT7363Y, as below
+ 0: 15 sec (default)
+ 1: 7.5 sec
+ 2: 3.75 sec
+ 3: 30 sec
+ $ref: /schemas/types.yaml#/definitions/uint32
+ enum: [0, 1, 2, 3]
+ default: 0
+
+required:
+ - compatible
+ - reg
+ - nuvoton,pwm-mask
+ - nuvoton,fanin-mask
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ nct7363@22 {
+ compatible = "nuvoton,nct7363";
+ reg = <0x22>;
+
+ nuvoton,pwm-mask = <0x003F>;
+ nuvoton,fanin-mask = <0x003F>;
+ nuvoton,wdt-timeout = <0x3>;
+ };
+ };
diff --git a/MAINTAINERS b/MAINTAINERS
index 012df8ccf34e..eef44c13278c 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -14900,6 +14900,12 @@ S: Maintained
F: Documentation/devicetree/bindings/hwmon/nuvoton,nct6775.yaml
F: drivers/hwmon/nct6775-i2c.c
+NCT736X HARDWARE MONITOR DRIVER
+M: Ban Feng <kcfeng0@...oton.com>
+L: linux-hwmon@...r.kernel.org
+S: Maintained
+F: Documentation/devicetree/bindings/hwmon/nuvoton,nct736x.yaml
+
NETDEVSIM
M: Jakub Kicinski <kuba@...nel.org>
S: Maintained
--
2.34.1
Powered by blists - more mailing lists