Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dt-bindings: iio: adc: maxim,max11100 yaml conversion

Straight forward conversion for this SPI ADC.
Added limits on spi-max-frequency from datasheet (0.1 to 4.8MHz)

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Jacopo Mondi <jacopo@jmondi.org>
Reviewed-by: Rob Herring <robh@kernel.org>

+49 -18
-18
Documentation/devicetree/bindings/iio/adc/max11100.txt
··· 1 - * Maxim max11100 Analog to Digital Converter (ADC) 2 - 3 - Required properties: 4 - - compatible: Should be "maxim,max11100" 5 - - reg: the adc unit address 6 - - vref-supply: phandle to the regulator that provides reference voltage 7 - 8 - Optional properties: 9 - - spi-max-frequency: SPI maximum frequency 10 - 11 - Example: 12 - 13 - max11100: adc@0 { 14 - compatible = "maxim,max11100"; 15 - reg = <0>; 16 - vref-supply = <&adc0_vref>; 17 - spi-max-frequency = <240000>; 18 - };
+49
Documentation/devicetree/bindings/iio/adc/maxim,max11100.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/adc/maxim,max11100.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Maxim MAX11100 ADC 8 + 9 + maintainers: 10 + - Jacopo Mondi <jacopo@jmondi.org> 11 + 12 + description: | 13 + Single channel 16 bit ADC with SPI interface. 14 + 15 + properties: 16 + compatible: 17 + const: maxim,max11100 18 + 19 + reg: 20 + maxItems: 1 21 + 22 + vref-supply: 23 + description: External reference, needed to establish input scaling. 24 + 25 + spi-max-frequency: 26 + minimum: 100000 27 + maximum: 4800000 28 + 29 + additionalProperties: false 30 + 31 + required: 32 + - compatible 33 + - reg 34 + - vref-supply 35 + 36 + examples: 37 + - | 38 + spi { 39 + #address-cells = <1>; 40 + #size-cells = <0>; 41 + 42 + adc@0 { 43 + compatible = "maxim,max11100"; 44 + reg = <0>; 45 + vref-supply = <&adc_vref>; 46 + spi-max-frequency = <240000>; 47 + }; 48 + }; 49 + ...