Skip to content

Commit 76619c4

Browse files
robherringgregkh
authored andcommitted
dt-bindings: serial: Convert microchip,pic32mzda-uart to DT schema
Convert the Microchip PIC32 UART binding to DT schema. The binding was unclear there are 3 interrupts. The functions were determined from the driver. The 'cts-gpios' property is covered by serial.yaml schema. Signed-off-by: "Rob Herring (Arm)" <[email protected]> Reviewed-by: Conor Dooley <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 7282b8a commit 76619c4

File tree

2 files changed

+53
-29
lines changed

2 files changed

+53
-29
lines changed

Documentation/devicetree/bindings/serial/microchip,pic32-uart.txt

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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+
};

0 commit comments

Comments
 (0)