xref: /freebsd/sys/contrib/device-tree/src/arm/microchip/at91sam9x5_macb1.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * at91sam9x5_macb1.dtsi - Device Tree Include file for AT91SAM9x5 SoC with 2
4*f126890aSEmmanuel Vadot * Ethernet interfaces.
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@fffff400 {
16*f126890aSEmmanuel Vadot				macb1 {
17*f126890aSEmmanuel Vadot					pinctrl_macb1_rmii: macb1_rmii-0 {
18*f126890aSEmmanuel Vadot						atmel,pins =
19*f126890aSEmmanuel Vadot							<AT91_PIOC 16 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PC16 periph B */
20*f126890aSEmmanuel Vadot							 AT91_PIOC 18 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PC18 periph B */
21*f126890aSEmmanuel Vadot							 AT91_PIOC 19 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PC19 periph B */
22*f126890aSEmmanuel Vadot							 AT91_PIOC 20 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PC20 periph B */
23*f126890aSEmmanuel Vadot							 AT91_PIOC 21 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PC21 periph B */
24*f126890aSEmmanuel Vadot							 AT91_PIOC 27 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PC27 periph B */
25*f126890aSEmmanuel Vadot							 AT91_PIOC 28 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PC28 periph B */
26*f126890aSEmmanuel Vadot							 AT91_PIOC 29 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PC29 periph B */
27*f126890aSEmmanuel Vadot							 AT91_PIOC 30 AT91_PERIPH_B AT91_PINCTRL_NONE	/* PC30 periph B */
28*f126890aSEmmanuel Vadot							 AT91_PIOC 31 AT91_PERIPH_B AT91_PINCTRL_NONE>;	/* PC31 periph B */
29*f126890aSEmmanuel Vadot					};
30*f126890aSEmmanuel Vadot				};
31*f126890aSEmmanuel Vadot			};
32*f126890aSEmmanuel Vadot
33*f126890aSEmmanuel Vadot			macb1: ethernet@f8030000 {
34*f126890aSEmmanuel Vadot				compatible = "cdns,at91sam9260-macb", "cdns,macb";
35*f126890aSEmmanuel Vadot				reg = <0xf8030000 0x100>;
36*f126890aSEmmanuel Vadot				interrupts = <27 IRQ_TYPE_LEVEL_HIGH 3>;
37*f126890aSEmmanuel Vadot				pinctrl-names = "default";
38*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_macb1_rmii>;
39*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 27>, <&pmc PMC_TYPE_PERIPHERAL 27>;
40*f126890aSEmmanuel Vadot				clock-names = "hclk", "pclk";
41*f126890aSEmmanuel Vadot				status = "disabled";
42*f126890aSEmmanuel Vadot			};
43*f126890aSEmmanuel Vadot		};
44*f126890aSEmmanuel Vadot	};
45*f126890aSEmmanuel Vadot};
46