summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/serial/sunplus,sp7021-uart.yaml
blob: 2e9b64abde70963404d8b1bc83f18afaa1028601 (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)
# Copyright (C) Sunplus Co., Ltd. 2021
%YAML 1.2
---
$id: "http://devicetree.org/schemas/serial/sunplus,sp7021-uart.yaml#"
$schema: "http://devicetree.org/meta-schemas/core.yaml#"

title: Sunplus SoC SP7021 UART Controller Device Tree Bindings

maintainers:
  - Hammer Hsieh <hammerh0314@gmail.com>

allOf:
  - $ref: serial.yaml#

properties:
  compatible:
    const: sunplus,sp7021-uart

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    maxItems: 1

  resets:
    maxItems: 1

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - resets

additionalProperties: false

examples:
  - |
    #include <dt-bindings/interrupt-controller/irq.h>
    aliases {
        serial0 = &uart0;
    };

    uart0: serial@9c000900 {
        compatible = "sunplus,sp7021-uart";
        reg = <0x9c000900 0x80>;
        interrupt-parent = <&intc>;
        interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&clkc 0x28>;
        resets = <&rstc 0x18>;
    };
...