-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Zubair Lutfullah Kakakhel
authored and
Ralf Baechle
committed
Nov 11, 2015
1 parent
26c188b
commit 552b8b3
Showing
4 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
dtb-$(CONFIG_XILFPGA_NEXYS4DDR) += nexys4ddr.dtb | ||
|
||
obj-y += $(patsubst %.dtb, %.dtb.o, $(dtb-y)) | ||
|
||
# Force kbuild to make empty built-in.o if necessary | ||
obj- += dummy.o | ||
|
||
always := $(dtb-y) | ||
clean-files := *.dtb *.dtb.S |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
/ { | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
compatible = "img,xilfpga"; | ||
|
||
cpus { | ||
#address-cells = <1>; | ||
#size-cells = <0>; | ||
cpu@0 { | ||
device_type = "cpu"; | ||
compatible = "mips,m14Kc"; | ||
clocks = <&ext>; | ||
reg = <0>; | ||
}; | ||
}; | ||
|
||
ext: ext { | ||
compatible = "fixed-clock"; | ||
#clock-cells = <0>; | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/dts-v1/; | ||
|
||
#include "microAptiv.dtsi" | ||
|
||
/ { | ||
compatible = "digilent,nexys4ddr"; | ||
|
||
memory { | ||
device_type = "memory"; | ||
reg = <0x0 0x08000000>; | ||
}; | ||
|
||
cpuintc: interrupt-controller@0 { | ||
#address-cells = <0>; | ||
#interrupt-cells = <1>; | ||
interrupt-controller; | ||
compatible = "mti,cpu-interrupt-controller"; | ||
}; | ||
|
||
axi_gpio: gpio@10600000 { | ||
#gpio-cells = <1>; | ||
compatible = "xlnx,xps-gpio-1.00.a"; | ||
gpio-controller; | ||
reg = <0x10600000 0x10000>; | ||
xlnx,all-inputs = <0x0>; | ||
xlnx,dout-default = <0x0>; | ||
xlnx,gpio-width = <0x16>; | ||
xlnx,interrupt-present = <0x0>; | ||
xlnx,is-dual = <0x0>; | ||
xlnx,tri-default = <0xffffffff>; | ||
} ; | ||
|
||
axi_uart16550: serial@10400000 { | ||
compatible = "ns16550a"; | ||
reg = <0x10400000 0x10000>; | ||
|
||
reg-shift = <2>; | ||
reg-offset = <0x1000>; | ||
|
||
clocks = <&ext>; | ||
}; | ||
}; | ||
|
||
&ext { | ||
clock-frequency = <50000000>; | ||
}; |