xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/ti,ads124s08.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25def4c47SEmmanuel Vadot%YAML 1.2
35def4c47SEmmanuel Vadot---
45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/adc/ti,ads124s08.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
75def4c47SEmmanuel Vadottitle: Texas Instruments' ads124s08 and ads124s06 ADC chip
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
10b97ee269SEmmanuel Vadot  - Andrew Davis <afd@ti.com>
115def4c47SEmmanuel Vadot
125def4c47SEmmanuel Vadotproperties:
135def4c47SEmmanuel Vadot  compatible:
145def4c47SEmmanuel Vadot    enum:
155def4c47SEmmanuel Vadot      - ti,ads124s06
165def4c47SEmmanuel Vadot      - ti,ads124s08
175def4c47SEmmanuel Vadot
185def4c47SEmmanuel Vadot  reg:
195def4c47SEmmanuel Vadot    maxItems: 1
205def4c47SEmmanuel Vadot
215def4c47SEmmanuel Vadot  spi-cpha: true
225def4c47SEmmanuel Vadot
235def4c47SEmmanuel Vadot  reset-gpios:
245def4c47SEmmanuel Vadot    maxItems: 1
255def4c47SEmmanuel Vadot
265def4c47SEmmanuel Vadot  "#io-channel-cells":
275def4c47SEmmanuel Vadot    const: 1
285def4c47SEmmanuel Vadot
295def4c47SEmmanuel Vadotrequired:
305def4c47SEmmanuel Vadot  - compatible
315def4c47SEmmanuel Vadot  - reg
325def4c47SEmmanuel Vadot
33*7ef62cebSEmmanuel VadotallOf:
34*7ef62cebSEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
35*7ef62cebSEmmanuel Vadot
36*7ef62cebSEmmanuel VadotunevaluatedProperties: false
375def4c47SEmmanuel Vadot
385def4c47SEmmanuel Vadotexamples:
395def4c47SEmmanuel Vadot  - |
405def4c47SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
415def4c47SEmmanuel Vadot    spi {
425def4c47SEmmanuel Vadot        #address-cells = <1>;
435def4c47SEmmanuel Vadot        #size-cells = <0>;
445def4c47SEmmanuel Vadot
455def4c47SEmmanuel Vadot        adc@0 {
465def4c47SEmmanuel Vadot            compatible = "ti,ads124s08";
475def4c47SEmmanuel Vadot            reg = <0>;
485def4c47SEmmanuel Vadot            spi-max-frequency = <1000000>;
495def4c47SEmmanuel Vadot            spi-cpha;
505def4c47SEmmanuel Vadot            reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>;
515def4c47SEmmanuel Vadot        };
525def4c47SEmmanuel Vadot    };
535def4c47SEmmanuel Vadot...
54