Ingenic JZ47xx ADC controller IIO
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/ingenic,adc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Artur Rojek <contact@artur-rojek.eu>"
Industrial I/O subsystem bindings for ADC controller found in Ingenic JZ47xx SoCs. ADC clients must use the format described in https://github.com/devicetree-org/dt-schema/blob/master/schemas/iio/iio-consumer.yaml, giving a phandle and IIO specifier pair ("io-channels") to the ADC controller.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ingenic,jz4725b-adc", "ingenic,jz4740-adc", "ingenic,jz4760-adc", "ingenic,jz4760b-adc", "ingenic,jz4770-adc"
#io-channel-cells — required here #
Exact value (const): 1
Must be set to <1> to indicate channels are selected by index.
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"adc"
interrupts — required here #
Maximum number of items (maxItems): 1
ingenic,use-internal-divider — not listed as required here #
If present, battery voltage is read from the VBAT_IR pin, which has an internal 1/4 divider. If absent, it is read through the VBAT_ER pin, which does not have such a divider.
Value type (type): "boolean"
Condition (if) #
This rule must not match (
not) #Properties and child nodes (
properties) #
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"ingenic,jz4760b-adc"
When the condition matches (then) #
Properties and child nodes (
properties) #
ingenic,use-internal-divider— not listed as required here #
false— Not permitted by this property rule.
Required in this object (required): "compatible", "#io-channel-cells", "reg", "clocks", "clock-names", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/ingenic,jz4740-cgu.h>
#include <dt-bindings/iio/adc/ingenic,adc.h>
adc@10070000 {
compatible = "ingenic,jz4740-adc";
#io-channel-cells = <1>;
reg = <0x10070000 0x30>;
clocks = <&cgu JZ4740_CLK_ADC>;
clock-names = "adc";
interrupt-parent = <&intc>;
interrupts = <18>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2019-2020 Artur Rojek