1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 # Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries
5 $id: http://devicetree.org/schemas/serial/atmel,at91-usart.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
8 title: Atmel Universal Synchronous Asynchronous Receiver/Transmitter (USART)
11 - Richard Genoud <richard.genoud@gmail.com>
17 - atmel,at91rm9200-usart
18 - atmel,at91sam9260-usart
19 - microchip,sam9x60-usart
21 - const: atmel,at91rm9200-dbgu
22 - const: atmel,at91rm9200-usart
24 - const: atmel,at91sam9260-dbgu
25 - const: atmel,at91sam9260-usart
27 - const: microchip,sam9x60-dbgu
28 - const: microchip,sam9x60-usart
29 - const: atmel,at91sam9260-dbgu
30 - const: atmel,at91sam9260-usart
47 - description: USART Peripheral Clock
48 - description: USART Generic Clock
52 - description: TX DMA Channel
53 - description: RX DMA Channel
61 $ref: /schemas/types.yaml#/definitions/uint32
63 Must be either <AT91_USART_MODE_SPI> for SPI or
64 <AT91_USART_MODE_SERIAL> for USART (found in dt-bindings/mfd/at91-usart.h).
69 description: use of PDC or DMA for receiving data
73 description: use of PDC or DMA for transmitting data
76 $ref: /schemas/types.yaml#/definitions/uint32
78 Maximum number of data the RX and TX FIFOs can store for FIFO
97 - $ref: /schemas/spi/spi-controller.yaml#
100 atmel,use-dma-rx: false
102 atmel,use-dma-tx: false
104 atmel,fifo-size: false
118 - $ref: /schemas/serial/serial.yaml#
119 - $ref: /schemas/serial/rs485.yaml#
121 unevaluatedProperties: false
125 #include <dt-bindings/gpio/gpio.h>
126 #include <dt-bindings/interrupt-controller/irq.h>
127 #include <dt-bindings/mfd/at91-usart.h>
128 #include <dt-bindings/dma/at91.h>
131 usart0: serial@fff8c000 {
132 compatible = "atmel,at91sam9260-usart";
133 reg = <0xfff8c000 0x4000>;
134 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
136 clocks = <&usart0_clk>;
137 clock-names = "usart";
140 rts-gpios = <&pioD 15 GPIO_ACTIVE_LOW>;
141 cts-gpios = <&pioD 16 GPIO_ACTIVE_LOW>;
142 dtr-gpios = <&pioD 17 GPIO_ACTIVE_LOW>;
143 dsr-gpios = <&pioD 18 GPIO_ACTIVE_LOW>;
144 dcd-gpios = <&pioD 20 GPIO_ACTIVE_LOW>;
145 rng-gpios = <&pioD 19 GPIO_ACTIVE_LOW>;
149 #include <dt-bindings/gpio/gpio.h>
150 #include <dt-bindings/interrupt-controller/irq.h>
151 #include <dt-bindings/mfd/at91-usart.h>
152 #include <dt-bindings/dma/at91.h>
155 usart1: serial@f001c000 {
156 compatible = "atmel,at91sam9260-usart";
157 reg = <0xf001c000 0x100>;
158 atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
159 interrupts = <12 IRQ_TYPE_LEVEL_HIGH 5>;
160 clocks = <&usart0_clk>;
161 clock-names = "usart";
164 dmas = <&dma0 2 AT91_DMA_CFG_PER_ID(3)>,
165 <&dma0 2 (AT91_DMA_CFG_PER_ID(4) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
166 dma-names = "tx", "rx";
167 atmel,fifo-size = <32>;
171 #include <dt-bindings/gpio/gpio.h>
172 #include <dt-bindings/interrupt-controller/irq.h>
173 #include <dt-bindings/mfd/at91-usart.h>
174 #include <dt-bindings/dma/at91.h>
178 compatible = "atmel,at91sam9260-usart";
179 reg = <0xf001c000 0x100>;
180 #address-cells = <1>;
182 atmel,usart-mode = <AT91_USART_MODE_SPI>;
183 interrupts = <12 IRQ_TYPE_LEVEL_HIGH 5>;
184 clocks = <&usart0_clk>;
185 clock-names = "usart";
186 dmas = <&dma0 2 AT91_DMA_CFG_PER_ID(3)>,
187 <&dma0 2 (AT91_DMA_CFG_PER_ID(4) | AT91_DMA_CFG_FIFOCFG_ASAP)>;
188 dma-names = "tx", "rx";
189 cs-gpios = <&pioB 3 GPIO_ACTIVE_HIGH>;