ROHM Semiconductor BD79104 ADC

Schema identifier ($id): "http://devicetree.org/schemas/iio/adc/rohm,bd79104.yaml#"

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

Maintainers (maintainers): "Matti Vaittinen <mazziesaccount@gmail.com>"

12 bit SPI ADC with 8 channels.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "rohm,bd79100", "rohm,bd79101", "rohm,bd79102", "rohm,bd79104"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "rohm,bd79103"

Item 2

Exact value (const): "rohm,bd79104"

reg — required here #

Maximum number of items (maxItems): 1

vdd-supply — required here #

true — No constraints added by this property rule.

iovdd-supply — required here #

true — No constraints added by this property rule.

spi-max-frequency — not listed as required here #

Maximum value (maximum): 20000000

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

Exact value (const): 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.

Required in this object (required): "compatible", "reg", "vdd-supply", "iovdd-supply", "spi-cpha", "spi-cpol"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

spi {
    #address-cells = <1>;
    #size-cells = <0>;

    adc@0 {
        compatible = "rohm,bd79104";
        reg = <0>;
        vdd-supply = <&vdd_supply>;
        iovdd-supply = <&iovdd_supply>;
        spi-max-frequency = <4000000>;
        spi-cpha;
        spi-cpol;
        #io-channel-cells = <1>;
    };
};

Source notes #

Annotations retained from the schema source

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

Line 33: The component data-sheet says the frequency is 20M. I, however, found

Line 34: that the ROHM evaluation board BD79104FV-EVK-001 had problems with 20M.

Line 35: I have successfully used it with 4M. My _assumption_ is that this is not

Line 36: the limitation of the component itself, but a limitation of the EVK.

Edit this page