xref: /freebsd/sys/contrib/device-tree/Bindings/iio/adc/renesas,rcar-gyroadc.yaml (revision fac71e4e09885bb2afa3d984a0c239a52e1a7418)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
25def4c47SEmmanuel Vadot%YAML 1.2
35def4c47SEmmanuel Vadot---
45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/iio/adc/renesas,rcar-gyroadc.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
75def4c47SEmmanuel Vadottitle: Renesas R-Car GyroADC
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
105def4c47SEmmanuel Vadot  - Marek Vasut <marek.vasut+renesas@gmail.com>
115def4c47SEmmanuel Vadot
125def4c47SEmmanuel Vadotdescription: |
135def4c47SEmmanuel Vadot  The GyroADC block is a reduced SPI block with up to 8 chipselect lines,
145def4c47SEmmanuel Vadot  which supports the SPI protocol of a selected few SPI ADCs. The SPI ADCs
155def4c47SEmmanuel Vadot  are sampled by the GyroADC block in a round-robin fashion and the result
165def4c47SEmmanuel Vadot  presented in the GyroADC registers.
175def4c47SEmmanuel Vadot  The ADC bindings should match with that of the devices connected to a
185def4c47SEmmanuel Vadot  full featured SPI bus.
195def4c47SEmmanuel Vadot
205def4c47SEmmanuel Vadotproperties:
215def4c47SEmmanuel Vadot  compatible:
225def4c47SEmmanuel Vadot    items:
235def4c47SEmmanuel Vadot      - enum:
245def4c47SEmmanuel Vadot          - renesas,r8a7791-gyroadc
255def4c47SEmmanuel Vadot          - renesas,r8a7792-gyroadc
265def4c47SEmmanuel Vadot      - const: renesas,rcar-gyroadc
275def4c47SEmmanuel Vadot
285def4c47SEmmanuel Vadot  reg:
295def4c47SEmmanuel Vadot    maxItems: 1
305def4c47SEmmanuel Vadot
315def4c47SEmmanuel Vadot  clocks:
325def4c47SEmmanuel Vadot    maxItems: 1
335def4c47SEmmanuel Vadot
345def4c47SEmmanuel Vadot  clock-names:
355def4c47SEmmanuel Vadot    const: fck
365def4c47SEmmanuel Vadot
37*fac71e4eSEmmanuel Vadot  power-domains:
38*fac71e4eSEmmanuel Vadot    maxItems: 1
395def4c47SEmmanuel Vadot
40*fac71e4eSEmmanuel Vadot  resets:
41*fac71e4eSEmmanuel Vadot    maxItems: 1
425def4c47SEmmanuel Vadot
435def4c47SEmmanuel Vadot  "#address-cells":
445def4c47SEmmanuel Vadot    const: 1
455def4c47SEmmanuel Vadot
465def4c47SEmmanuel Vadot  "#size-cells":
475def4c47SEmmanuel Vadot    const: 0
485def4c47SEmmanuel Vadot
495def4c47SEmmanuel VadotadditionalProperties: false
505def4c47SEmmanuel Vadot
515def4c47SEmmanuel Vadotrequired:
525def4c47SEmmanuel Vadot  - compatible
535def4c47SEmmanuel Vadot  - reg
545def4c47SEmmanuel Vadot  - clocks
555def4c47SEmmanuel Vadot  - clock-names
56*fac71e4eSEmmanuel Vadot  - power-domains
57*fac71e4eSEmmanuel Vadot  - resets
585def4c47SEmmanuel Vadot  - "#address-cells"
595def4c47SEmmanuel Vadot  - "#size-cells"
605def4c47SEmmanuel Vadot
615def4c47SEmmanuel VadotpatternProperties:
625def4c47SEmmanuel Vadot  "@[0-7]$":
635def4c47SEmmanuel Vadot    type: object
645def4c47SEmmanuel Vadot    properties:
655def4c47SEmmanuel Vadot      compatible:
665def4c47SEmmanuel Vadot        description: |
675def4c47SEmmanuel Vadot          fujitsu,mb88101a
685def4c47SEmmanuel Vadot          - Fujitsu MB88101A compatible mode,
695def4c47SEmmanuel Vadot            12bit sampling, up to 4 channels can be sampled in round-robin
705def4c47SEmmanuel Vadot            fashion. One Fujitsu chip supplies four GyroADC channels with
715def4c47SEmmanuel Vadot            data as it contains four ADCs on the chip and thus for 4-channel
725def4c47SEmmanuel Vadot            operation, single MB88101A is required. The Cx chipselect lines
735def4c47SEmmanuel Vadot            of the MB88101A connect directly to two CHS lines of the GyroADC,
745def4c47SEmmanuel Vadot            no demuxer is required. The data out line of each MB88101A
755def4c47SEmmanuel Vadot            connects to a shared input pin of the GyroADC.
765def4c47SEmmanuel Vadot          ti,adcs7476 or ti,adc121 or adi,ad7476
775def4c47SEmmanuel Vadot          - TI ADCS7476 / TI ADC121 / ADI AD7476 compatible mode, 15bit
785def4c47SEmmanuel Vadot            sampling, up to 8 channels can be sampled in round-robin
795def4c47SEmmanuel Vadot            fashion. One TI/ADI chip supplies single ADC channel with data,
805def4c47SEmmanuel Vadot            thus for 8-channel operation, 8 chips are required.
815def4c47SEmmanuel Vadot            A 3:8 chipselect demuxer is  required to connect the nCS line
825def4c47SEmmanuel Vadot            of the TI/ADI chips to the GyroADC, while MISO line of each
835def4c47SEmmanuel Vadot            TI/ADI ADC connects to a shared input pin of the GyroADC.
845def4c47SEmmanuel Vadot          maxim,max1162 or maxim,max11100
855def4c47SEmmanuel Vadot          - Maxim MAX1162 / Maxim MAX11100 compatible mode,  16bit sampling,
865def4c47SEmmanuel Vadot            up to 8 channels can be sampled in round-robin fashion. One
875def4c47SEmmanuel Vadot            Maxim chip supplies single ADC channel with data, thus for
885def4c47SEmmanuel Vadot            8-channel operation, 8 chips are required.
895def4c47SEmmanuel Vadot            A 3:8 chipselect demuxer is required to connect the nCS line
905def4c47SEmmanuel Vadot            of the MAX chips to the GyroADC, while MISO line of each Maxim
915def4c47SEmmanuel Vadot            ADC connects to a shared input pin of the GyroADC.
925def4c47SEmmanuel Vadot        enum:
93*fac71e4eSEmmanuel Vadot          - adi,ad7476
945def4c47SEmmanuel Vadot          - fujitsu,mb88101a
955def4c47SEmmanuel Vadot          - maxim,max1162
965def4c47SEmmanuel Vadot          - maxim,max11100
975def4c47SEmmanuel Vadot          - ti,adcs7476
985def4c47SEmmanuel Vadot          - ti,adc121
995def4c47SEmmanuel Vadot
1005def4c47SEmmanuel Vadot      reg:
1015def4c47SEmmanuel Vadot        minimum: 0
1025def4c47SEmmanuel Vadot        maximum: 7
1035def4c47SEmmanuel Vadot
1045def4c47SEmmanuel Vadot      vref-supply: true
1055def4c47SEmmanuel Vadot
1065def4c47SEmmanuel Vadot    additionalProperties: false
1075def4c47SEmmanuel Vadot
1085def4c47SEmmanuel Vadot    required:
1095def4c47SEmmanuel Vadot      - compatible
1105def4c47SEmmanuel Vadot      - reg
1115def4c47SEmmanuel Vadot      - vref-supply
1125def4c47SEmmanuel Vadot
1135def4c47SEmmanuel Vadotexamples:
1145def4c47SEmmanuel Vadot  - |
115*fac71e4eSEmmanuel Vadot    #include <dt-bindings/clock/r8a7791-cpg-mssr.h>
1165def4c47SEmmanuel Vadot    #include <dt-bindings/power/r8a7791-sysc.h>
1175def4c47SEmmanuel Vadot
1185def4c47SEmmanuel Vadot    adc@e6e54000 {
1195def4c47SEmmanuel Vadot        compatible = "renesas,r8a7791-gyroadc", "renesas,rcar-gyroadc";
120*fac71e4eSEmmanuel Vadot        reg = <0xe6e54000 64>;
121*fac71e4eSEmmanuel Vadot        clocks = <&cpg CPG_MOD 901>;
1225def4c47SEmmanuel Vadot        clock-names = "fck";
1235def4c47SEmmanuel Vadot        power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
124*fac71e4eSEmmanuel Vadot        resets = <&cpg 901>;
1255def4c47SEmmanuel Vadot
1265def4c47SEmmanuel Vadot        #address-cells = <1>;
1275def4c47SEmmanuel Vadot        #size-cells = <0>;
1285def4c47SEmmanuel Vadot
1295def4c47SEmmanuel Vadot        adc@0 {
1305def4c47SEmmanuel Vadot            reg = <0>;
1315def4c47SEmmanuel Vadot            compatible = "maxim,max1162";
1325def4c47SEmmanuel Vadot            vref-supply = <&vref_max1162>;
1335def4c47SEmmanuel Vadot        };
1345def4c47SEmmanuel Vadot
1355def4c47SEmmanuel Vadot        adc@1 {
1365def4c47SEmmanuel Vadot            reg = <1>;
1375def4c47SEmmanuel Vadot            compatible = "maxim,max1162";
1385def4c47SEmmanuel Vadot            vref-supply = <&vref_max1162>;
1395def4c47SEmmanuel Vadot        };
1405def4c47SEmmanuel Vadot    };
1415def4c47SEmmanuel Vadot...
142