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