aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com>2015-10-26 07:30:55 -0400
committerRalf Baechle <ralf@linux-mips.org>2015-11-11 02:38:42 -0500
commit552b8b363ede5fc53db343b67c0b2b5eaf783a11 (patch)
tree60c7e2e4fd4d61600186e84ff20009c63c73b65d
parent26c188be1f99d609cd4946f97fdf9e29d3d5c81e (diff)
MIPS: xilfpga: Add xilfpga device tree files.
Add device tree files for the MIPSfpga platform. See Documentation/devicetree/bindings/mips/img/xilfpga.txt for details about MIPSfpga Signed-off-by: Zubair Lutfullah Kakakhel <Zubair.Kakakhel@imgtec.com> Cc: robh+dt@kernel.org Cc: linux-mips@linux-mips.org Cc: linux-kernel@vger.kernel.org Cc: devicetree@vger.kernel.org Patchwork: https://patchwork.linux-mips.org/patch/11362/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
-rw-r--r--arch/mips/boot/dts/Makefile1
-rw-r--r--arch/mips/boot/dts/xilfpga/Makefile9
-rw-r--r--arch/mips/boot/dts/xilfpga/microAptiv.dtsi21
-rw-r--r--arch/mips/boot/dts/xilfpga/nexys4ddr.dts46
4 files changed, 77 insertions, 0 deletions
diff --git a/arch/mips/boot/dts/Makefile b/arch/mips/boot/dts/Makefile
index 778a34028c1b..0571ef7697b0 100644
--- a/arch/mips/boot/dts/Makefile
+++ b/arch/mips/boot/dts/Makefile
@@ -6,6 +6,7 @@ dts-dirs += mti
6dts-dirs += netlogic 6dts-dirs += netlogic
7dts-dirs += qca 7dts-dirs += qca
8dts-dirs += ralink 8dts-dirs += ralink
9dts-dirs += xilfpga
9 10
10obj-y := $(addsuffix /, $(dts-dirs)) 11obj-y := $(addsuffix /, $(dts-dirs))
11 12
diff --git a/arch/mips/boot/dts/xilfpga/Makefile b/arch/mips/boot/dts/xilfpga/Makefile
new file mode 100644
index 000000000000..913a752a9ff1
--- /dev/null
+++ b/arch/mips/boot/dts/xilfpga/Makefile
@@ -0,0 +1,9 @@
1dtb-$(CONFIG_XILFPGA_NEXYS4DDR) += nexys4ddr.dtb
2
3obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y))
4
5# Force kbuild to make empty built-in.o if necessary
6obj- += dummy.o
7
8always := $(dtb-y)
9clean-files := *.dtb *.dtb.S
diff --git a/arch/mips/boot/dts/xilfpga/microAptiv.dtsi b/arch/mips/boot/dts/xilfpga/microAptiv.dtsi
new file mode 100644
index 000000000000..81d518e75785
--- /dev/null
+++ b/arch/mips/boot/dts/xilfpga/microAptiv.dtsi
@@ -0,0 +1,21 @@
1/ {
2 #address-cells = <1>;
3 #size-cells = <1>;
4 compatible = "img,xilfpga";
5
6 cpus {
7 #address-cells = <1>;
8 #size-cells = <0>;
9 cpu@0 {
10 device_type = "cpu";
11 compatible = "mips,m14Kc";
12 clocks = <&ext>;
13 reg = <0>;
14 };
15 };
16
17 ext: ext {
18 compatible = "fixed-clock";
19 #clock-cells = <0>;
20 };
21};
diff --git a/arch/mips/boot/dts/xilfpga/nexys4ddr.dts b/arch/mips/boot/dts/xilfpga/nexys4ddr.dts
new file mode 100644
index 000000000000..686ebd11386d
--- /dev/null
+++ b/arch/mips/boot/dts/xilfpga/nexys4ddr.dts
@@ -0,0 +1,46 @@
1/dts-v1/;
2
3#include "microAptiv.dtsi"
4
5/ {
6 compatible = "digilent,nexys4ddr";
7
8 memory {
9 device_type = "memory";
10 reg = <0x0 0x08000000>;
11 };
12
13 cpuintc: interrupt-controller@0 {
14 #address-cells = <0>;
15 #interrupt-cells = <1>;
16 interrupt-controller;
17 compatible = "mti,cpu-interrupt-controller";
18 };
19
20 axi_gpio: gpio@10600000 {
21 #gpio-cells = <1>;
22 compatible = "xlnx,xps-gpio-1.00.a";
23 gpio-controller;
24 reg = <0x10600000 0x10000>;
25 xlnx,all-inputs = <0x0>;
26 xlnx,dout-default = <0x0>;
27 xlnx,gpio-width = <0x16>;
28 xlnx,interrupt-present = <0x0>;
29 xlnx,is-dual = <0x0>;
30 xlnx,tri-default = <0xffffffff>;
31 } ;
32
33 axi_uart16550: serial@10400000 {
34 compatible = "ns16550a";
35 reg = <0x10400000 0x10000>;
36
37 reg-shift = <2>;
38 reg-offset = <0x1000>;
39
40 clocks = <&ext>;
41 };
42};
43
44&ext {
45 clock-frequency = <50000000>;
46};