xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/nuvoton,npcm750-adc.yaml (revision b97ee269eae3cbaf35c18f51a459aea581c2a7dc)
16be33864SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
26be33864SEmmanuel Vadot%YAML 1.2
36be33864SEmmanuel Vadot---
46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/adc/nuvoton,npcm750-adc.yaml#
56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
66be33864SEmmanuel Vadot
76be33864SEmmanuel Vadottitle: Nuvoton NPCM BMC Analog to Digital Converter (ADC)
86be33864SEmmanuel Vadot
96be33864SEmmanuel Vadotmaintainers:
106be33864SEmmanuel Vadot  - Tomer Maimon <tmaimon77@gmail.com>
116be33864SEmmanuel Vadot
126be33864SEmmanuel Vadotdescription:
13*b97ee269SEmmanuel Vadot  The NPCM7XX ADC is a 10-bit converter and NPCM8XX ADC is a 12-bit converter,
14*b97ee269SEmmanuel Vadot  both have eight channel inputs.
156be33864SEmmanuel Vadot
166be33864SEmmanuel Vadotproperties:
176be33864SEmmanuel Vadot  compatible:
18*b97ee269SEmmanuel Vadot    enum:
19*b97ee269SEmmanuel Vadot      - nuvoton,npcm750-adc
20*b97ee269SEmmanuel Vadot      - nuvoton,npcm845-adc
216be33864SEmmanuel Vadot
226be33864SEmmanuel Vadot  reg:
236be33864SEmmanuel Vadot    maxItems: 1
246be33864SEmmanuel Vadot
256be33864SEmmanuel Vadot  interrupts:
266be33864SEmmanuel Vadot    maxItems: 1
276be33864SEmmanuel Vadot    description: ADC interrupt, should be set for falling edge.
286be33864SEmmanuel Vadot
296be33864SEmmanuel Vadot  resets:
306be33864SEmmanuel Vadot    maxItems: 1
316be33864SEmmanuel Vadot
326be33864SEmmanuel Vadot  clocks:
336be33864SEmmanuel Vadot    maxItems: 1
346be33864SEmmanuel Vadot    description: If not provided the defulat ADC sample rate will be used.
356be33864SEmmanuel Vadot
366be33864SEmmanuel Vadot  vref-supply:
376be33864SEmmanuel Vadot    description: If not supplied, the internal voltage reference will be used.
386be33864SEmmanuel Vadot
396be33864SEmmanuel Vadot  "#io-channel-cells":
406be33864SEmmanuel Vadot    const: 1
416be33864SEmmanuel Vadot
426be33864SEmmanuel Vadotrequired:
436be33864SEmmanuel Vadot  - compatible
446be33864SEmmanuel Vadot  - reg
456be33864SEmmanuel Vadot  - interrupts
466be33864SEmmanuel Vadot  - resets
476be33864SEmmanuel Vadot
486be33864SEmmanuel VadotadditionalProperties: false
496be33864SEmmanuel Vadot
506be33864SEmmanuel Vadotexamples:
516be33864SEmmanuel Vadot  - |
526be33864SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
536be33864SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
546be33864SEmmanuel Vadot    #include <dt-bindings/clock/nuvoton,npcm7xx-clock.h>
556be33864SEmmanuel Vadot    #include <dt-bindings/reset/nuvoton,npcm7xx-reset.h>
566be33864SEmmanuel Vadot    soc {
576be33864SEmmanuel Vadot        #address-cells = <1>;
586be33864SEmmanuel Vadot        #size-cells = <1>;
596be33864SEmmanuel Vadot        adc@f000c000 {
606be33864SEmmanuel Vadot            compatible = "nuvoton,npcm750-adc";
616be33864SEmmanuel Vadot            reg = <0xf000c000 0x8>;
626be33864SEmmanuel Vadot            interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
636be33864SEmmanuel Vadot            clocks = <&clk NPCM7XX_CLK_ADC>;
646be33864SEmmanuel Vadot            resets = <&rstc NPCM7XX_RESET_IPSRST1 NPCM7XX_RESET_ADC>;
656be33864SEmmanuel Vadot        };
666be33864SEmmanuel Vadot    };
676be33864SEmmanuel Vadot...
68