Renesas RZ/T2H / RZ/N2H ADC12

Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/renesas,r9a09g077-adc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Cosmin Tanislav <cosmin-gabriel.tanislav.xa@renesas.com>"

A/D Converter block is a successive approximation analog-to-digital converter with a 12-bit accuracy. Up to 16 analog input channels can be selected. Conversions can be performed in single or continuous mode. Result of the ADC is stored in a 16-bit data register corresponding to each channel.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "renesas,r9a09g087-adc"

Item 2

Exact value (const): "renesas,r9a09g077-adc"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "renesas,r9a09g077-adc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

A/D scan end interrupt

Item 2

A/D scan end interrupt for Group B

Item 3

A/D scan end interrupt for Group C

Item 4

Window A compare match

Item 5

Window B compare match

Item 6

Compare match

Item 7

Compare mismatch

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "adi"

Item 2

Exact value (const): "gbadi"

Item 3

Exact value (const): "gcadi"

Item 4

Exact value (const): "cmpai"

Item 5

Exact value (const): "cmpbi"

Item 6

Exact value (const): "wcmpm"

Item 7

Exact value (const): "wcmpum"

clocks — required here #

Array item rules (items) #

Item 1

Converter clock

Item 2

Peripheral clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "adclk"

Item 2

Exact value (const): "pclk"

power-domains — required here #

Maximum number of items (maxItems): 1

#address-cells — not listed as required here #

Exact value (const): 1

#size-cells — not listed as required here #

Exact value (const): 0

#io-channel-cells — not listed as required here #

Exact value (const): 1

Properties matching a name pattern (patternProperties) #

^channel@[0-9a-f]$ — name matches this regular expression #

Shared schema rule ($ref): adc.yaml

Value type (type): "object"

The external channels which are connected to the ADC.

Properties and child nodes (properties) #

reg — required here

The channel number.

Maximum value (maximum): 15

Required in this object (required): "reg"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "power-domains"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/renesas,r9a09g077-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

adc@80008000 {
  compatible = "renesas,r9a09g077-adc";
  reg = <0x80008000 0x400>;
  interrupts = <GIC_SPI 708 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 709 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 710 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 711 IRQ_TYPE_LEVEL_HIGH>,
               <GIC_SPI 712 IRQ_TYPE_LEVEL_HIGH>,
               <GIC_SPI 855 IRQ_TYPE_EDGE_RISING>,
               <GIC_SPI 856 IRQ_TYPE_EDGE_RISING>;
  interrupt-names = "adi", "gbadi", "gcadi",
                    "cmpai", "cmpbi", "wcmpm", "wcmpum";
  clocks = <&cpg CPG_CORE R9A09G077_CLK_PCLKL>,
           <&cpg CPG_MOD 225>;
  clock-names = "adclk", "pclk";
  power-domains = <&cpg>;
  #address-cells = <1>;
  #size-cells = <0>;
  #io-channel-cells = <1>;

  channel@0 {
    reg = <0x0>;
  };
  channel@1 {
    reg = <0x1>;
  };
  channel@2 {
    reg = <0x2>;
  };
  channel@3 {
    reg = <0x3>;
  };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 22: RZ/N2H

Line 23: RZ/T2H

Line 25: RZ/T2H

Edit this page