xref: /linux/Documentation/devicetree/bindings/serial/microchip,pic32mzda-uart.yaml (revision 23ca32e4ead48f68e37000f2552b973ef1439acb)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/serial/microchip,pic32mzda-uart.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Microchip PIC32 UART
8
9maintainers:
10  - Andrei Pistirica <andrei.pistirica@microchip.com>
11  - Purna Chandra Mandal <purna.mandal@microchip.com>
12
13allOf:
14  - $ref: /schemas/serial/serial.yaml#
15
16properties:
17  compatible:
18    const: microchip,pic32mzda-uart
19
20  reg:
21    maxItems: 1
22
23  interrupts:
24    items:
25      - description: Fault
26      - description: RX
27      - description: TX
28
29  clocks:
30    maxItems: 1
31
32required:
33  - compatible
34  - reg
35  - interrupts
36  - clocks
37
38unevaluatedProperties: false
39
40examples:
41  - |
42    #include <dt-bindings/interrupt-controller/irq.h>
43    #include <dt-bindings/clock/microchip,pic32-clock.h>
44
45    serial@1f822000 {
46        compatible = "microchip,pic32mzda-uart";
47        reg = <0x1f822000 0x50>;
48        interrupts = <112 IRQ_TYPE_LEVEL_HIGH>,
49                    <113 IRQ_TYPE_LEVEL_HIGH>,
50                    <114 IRQ_TYPE_LEVEL_HIGH>;
51        clocks = <&rootclk PB2CLK>;
52        cts-gpios = <&gpio1 15 0>;
53    };
54