ROHM BD79112 ADC/GPO
Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/rohm,bd79112.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Matti Vaittinen <mazziesaccount@gmail.com>"
The ROHM BD79112 is a 12-bit, 32-channel, SAR ADC. ADC input pins can be also configured as general purpose inputs/outputs. SPI should use MODE 3.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "rohm,bd79112"
reg — required here #
Maximum number of items (maxItems): 1
spi-cpha — required here #
true — No constraints added by this property rule.
spi-cpol — required here #
true — No constraints added by this property rule.
gpio-controller — not listed as required here #
true — No constraints added by this property rule.
#gpio-cells — not listed as required here #
Exact value (const): 2
vdd-supply — required here #
true — No constraints added by this property rule.
iovdd-supply — required here #
true — No constraints added by this property rule.
#address-cells — not listed as required here #
Exact value (const): 1
#size-cells — not listed as required here #
Exact value (const): 0
Properties matching a name pattern (patternProperties) #
^channel@([0-9]|[12][0-9]|3[01])$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): /schemas/iio/adc/adc.yaml#
Represents ADC channel. Omitted channels' inputs are GPIOs.
Properties and child nodes (properties) #
reg — required here
AIN pin number
Minimum value (minimum): 0
Maximum value (maximum): 31
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", "iovdd-supply", "vdd-supply", "spi-cpha", "spi-cpol"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
#address-cells = <1>;
#size-cells = <0>;
adc: adc@0 {
compatible = "rohm,bd79112";
reg = <0x0>;
spi-cpha;
spi-cpol;
vdd-supply = <&dummyreg>;
iovdd-supply = <&dummyreg>;
#address-cells = <1>;
#size-cells = <0>;
gpio-controller;
#gpio-cells = <2>;
channel@0 {
reg = <0>;
};
channel@1 {
reg = <1>;
};
channel@2 {
reg = <2>;
};
channel@16 {
reg = <16>;
};
channel@20 {
reg = <20>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause