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 7title: Nuvoton nct7201 and similar ADCs 8 9maintainers: 10 - Eason Yang <j2anfernee@gmail.com> 11 12description: | 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 22properties: 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 45required: 46 - compatible 47 - reg 48 49additionalProperties: false 50 51examples: 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... 71