1 # SPDX-License-Identifier: (GPL-2.0-only OR BS 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 %YAML 1.2 2 %YAML 1.2 3 --- 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/ti, 4 $id: http://devicetree.org/schemas/iio/adc/ti,ads124s08.yaml# 5 $schema: http://devicetree.org/meta-schemas/co 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 6 6 7 title: Texas Instruments' ads124s08 and ads124 7 title: Texas Instruments' ads124s08 and ads124s06 ADC chip 8 8 9 maintainers: 9 maintainers: 10 - Andrew Davis <afd@ti.com> 10 - Andrew Davis <afd@ti.com> 11 11 12 properties: 12 properties: 13 compatible: 13 compatible: 14 enum: 14 enum: 15 - ti,ads124s06 15 - ti,ads124s06 16 - ti,ads124s08 16 - ti,ads124s08 17 17 18 reg: 18 reg: 19 maxItems: 1 19 maxItems: 1 20 20 21 spi-cpha: true 21 spi-cpha: true 22 22 23 reset-gpios: 23 reset-gpios: 24 maxItems: 1 24 maxItems: 1 25 25 26 "#io-channel-cells": 26 "#io-channel-cells": 27 const: 1 27 const: 1 28 28 29 required: 29 required: 30 - compatible 30 - compatible 31 - reg 31 - reg 32 32 33 allOf: 33 allOf: 34 - $ref: /schemas/spi/spi-peripheral-props.ya 34 - $ref: /schemas/spi/spi-peripheral-props.yaml# 35 35 36 unevaluatedProperties: false 36 unevaluatedProperties: false 37 37 38 examples: 38 examples: 39 - | 39 - | 40 #include <dt-bindings/gpio/gpio.h> 40 #include <dt-bindings/gpio/gpio.h> 41 spi { 41 spi { 42 #address-cells = <1>; 42 #address-cells = <1>; 43 #size-cells = <0>; 43 #size-cells = <0>; 44 44 45 adc@0 { 45 adc@0 { 46 compatible = "ti,ads124s08"; 46 compatible = "ti,ads124s08"; 47 reg = <0>; 47 reg = <0>; 48 spi-max-frequency = <1000000>; 48 spi-max-frequency = <1000000>; 49 spi-cpha; 49 spi-cpha; 50 reset-gpios = <&gpio1 16 GPIO_ACTI 50 reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; 51 }; 51 }; 52 }; 52 }; 53 ... 53 ...
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.