Renesas RZ/G2L ADC
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/renesas,rzg2l-adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>"
A/D Converter block is a successive approximation analog-to-digital converter with a 12-bit accuracy. Up to eight analog input channels can be selected. Conversions can be performed in single or repeat mode. Result of the ADC is stored in a 32-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
Allowed values (
enum):"renesas,r9a07g043-adc","renesas,r9a07g044-adc","renesas,r9a07g054-adc"Item 2
Exact value (
const):"renesas,rzg2l-adc"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a08g045-adc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
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
resets — required here #
Maximum number of items (maxItems): 2
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"presetn"
Item 2
Exact value (
const):"adrst-n"
#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
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "power-domains", "resets", "reset-names"
Properties matching a name pattern (patternProperties) #
^channel@[0-8]$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Value type (type): "object"
Represents the external channels which are connected to the ADC.
Properties and child nodes (properties) #
reg — required here
The channel number.
Minimum value (minimum): 0
Maximum value (maximum): 8
Required in this object (required): "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,r9a07g043-adc"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[2-8]$— name matches this regular expression
false— Not permitted by this property rule.
^channel@[0-1]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):1
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,r9a07g044-adc","renesas,r9a07g054-adc"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^channel@[8]$— name matches this regular expression
false— Not permitted by this property rule.
^channel@[0-7]$— name matches this regular expressionProperties and child nodes (
properties)
reg— not listed as required hereMaximum value (
maximum):7
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r9a07g044-cpg.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
adc: adc@10059000 {
compatible = "renesas,r9a07g044-adc", "renesas,rzg2l-adc";
reg = <0x10059000 0x400>;
interrupts = <GIC_SPI 347 IRQ_TYPE_EDGE_RISING>;
clocks = <&cpg CPG_MOD R9A07G044_ADC_ADCLK>,
<&cpg CPG_MOD R9A07G044_ADC_PCLK>;
clock-names = "adclk", "pclk";
power-domains = <&cpg>;
resets = <&cpg R9A07G044_ADC_PRESETN>,
<&cpg R9A07G044_ADC_ADRST_N>;
reset-names = "presetn", "adrst-n";
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
};
channel@1 {
reg = <1>;
};
channel@2 {
reg = <2>;
};
channel@3 {
reg = <3>;
};
channel@4 {
reg = <4>;
};
channel@5 {
reg = <5>;
};
channel@6 {
reg = <6>;
};
channel@7 {
reg = <7>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 23: RZ/G2UL and RZ/Five
Line 24: RZ/G2L
Line 25: RZ/V2L
Line 28: RZ/G3S