1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2# Copyright (C) Sunplus Co., Ltd. 2021
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/serial/sunplus,sp7021-uart.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Sunplus SoC SP7021 UART Controller
9
10maintainers:
11  - Hammer Hsieh <hammerh0314@gmail.com>
12
13allOf:
14  - $ref: serial.yaml#
15
16properties:
17  compatible:
18    const: sunplus,sp7021-uart
19
20  reg:
21    maxItems: 1
22
23  interrupts:
24    maxItems: 1
25
26  clocks:
27    maxItems: 1
28
29  resets:
30    maxItems: 1
31
32required:
33  - compatible
34  - reg
35  - interrupts
36  - clocks
37  - resets
38
39additionalProperties: false
40
41examples:
42  - |
43    #include <dt-bindings/interrupt-controller/irq.h>
44    aliases {
45        serial0 = &uart0;
46    };
47
48    uart0: serial@9c000900 {
49        compatible = "sunplus,sp7021-uart";
50        reg = <0x9c000900 0x80>;
51        interrupt-parent = <&intc>;
52        interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
53        clocks = <&clkc 0x28>;
54        resets = <&rstc 0x18>;
55    };
56...
57