xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/ti,tlc4541.yaml (revision 7ef62cebc2f965b0f640263e179276928885e33d)
16be33864SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
26be33864SEmmanuel Vadot%YAML 1.2
36be33864SEmmanuel Vadot---
46be33864SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/adc/ti,tlc4541.yaml#
56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
66be33864SEmmanuel Vadot
76be33864SEmmanuel Vadottitle: Texas Instruments TLC4541 and similar ADCs
86be33864SEmmanuel Vadot
96be33864SEmmanuel Vadotmaintainers:
106be33864SEmmanuel Vadot  - Phil Reid <preid@electromag.com.au>
116be33864SEmmanuel Vadot
126be33864SEmmanuel Vadotdescription: |
136be33864SEmmanuel Vadot  14/16bit single channel ADC with SPI interface.
146be33864SEmmanuel Vadot
156be33864SEmmanuel Vadotproperties:
166be33864SEmmanuel Vadot  compatible:
176be33864SEmmanuel Vadot    enum:
186be33864SEmmanuel Vadot      - ti,tlc3541
196be33864SEmmanuel Vadot      - ti,tlc4541
206be33864SEmmanuel Vadot
216be33864SEmmanuel Vadot  reg:
226be33864SEmmanuel Vadot    maxItems: 1
236be33864SEmmanuel Vadot
246be33864SEmmanuel Vadot  vref-supply: true
256be33864SEmmanuel Vadot
266be33864SEmmanuel Vadot  "#io-channel-cells":
276be33864SEmmanuel Vadot    const: 1
286be33864SEmmanuel Vadot
296be33864SEmmanuel Vadotrequired:
306be33864SEmmanuel Vadot  - compatible
316be33864SEmmanuel Vadot  - reg
326be33864SEmmanuel Vadot  - vref-supply
336be33864SEmmanuel Vadot
34*7ef62cebSEmmanuel VadotallOf:
35*7ef62cebSEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
36*7ef62cebSEmmanuel Vadot
37*7ef62cebSEmmanuel VadotunevaluatedProperties: false
386be33864SEmmanuel Vadot
396be33864SEmmanuel Vadotexamples:
406be33864SEmmanuel Vadot  - |
416be33864SEmmanuel Vadot    spi {
426be33864SEmmanuel Vadot        #address-cells = <1>;
436be33864SEmmanuel Vadot        #size-cells = <0>;
446be33864SEmmanuel Vadot
456be33864SEmmanuel Vadot        adc@0 {
466be33864SEmmanuel Vadot            compatible = "ti,tlc4541";
476be33864SEmmanuel Vadot            reg = <0>;
486be33864SEmmanuel Vadot            vref-supply = <&vdd_supply>;
496be33864SEmmanuel Vadot            spi-max-frequency = <200000>;
506be33864SEmmanuel Vadot            #io-channel-cells = <1>;
516be33864SEmmanuel Vadot        };
526be33864SEmmanuel Vadot    };
536be33864SEmmanuel Vadot...
54