xref: /freebsd/sys/contrib/device-tree/Bindings/mfd/ti,am3359-tscadc.yaml (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
28cc087a1SEmmanuel Vadot%YAML 1.2
38cc087a1SEmmanuel Vadot---
48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/mfd/ti,am3359-tscadc.yaml#
58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68cc087a1SEmmanuel Vadot
78cc087a1SEmmanuel Vadottitle: TI AM3359 Touchscreen controller/ADC
88cc087a1SEmmanuel Vadot
98cc087a1SEmmanuel Vadotmaintainers:
108cc087a1SEmmanuel Vadot  - Miquel Raynal <miquel.raynal@bootlin.com>
118cc087a1SEmmanuel Vadot
128cc087a1SEmmanuel Vadotproperties:
138cc087a1SEmmanuel Vadot  compatible:
148cc087a1SEmmanuel Vadot    oneOf:
158cc087a1SEmmanuel Vadot      - const: ti,am3359-tscadc
168cc087a1SEmmanuel Vadot      - items:
178cc087a1SEmmanuel Vadot          - const: ti,am654-tscadc
188cc087a1SEmmanuel Vadot          - const: ti,am3359-tscadc
198cc087a1SEmmanuel Vadot      - const: ti,am4372-magadc
208cc087a1SEmmanuel Vadot
218cc087a1SEmmanuel Vadot  reg:
228cc087a1SEmmanuel Vadot    maxItems: 1
238cc087a1SEmmanuel Vadot
248cc087a1SEmmanuel Vadot  interrupts:
258cc087a1SEmmanuel Vadot    maxItems: 1
268cc087a1SEmmanuel Vadot
278cc087a1SEmmanuel Vadot  clocks:
288cc087a1SEmmanuel Vadot    maxItems: 1
298cc087a1SEmmanuel Vadot
308cc087a1SEmmanuel Vadot  clock-names:
318cc087a1SEmmanuel Vadot    const: fck
328cc087a1SEmmanuel Vadot
338cc087a1SEmmanuel Vadot  dmas:
348cc087a1SEmmanuel Vadot    items:
358cc087a1SEmmanuel Vadot      - description: DMA controller phandle and request line for FIFO0
368cc087a1SEmmanuel Vadot      - description: DMA controller phandle and request line for FIFO1
378cc087a1SEmmanuel Vadot
388cc087a1SEmmanuel Vadot  dma-names:
398cc087a1SEmmanuel Vadot    items:
408cc087a1SEmmanuel Vadot      - const: fifo0
418cc087a1SEmmanuel Vadot      - const: fifo1
428cc087a1SEmmanuel Vadot
438cc087a1SEmmanuel Vadot  adc:
448cc087a1SEmmanuel Vadot    type: object
458cc087a1SEmmanuel Vadot    description: ADC child
468cc087a1SEmmanuel Vadot
478cc087a1SEmmanuel Vadot  tsc:
488cc087a1SEmmanuel Vadot    type: object
498cc087a1SEmmanuel Vadot    description: Touchscreen controller child
508cc087a1SEmmanuel Vadot
518cc087a1SEmmanuel Vadot  mag:
528cc087a1SEmmanuel Vadot    type: object
538cc087a1SEmmanuel Vadot    description: Magnetic reader
548cc087a1SEmmanuel Vadot
55*8bab661aSEmmanuel Vadot  power-domains:
56*8bab661aSEmmanuel Vadot    maxItems: 1
57*8bab661aSEmmanuel Vadot
588cc087a1SEmmanuel Vadotrequired:
598cc087a1SEmmanuel Vadot  - compatible
608cc087a1SEmmanuel Vadot  - reg
618cc087a1SEmmanuel Vadot  - interrupts
628cc087a1SEmmanuel Vadot  - clocks
638cc087a1SEmmanuel Vadot  - clock-names
648cc087a1SEmmanuel Vadot
658cc087a1SEmmanuel VadotadditionalProperties: false
668cc087a1SEmmanuel Vadot
678cc087a1SEmmanuel Vadotexamples:
688cc087a1SEmmanuel Vadot  - |
698cc087a1SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/arm-gic.h>
708cc087a1SEmmanuel Vadot
718cc087a1SEmmanuel Vadot    tscadc@0 {
728cc087a1SEmmanuel Vadot        compatible = "ti,am3359-tscadc";
738cc087a1SEmmanuel Vadot        reg = <0x0 0x1000>;
748cc087a1SEmmanuel Vadot        interrupts = <GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>;
758cc087a1SEmmanuel Vadot        clocks = <&adc_tsc_fck>;
768cc087a1SEmmanuel Vadot        clock-names = "fck";
778cc087a1SEmmanuel Vadot        dmas = <&edma 53 0>, <&edma 57 0>;
788cc087a1SEmmanuel Vadot        dma-names = "fifo0", "fifo1";
798cc087a1SEmmanuel Vadot
808cc087a1SEmmanuel Vadot        tsc {
818cc087a1SEmmanuel Vadot        };
828cc087a1SEmmanuel Vadot
838cc087a1SEmmanuel Vadot        adc {
848cc087a1SEmmanuel Vadot        };
858cc087a1SEmmanuel Vadot    };
86