[meta-xilinx] [PATCH 08/12] zc702-zynq7: Switch over to in kernel device tree
Nathan Rossi
nathan at nathanrossi.com
Wed Feb 24 01:31:01 PST 2016
* 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 at nathanrossi.com>
---
conf/machine/boards/zc702/zc702-zynq7-board.dtsi | 149 ---------------------
conf/machine/boards/zc702/zc702-zynq7.dts | 5 -
conf/machine/zc702-zynq7.conf | 10 +-
.../u-boot/u-boot-xlnx/zc702-zynq7/uEnv.txt | 2 +-
4 files changed, 4 insertions(+), 162 deletions(-)
delete mode 100644 conf/machine/boards/zc702/zc702-zynq7-board.dtsi
delete mode 100644 conf/machine/boards/zc702/zc702-zynq7.dts
diff --git a/conf/machine/boards/zc702/zc702-zynq7-board.dtsi b/conf/machine/boards/zc702/zc702-zynq7-board.dtsi
deleted file mode 100644
index 686aa9f..0000000
--- a/conf/machine/boards/zc702/zc702-zynq7-board.dtsi
+++ /dev/null
@@ -1,149 +0,0 @@
-/*
- * ZC702 DTS file header for generic boot.
- */
-
-/ {
- model = "Xilinx ZC702";
- chosen {
- bootargs = "console=ttyPS0,115200 earlyprintk root=/dev/ram rw";
- linux,stdout-path = "/amba at 0/serial at e0001000";
- } ;
- ps7_ddr_0: memory at 0 {
- device_type = "memory";
- reg = <0x0 0x40000000>;
- } ;
- ps7_axi_interconnect_0: amba at 0 {
- ps7_ethernet_0: ps7-ethernet at e000b000 {
- phy-handle = <&phy0>;
- phy-mode = "rgmii-id";
- phy0: phy at 7 {
- compatible = "marvell,88e1116r";
- device_type = "ethernet-phy";
- reg = <7>;
- } ;
- } ;
- ps7_qspi_0: ps7-qspi at e000d000 {
- flash at 0 {
- compatible = "micron,n25q128a11", "jedec,spi-nor";
- reg = <0x0>;
- spi-tx-bus-width = <1>;
- spi-rx-bus-width = <4>;
- spi-max-frequency = <50000000>;
- #address-cells = <1>;
- #size-cells = <1>;
- partition at qspi-fsbl-uboot {
- label = "qspi-fsbl-uboot";
- reg = <0x0 0x100000>;
- };
- partition at qspi-linux {
- label = "qspi-linux";
- reg = <0x100000 0x500000>;
- };
- partition at qspi-device-tree {
- label = "qspi-device-tree";
- reg = <0x600000 0x20000>;
- };
- partition at qspi-rootfs {
- label = "qspi-rootfs";
- reg = <0x620000 0x5E0000>;
- };
- partition at qspi-bitstream {
- label = "qspi-bitstream";
- reg = <0xC00000 0x400000>;
- };
- };
- } ;
- ps7_i2c_0: ps7-i2c at e0004000 {
- /* I2C Switch */
- i2cswitch at 74 {
- compatible = "nxp,pca9548";
- #address-cells = <1>;
- #size-cells = <0>;
- reg = <0x74>;
-
- i2c at 0 {
- #address-cells = <1>;
- #size-cells = <0>;
- reg = <0>;
- osc at 5d {
- #clock-cells = <0>;
- compatible = "silabs,si570";
- temperature-stability = <50>;
- reg = <0x5d>;
- factory-fout = <156250000>;
- initial-fout = <148500000>;
- };
- };
-
- i2c at 2 {
- #address-cells = <1>;
- #size-cells = <0>;
- reg = <2>;
- eeprom at 54 {
- compatible = "at,24c08";
- reg = <0x54>;
- };
- };
-
- i2c at 3 {
- #address-cells = <1>;
- #size-cells = <0>;
- reg = <3>;
- gpio at 21 {
- compatible = "ti,tca6416";
- reg = <0x21>;
- gpio-controller;
- #gpio-cells = <2>;
- };
- };
-
- i2c at 4 {
- #address-cells = <1>;
- #size-cells = <0>;
- reg = <4>;
- rtc at 54 {
- compatible = "nxp,pcf8563";
- reg = <0x51>;
- };
- };
-
- i2c at 7 {
- #address-cells = <1>;
- #size-cells = <0>;
- reg = <7>;
- hwmon at 52 {
- compatible = "pmbus,ucd9248";
- reg = <52>;
- };
- hwmon at 53 {
- compatible = "pmbus,ucd9248";
- reg = <53>;
- };
- hwmon at 54 {
- compatible = "pmbus,ucd9248";
- reg = <54>;
- };
- };
- };
- };
- ps7_usb_0: ps7-usb at e0002000 {
- xlnx,phy-reset-gpio = <&ps7_gpio_0 7 0>; /* MIO USB PHY Reset */
- usb-phy = <&usb0_phy>;
- } ;
-
- /* Disabled Devices */
- ps7_sd_1: ps7-sdio at e0101000 { compatible = "invalid"; };
- ps7_uart_0: serial at e0000000 { compatible = "invalid"; };
- ps7_ethernet_1: ps7-ethernet at e000c000 { compatible = "invalid"; };
- ps7_i2c_1: ps7-i2c at e0005000 { compatible = "invalid"; };
- ps7_can_0: ps7-can at e0008000 { compatible = "invalid"; };
- ps7_can_1: ps7-can at e0009000 { compatible = "invalid"; };
- ps7_usb_1: ps7-usb at e0003000 { compatible = "invalid"; };
- } ;
-
- usb0_phy: usb-phy {
- #phy-cells = <0>;
- compatible = "usb-nop-xceiv";
- reset-gpios = <&ps7_gpio_0 7 1>; /* MIO 7, GPIO_ACTIVE_LOW */
- } ;
-} ;
diff --git a/conf/machine/boards/zc702/zc702-zynq7.dts b/conf/machine/boards/zc702/zc702-zynq7.dts
deleted file mode 100644
index 8c5f197..0000000
--- a/conf/machine/boards/zc702/zc702-zynq7.dts
+++ /dev/null
@@ -1,5 +0,0 @@
-/dts-v1/;
-/include/ "zynq7-base.dtsi"
-/include/ "zc702-zynq7-board.dtsi"
-/ {
-} ;
\ No newline at end of file
diff --git a/conf/machine/zc702-zynq7.conf b/conf/machine/zc702-zynq7.conf
index 1417c51..9a505b3 100644
--- a/conf/machine/zc702-zynq7.conf
+++ b/conf/machine/zc702-zynq7.conf
@@ -15,18 +15,14 @@ require conf/machine/include/machine-xilinx-board.inc
MACHINE_FEATURES = "rtc ext2 ext3 vfat usbhost"
-# ZC702 machine definition known by Xilinx UBOOT
+# u-boot configuration
UBOOT_MACHINE = "zynq_zc702_config"
SPL_BINARY = "boot.bin"
SERIAL_CONSOLE = "115200 ttyPS0"
-MACHINE_DEVICETREE := " \
- zc702/zc702-zynq7-board.dtsi \
- zc702/zc702-zynq7.dts \
- "
-
+KERNEL_DEVICETREE = "zynq-zc702.dtb"
KERNEL_FEATURES += "features/rtc/rtc.scc"
-IMAGE_BOOT_FILES += "boot.bin uEnv.txt ${MACHINE}.dtb"
+IMAGE_BOOT_FILES += "boot.bin uEnv.txt ${KERNEL_IMAGETYPE}-zynq-zc702.dtb"
diff --git a/recipes-bsp/u-boot/u-boot-xlnx/zc702-zynq7/uEnv.txt b/recipes-bsp/u-boot/u-boot-xlnx/zc702-zynq7/uEnv.txt
index b4f36dd..b7d5739 100644
--- a/recipes-bsp/u-boot/u-boot-xlnx/zc702-zynq7/uEnv.txt
+++ b/recipes-bsp/u-boot/u-boot-xlnx/zc702-zynq7/uEnv.txt
@@ -1,4 +1,4 @@
kernel_image=uImage
-devicetree_image=zc702-zynq7.dtb
+devicetree_image=uImage-zynq-zc702.dtb
bootargs=console=ttyPS0,115200 root=/dev/mmcblk0p2 rw rootwait earlyprintk
uenvcmd=echo Copying Linux from SD to RAM... && fatload mmc 0 0x3000000 ${kernel_image} && fatload mmc 0 0x2A00000 ${devicetree_image} && bootm 0x3000000 - 0x2A00000
--
2.7.0
More information about the meta-xilinx
mailing list