1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mfd/ti,am3359-tscadc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: TI AM3359 Touchscreen controller/ADC
8
9maintainers:
10  - Miquel Raynal <miquel.raynal@bootlin.com>
11
12properties:
13  compatible:
14    oneOf:
15      - const: ti,am3359-tscadc
16      - items:
17          - const: ti,am654-tscadc
18          - const: ti,am3359-tscadc
19      - const: ti,am4372-magadc
20
21  reg:
22    maxItems: 1
23
24  interrupts:
25    maxItems: 1
26
27  clocks:
28    maxItems: 1
29
30  clock-names:
31    const: fck
32
33  dmas:
34    items:
35      - description: DMA controller phandle and request line for FIFO0
36      - description: DMA controller phandle and request line for FIFO1
37
38  dma-names:
39    items:
40      - const: fifo0
41      - const: fifo1
42
43  adc:
44    type: object
45    description: ADC child
46
47  tsc:
48    type: object
49    description: Touchscreen controller child
50
51  mag:
52    type: object
53    description: Magnetic reader
54
55required:
56  - compatible
57  - reg
58  - interrupts
59  - clocks
60  - clock-names
61  - dmas
62  - dma-names
63
64additionalProperties: false
65
66examples:
67  - |
68    #include <dt-bindings/interrupt-controller/arm-gic.h>
69
70    tscadc@0 {
71        compatible = "ti,am3359-tscadc";
72        reg = <0x0 0x1000>;
73        interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
74        clocks = <&adc_tsc_fck>;
75        clock-names = "fck";
76        dmas = <&edma 53 0>, <&edma 57 0>;
77        dma-names = "fifo0", "fifo1";
78
79        tsc {
80        };
81
82        adc {
83        };
84    };
85