]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - Bindings/serial/sprd-uart.txt
Import devicetree files from Linux 5.4
[FreeBSD/FreeBSD.git] / Bindings / serial / sprd-uart.txt
1 * Spreadtrum serial UART
2
3 Required properties:
4 - compatible: must be one of:
5   * "sprd,sc9836-uart"
6   * "sprd,sc9860-uart", "sprd,sc9836-uart"
7
8 - reg: offset and length of the register set for the device
9 - interrupts: exactly one interrupt specifier
10 - clock-names: Should contain following entries:
11   "enable" for UART module enable clock,
12   "uart" for UART clock,
13   "source" for UART source (parent) clock.
14 - clocks: Should contain a clock specifier for each entry in clock-names.
15   UART clock and source clock are optional properties, but enable clock
16   is required.
17
18 Optional properties:
19 - dma-names: Should contain "rx" for receive and "tx" for transmit channels.
20 - dmas: A list of dma specifiers, one for each entry in dma-names.
21
22 Example:
23         uart0: serial@0 {
24                 compatible = "sprd,sc9860-uart",
25                              "sprd,sc9836-uart";
26                 reg = <0x0 0x100>;
27                 interrupts = <GIC_SPI 2 IRQ_TYPE_LEVEL_HIGH>;
28                 dma-names = "rx", "tx";
29                 dmas = <&ap_dma 19>, <&ap_dma 20>;
30                 clock-names = "enable", "uart", "source";
31                 clocks = <&clk_ap_apb_gates 9>, <&clk_uart0>, <&ext_26m>;
32         };