Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Zubair Lutfullah Kakakhel and committed by
Ralf Baechle
552b8b36 26c188be

+77
+1
arch/mips/boot/dts/Makefile
··· 6 6 dts-dirs += netlogic 7 7 dts-dirs += qca 8 8 dts-dirs += ralink 9 + dts-dirs += xilfpga 9 10 10 11 obj-y := $(addsuffix /, $(dts-dirs)) 11 12
+9
arch/mips/boot/dts/xilfpga/Makefile
··· 1 + dtb-$(CONFIG_XILFPGA_NEXYS4DDR) += nexys4ddr.dtb 2 + 3 + obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y)) 4 + 5 + # Force kbuild to make empty built-in.o if necessary 6 + obj- += dummy.o 7 + 8 + always := $(dtb-y) 9 + clean-files := *.dtb *.dtb.S
+21
arch/mips/boot/dts/xilfpga/microAptiv.dtsi
··· 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 + };
+46
arch/mips/boot/dts/xilfpga/nexys4ddr.dts
··· 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 + };