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

Configure Feed

Select the types of activity you want to include in your feed.

dt-binding:iio:adc:ti,ads124s08: txt to yaml format conversion.

Simple binding so straight forward format conversion.

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Reviewed-by: Dan Murphy <dmurphy@ti.com>
Link: https://lore.kernel.org/r/20201031184854.745828-38-jic23@kernel.org

+52 -25
+52
Documentation/devicetree/bindings/iio/adc/ti,ads124s08.yaml
··· 1 + # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 + %YAML 1.2 3 + --- 4 + $id: http://devicetree.org/schemas/iio/adc/ti,ads124s08.yaml# 5 + $schema: http://devicetree.org/meta-schemas/core.yaml# 6 + 7 + title: Texas Instruments' ads124s08 and ads124s06 ADC chip 8 + 9 + maintainers: 10 + - Dan Murphy <dmurphy@ti.com> 11 + 12 + properties: 13 + compatible: 14 + enum: 15 + - ti,ads124s06 16 + - ti,ads124s08 17 + 18 + reg: 19 + maxItems: 1 20 + 21 + spi-max-frequency: true 22 + 23 + spi-cpha: true 24 + 25 + reset-gpios: 26 + maxItems: 1 27 + 28 + "#io-channel-cells": 29 + const: 1 30 + 31 + required: 32 + - compatible 33 + - reg 34 + 35 + additionalProperties: false 36 + 37 + examples: 38 + - | 39 + #include <dt-bindings/gpio/gpio.h> 40 + spi { 41 + #address-cells = <1>; 42 + #size-cells = <0>; 43 + 44 + adc@0 { 45 + compatible = "ti,ads124s08"; 46 + reg = <0>; 47 + spi-max-frequency = <1000000>; 48 + spi-cpha; 49 + reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; 50 + }; 51 + }; 52 + ...
-25
Documentation/devicetree/bindings/iio/adc/ti-ads124s08.txt
··· 1 - * Texas Instruments' ads124s08 and ads124s06 ADC chip 2 - 3 - Required properties: 4 - - compatible : 5 - "ti,ads124s08" 6 - "ti,ads124s06" 7 - - reg : spi chip select number for the device 8 - 9 - Recommended properties: 10 - - spi-max-frequency : Definition as per 11 - Documentation/devicetree/bindings/spi/spi-bus.txt 12 - - spi-cpha : Definition as per 13 - Documentation/devicetree/bindings/spi/spi-bus.txt 14 - 15 - Optional properties: 16 - - reset-gpios : GPIO pin used to reset the device. 17 - 18 - Example: 19 - adc@0 { 20 - compatible = "ti,ads124s08"; 21 - reg = <0>; 22 - spi-max-frequency = <1000000>; 23 - spi-cpha; 24 - reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; 25 - };