Skip to content

Commit c8c2db3

Browse files
YHYANG2jic23
authored andcommitted
dt-bindings: iio: adc: add NCT7201 ADCs
Add a binding specification for the Nuvoton NCT7201/NCT7202 up to 12-bit ADCs with I2C interface. Signed-off-by: Eason Yang <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
1 parent d524b3e commit c8c2db3

File tree

2 files changed

+76
-0
lines changed

2 files changed

+76
-0
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/iio/adc/nuvoton,nct7201.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Nuvoton nct7201 and similar ADCs
8+
9+
maintainers:
10+
- Eason Yang <[email protected]>
11+
12+
description: |
13+
The NCT7201/NCT7202 is a Nuvoton Hardware Monitor IC, contains up to 12
14+
voltage monitoring channels, with SMBus interface, and up to 4 sets SMBus
15+
address selection by ADDR connection. It also provides ALERT# signal for
16+
event notification and reset input RSTIN# to recover it from a fault
17+
condition.
18+
19+
NCT7201 contains 8 voltage monitor inputs (VIN1~VIN8).
20+
NCT7202 contains 12 voltage monitor inputs (VIN1~VIN12).
21+
22+
properties:
23+
compatible:
24+
enum:
25+
- nuvoton,nct7201
26+
- nuvoton,nct7202
27+
28+
reg:
29+
maxItems: 1
30+
31+
vdd-supply:
32+
description:
33+
A 3.3V to supply that powers the chip.
34+
35+
vref-supply:
36+
description:
37+
The regulator supply for the ADC reference voltage.
38+
39+
interrupts:
40+
maxItems: 1
41+
42+
reset-gpios:
43+
maxItems: 1
44+
45+
required:
46+
- compatible
47+
- reg
48+
49+
additionalProperties: false
50+
51+
examples:
52+
- |
53+
#include <dt-bindings/gpio/gpio.h>
54+
#include <dt-bindings/interrupt-controller/irq.h>
55+
56+
i2c {
57+
#address-cells = <1>;
58+
#size-cells = <0>;
59+
60+
adc@1d {
61+
compatible = "nuvoton,nct7202";
62+
reg = <0x1d>;
63+
vdd-supply = <&vdd>;
64+
vref-supply = <&vref>;
65+
interrupt-parent = <&gpio3>;
66+
interrupts = <30 IRQ_TYPE_LEVEL_LOW>;
67+
reset-gpios = <&gpio3 28 GPIO_ACTIVE_LOW>;
68+
};
69+
};
70+
...

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17336,6 +17336,12 @@ F: drivers/nubus/
1733617336
F: include/linux/nubus.h
1733717337
F: include/uapi/linux/nubus.h
1733817338

17339+
NUVOTON NCT7201 IIO DRIVER
17340+
M: Eason Yang <[email protected]>
17341+
17342+
S: Maintained
17343+
F: Documentation/devicetree/bindings/iio/adc/nuvoton,nct7201.yaml
17344+
1733917345
NVIDIA (rivafb and nvidiafb) FRAMEBUFFER DRIVER
1734017346
M: Antonino Daplas <[email protected]>
1734117347

0 commit comments

Comments
 (0)