Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/iio/adc/ti,ads124s08.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: Texas Instruments' ads124s08 and ads124s06 ADC chip
0008 
0009 maintainers:
0010   - Andrew Davis <afd@ti.com>
0011 
0012 properties:
0013   compatible:
0014     enum:
0015       - ti,ads124s06
0016       - ti,ads124s08
0017 
0018   reg:
0019     maxItems: 1
0020 
0021   spi-max-frequency: true
0022 
0023   spi-cpha: true
0024 
0025   reset-gpios:
0026     maxItems: 1
0027 
0028   "#io-channel-cells":
0029     const: 1
0030 
0031 required:
0032   - compatible
0033   - reg
0034 
0035 additionalProperties: false
0036 
0037 examples:
0038   - |
0039     #include <dt-bindings/gpio/gpio.h>
0040     spi {
0041         #address-cells = <1>;
0042         #size-cells = <0>;
0043 
0044         adc@0 {
0045             compatible = "ti,ads124s08";
0046             reg = <0>;
0047             spi-max-frequency = <1000000>;
0048             spi-cpha;
0049             reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
0050         };
0051     };
0052 ...