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