xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/ti,am3359-tscadc.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
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
55  power-domains:
56    maxItems: 1
57
58required:
59  - compatible
60  - reg
61  - interrupts
62  - clocks
63  - clock-names
64  - dmas
65  - dma-names
66
67additionalProperties: false
68
69examples:
70  - |
71    #include <dt-bindings/interrupt-controller/arm-gic.h>
72
73    tscadc@0 {
74        compatible = "ti,am3359-tscadc";
75        reg = <0x0 0x1000>;
76        interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
77        clocks = <&adc_tsc_fck>;
78        clock-names = "fck";
79        dmas = <&edma 53 0>, <&edma 57 0>;
80        dma-names = "fifo0", "fifo1";
81
82        tsc {
83        };
84
85        adc {
86        };
87    };
88