Fabio Estevam | 1ea6607 | 2012-06-18 10:06:09 -0300 | [diff] [blame] | 1 | * Freescale MXS Application UART (AUART) |
| 2 | |
Oleksij Rempel | 254da0d | 2016-03-16 14:05:52 +0100 | [diff] [blame] | 3 | Required properties for all SoCs: |
| 4 | - compatible : Should be one of fallowing variants: |
| 5 | "fsl,imx23-auart" - Freescale i.MX23 |
| 6 | "fsl,imx28-auart" - Freescale i.MX28 |
| 7 | "alphascale,asm9260-auart" - Alphascale ASM9260 |
Fabio Estevam | 1ea6607 | 2012-06-18 10:06:09 -0300 | [diff] [blame] | 8 | - reg : Address and length of the register set for the device |
| 9 | - interrupts : Should contain the auart interrupt numbers |
Shawn Guo | bcc20f9 | 2013-02-26 13:47:41 +0800 | [diff] [blame] | 10 | - dmas: DMA specifier, consisting of a phandle to DMA controller node |
| 11 | and AUART DMA channel ID. |
| 12 | Refer to dma.txt and fsl-mxs-dma.txt for details. |
| 13 | - dma-names: "rx" for RX channel, "tx" for TX channel. |
Huang Shijie | e800163 | 2012-11-16 16:03:53 +0800 | [diff] [blame] | 14 | |
Oleksij Rempel | 254da0d | 2016-03-16 14:05:52 +0100 | [diff] [blame] | 15 | Required properties for "alphascale,asm9260-auart": |
| 16 | - clocks : the clocks feeding the watchdog timer. See clock-bindings.txt |
| 17 | - clock-names : should be set to |
| 18 | "mod" - source for tick counter. |
| 19 | "ahb" - ahb gate. |
| 20 | |
Huang Shijie | 8418e67 | 2013-08-03 10:09:14 -0400 | [diff] [blame] | 21 | Optional properties: |
Geert Uytterhoeven | 182cdcb | 2016-04-22 17:22:22 +0200 | [diff] [blame] | 22 | - uart-has-rtscts : Indicate the UART has RTS and CTS lines |
Janusz Uzycki | 7c573d7 | 2014-10-10 18:53:25 +0200 | [diff] [blame] | 23 | for hardware flow control, |
Huang Shijie | 8418e67 | 2013-08-03 10:09:14 -0400 | [diff] [blame] | 24 | it also means you enable the DMA support for this UART. |
Janusz Uzycki | 7c573d7 | 2014-10-10 18:53:25 +0200 | [diff] [blame] | 25 | - {rts,cts,dtr,dsr,rng,dcd}-gpios: specify a GPIO for RTS/CTS/DTR/DSR/RI/DCD |
| 26 | line respectively. It will use specified PIO instead of the peripheral |
| 27 | function pin for the USART feature. |
| 28 | If unsure, don't specify this property. |
Huang Shijie | 8418e67 | 2013-08-03 10:09:14 -0400 | [diff] [blame] | 29 | |
Fabio Estevam | 1ea6607 | 2012-06-18 10:06:09 -0300 | [diff] [blame] | 30 | Example: |
| 31 | auart0: serial@8006a000 { |
| 32 | compatible = "fsl,imx28-auart", "fsl,imx23-auart"; |
| 33 | reg = <0x8006a000 0x2000>; |
Shawn Guo | bcc20f9 | 2013-02-26 13:47:41 +0800 | [diff] [blame] | 34 | interrupts = <112>; |
| 35 | dmas = <&dma_apbx 8>, <&dma_apbx 9>; |
| 36 | dma-names = "rx", "tx"; |
Janusz Uzycki | 7c573d7 | 2014-10-10 18:53:25 +0200 | [diff] [blame] | 37 | cts-gpios = <&gpio1 15 GPIO_ACTIVE_LOW>; |
| 38 | dsr-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; |
| 39 | dcd-gpios = <&gpio1 17 GPIO_ACTIVE_LOW>; |
Fabio Estevam | 1ea6607 | 2012-06-18 10:06:09 -0300 | [diff] [blame] | 40 | }; |
| 41 | |
| 42 | Note: Each auart port should have an alias correctly numbered in "aliases" |
| 43 | node. |
| 44 | |
| 45 | Example: |
| 46 | |
| 47 | aliases { |
| 48 | serial0 = &auart0; |
| 49 | serial1 = &auart1; |
| 50 | serial2 = &auart2; |
| 51 | serial3 = &auart3; |
| 52 | serial4 = &auart4; |
| 53 | }; |