summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan.rossi@xilinx.com>2015-04-13 15:50:46 +1000
committerNathan Rossi <nathan.rossi@xilinx.com>2015-04-14 14:00:32 +1000
commitcf91f7395b6fee681225c681b46df6b6b08f0395 (patch)
tree457c527267d65a9ed42c6cc1c748a812d26207a3
parent9fcbda9b194daae0c8187577d100cebf740f2fb1 (diff)
downloadmeta-xilinx-cf91f7395b6fee681225c681b46df6b6b08f0395.tar.gz
zybo-zynq7: Add machine config and device trees for ZYBO board
* Add the device tree includes for the ZYBO board * Add machine config for the ZYBO board Signed-off-by: Nathan Rossi <nathan.rossi@xilinx.com>
-rw-r--r--conf/machine/boards/zybo/zybo-zynq7-board.dtsi73
-rw-r--r--conf/machine/boards/zybo/zybo-zynq7.dts5
-rw-r--r--conf/machine/zybo-zynq7.conf23
3 files changed, 101 insertions, 0 deletions
diff --git a/conf/machine/boards/zybo/zybo-zynq7-board.dtsi b/conf/machine/boards/zybo/zybo-zynq7-board.dtsi
new file mode 100644
index 00000000..26856e26
--- /dev/null
+++ b/conf/machine/boards/zybo/zybo-zynq7-board.dtsi
@@ -0,0 +1,73 @@
1/ {
2 model = "Digilent ZYBO";
3 chosen {
4 bootargs = "console=ttyPS0,115200 earlyprintk root=/dev/ram rw";
5 linux,stdout-path = "/axi@0/serial@e0001000";
6 } ;
7 ps7_ddr_0: memory@0 {
8 device_type = "memory";
9 reg = <0x0 0x20000000>;
10 } ;
11 ps7_axi_interconnect_0: amba@0 {
12 ps7_slcr_0: ps7-slcr@f8000000 {
13 clkc: clkc@100 {
14 /* ZYBO uses a 50 MHz PS Clk */
15 ps-clk-frequency = <50000000>;
16 } ;
17 } ;
18 ps7_ethernet_0: ps7-ethernet@e000b000 {
19 phy-handle = <&phy0>;
20 phy-mode = "rgmii-id";
21 mdio {
22 phy0: phy@0 {
23 compatible = "realtek,rtl8211e";
24 device_type = "ethernet-phy";
25 reg = <0>;
26 } ;
27 } ;
28 } ;
29 ps7_qspi_0: ps7-qspi@e000d000 {
30 flash@0 {
31 compatible = "n25q128";
32 reg = <0x0>;
33 spi-max-frequency = <50000000>;
34 #address-cells = <1>;
35 #size-cells = <1>;
36 partition@qspi-fsbl-uboot {
37 label = "qspi-fsbl-uboot";
38 reg = <0x0 0x100000>;
39 };
40 partition@qspi-linux {
41 label = "qspi-linux";
42 reg = <0x100000 0x500000>;
43 };
44 partition@qspi-device-tree {
45 label = "qspi-device-tree";
46 reg = <0x600000 0x20000>;
47 };
48 partition@qspi-rootfs {
49 label = "qspi-rootfs";
50 reg = <0x620000 0x5E0000>;
51 };
52 partition@qspi-bitstream {
53 label = "qspi-bitstream";
54 reg = <0xC00000 0x400000>;
55 };
56 };
57 } ;
58 ps7_usb_0: ps7-usb@e0002000 {
59 xlnx,phy-reset-gpio = <&ps7_gpio_0 46 0>; /* MIO USB PHY Reset */
60 } ;
61
62 /* Disabled Devices */
63 ps7_sd_1: ps7-sdio@e0101000 { compatible = "invalid"; };
64 ps7_uart_0: serial@e0000000 { compatible = "invalid"; };
65 ps7_ethernet_1: ps7-ethernet@e000c000 { compatible = "invalid"; };
66 ps7_i2c_0: ps7-i2c@e0004000 { compatible = "invalid"; };
67 ps7_i2c_1: ps7-i2c@e0005000 { compatible = "invalid"; };
68 ps7_wdt_0: ps7-wdt@f8005000 { compatible = "invalid"; };
69 ps7_can_0: ps7-can@e0008000 { compatible = "invalid"; };
70 ps7_can_1: ps7-can@e0009000 { compatible = "invalid"; };
71 ps7_usb_1: ps7-usb@e0003000 { compatible = "invalid"; };
72 } ;
73} ;
diff --git a/conf/machine/boards/zybo/zybo-zynq7.dts b/conf/machine/boards/zybo/zybo-zynq7.dts
new file mode 100644
index 00000000..cc51c3bd
--- /dev/null
+++ b/conf/machine/boards/zybo/zybo-zynq7.dts
@@ -0,0 +1,5 @@
1/dts-v1/;
2/include/ "zynq7-base.dtsi"
3/include/ "zybo-zynq7-board.dtsi"
4/ {
5} ;
diff --git a/conf/machine/zybo-zynq7.conf b/conf/machine/zybo-zynq7.conf
new file mode 100644
index 00000000..5cc5a5e0
--- /dev/null
+++ b/conf/machine/zybo-zynq7.conf
@@ -0,0 +1,23 @@
1#@TYPE: Machine
2#@NAME: zybo-zynq7
3#@DESCRIPTION: Machine support for ZYBO.
4#
5# For details on the ZYBO board:
6# https://www.digilentinc.com/Products/Detail.cfm?Prod=ZYBO
7#
8
9require conf/machine/include/tune-zynq.inc
10require conf/machine/include/machine-xilinx-default.inc
11require conf/machine/include/machine-xilinx-board.inc
12
13UBOOT_MACHINE = "zynq_zybo_config"
14
15SERIAL_CONSOLE = "115200 ttyPS0"
16
17MACHINE_DEVICETREE := " \
18 zybo/zybo-zynq7-board.dtsi \
19 zybo/zybo-zynq7.dts \
20 "
21
22IMAGE_BOOT_FILES += "${MACHINE}.dtb"
23