xref: /freebsd/sys/contrib/device-tree/src/arm/microchip/sama5d3_can.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * sama5d3_can.dtsi - Device Tree Include file for SAMA5D3 SoC with
4*f126890aSEmmanuel Vadot * CAN 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
12*f126890aSEmmanuel Vadot/ {
13*f126890aSEmmanuel Vadot	ahb {
14*f126890aSEmmanuel Vadot		apb {
15*f126890aSEmmanuel Vadot			pinctrl@fffff200 {
16*f126890aSEmmanuel Vadot				can0 {
17*f126890aSEmmanuel Vadot					pinctrl_can0_rx_tx: can0_rx_tx {
18*f126890aSEmmanuel Vadot						atmel,pins =
19*f126890aSEmmanuel Vadot							<AT91_PIOD 14 AT91_PERIPH_C AT91_PINCTRL_NONE	/* PD14 periph C RX, conflicts with SCK0, SPI0_NPCS1 */
20*f126890aSEmmanuel Vadot							 AT91_PIOD 15 AT91_PERIPH_C AT91_PINCTRL_NONE>;	/* PD15 periph C TX, conflicts with CTS0, SPI0_NPCS2 */
21*f126890aSEmmanuel Vadot					};
22*f126890aSEmmanuel Vadot				};
23*f126890aSEmmanuel Vadot
24*f126890aSEmmanuel Vadot				can1 {
25*f126890aSEmmanuel Vadot					pinctrl_can1_rx_tx: can1_rx_tx {
26*f126890aSEmmanuel Vadot						atmel,pins =
27*f126890aSEmmanuel Vadot							<AT91_PIOB 14 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PB14 periph B RX, conflicts with GCRS */
28*f126890aSEmmanuel Vadot							 AT91_PIOB 15 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PB15 periph B TX, conflicts with GCOL */
29*f126890aSEmmanuel Vadot					};
30*f126890aSEmmanuel Vadot				};
31*f126890aSEmmanuel Vadot
32*f126890aSEmmanuel Vadot			};
33*f126890aSEmmanuel Vadot
34*f126890aSEmmanuel Vadot			can0: can@f000c000 {
35*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9x5-can";
36*f126890aSEmmanuel Vadot				reg = <0xf000c000 0x300>;
37*f126890aSEmmanuel Vadot				interrupts = <40 IRQ_TYPE_LEVEL_HIGH 3>;
38*f126890aSEmmanuel Vadot				pinctrl-names = "default";
39*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_can0_rx_tx>;
40*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 40>;
41*f126890aSEmmanuel Vadot				clock-names = "can_clk";
42*f126890aSEmmanuel Vadot				status = "disabled";
43*f126890aSEmmanuel Vadot			};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot			can1: can@f8010000 {
46*f126890aSEmmanuel Vadot				compatible = "atmel,at91sam9x5-can";
47*f126890aSEmmanuel Vadot				reg = <0xf8010000 0x300>;
48*f126890aSEmmanuel Vadot				interrupts = <41 IRQ_TYPE_LEVEL_HIGH 3>;
49*f126890aSEmmanuel Vadot				pinctrl-names = "default";
50*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_can1_rx_tx>;
51*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 41>;
52*f126890aSEmmanuel Vadot				clock-names = "can_clk";
53*f126890aSEmmanuel Vadot				status = "disabled";
54*f126890aSEmmanuel Vadot			};
55*f126890aSEmmanuel Vadot		};
56*f126890aSEmmanuel Vadot	};
57*f126890aSEmmanuel Vadot};
58