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