1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/iio/adc/rohm,bd79104.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: ROHM Semiconductor BD79104 ADC 8 9maintainers: 10 - Matti Vaittinen <mazziesaccount@gmail.com> 11 12description: | 13 12 bit SPI ADC with 8 channels. 14 15properties: 16 compatible: 17 const: rohm,bd79104 18 19 reg: 20 maxItems: 1 21 22 vdd-supply: true 23 iovdd-supply: true 24 25# The component data-sheet says the frequency is 20M. I, however, found 26# that the ROHM evaluation board BD79104FV-EVK-001 had problems with 20M. 27# I have successfully used it with 4M. My _assumption_ is that this is not 28# the limitation of the component itself, but a limitation of the EVK. 29 spi-max-frequency: 30 maximum: 20000000 31 32 "#io-channel-cells": 33 const: 1 34 35 spi-cpha: true 36 spi-cpol: true 37 38required: 39 - compatible 40 - reg 41 - vdd-supply 42 - iovdd-supply 43 - spi-cpha 44 - spi-cpol 45 46allOf: 47 - $ref: /schemas/spi/spi-peripheral-props.yaml# 48 49unevaluatedProperties: false 50 51examples: 52 - | 53 #include <dt-bindings/interrupt-controller/irq.h> 54 spi { 55 #address-cells = <1>; 56 #size-cells = <0>; 57 58 adc@0 { 59 compatible = "rohm,bd79104"; 60 reg = <0>; 61 vdd-supply = <&vdd_supply>; 62 iovdd-supply = <&iovdd_supply>; 63 spi-max-frequency = <4000000>; 64 spi-cpha; 65 spi-cpol; 66 #io-channel-cells = <1>; 67 }; 68 }; 69... 70