blob: 77863aefe9ef1eafe648b530c1570333aea7940b [file] [log] [blame]
Arnd Bergmann787b0c12013-01-28 16:24:37 +00001* ARM AMBA Primecell PL011 serial UART
2
3Required properties:
Jun Nied5553cb2015-06-04 11:21:02 +08004- compatible: must be "arm,primecell", "arm,pl011", "zte,zx296702-uart"
Arnd Bergmann787b0c12013-01-28 16:24:37 +00005- reg: exactly one register range with length 0x1000
6- interrupts: exactly one interrupt specifier
7
8Optional properties:
Linus Torvalds37da7bb2014-12-14 15:23:32 -08009- pinctrl:
10 When present, must have one state named "default",
Linus Walleija81a6c62014-05-12 11:37:17 +020011 and may contain a second name named "sleep". The former
12 state sets up pins for ordinary operation whereas
13 the latter state will put the associated pins to sleep
14 when the UART is unused
Linus Torvalds37da7bb2014-12-14 15:23:32 -080015- clocks:
16 When present, the first clock listed must correspond to
Linus Walleija81a6c62014-05-12 11:37:17 +020017 the clock named UARTCLK on the IP block, i.e. the clock
18 to the external serial line, whereas the second clock
19 must correspond to the PCLK clocking the internal logic
20 of the block. Just listing one clock (the first one) is
21 deprecated.
Geert Uytterhoeven06e7bd12015-10-16 16:23:06 +020022- clock-names:
Linus Torvalds37da7bb2014-12-14 15:23:32 -080023 When present, the first clock listed must be named
Linus Walleija81a6c62014-05-12 11:37:17 +020024 "uartclk" and the second clock listed must be named
Arnd Bergmann787b0c12013-01-28 16:24:37 +000025 "apb_pclk"
Linus Torvalds37da7bb2014-12-14 15:23:32 -080026- dmas:
27 When present, may have one or two dma channels.
Arnd Bergmann787b0c12013-01-28 16:24:37 +000028 The first one must be named "rx", the second one
29 must be named "tx".
Linus Torvalds37da7bb2014-12-14 15:23:32 -080030- auto-poll:
31 Enables polling when using RX DMA.
32- poll-rate-ms:
33 Rate at which poll occurs when auto-poll is set,
34 default 100ms.
35- poll-timeout-ms:
36 Poll timeout when auto-poll is set, default
37 3000ms.
Arnd Bergmann787b0c12013-01-28 16:24:37 +000038
39See also bindings/arm/primecell.txt
Linus Walleija81a6c62014-05-12 11:37:17 +020040
41Example:
42
43uart@80120000 {
44 compatible = "arm,pl011", "arm,primecell";
45 reg = <0x80120000 0x1000>;
46 interrupts = <0 11 IRQ_TYPE_LEVEL_HIGH>;
47 dmas = <&dma 13 0 0x2>, <&dma 13 0 0x0>;
48 dma-names = "rx", "tx";
49 clocks = <&foo_clk>, <&bar_clk>;
50 clock-names = "uartclk", "apb_pclk";
51};