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 65additionalProperties: false 66 67examples: 68 - | 69 #include <dt-bindings/interrupt-controller/arm-gic.h> 70 71 tscadc@0 { 72 compatible = "ti,am3359-tscadc"; 73 reg = <0x0 0x1000>; 74 interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; 75 clocks = <&adc_tsc_fck>; 76 clock-names = "fck"; 77 dmas = <&edma 53 0>, <&edma 57 0>; 78 dma-names = "fifo0", "fifo1"; 79 80 tsc { 81 }; 82 83 adc { 84 }; 85 }; 86