GNU Linux-libre 4.19.264-gnu1
[releases.git] / arch / arm / boot / dts / at91sam9x5_macb1.dtsi
1 /*
2  * at91sam9x5_macb1.dtsi - Device Tree Include file for AT91SAM9x5 SoC with 2
3  * Ethernet interfaces.
4  *
5  * Copyright (C) 2013 Boris BREZILLON <b.brezillon@overkiz.com>
6  *
7  * Licensed under GPLv2.
8  */
9
10 #include <dt-bindings/pinctrl/at91.h>
11 #include <dt-bindings/interrupt-controller/irq.h>
12
13 / {
14         ahb {
15                 apb {
16                         pinctrl@fffff400 {
17                                 macb1 {
18                                         pinctrl_macb1_rmii: macb1_rmii-0 {
19                                                 atmel,pins =
20                                                         <AT91_PIOC 16 AT91_PERIPH_B AT91_PINCTRL_NONE   /* PC16 periph B */
21                                                          AT91_PIOC 18 AT91_PERIPH_B AT91_PINCTRL_NONE   /* PC18 periph B */
22                                                          AT91_PIOC 19 AT91_PERIPH_B AT91_PINCTRL_NONE   /* PC19 periph B */
23                                                          AT91_PIOC 20 AT91_PERIPH_B AT91_PINCTRL_NONE   /* PC20 periph B */
24                                                          AT91_PIOC 21 AT91_PERIPH_B AT91_PINCTRL_NONE   /* PC21 periph B */
25                                                          AT91_PIOC 27 AT91_PERIPH_B AT91_PINCTRL_NONE   /* PC27 periph B */
26                                                          AT91_PIOC 28 AT91_PERIPH_B AT91_PINCTRL_NONE   /* PC28 periph B */
27                                                          AT91_PIOC 29 AT91_PERIPH_B AT91_PINCTRL_NONE   /* PC29 periph B */
28                                                          AT91_PIOC 30 AT91_PERIPH_B AT91_PINCTRL_NONE   /* PC30 periph B */
29                                                          AT91_PIOC 31 AT91_PERIPH_B AT91_PINCTRL_NONE>; /* PC31 periph B */
30                                         };
31                                 };
32                         };
33
34                         pmc: pmc@fffffc00 {
35                                 periphck {
36                                         macb1_clk: macb1_clk {
37                                                 #clock-cells = <0>;
38                                                 reg = <27>;
39                                         };
40                                 };
41                         };
42
43                         macb1: ethernet@f8030000 {
44                                 compatible = "cdns,at91sam9260-macb", "cdns,macb";
45                                 reg = <0xf8030000 0x100>;
46                                 interrupts = <27 IRQ_TYPE_LEVEL_HIGH 3>;
47                                 pinctrl-names = "default";
48                                 pinctrl-0 = <&pinctrl_macb1_rmii>;
49                                 clocks = <&macb1_clk>, <&macb1_clk>;
50                                 clock-names = "hclk", "pclk";
51                                 status = "disabled";
52                         };
53                 };
54         };
55 };