Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 # Copyright 2019 Unisoc Inc.
0003 %YAML 1.2
0004 ---
0005 $id: "http://devicetree.org/schemas/serial/sprd-uart.yaml#"
0006 $schema: "http://devicetree.org/meta-schemas/core.yaml#"
0007 
0008 title: Spreadtrum serial UART
0009 
0010 maintainers:
0011   - Orson Zhai <orsonzhai@gmail.com>
0012   - Baolin Wang <baolin.wang7@gmail.com>
0013   - Chunyan Zhang <zhang.lyra@gmail.com>
0014 
0015 properties:
0016   compatible:
0017     oneOf:
0018       - items:
0019           - enum:
0020               - sprd,sc9860-uart
0021               - sprd,sc9863a-uart
0022               - sprd,ums512-uart
0023           - const: sprd,sc9836-uart
0024       - const: sprd,sc9836-uart
0025 
0026   reg:
0027     maxItems: 1
0028 
0029   interrupts:
0030     maxItems: 1
0031 
0032   clocks:
0033     minItems: 1
0034     maxItems: 3
0035 
0036   clock-names:
0037     description: |
0038       "enable" for UART module enable clock, "uart" for UART clock, "source"
0039       for UART source (parent) clock.
0040     items:
0041       - const: enable
0042       - const: uart
0043       - const: source
0044 
0045   dmas:
0046     minItems: 1
0047     maxItems: 2
0048 
0049   dma-names:
0050     minItems: 1
0051     items:
0052       - const: rx
0053       - const: tx
0054 
0055 required:
0056   - compatible
0057   - reg
0058   - interrupts
0059 
0060 additionalProperties: false
0061 
0062 examples:
0063   - |
0064     #include <dt-bindings/interrupt-controller/arm-gic.h>
0065     serial@0 {
0066       compatible = "sprd,sc9860-uart", "sprd,sc9836-uart";
0067       reg = <0x0 0x100>;
0068       interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
0069       dma-names = "rx", "tx";
0070       dmas = <&ap_dma 19>, <&ap_dma 20>;
0071       clock-names = "enable", "uart", "source";
0072       clocks = <&clk_ap_apb_gates 9>, <&clk_uart0>, <&ext_26m>;
0073     };
0074 
0075 ...