Skip to content

Commit a34fc88

Browse files
robherringgregkh
authored andcommitted
dt-bindings: serial: Convert cirrus,ep7209-uart to DT schema
Convert the Cirrus EP7209 UART binding to DT schema. There is no user of "cirrus,ep7312-uart" other than the example, so drop it. Drop the "aliases" node part as it is not relevant to the schema. The modem control GPIOs are covered by the serial.yaml schema and don't have to be listed in the schema. Signed-off-by: "Rob Herring (Arm)" <[email protected]> Reviewed-by: Thierry Reding <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 1dd6244 commit a34fc88

File tree

2 files changed

+56
-31
lines changed

2 files changed

+56
-31
lines changed

Documentation/devicetree/bindings/serial/cirrus,clps711x-uart.txt

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2+
%YAML 1.2
3+
---
4+
$id: http://devicetree.org/schemas/serial/cirrus,ep7209-uart.yaml#
5+
$schema: http://devicetree.org/meta-schemas/core.yaml#
6+
7+
title: Cirrus Logic CLPS711X Universal Asynchronous Receiver/Transmitter (UART)
8+
9+
maintainers:
10+
- Alexander Shiyan <[email protected]>
11+
12+
allOf:
13+
- $ref: /schemas/serial/serial.yaml#
14+
15+
properties:
16+
compatible:
17+
const: cirrus,ep7209-uart
18+
19+
reg:
20+
maxItems: 1
21+
22+
interrupts:
23+
items:
24+
- description: UART TX interrupt
25+
- description: UART RX interrupt
26+
27+
clocks:
28+
maxItems: 1
29+
30+
syscon:
31+
description: Phandle to SYSCON node, which contains UART control bits.
32+
$ref: /schemas/types.yaml#/definitions/phandle
33+
34+
required:
35+
- compatible
36+
- reg
37+
- interrupts
38+
- clocks
39+
- syscon
40+
41+
unevaluatedProperties: false
42+
43+
examples:
44+
- |
45+
#include <dt-bindings/gpio/gpio.h>
46+
47+
serial@80000480 {
48+
compatible = "cirrus,ep7209-uart";
49+
reg = <0x80000480 0x80>;
50+
interrupts = <12>, <13>;
51+
clocks = <&clks 11>;
52+
syscon = <&syscon1>;
53+
cts-gpios = <&sysgpio 0 GPIO_ACTIVE_LOW>;
54+
dsr-gpios = <&sysgpio 1 GPIO_ACTIVE_LOW>;
55+
dcd-gpios = <&sysgpio 2 GPIO_ACTIVE_LOW>;
56+
};

0 commit comments

Comments
 (0)