| 1 |
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) |
| 2 |
# Copyright 2019 Unisoc Inc. |
| 3 |
%YAML 1.2 |
| 4 |
--- |
| 5 |
$id: http://devicetree.org/schemas/serial/sprd-uart.yaml# |
| 6 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 7 |
|
| 8 |
title: Spreadtrum serial UART |
| 9 |
|
| 10 |
maintainers: |
| 11 |
- Orson Zhai <[email protected]> |
| 12 |
- Baolin Wang <[email protected]> |
| 13 |
- Chunyan Zhang <[email protected]> |
| 14 |
|
| 15 |
properties: |
| 16 |
compatible: |
| 17 |
oneOf: |
| 18 |
- items: |
| 19 |
- enum: |
| 20 |
- sprd,ums9632-uart |
| 21 |
- const: sprd,sc9632-uart |
| 22 |
- items: |
| 23 |
- enum: |
| 24 |
- sprd,sc9860-uart |
| 25 |
- sprd,sc9863a-uart |
| 26 |
- sprd,ums512-uart |
| 27 |
- sprd,ums9620-uart |
| 28 |
- const: sprd,sc9836-uart |
| 29 |
- enum: |
| 30 |
- sprd,sc9632-uart |
| 31 |
- sprd,sc9836-uart |
| 32 |
|
| 33 |
reg: |
| 34 |
maxItems: 1 |
| 35 |
|
| 36 |
interrupts: |
| 37 |
maxItems: 1 |
| 38 |
|
| 39 |
clocks: |
| 40 |
minItems: 1 |
| 41 |
maxItems: 3 |
| 42 |
|
| 43 |
clock-names: |
| 44 |
description: | |
| 45 |
"enable" for UART module enable clock, "uart" for UART clock, "source" |
| 46 |
for UART source (parent) clock. |
| 47 |
items: |
| 48 |
- const: enable |
| 49 |
- const: uart |
| 50 |
- const: source |
| 51 |
|
| 52 |
dmas: |
| 53 |
minItems: 1 |
| 54 |
maxItems: 2 |
| 55 |
|
| 56 |
dma-names: |
| 57 |
minItems: 1 |
| 58 |
items: |
| 59 |
- const: rx |
| 60 |
- const: tx |
| 61 |
|
| 62 |
required: |
| 63 |
- compatible |
| 64 |
- reg |
| 65 |
- interrupts |
| 66 |
|
| 67 |
additionalProperties: false |
| 68 |
|
| 69 |
examples: |
| 70 |
- | |
| 71 |
#include <dt-bindings/interrupt-controller/arm-gic.h> |
| 72 |
serial@0 { |
| 73 |
compatible = "sprd,sc9860-uart", "sprd,sc9836-uart"; |
| 74 |
reg = <0x0 0x100>; |
| 75 |
interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>; |
| 76 |
dma-names = "rx", "tx"; |
| 77 |
dmas = <&ap_dma 19>, <&ap_dma 20>; |
| 78 |
clock-names = "enable", "uart", "source"; |
| 79 |
clocks = <&clk_ap_apb_gates 9>, <&clk_uart0>, <&ext_26m>; |
| 80 |
}; |
| 81 |
|
| 82 |
... |