Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 # Copyright (C) Sunplus Co., Ltd. 2021
0003 %YAML 1.2
0004 ---
0005 $id: "http://devicetree.org/schemas/serial/sunplus,sp7021-uart.yaml#"
0006 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0007 
0008 title: Sunplus SoC SP7021 UART Controller Device Tree Bindings
0009 
0010 maintainers:
0011   - Hammer Hsieh <hammerh0314@gmail.com>
0012 
0013 allOf:
0014   - $ref: serial.yaml#
0015 
0016 properties:
0017   compatible:
0018     const: sunplus,sp7021-uart
0019 
0020   reg:
0021     maxItems: 1
0022 
0023   interrupts:
0024     maxItems: 1
0025 
0026   clocks:
0027     maxItems: 1
0028 
0029   resets:
0030     maxItems: 1
0031 
0032 required:
0033   - compatible
0034   - reg
0035   - interrupts
0036   - clocks
0037   - resets
0038 
0039 additionalProperties: false
0040 
0041 examples:
0042   - |
0043     #include <dt-bindings/interrupt-controller/irq.h>
0044     aliases {
0045         serial0 = &uart0;
0046     };
0047 
0048     uart0: serial@9c000900 {
0049         compatible = "sunplus,sp7021-uart";
0050         reg = <0x9c000900 0x80>;
0051         interrupt-parent = <&intc>;
0052         interrupts = <53 IRQ_TYPE_LEVEL_HIGH>;
0053         clocks = <&clkc 0x28>;
0054         resets = <&rstc 0x18>;
0055     };
0056 ...