summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2016-02-24 16:42:21 +1000
committerNathan Rossi <nathan@nathanrossi.com>2016-03-06 20:04:03 +1000
commitd82cef3dca9749f385a16f506ca285f963584e3c (patch)
treea0f17e63c018a9d54b3f8bf09b6e6b6e78aa31d1
parent2c8e7f07d367397dc1d4aaa635801b11c3c0f5ce (diff)
downloadmeta-xilinx-d82cef3dca9749f385a16f506ca285f963584e3c.tar.gz
zedboard-zynq7: Switch over to in kernel device tree
* Switch to the device tree that is available in the kernel source tree * Remove the in layer device tree and configuration for the in layer device tree * Setup IMAGE_BOOT_FILES with the correct target device tree from the kernel source/recipe * Setup U-Boot uEnv.txt to use the correct target device tree Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
-rw-r--r--conf/machine/boards/zedboard/zedboard-zynq7-board.dtsi79
-rw-r--r--conf/machine/boards/zedboard/zedboard-zynq7.dts5
-rw-r--r--conf/machine/zedboard-zynq7.conf9
-rw-r--r--recipes-bsp/u-boot/u-boot-xlnx/zedboard-zynq7/uEnv.txt2
4 files changed, 4 insertions, 91 deletions
diff --git a/conf/machine/boards/zedboard/zedboard-zynq7-board.dtsi b/conf/machine/boards/zedboard/zedboard-zynq7-board.dtsi
deleted file mode 100644
index 2ccfe1cc..00000000
--- a/conf/machine/boards/zedboard/zedboard-zynq7-board.dtsi
+++ /dev/null
@@ -1,79 +0,0 @@
1/*
2 * ZedBoard DTS file header for generic boot.
3 */
4
5/ {
6 model = "ZedBoard";
7 chosen {
8 bootargs = "console=ttyPS0,115200 earlyprintk root=/dev/ram rw";
9 linux,stdout-path = "/axi@0/serial@e0001000";
10 } ;
11 ps7_ddr_0: memory@0 {
12 device_type = "memory";
13 reg = <0x0 0x20000000>;
14 } ;
15 ps7_axi_interconnect_0: amba@0 {
16 ps7_ethernet_0: ps7-ethernet@e000b000 {
17 phy-handle = <&phy0>;
18 phy-mode = "rgmii-id";
19 phy0: phy@0 {
20 compatible = "marvell,88e1518", "marvell,88e1510";
21 device_type = "ethernet-phy";
22 reg = <0>;
23 marvell,reg-init = <3 16 0xff00 0x1e 3 17 0xfff0 0x0a>;
24 } ;
25 } ;
26 ps7_usb_0: ps7-usb@e0002000 {
27 xlnx,phy-reset-gpio = <&ps7_gpio_0 85 0>;
28 usb-phy = <&usb0_phy>;
29 } ;
30 ps7_qspi_0: ps7-qspi@e000d000 {
31 flash@0 {
32 compatible = "spansion,s25fl256s0", "jedec,spi-nor";
33 reg = <0x0>;
34 spi-tx-bus-width = <1>;
35 spi-rx-bus-width = <4>;
36 spi-max-frequency = <50000000>;
37 #address-cells = <1>;
38 #size-cells = <1>;
39 partition@qspi-fsbl-uboot {
40 label = "qspi-fsbl-uboot";
41 reg = <0x0 0x100000>;
42 };
43 partition@qspi-linux {
44 label = "qspi-linux";
45 reg = <0x100000 0x500000>;
46 };
47 partition@qspi-device-tree {
48 label = "qspi-device-tree";
49 reg = <0x600000 0x20000>;
50 };
51 partition@qspi-rootfs {
52 label = "qspi-rootfs";
53 reg = <0x620000 0x5E0000>;
54 };
55 partition@qspi-bitstream {
56 label = "qspi-bitstream";
57 reg = <0xC00000 0x400000>;
58 };
59 };
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
74 usb0_phy: usb-phy {
75 #phy-cells = <0>;
76 compatible = "usb-nop-xceiv";
77 reset-gpios = <&ps7_gpio_0 85 1>; /* MIO 85, GPIO_ACTIVE_LOW */
78 } ;
79} ;
diff --git a/conf/machine/boards/zedboard/zedboard-zynq7.dts b/conf/machine/boards/zedboard/zedboard-zynq7.dts
deleted file mode 100644
index e16e15ba..00000000
--- a/conf/machine/boards/zedboard/zedboard-zynq7.dts
+++ /dev/null
@@ -1,5 +0,0 @@
1/dts-v1/;
2/include/ "zynq7-base.dtsi"
3/include/ "zedboard-zynq7-board.dtsi"
4/ {
5} ; \ No newline at end of file
diff --git a/conf/machine/zedboard-zynq7.conf b/conf/machine/zedboard-zynq7.conf
index cbf0f012..0eb85e5b 100644
--- a/conf/machine/zedboard-zynq7.conf
+++ b/conf/machine/zedboard-zynq7.conf
@@ -12,16 +12,13 @@ require conf/machine/include/tune-zynq.inc
12require conf/machine/include/machine-xilinx-default.inc 12require conf/machine/include/machine-xilinx-default.inc
13require conf/machine/include/machine-xilinx-board.inc 13require conf/machine/include/machine-xilinx-board.inc
14 14
15# Zedboard machine definition known by Xilinx UBOOT 15# u-boot configuration
16UBOOT_MACHINE = "zynq_zed_config" 16UBOOT_MACHINE = "zynq_zed_config"
17SPL_BINARY = "boot.bin" 17SPL_BINARY = "boot.bin"
18 18
19SERIAL_CONSOLE = "115200 ttyPS0" 19SERIAL_CONSOLE = "115200 ttyPS0"
20 20
21MACHINE_DEVICETREE := " \ 21KERNEL_DEVICETREE = "zynq-zed.dtb"
22 zedboard/zedboard-zynq7-board.dtsi \
23 zedboard/zedboard-zynq7.dts \
24 "
25 22
26IMAGE_BOOT_FILES += "boot.bin uEnv.txt ${MACHINE}.dtb" 23IMAGE_BOOT_FILES += "boot.bin uEnv.txt ${KERNEL_IMAGETYPE}-zynq-zed.dtb"
27 24
diff --git a/recipes-bsp/u-boot/u-boot-xlnx/zedboard-zynq7/uEnv.txt b/recipes-bsp/u-boot/u-boot-xlnx/zedboard-zynq7/uEnv.txt
index 076b5f9d..22b922a5 100644
--- a/recipes-bsp/u-boot/u-boot-xlnx/zedboard-zynq7/uEnv.txt
+++ b/recipes-bsp/u-boot/u-boot-xlnx/zedboard-zynq7/uEnv.txt
@@ -1,4 +1,4 @@
1kernel_image=uImage 1kernel_image=uImage
2devicetree_image=zedboard-zynq7.dtb 2devicetree_image=uImage-zynq-zed.dtb
3bootargs=console=ttyPS0,115200 root=/dev/mmcblk0p2 rw rootwait earlyprintk 3bootargs=console=ttyPS0,115200 root=/dev/mmcblk0p2 rw rootwait earlyprintk
4uenvcmd=echo Copying Linux from SD to RAM... && fatload mmc 0 0x3000000 ${kernel_image} && fatload mmc 0 0x2A00000 ${devicetree_image} && bootm 0x3000000 - 0x2A00000 4uenvcmd=echo Copying Linux from SD to RAM... && fatload mmc 0 0x3000000 ${kernel_image} && fatload mmc 0 0x2A00000 ${devicetree_image} && bootm 0x3000000 - 0x2A00000