xref: /freebsd/sys/contrib/device-tree/src/arm/microchip/at91sam9x5_macb0.dtsi (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1*f126890aSEmmanuel Vadot// SPDX-License-Identifier: GPL-2.0-only
2*f126890aSEmmanuel Vadot/*
3*f126890aSEmmanuel Vadot * at91sam9x5_macb0.dtsi - Device Tree Include file for AT91SAM9x5 SoC with 1
4*f126890aSEmmanuel Vadot * Ethernet interface.
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				macb0 {
17*f126890aSEmmanuel Vadot					pinctrl_macb0_rmii: macb0_rmii-0 {
18*f126890aSEmmanuel Vadot						atmel,pins =
19*f126890aSEmmanuel Vadot							<AT91_PIOB 0 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB0 periph A */
20*f126890aSEmmanuel Vadot							 AT91_PIOB 1 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB1 periph A */
21*f126890aSEmmanuel Vadot							 AT91_PIOB 2 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB2 periph A */
22*f126890aSEmmanuel Vadot							 AT91_PIOB 3 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB3 periph A */
23*f126890aSEmmanuel Vadot							 AT91_PIOB 4 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB4 periph A */
24*f126890aSEmmanuel Vadot							 AT91_PIOB 5 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB5 periph A */
25*f126890aSEmmanuel Vadot							 AT91_PIOB 6 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB6 periph A */
26*f126890aSEmmanuel Vadot							 AT91_PIOB 7 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB7 periph A */
27*f126890aSEmmanuel Vadot							 AT91_PIOB 9 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB9 periph A */
28*f126890aSEmmanuel Vadot							 AT91_PIOB 10 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB10 periph A */
29*f126890aSEmmanuel Vadot					};
30*f126890aSEmmanuel Vadot
31*f126890aSEmmanuel Vadot					pinctrl_macb0_rmii_mii: macb0_rmii_mii-0 {
32*f126890aSEmmanuel Vadot						atmel,pins =
33*f126890aSEmmanuel Vadot							<AT91_PIOB 8 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB8 periph A */
34*f126890aSEmmanuel Vadot							 AT91_PIOB 11 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB11 periph A */
35*f126890aSEmmanuel Vadot							 AT91_PIOB 12 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB12 periph A */
36*f126890aSEmmanuel Vadot							 AT91_PIOB 13 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB13 periph A */
37*f126890aSEmmanuel Vadot							 AT91_PIOB 14 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB14 periph A */
38*f126890aSEmmanuel Vadot							 AT91_PIOB 15 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB15 periph A */
39*f126890aSEmmanuel Vadot							 AT91_PIOB 16 AT91_PERIPH_A AT91_PINCTRL_NONE	/* PB16 periph A */
40*f126890aSEmmanuel Vadot							 AT91_PIOB 17 AT91_PERIPH_A AT91_PINCTRL_NONE>;	/* PB17 periph A */
41*f126890aSEmmanuel Vadot					};
42*f126890aSEmmanuel Vadot				};
43*f126890aSEmmanuel Vadot			};
44*f126890aSEmmanuel Vadot
45*f126890aSEmmanuel Vadot			macb0: ethernet@f802c000 {
46*f126890aSEmmanuel Vadot				compatible = "cdns,at91sam9260-macb", "cdns,macb";
47*f126890aSEmmanuel Vadot				reg = <0xf802c000 0x100>;
48*f126890aSEmmanuel Vadot				interrupts = <24 IRQ_TYPE_LEVEL_HIGH 3>;
49*f126890aSEmmanuel Vadot				pinctrl-names = "default";
50*f126890aSEmmanuel Vadot				pinctrl-0 = <&pinctrl_macb0_rmii>;
51*f126890aSEmmanuel Vadot				clocks = <&pmc PMC_TYPE_PERIPHERAL 24>, <&pmc PMC_TYPE_PERIPHERAL 24>;
52*f126890aSEmmanuel Vadot				clock-names = "hclk", "pclk";
53*f126890aSEmmanuel Vadot				status = "disabled";
54*f126890aSEmmanuel Vadot			};
55*f126890aSEmmanuel Vadot		};
56*f126890aSEmmanuel Vadot	};
57*f126890aSEmmanuel Vadot};
58