diff options
author | Boris BREZILLON <b.brezillon@overkiz.com> | 2013-08-07 06:14:26 -0400 |
---|---|---|
committer | Nicolas Ferre <nicolas.ferre@atmel.com> | 2013-10-16 09:47:07 -0400 |
commit | d195608acc78db293468694ed5225a39e440429d (patch) | |
tree | 0018e973d8baf55db02ab43d93c77f5d9bbb165b /arch/arm/boot/dts/at91sam9x5_macb1.dtsi | |
parent | d54322d8f69344d7248cfea038b5810fa2ba1b35 (diff) |
ARM: at91/dt: split sam9x5 peripheral definitions
This patch splits the sam9x5 peripheral definitions into:
- a common base for all sam9x5 SoCs (at91sam9x5.dtsi)
- several optional peripheral definitions which will be included by specific
sam9x5 SoCs (at91sam9x5_'periph name'.dtsi)
This provides a better representation of the real hardware (drop unneeded
dt nodes) and avoids future peripheral id conflict (lcdc and isi both use
peripheral id 25).
Signed-off-by: Boris BREZILLON <b.brezillon@overkiz.com>
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Diffstat (limited to 'arch/arm/boot/dts/at91sam9x5_macb1.dtsi')
-rw-r--r-- | arch/arm/boot/dts/at91sam9x5_macb1.dtsi | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/at91sam9x5_macb1.dtsi b/arch/arm/boot/dts/at91sam9x5_macb1.dtsi new file mode 100644 index 000000000000..77425a627a94 --- /dev/null +++ b/arch/arm/boot/dts/at91sam9x5_macb1.dtsi | |||
@@ -0,0 +1,44 @@ | |||
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 | macb1: ethernet@f8030000 { | ||
35 | compatible = "cdns,at32ap7000-macb", "cdns,macb"; | ||
36 | reg = <0xf8030000 0x100>; | ||
37 | interrupts = <27 IRQ_TYPE_LEVEL_HIGH 3>; | ||
38 | pinctrl-names = "default"; | ||
39 | pinctrl-0 = <&pinctrl_macb1_rmii>; | ||
40 | status = "disabled"; | ||
41 | }; | ||
42 | }; | ||
43 | }; | ||
44 | }; | ||