xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/microchip,mcp3201.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/microchip,mcp3201.yaml#
56be33864SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
66be33864SEmmanuel Vadot
76be33864SEmmanuel Vadottitle: Microchip mcp3201 and similar ADCs
86be33864SEmmanuel Vadot
96be33864SEmmanuel Vadotmaintainers:
106be33864SEmmanuel Vadot  - Oskar Andero <oskar.andero@gmail.com>
116be33864SEmmanuel Vadot
126be33864SEmmanuel Vadotdescription: |
13c9ccf3a3SEmmanuel Vadot   Family of simple ADCs with a SPI interface.
146be33864SEmmanuel Vadot
156be33864SEmmanuel Vadotproperties:
166be33864SEmmanuel Vadot  compatible:
176be33864SEmmanuel Vadot    enum:
186be33864SEmmanuel Vadot      - microchip,mcp3001
196be33864SEmmanuel Vadot      - microchip,mcp3002
206be33864SEmmanuel Vadot      - microchip,mcp3004
216be33864SEmmanuel Vadot      - microchip,mcp3008
226be33864SEmmanuel Vadot      - microchip,mcp3201
236be33864SEmmanuel Vadot      - microchip,mcp3202
246be33864SEmmanuel Vadot      - microchip,mcp3204
256be33864SEmmanuel Vadot      - microchip,mcp3208
266be33864SEmmanuel Vadot      - microchip,mcp3301
276be33864SEmmanuel Vadot      - microchip,mcp3550-50
286be33864SEmmanuel Vadot      - microchip,mcp3550-60
296be33864SEmmanuel Vadot      - microchip,mcp3551
306be33864SEmmanuel Vadot      - microchip,mcp3553
316be33864SEmmanuel Vadot
326be33864SEmmanuel Vadot  reg:
336be33864SEmmanuel Vadot    maxItems: 1
346be33864SEmmanuel Vadot
356be33864SEmmanuel Vadot  spi-cpha: true
366be33864SEmmanuel Vadot  spi-cpol: true
376be33864SEmmanuel Vadot
386be33864SEmmanuel Vadot  vref-supply:
396be33864SEmmanuel Vadot    description: External reference.
406be33864SEmmanuel Vadot
416be33864SEmmanuel Vadot  "#io-channel-cells":
426be33864SEmmanuel Vadot    const: 1
436be33864SEmmanuel Vadot
446be33864SEmmanuel Vadotdependencies:
456be33864SEmmanuel Vadot  spi-cpol: [ spi-cpha ]
466be33864SEmmanuel Vadot  spi-cpha: [ spi-cpol ]
476be33864SEmmanuel Vadot
486be33864SEmmanuel Vadotrequired:
496be33864SEmmanuel Vadot  - compatible
506be33864SEmmanuel Vadot  - reg
516be33864SEmmanuel Vadot  - vref-supply
526be33864SEmmanuel Vadot
53*7ef62cebSEmmanuel VadotallOf:
54*7ef62cebSEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
55*7ef62cebSEmmanuel Vadot
56*7ef62cebSEmmanuel VadotunevaluatedProperties: false
576be33864SEmmanuel Vadot
586be33864SEmmanuel Vadotexamples:
596be33864SEmmanuel Vadot  - |
606be33864SEmmanuel Vadot    spi {
616be33864SEmmanuel Vadot        #address-cells = <1>;
626be33864SEmmanuel Vadot        #size-cells = <0>;
636be33864SEmmanuel Vadot
646be33864SEmmanuel Vadot        adc@0 {
656be33864SEmmanuel Vadot            compatible = "microchip,mcp3002";
666be33864SEmmanuel Vadot            reg = <0>;
676be33864SEmmanuel Vadot            vref-supply = <&vref_reg>;
686be33864SEmmanuel Vadot            spi-cpha;
696be33864SEmmanuel Vadot            spi-cpol;
706be33864SEmmanuel Vadot            #io-channel-cells = <1>;
716be33864SEmmanuel Vadot        };
726be33864SEmmanuel Vadot        adc@1 {
736be33864SEmmanuel Vadot            compatible = "microchip,mcp3002";
746be33864SEmmanuel Vadot            reg = <1>;
756be33864SEmmanuel Vadot            vref-supply = <&vref_reg>;
766be33864SEmmanuel Vadot            spi-max-frequency = <1500000>;
776be33864SEmmanuel Vadot        };
786be33864SEmmanuel Vadot    };
796be33864SEmmanuel Vadot...
80