summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Rossi <nathan@nathanrossi.com>2016-02-24 16:50:12 +1000
committerNathan Rossi <nathan@nathanrossi.com>2016-03-06 20:04:03 +1000
commit32c5379aa666657e7a65f0abd195f49314bb4aca (patch)
tree2bcac862ab505f672869b87dc33ff09fdb5eb998
parentcad8934cba1ba92a612462ad6fa83b50116668a4 (diff)
downloadmeta-xilinx-32c5379aa666657e7a65f0abd195f49314bb4aca.tar.gz
zybo-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 Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
-rw-r--r--conf/machine/boards/zybo/zybo-zynq7-board.dtsi78
-rw-r--r--conf/machine/boards/zybo/zybo-zynq7.dts5
-rw-r--r--conf/machine/zybo-zynq7.conf8
3 files changed, 3 insertions, 88 deletions
diff --git a/conf/machine/boards/zybo/zybo-zynq7-board.dtsi b/conf/machine/boards/zybo/zybo-zynq7-board.dtsi
deleted file mode 100644
index 5d7a3a84..00000000
--- a/conf/machine/boards/zybo/zybo-zynq7-board.dtsi
+++ /dev/null
@@ -1,78 +0,0 @@
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 phy0: phy@0 {
22 compatible = "realtek,rtl8211e";
23 device_type = "ethernet-phy";
24 reg = <0>;
25 } ;
26 } ;
27 ps7_qspi_0: ps7-qspi@e000d000 {
28 flash@0 {
29 compatible = "micron,m25p80", "spansion,s25fl128s", "jedec,spi-nor";
30 reg = <0x0>;
31 spi-max-frequency = <50000000>;
32 #address-cells = <1>;
33 #size-cells = <1>;
34 partition@qspi-fsbl-uboot {
35 label = "qspi-fsbl-uboot";
36 reg = <0x0 0x100000>;
37 };
38 partition@qspi-linux {
39 label = "qspi-linux";
40 reg = <0x100000 0x500000>;
41 };
42 partition@qspi-device-tree {
43 label = "qspi-device-tree";
44 reg = <0x600000 0x20000>;
45 };
46 partition@qspi-rootfs {
47 label = "qspi-rootfs";
48 reg = <0x620000 0x5E0000>;
49 };
50 partition@qspi-bitstream {
51 label = "qspi-bitstream";
52 reg = <0xC00000 0x400000>;
53 };
54 };
55 } ;
56 ps7_usb_0: ps7-usb@e0002000 {
57 xlnx,phy-reset-gpio = <&ps7_gpio_0 46 0>; /* MIO USB PHY Reset */
58 usb-phy = <&usb0_phy>;
59 } ;
60
61 /* Disabled Devices */
62 ps7_sd_1: ps7-sdio@e0101000 { compatible = "invalid"; };
63 ps7_uart_0: serial@e0000000 { compatible = "invalid"; };
64 ps7_ethernet_1: ps7-ethernet@e000c000 { compatible = "invalid"; };
65 ps7_i2c_0: ps7-i2c@e0004000 { compatible = "invalid"; };
66 ps7_i2c_1: ps7-i2c@e0005000 { compatible = "invalid"; };
67 ps7_wdt_0: ps7-wdt@f8005000 { compatible = "invalid"; };
68 ps7_can_0: ps7-can@e0008000 { compatible = "invalid"; };
69 ps7_can_1: ps7-can@e0009000 { compatible = "invalid"; };
70 ps7_usb_1: ps7-usb@e0003000 { compatible = "invalid"; };
71 } ;
72
73 usb0_phy: usb-phy {
74 #phy-cells = <0>;
75 compatible = "usb-nop-xceiv";
76 reset-gpios = <&ps7_gpio_0 46 1>; /* MIO 46, GPIO_ACTIVE_LOW */
77 } ;
78} ;
diff --git a/conf/machine/boards/zybo/zybo-zynq7.dts b/conf/machine/boards/zybo/zybo-zynq7.dts
deleted file mode 100644
index cc51c3bd..00000000
--- a/conf/machine/boards/zybo/zybo-zynq7.dts
+++ /dev/null
@@ -1,5 +0,0 @@
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
index 4ec12aab..7fdcb183 100644
--- a/conf/machine/zybo-zynq7.conf
+++ b/conf/machine/zybo-zynq7.conf
@@ -12,15 +12,13 @@ require conf/machine/include/machine-xilinx-board.inc
12 12
13MACHINE_FEATURES = "ext2 vfat usbhost usbgadget" 13MACHINE_FEATURES = "ext2 vfat usbhost usbgadget"
14 14
15# u-boot configuration
15UBOOT_MACHINE = "zynq_zybo_config" 16UBOOT_MACHINE = "zynq_zybo_config"
16SPL_BINARY = "boot.bin" 17SPL_BINARY = "boot.bin"
17 18
18SERIAL_CONSOLE = "115200 ttyPS0" 19SERIAL_CONSOLE = "115200 ttyPS0"
19 20
20MACHINE_DEVICETREE := " \ 21KERNEL_DEVICETREE = "zynq-zybo.dtb"
21 zybo/zybo-zynq7-board.dtsi \
22 zybo/zybo-zynq7.dts \
23 "
24 22
25IMAGE_BOOT_FILES += "boot.bin ${MACHINE}.dtb" 23IMAGE_BOOT_FILES += "boot.bin ${KERNEL_IMAGETYPE}-zynq-zybo.dtb"
26 24