| 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 |
|
| 7 |
title: Microchip PIC32 UART |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Andrei Pistirica <[email protected]> |
| 11 |
- Purna Chandra Mandal <[email protected]> |
| 12 |
|
| 13 |
allOf: |
| 14 |
- $ref: /schemas/serial/serial.yaml# |
| 15 |
|
| 16 |
properties: |
| 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 |
|
| 32 |
required: |
| 33 |
- compatible |
| 34 |
- reg |
| 35 |
- interrupts |
| 36 |
- clocks |
| 37 |
|
| 38 |
unevaluatedProperties: false |
| 39 |
|
| 40 |
examples: |
| 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 |
}; |