diff options
author | Vineet Gupta <vgupta@synopsys.com> | 2013-01-18 04:42:21 -0500 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2013-02-15 12:45:57 -0500 |
commit | abe11ddea1d759f9995a9a4636c28c9b40856ca8 (patch) | |
tree | 53085d131ecbe7a810f9feadcba571f49a2e9465 /arch/arc/boot | |
parent | 450dd430bf45ab212a91acfb9bed2528d17f30cd (diff) |
ARC: [plat-arcfpga]: Enabling DeviceTree for Angel4 board
* arc-uart platform device now populated dynamically, using
of_platform_populate() - applies to any other device whatsoever.
* uart in turn requires incore arc-intc to be also present in DT
* A irq-domain needs to be instantiated for IRQ requests by DT probed
device (e.g. arc-uart)
TODO: switch over to linear irq domain once all devs have been
transitioned to DT
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Cc: Arnd Bergmann <arnd@arndb.de>
Diffstat (limited to 'arch/arc/boot')
-rw-r--r-- | arch/arc/boot/dts/Makefile | 2 | ||||
-rw-r--r-- | arch/arc/boot/dts/angel4.dts | 55 | ||||
-rw-r--r-- | arch/arc/boot/dts/skeleton.dtsi | 12 |
3 files changed, 68 insertions, 1 deletions
diff --git a/arch/arc/boot/dts/Makefile b/arch/arc/boot/dts/Makefile index 17dc7b8b05fa..5776835d583f 100644 --- a/arch/arc/boot/dts/Makefile +++ b/arch/arc/boot/dts/Makefile | |||
@@ -1,5 +1,5 @@ | |||
1 | # Built-in dtb | 1 | # Built-in dtb |
2 | builtindtb-y := skeleton | 2 | builtindtb-y := angel4 |
3 | 3 | ||
4 | ifneq ($(CONFIG_ARC_BUILTIN_DTB_NAME),"") | 4 | ifneq ($(CONFIG_ARC_BUILTIN_DTB_NAME),"") |
5 | builtindtb-y := $(patsubst "%",%,$(CONFIG_ARC_BUILTIN_DTB_NAME)) | 5 | builtindtb-y := $(patsubst "%",%,$(CONFIG_ARC_BUILTIN_DTB_NAME)) |
diff --git a/arch/arc/boot/dts/angel4.dts b/arch/arc/boot/dts/angel4.dts new file mode 100644 index 000000000000..4c188d5bc10c --- /dev/null +++ b/arch/arc/boot/dts/angel4.dts | |||
@@ -0,0 +1,55 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2012 Synopsys, Inc. (www.synopsys.com) | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify | ||
5 | * it under the terms of the GNU General Public License version 2 as | ||
6 | * published by the Free Software Foundation. | ||
7 | */ | ||
8 | /dts-v1/; | ||
9 | |||
10 | /include/ "skeleton.dtsi" | ||
11 | |||
12 | / { | ||
13 | compatible = "snps,arc-angel4"; | ||
14 | clock-frequency = <80000000>; /* 80 MHZ */ | ||
15 | #address-cells = <1>; | ||
16 | #size-cells = <1>; | ||
17 | interrupt-parent = <&intc>; | ||
18 | |||
19 | chosen { | ||
20 | bootargs = "console=ttyARC0,115200n8"; | ||
21 | }; | ||
22 | |||
23 | aliases { | ||
24 | serial0 = &arcuart0; | ||
25 | }; | ||
26 | |||
27 | memory { | ||
28 | device_type = "memory"; | ||
29 | reg = <0x00000000 0x10000000>; /* 256M */ | ||
30 | }; | ||
31 | |||
32 | fpga { | ||
33 | compatible = "simple-bus"; | ||
34 | #address-cells = <1>; | ||
35 | #size-cells = <1>; | ||
36 | |||
37 | /* child and parent address space 1:1 mapped */ | ||
38 | ranges; | ||
39 | |||
40 | intc: interrupt-controller { | ||
41 | compatible = "snps,arc700-intc"; | ||
42 | interrupt-controller; | ||
43 | #interrupt-cells = <1>; | ||
44 | }; | ||
45 | |||
46 | arcuart0: serial@c0fc1000 { | ||
47 | compatible = "snps,arc-uart"; | ||
48 | reg = <0xc0fc1000 0x100>; | ||
49 | interrupts = <5>; | ||
50 | clock-frequency = <80000000>; | ||
51 | baud = <115200>; | ||
52 | status = "okay"; | ||
53 | }; | ||
54 | }; | ||
55 | }; | ||
diff --git a/arch/arc/boot/dts/skeleton.dtsi b/arch/arc/boot/dts/skeleton.dtsi index eb8b77367352..a870bdd5e404 100644 --- a/arch/arc/boot/dts/skeleton.dtsi +++ b/arch/arc/boot/dts/skeleton.dtsi | |||
@@ -18,6 +18,18 @@ | |||
18 | #size-cells = <1>; | 18 | #size-cells = <1>; |
19 | chosen { }; | 19 | chosen { }; |
20 | aliases { }; | 20 | aliases { }; |
21 | |||
22 | cpus { | ||
23 | #address-cells = <1>; | ||
24 | #size-cells = <0>; | ||
25 | |||
26 | cpu@0 { | ||
27 | device_type = "cpu"; | ||
28 | compatible = "snps,arc770d"; | ||
29 | reg = <0>; | ||
30 | }; | ||
31 | }; | ||
32 | |||
21 | memory { | 33 | memory { |
22 | device_type = "memory"; | 34 | device_type = "memory"; |
23 | reg = <0x00000000 0x10000000>; /* 256M */ | 35 | reg = <0x00000000 0x10000000>; /* 256M */ |