1// SPDX-License-Identifier: GPL-2.0-only
2/*
3 * sama5d3_uart.dtsi - Device Tree Include file for SAMA5D3 SoC with
4 * UART support
5 *
6 * Copyright (C) 2013 Boris BREZILLON <b.brezillon@overkiz.com>
7 */
8
9#include <dt-bindings/pinctrl/at91.h>
10#include <dt-bindings/interrupt-controller/irq.h>
11#include <dt-bindings/clock/at91.h>
12#include <dt-bindings/mfd/at91-usart.h>
13
14/ {
15	aliases {
16		serial5 = &uart0;
17		serial6 = &uart1;
18	};
19
20	ahb {
21		apb {
22			pinctrl@fffff200 {
23				uart0 {
24					pinctrl_uart0: uart0-0 {
25						atmel,pins =
26							<AT91_PIOC 29 AT91_PERIPH_A AT91_PINCTRL_PULL_UP	/* conflicts with PWMFI2, ISI_D8 */
27							 AT91_PIOC 30 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* conflicts with ISI_PCK */
28					};
29				};
30
31				uart1 {
32					pinctrl_uart1: uart1-0 {
33						atmel,pins =
34							<AT91_PIOA 30 AT91_PERIPH_B AT91_PINCTRL_PULL_UP	/* conflicts with TWD0, ISI_VSYNC */
35							 AT91_PIOA 31 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* conflicts with TWCK0, ISI_HSYNC */
36					};
37				};
38			};
39
40			uart0: serial@f0024000 {
41				compatible = "atmel,at91sam9260-usart";
42				reg = <0xf0024000 0x100>;
43				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
44				interrupts = <16 IRQ_TYPE_LEVEL_HIGH 5>;
45				pinctrl-names = "default";
46				pinctrl-0 = <&pinctrl_uart0>;
47				clocks = <&pmc PMC_TYPE_PERIPHERAL 16>;
48				clock-names = "usart";
49				status = "disabled";
50			};
51
52			uart1: serial@f8028000 {
53				compatible = "atmel,at91sam9260-usart";
54				reg = <0xf8028000 0x100>;
55				atmel,usart-mode = <AT91_USART_MODE_SERIAL>;
56				interrupts = <17 IRQ_TYPE_LEVEL_HIGH 5>;
57				pinctrl-names = "default";
58				pinctrl-0 = <&pinctrl_uart1>;
59				clocks = <&pmc PMC_TYPE_PERIPHERAL 17>;
60				clock-names = "usart";
61				status = "disabled";
62			};
63		};
64	};
65};
66