Sophgo CV1800B SoC 3 channels Successive Approximation Analog to Digital Converters
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/sophgo,cv1800b-saradc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thomas Bonnefille <thomas.bonnefille@bootlin.com>"
Datasheet at https://github.com/sophgo/sophgo-doc/releases
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "sophgo,cv1800b-saradc"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^channel@[0-2]$ — name matches this regular expression #
Shared schema rule ($ref): adc.yaml
Properties and child nodes (properties) #
reg — required here
Array item rules (items)
Item 1
Minimum value (
minimum):0Maximum value (
maximum):2
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", "clocks", "#address-cells", "#size-cells"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/sophgo,cv1800.h>
#include <dt-bindings/interrupt-controller/irq.h>
adc@30f0000 {
compatible = "sophgo,cv1800b-saradc";
reg = <0x030f0000 0x1000>;
clocks = <&clk CLK_SARADC>;
interrupts = <100 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
channel@0 {
reg = <0>;
};
channel@1 {
reg = <1>;
};
channel@2 {
reg = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)