summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/serial/cirrus,ep7209-uart.yaml
blob: c9976e86872b719c5cd37709e7520ecc91da054f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/serial/cirrus,ep7209-uart.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Cirrus Logic CLPS711X Universal Asynchronous Receiver/Transmitter (UART)

maintainers:
  - Alexander Shiyan <shc_work@mail.ru>

allOf:
  - $ref: /schemas/serial/serial.yaml#

properties:
  compatible:
    const: cirrus,ep7209-uart

  reg:
    maxItems: 1

  interrupts:
    items:
      - description: UART TX interrupt
      - description: UART RX interrupt

  clocks:
    maxItems: 1

  syscon:
    description: Phandle to SYSCON node, which contains UART control bits.
    $ref: /schemas/types.yaml#/definitions/phandle

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - syscon

unevaluatedProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>

    serial@80000480 {
        compatible = "cirrus,ep7209-uart";
        reg = <0x80000480 0x80>;
        interrupts = <12>, <13>;
        clocks = <&clks 11>;
        syscon = <&syscon1>;
        cts-gpios = <&sysgpio 0 GPIO_ACTIVE_LOW>;
        dsr-gpios = <&sysgpio 1 GPIO_ACTIVE_LOW>;
        dcd-gpios = <&sysgpio 2 GPIO_ACTIVE_LOW>;
    };