diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2012-11-03 04:57:52 -0400 |
---|---|---|
committer | Chris Zankel <chris@zankel.net> | 2012-12-19 00:10:24 -0500 |
commit | 5584b4da7814af7d35a72d904140bf9c2a502d4e (patch) | |
tree | 1cecc1c6f619b0b070b4f46bc6306faeeedb4292 /arch/xtensa | |
parent | 0d456bad36d42d16022be045c8a53ddbb59ee478 (diff) |
xtensa: add XTFPGA DTS
Add common XTFPGA parts as *.dtsi (base board, flash) and DTS for LX60
and for ML605.
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
Diffstat (limited to 'arch/xtensa')
-rw-r--r-- | arch/xtensa/boot/dts/lx60.dts | 11 | ||||
-rw-r--r-- | arch/xtensa/boot/dts/ml605.dts | 11 | ||||
-rw-r--r-- | arch/xtensa/boot/dts/xtfpga-flash-16m.dtsi | 26 | ||||
-rw-r--r-- | arch/xtensa/boot/dts/xtfpga-flash-4m.dtsi | 18 | ||||
-rw-r--r-- | arch/xtensa/boot/dts/xtfpga.dtsi | 56 |
5 files changed, 122 insertions, 0 deletions
diff --git a/arch/xtensa/boot/dts/lx60.dts b/arch/xtensa/boot/dts/lx60.dts new file mode 100644 index 000000000000..2eab3658e1bd --- /dev/null +++ b/arch/xtensa/boot/dts/lx60.dts | |||
@@ -0,0 +1,11 @@ | |||
1 | /dts-v1/; | ||
2 | /include/ "xtfpga.dtsi" | ||
3 | /include/ "xtfpga-flash-4m.dtsi" | ||
4 | |||
5 | / { | ||
6 | compatible = "xtensa,lx60"; | ||
7 | memory@0 { | ||
8 | device_type = "memory"; | ||
9 | reg = <0x00000000 0x04000000>; | ||
10 | }; | ||
11 | }; | ||
diff --git a/arch/xtensa/boot/dts/ml605.dts b/arch/xtensa/boot/dts/ml605.dts new file mode 100644 index 000000000000..6ed51d6554e6 --- /dev/null +++ b/arch/xtensa/boot/dts/ml605.dts | |||
@@ -0,0 +1,11 @@ | |||
1 | /dts-v1/; | ||
2 | /include/ "xtfpga.dtsi" | ||
3 | /include/ "xtfpga-flash-16m.dtsi" | ||
4 | |||
5 | / { | ||
6 | compatible = "xtensa,ml605"; | ||
7 | memory@0 { | ||
8 | device_type = "memory"; | ||
9 | reg = <0x00000000 0x08000000>; | ||
10 | }; | ||
11 | }; | ||
diff --git a/arch/xtensa/boot/dts/xtfpga-flash-16m.dtsi b/arch/xtensa/boot/dts/xtfpga-flash-16m.dtsi new file mode 100644 index 000000000000..e5703c7beeb6 --- /dev/null +++ b/arch/xtensa/boot/dts/xtfpga-flash-16m.dtsi | |||
@@ -0,0 +1,26 @@ | |||
1 | / { | ||
2 | flash: flash@f8000000 { | ||
3 | #address-cells = <1>; | ||
4 | #size-cells = <1>; | ||
5 | compatible = "cfi-flash"; | ||
6 | reg = <0xf8000000 0x01000000>; | ||
7 | bank-width = <2>; | ||
8 | device-width = <2>; | ||
9 | partition@0x0 { | ||
10 | label = "boot loader area"; | ||
11 | reg = <0x00000000 0x00400000>; | ||
12 | }; | ||
13 | partition@0x400000 { | ||
14 | label = "kernel image"; | ||
15 | reg = <0x00400000 0x00600000>; | ||
16 | }; | ||
17 | partition@0xa00000 { | ||
18 | label = "data"; | ||
19 | reg = <0x00a00000 0x005e0000>; | ||
20 | }; | ||
21 | partition@0xfe0000 { | ||
22 | label = "boot environment"; | ||
23 | reg = <0x00fe0000 0x00020000>; | ||
24 | }; | ||
25 | }; | ||
26 | }; | ||
diff --git a/arch/xtensa/boot/dts/xtfpga-flash-4m.dtsi b/arch/xtensa/boot/dts/xtfpga-flash-4m.dtsi new file mode 100644 index 000000000000..6f9c10d6b689 --- /dev/null +++ b/arch/xtensa/boot/dts/xtfpga-flash-4m.dtsi | |||
@@ -0,0 +1,18 @@ | |||
1 | / { | ||
2 | flash: flash@f8000000 { | ||
3 | #address-cells = <1>; | ||
4 | #size-cells = <1>; | ||
5 | compatible = "cfi-flash"; | ||
6 | reg = <0xf8000000 0x00400000>; | ||
7 | bank-width = <2>; | ||
8 | device-width = <2>; | ||
9 | partition@0x0 { | ||
10 | label = "boot loader area"; | ||
11 | reg = <0x00000000 0x003f0000>; | ||
12 | }; | ||
13 | partition@0x3f0000 { | ||
14 | label = "boot environment"; | ||
15 | reg = <0x003f0000 0x00010000>; | ||
16 | }; | ||
17 | }; | ||
18 | }; | ||
diff --git a/arch/xtensa/boot/dts/xtfpga.dtsi b/arch/xtensa/boot/dts/xtfpga.dtsi new file mode 100644 index 000000000000..7eda6ecf7eef --- /dev/null +++ b/arch/xtensa/boot/dts/xtfpga.dtsi | |||
@@ -0,0 +1,56 @@ | |||
1 | / { | ||
2 | compatible = "xtensa,xtfpga"; | ||
3 | #address-cells = <1>; | ||
4 | #size-cells = <1>; | ||
5 | interrupt-parent = <&pic>; | ||
6 | |||
7 | chosen { | ||
8 | bootargs = "earlycon=uart8250,mmio32,0xfd050020,115200n8 console=ttyS0,115200n8 ip=dhcp root=/dev/nfs rw debug"; | ||
9 | }; | ||
10 | |||
11 | memory@0 { | ||
12 | device_type = "memory"; | ||
13 | reg = <0x00000000 0x06000000>; | ||
14 | }; | ||
15 | |||
16 | cpus { | ||
17 | #address-cells = <1>; | ||
18 | #size-cells = <0>; | ||
19 | cpu@0 { | ||
20 | compatible = "xtensa,cpu"; | ||
21 | reg = <0>; | ||
22 | /* Filled in by platform_setup from FPGA register | ||
23 | * clock-frequency = <100000000>; | ||
24 | */ | ||
25 | }; | ||
26 | }; | ||
27 | |||
28 | pic: pic { | ||
29 | compatible = "xtensa,pic"; | ||
30 | /* one cell: internal irq number, | ||
31 | * two cells: second cell == 0: internal irq number | ||
32 | * second cell == 1: external irq number | ||
33 | */ | ||
34 | #interrupt-cells = <2>; | ||
35 | interrupt-controller; | ||
36 | }; | ||
37 | |||
38 | serial0: serial@fd050020 { | ||
39 | device_type = "serial"; | ||
40 | compatible = "ns16550a"; | ||
41 | no-loopback-test; | ||
42 | reg = <0xfd050020 0x20>; | ||
43 | reg-shift = <2>; | ||
44 | interrupts = <0 1>; /* external irq 0 */ | ||
45 | /* Filled in by platform_setup from FPGA register | ||
46 | * clock-frequency = <100000000>; | ||
47 | */ | ||
48 | }; | ||
49 | |||
50 | enet0: ethoc@fd030000 { | ||
51 | compatible = "opencores,ethoc"; | ||
52 | reg = <0xfd030000 0x4000 0xfd800000 0x4000>; | ||
53 | interrupts = <1 1>; /* external irq 1 */ | ||
54 | local-mac-address = [00 50 c2 13 6f 00]; | ||
55 | }; | ||
56 | }; | ||