diff options
author | Andrew Bresticker <abrestic@chromium.org> | 2014-08-21 16:04:25 -0400 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-09-22 07:35:50 -0400 |
commit | 36094619e419c306dc08d83f043bc9937cc63e03 (patch) | |
tree | 05a23c4a221fb929626d1a17dce4eb67462620b3 /arch/mips/boot/dts | |
parent | f262b5f2d5820799fd58ae08eee4ec3fc97686ab (diff) |
MIPS: Netlogic: Move device-trees to arch/mips/boot/dts/
Move the Netlogic XLP device-trees to arch/mips/boot/dts/ and update the
Makefiles accordingly. A built-in device-tree is optional, so select
BUILTIN_DTB when it is requested.
Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
Cc: Rob Herring <robh+dt@kernel.org>
Cc: Pawel Moll <pawel.moll@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Ian Campbell <ijc+devicetree@hellion.org.uk>
Cc: Kumar Gala <galak@codeaurora.org>
Cc: James Hogan <james.hogan@imgtec.com>
Cc: Paul Burton <paul.burton@imgtec.com>
Cc: David Daney <david.daney@cavium.com>
Cc: John Crispin <blogic@openwrt.org>
Cc: Jayachandran C <jchandra@broadcom.com>
Cc: Qais Yousef <qais.yousef@imgtec.com>
Cc: linux-mips@linux-mips.org
Cc: linux-kernel@vger.kernel.org
Cc: devicetree@vger.kernel.org
Patchwork: https://patchwork.linux-mips.org/patch/7560/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/boot/dts')
-rw-r--r-- | arch/mips/boot/dts/Makefile | 4 | ||||
-rw-r--r-- | arch/mips/boot/dts/xlp_evp.dts | 118 | ||||
-rw-r--r-- | arch/mips/boot/dts/xlp_fvp.dts | 118 | ||||
-rw-r--r-- | arch/mips/boot/dts/xlp_gvp.dts | 77 | ||||
-rw-r--r-- | arch/mips/boot/dts/xlp_svp.dts | 118 |
5 files changed, 435 insertions, 0 deletions
diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile index 8df3d3ef0a85..1638a3837caa 100644 --- a/arch/mips/boot/dts/Makefile +++ b/arch/mips/boot/dts/Makefile | |||
@@ -1,5 +1,9 @@ | |||
1 | dtb-$(CONFIG_CAVIUM_OCTEON_SOC) += octeon_3xxx.dtb octeon_68xx.dtb | 1 | dtb-$(CONFIG_CAVIUM_OCTEON_SOC) += octeon_3xxx.dtb octeon_68xx.dtb |
2 | dtb-$(CONFIG_DT_EASY50712) += easy50712.dtb | 2 | dtb-$(CONFIG_DT_EASY50712) += easy50712.dtb |
3 | dtb-$(CONFIG_DT_XLP_EVP) += xlp_evp.dtb | ||
4 | dtb-$(CONFIG_DT_XLP_SVP) += xlp_svp.dtb | ||
5 | dtb-$(CONFIG_DT_XLP_FVP) += xlp_fvp.dtb | ||
6 | dtb-$(CONFIG_DT_XLP_GVP) += xlp_gvp.dtb | ||
3 | dtb-$(CONFIG_MIPS_SEAD3) += sead3.dtb | 7 | dtb-$(CONFIG_MIPS_SEAD3) += sead3.dtb |
4 | 8 | ||
5 | obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y)) | 9 | obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y)) |
diff --git a/arch/mips/boot/dts/xlp_evp.dts b/arch/mips/boot/dts/xlp_evp.dts new file mode 100644 index 000000000000..89ad04808c02 --- /dev/null +++ b/arch/mips/boot/dts/xlp_evp.dts | |||
@@ -0,0 +1,118 @@ | |||
1 | /* | ||
2 | * XLP8XX Device Tree Source for EVP boards | ||
3 | */ | ||
4 | |||
5 | /dts-v1/; | ||
6 | / { | ||
7 | model = "netlogic,XLP-EVP"; | ||
8 | compatible = "netlogic,xlp"; | ||
9 | #address-cells = <2>; | ||
10 | #size-cells = <2>; | ||
11 | |||
12 | soc { | ||
13 | #address-cells = <2>; | ||
14 | #size-cells = <1>; | ||
15 | compatible = "simple-bus"; | ||
16 | ranges = <0 0 0 0x18000000 0x04000000 // PCIe CFG | ||
17 | 1 0 0 0x16000000 0x02000000>; // GBU chipselects | ||
18 | |||
19 | serial0: serial@30000 { | ||
20 | device_type = "serial"; | ||
21 | compatible = "ns16550"; | ||
22 | reg = <0 0x30100 0xa00>; | ||
23 | reg-shift = <2>; | ||
24 | reg-io-width = <4>; | ||
25 | clock-frequency = <133333333>; | ||
26 | interrupt-parent = <&pic>; | ||
27 | interrupts = <17>; | ||
28 | }; | ||
29 | serial1: serial@31000 { | ||
30 | device_type = "serial"; | ||
31 | compatible = "ns16550"; | ||
32 | reg = <0 0x31100 0xa00>; | ||
33 | reg-shift = <2>; | ||
34 | reg-io-width = <4>; | ||
35 | clock-frequency = <133333333>; | ||
36 | interrupt-parent = <&pic>; | ||
37 | interrupts = <18>; | ||
38 | }; | ||
39 | i2c0: ocores@32000 { | ||
40 | compatible = "opencores,i2c-ocores"; | ||
41 | #address-cells = <1>; | ||
42 | #size-cells = <0>; | ||
43 | reg = <0 0x32100 0xa00>; | ||
44 | reg-shift = <2>; | ||
45 | reg-io-width = <4>; | ||
46 | clock-frequency = <32000000>; | ||
47 | interrupt-parent = <&pic>; | ||
48 | interrupts = <30>; | ||
49 | }; | ||
50 | i2c1: ocores@33000 { | ||
51 | compatible = "opencores,i2c-ocores"; | ||
52 | #address-cells = <1>; | ||
53 | #size-cells = <0>; | ||
54 | reg = <0 0x33100 0xa00>; | ||
55 | reg-shift = <2>; | ||
56 | reg-io-width = <4>; | ||
57 | clock-frequency = <32000000>; | ||
58 | interrupt-parent = <&pic>; | ||
59 | interrupts = <31>; | ||
60 | |||
61 | rtc@68 { | ||
62 | compatible = "dallas,ds1374"; | ||
63 | reg = <0x68>; | ||
64 | }; | ||
65 | |||
66 | dtt@4c { | ||
67 | compatible = "national,lm90"; | ||
68 | reg = <0x4c>; | ||
69 | }; | ||
70 | }; | ||
71 | pic: pic@4000 { | ||
72 | compatible = "netlogic,xlp-pic"; | ||
73 | #address-cells = <0>; | ||
74 | #interrupt-cells = <1>; | ||
75 | reg = <0 0x4000 0x200>; | ||
76 | interrupt-controller; | ||
77 | }; | ||
78 | |||
79 | nor_flash@1,0 { | ||
80 | compatible = "cfi-flash"; | ||
81 | #address-cells = <1>; | ||
82 | #size-cells = <1>; | ||
83 | bank-width = <2>; | ||
84 | reg = <1 0 0x1000000>; | ||
85 | |||
86 | partition@0 { | ||
87 | label = "x-loader"; | ||
88 | reg = <0x0 0x100000>; /* 1M */ | ||
89 | read-only; | ||
90 | }; | ||
91 | |||
92 | partition@100000 { | ||
93 | label = "u-boot"; | ||
94 | reg = <0x100000 0x100000>; /* 1M */ | ||
95 | }; | ||
96 | |||
97 | partition@200000 { | ||
98 | label = "kernel"; | ||
99 | reg = <0x200000 0x500000>; /* 5M */ | ||
100 | }; | ||
101 | |||
102 | partition@700000 { | ||
103 | label = "rootfs"; | ||
104 | reg = <0x700000 0x800000>; /* 8M */ | ||
105 | }; | ||
106 | |||
107 | partition@f00000 { | ||
108 | label = "env"; | ||
109 | reg = <0xf00000 0x100000>; /* 1M */ | ||
110 | read-only; | ||
111 | }; | ||
112 | }; | ||
113 | }; | ||
114 | |||
115 | chosen { | ||
116 | bootargs = "console=ttyS0,115200 rdinit=/sbin/init"; | ||
117 | }; | ||
118 | }; | ||
diff --git a/arch/mips/boot/dts/xlp_fvp.dts b/arch/mips/boot/dts/xlp_fvp.dts new file mode 100644 index 000000000000..63e62b7bd758 --- /dev/null +++ b/arch/mips/boot/dts/xlp_fvp.dts | |||
@@ -0,0 +1,118 @@ | |||
1 | /* | ||
2 | * XLP2XX Device Tree Source for FVP boards | ||
3 | */ | ||
4 | |||
5 | /dts-v1/; | ||
6 | / { | ||
7 | model = "netlogic,XLP-FVP"; | ||
8 | compatible = "netlogic,xlp"; | ||
9 | #address-cells = <2>; | ||
10 | #size-cells = <2>; | ||
11 | |||
12 | soc { | ||
13 | #address-cells = <2>; | ||
14 | #size-cells = <1>; | ||
15 | compatible = "simple-bus"; | ||
16 | ranges = <0 0 0 0x18000000 0x04000000 // PCIe CFG | ||
17 | 1 0 0 0x16000000 0x02000000>; // GBU chipselects | ||
18 | |||
19 | serial0: serial@30000 { | ||
20 | device_type = "serial"; | ||
21 | compatible = "ns16550"; | ||
22 | reg = <0 0x30100 0xa00>; | ||
23 | reg-shift = <2>; | ||
24 | reg-io-width = <4>; | ||
25 | clock-frequency = <133333333>; | ||
26 | interrupt-parent = <&pic>; | ||
27 | interrupts = <17>; | ||
28 | }; | ||
29 | serial1: serial@31000 { | ||
30 | device_type = "serial"; | ||
31 | compatible = "ns16550"; | ||
32 | reg = <0 0x31100 0xa00>; | ||
33 | reg-shift = <2>; | ||
34 | reg-io-width = <4>; | ||
35 | clock-frequency = <133333333>; | ||
36 | interrupt-parent = <&pic>; | ||
37 | interrupts = <18>; | ||
38 | }; | ||
39 | i2c0: ocores@37100 { | ||
40 | compatible = "opencores,i2c-ocores"; | ||
41 | #address-cells = <1>; | ||
42 | #size-cells = <0>; | ||
43 | reg = <0 0x37100 0x20>; | ||
44 | reg-shift = <2>; | ||
45 | reg-io-width = <4>; | ||
46 | clock-frequency = <32000000>; | ||
47 | interrupt-parent = <&pic>; | ||
48 | interrupts = <30>; | ||
49 | }; | ||
50 | i2c1: ocores@37120 { | ||
51 | compatible = "opencores,i2c-ocores"; | ||
52 | #address-cells = <1>; | ||
53 | #size-cells = <0>; | ||
54 | reg = <0 0x37120 0x20>; | ||
55 | reg-shift = <2>; | ||
56 | reg-io-width = <4>; | ||
57 | clock-frequency = <32000000>; | ||
58 | interrupt-parent = <&pic>; | ||
59 | interrupts = <31>; | ||
60 | |||
61 | rtc@68 { | ||
62 | compatible = "dallas,ds1374"; | ||
63 | reg = <0x68>; | ||
64 | }; | ||
65 | |||
66 | dtt@4c { | ||
67 | compatible = "national,lm90"; | ||
68 | reg = <0x4c>; | ||
69 | }; | ||
70 | }; | ||
71 | pic: pic@4000 { | ||
72 | compatible = "netlogic,xlp-pic"; | ||
73 | #address-cells = <0>; | ||
74 | #interrupt-cells = <1>; | ||
75 | reg = <0 0x4000 0x200>; | ||
76 | interrupt-controller; | ||
77 | }; | ||
78 | |||
79 | nor_flash@1,0 { | ||
80 | compatible = "cfi-flash"; | ||
81 | #address-cells = <1>; | ||
82 | #size-cells = <1>; | ||
83 | bank-width = <2>; | ||
84 | reg = <1 0 0x1000000>; | ||
85 | |||
86 | partition@0 { | ||
87 | label = "x-loader"; | ||
88 | reg = <0x0 0x100000>; /* 1M */ | ||
89 | read-only; | ||
90 | }; | ||
91 | |||
92 | partition@100000 { | ||
93 | label = "u-boot"; | ||
94 | reg = <0x100000 0x100000>; /* 1M */ | ||
95 | }; | ||
96 | |||
97 | partition@200000 { | ||
98 | label = "kernel"; | ||
99 | reg = <0x200000 0x500000>; /* 5M */ | ||
100 | }; | ||
101 | |||
102 | partition@700000 { | ||
103 | label = "rootfs"; | ||
104 | reg = <0x700000 0x800000>; /* 8M */ | ||
105 | }; | ||
106 | |||
107 | partition@f00000 { | ||
108 | label = "env"; | ||
109 | reg = <0xf00000 0x100000>; /* 1M */ | ||
110 | read-only; | ||
111 | }; | ||
112 | }; | ||
113 | }; | ||
114 | |||
115 | chosen { | ||
116 | bootargs = "console=ttyS0,115200 rdinit=/sbin/init"; | ||
117 | }; | ||
118 | }; | ||
diff --git a/arch/mips/boot/dts/xlp_gvp.dts b/arch/mips/boot/dts/xlp_gvp.dts new file mode 100644 index 000000000000..bb4ecd1d47fc --- /dev/null +++ b/arch/mips/boot/dts/xlp_gvp.dts | |||
@@ -0,0 +1,77 @@ | |||
1 | /* | ||
2 | * XLP9XX Device Tree Source for GVP boards | ||
3 | */ | ||
4 | |||
5 | /dts-v1/; | ||
6 | / { | ||
7 | model = "netlogic,XLP-GVP"; | ||
8 | compatible = "netlogic,xlp"; | ||
9 | #address-cells = <2>; | ||
10 | #size-cells = <2>; | ||
11 | |||
12 | soc { | ||
13 | #address-cells = <2>; | ||
14 | #size-cells = <1>; | ||
15 | compatible = "simple-bus"; | ||
16 | ranges = <0 0 0 0x18000000 0x04000000 // PCIe CFG | ||
17 | 1 0 0 0x16000000 0x02000000>; // GBU chipselects | ||
18 | |||
19 | serial0: serial@30000 { | ||
20 | device_type = "serial"; | ||
21 | compatible = "ns16550"; | ||
22 | reg = <0 0x112100 0xa00>; | ||
23 | reg-shift = <2>; | ||
24 | reg-io-width = <4>; | ||
25 | clock-frequency = <125000000>; | ||
26 | interrupt-parent = <&pic>; | ||
27 | interrupts = <17>; | ||
28 | }; | ||
29 | pic: pic@110000 { | ||
30 | compatible = "netlogic,xlp-pic"; | ||
31 | #address-cells = <0>; | ||
32 | #interrupt-cells = <1>; | ||
33 | reg = <0 0x110000 0x200>; | ||
34 | interrupt-controller; | ||
35 | }; | ||
36 | |||
37 | nor_flash@1,0 { | ||
38 | compatible = "cfi-flash"; | ||
39 | #address-cells = <1>; | ||
40 | #size-cells = <1>; | ||
41 | bank-width = <2>; | ||
42 | reg = <1 0 0x1000000>; | ||
43 | |||
44 | partition@0 { | ||
45 | label = "x-loader"; | ||
46 | reg = <0x0 0x100000>; /* 1M */ | ||
47 | read-only; | ||
48 | }; | ||
49 | |||
50 | partition@100000 { | ||
51 | label = "u-boot"; | ||
52 | reg = <0x100000 0x100000>; /* 1M */ | ||
53 | }; | ||
54 | |||
55 | partition@200000 { | ||
56 | label = "kernel"; | ||
57 | reg = <0x200000 0x500000>; /* 5M */ | ||
58 | }; | ||
59 | |||
60 | partition@700000 { | ||
61 | label = "rootfs"; | ||
62 | reg = <0x700000 0x800000>; /* 8M */ | ||
63 | }; | ||
64 | |||
65 | partition@f00000 { | ||
66 | label = "env"; | ||
67 | reg = <0xf00000 0x100000>; /* 1M */ | ||
68 | read-only; | ||
69 | }; | ||
70 | }; | ||
71 | |||
72 | }; | ||
73 | |||
74 | chosen { | ||
75 | bootargs = "console=ttyS0,115200 rdinit=/sbin/init"; | ||
76 | }; | ||
77 | }; | ||
diff --git a/arch/mips/boot/dts/xlp_svp.dts b/arch/mips/boot/dts/xlp_svp.dts new file mode 100644 index 000000000000..1ebd00edaacc --- /dev/null +++ b/arch/mips/boot/dts/xlp_svp.dts | |||
@@ -0,0 +1,118 @@ | |||
1 | /* | ||
2 | * XLP3XX Device Tree Source for SVP boards | ||
3 | */ | ||
4 | |||
5 | /dts-v1/; | ||
6 | / { | ||
7 | model = "netlogic,XLP-SVP"; | ||
8 | compatible = "netlogic,xlp"; | ||
9 | #address-cells = <2>; | ||
10 | #size-cells = <2>; | ||
11 | |||
12 | soc { | ||
13 | #address-cells = <2>; | ||
14 | #size-cells = <1>; | ||
15 | compatible = "simple-bus"; | ||
16 | ranges = <0 0 0 0x18000000 0x04000000 // PCIe CFG | ||
17 | 1 0 0 0x16000000 0x02000000>; // GBU chipselects | ||
18 | |||
19 | serial0: serial@30000 { | ||
20 | device_type = "serial"; | ||
21 | compatible = "ns16550"; | ||
22 | reg = <0 0x30100 0xa00>; | ||
23 | reg-shift = <2>; | ||
24 | reg-io-width = <4>; | ||
25 | clock-frequency = <133333333>; | ||
26 | interrupt-parent = <&pic>; | ||
27 | interrupts = <17>; | ||
28 | }; | ||
29 | serial1: serial@31000 { | ||
30 | device_type = "serial"; | ||
31 | compatible = "ns16550"; | ||
32 | reg = <0 0x31100 0xa00>; | ||
33 | reg-shift = <2>; | ||
34 | reg-io-width = <4>; | ||
35 | clock-frequency = <133333333>; | ||
36 | interrupt-parent = <&pic>; | ||
37 | interrupts = <18>; | ||
38 | }; | ||
39 | i2c0: ocores@32000 { | ||
40 | compatible = "opencores,i2c-ocores"; | ||
41 | #address-cells = <1>; | ||
42 | #size-cells = <0>; | ||
43 | reg = <0 0x32100 0xa00>; | ||
44 | reg-shift = <2>; | ||
45 | reg-io-width = <4>; | ||
46 | clock-frequency = <32000000>; | ||
47 | interrupt-parent = <&pic>; | ||
48 | interrupts = <30>; | ||
49 | }; | ||
50 | i2c1: ocores@33000 { | ||
51 | compatible = "opencores,i2c-ocores"; | ||
52 | #address-cells = <1>; | ||
53 | #size-cells = <0>; | ||
54 | reg = <0 0x33100 0xa00>; | ||
55 | reg-shift = <2>; | ||
56 | reg-io-width = <4>; | ||
57 | clock-frequency = <32000000>; | ||
58 | interrupt-parent = <&pic>; | ||
59 | interrupts = <31>; | ||
60 | |||
61 | rtc@68 { | ||
62 | compatible = "dallas,ds1374"; | ||
63 | reg = <0x68>; | ||
64 | }; | ||
65 | |||
66 | dtt@4c { | ||
67 | compatible = "national,lm90"; | ||
68 | reg = <0x4c>; | ||
69 | }; | ||
70 | }; | ||
71 | pic: pic@4000 { | ||
72 | compatible = "netlogic,xlp-pic"; | ||
73 | #address-cells = <0>; | ||
74 | #interrupt-cells = <1>; | ||
75 | reg = <0 0x4000 0x200>; | ||
76 | interrupt-controller; | ||
77 | }; | ||
78 | |||
79 | nor_flash@1,0 { | ||
80 | compatible = "cfi-flash"; | ||
81 | #address-cells = <1>; | ||
82 | #size-cells = <1>; | ||
83 | bank-width = <2>; | ||
84 | reg = <1 0 0x1000000>; | ||
85 | |||
86 | partition@0 { | ||
87 | label = "x-loader"; | ||
88 | reg = <0x0 0x100000>; /* 1M */ | ||
89 | read-only; | ||
90 | }; | ||
91 | |||
92 | partition@100000 { | ||
93 | label = "u-boot"; | ||
94 | reg = <0x100000 0x100000>; /* 1M */ | ||
95 | }; | ||
96 | |||
97 | partition@200000 { | ||
98 | label = "kernel"; | ||
99 | reg = <0x200000 0x500000>; /* 5M */ | ||
100 | }; | ||
101 | |||
102 | partition@700000 { | ||
103 | label = "rootfs"; | ||
104 | reg = <0x700000 0x800000>; /* 8M */ | ||
105 | }; | ||
106 | |||
107 | partition@f00000 { | ||
108 | label = "env"; | ||
109 | reg = <0xf00000 0x100000>; /* 1M */ | ||
110 | read-only; | ||
111 | }; | ||
112 | }; | ||
113 | }; | ||
114 | |||
115 | chosen { | ||
116 | bootargs = "console=ttyS0,115200 rdinit=/sbin/init"; | ||
117 | }; | ||
118 | }; | ||