From e1a7205fa5cf2a6186121c8394cb18d59b477e27 Mon Sep 17 00:00:00 2001 From: Nathan Rossi Date: Tue, 14 Apr 2015 12:20:32 +1000 Subject: picozed-zynq7: Add machine config and device trees for picoZed SOM * Add the device tree includes for the picoZed SOM * Add machine config for the picoZed SOM Signed-off-by: Nathan Rossi --- .../boards/picozed/picozed-zynq7-board.dtsi | 71 ++++++++++++++++++++++ conf/machine/boards/picozed/picozed-zynq7.dts | 5 ++ conf/machine/picozed-zynq7.conf | 25 ++++++++ 3 files changed, 101 insertions(+) create mode 100644 conf/machine/boards/picozed/picozed-zynq7-board.dtsi create mode 100644 conf/machine/boards/picozed/picozed-zynq7.dts create mode 100644 conf/machine/picozed-zynq7.conf diff --git a/conf/machine/boards/picozed/picozed-zynq7-board.dtsi b/conf/machine/boards/picozed/picozed-zynq7-board.dtsi new file mode 100644 index 00000000..a65cd9ec --- /dev/null +++ b/conf/machine/boards/picozed/picozed-zynq7-board.dtsi @@ -0,0 +1,71 @@ +/ { + model = "Avnet picoZed"; + chosen { + bootargs = "console=ttyPS0,115200 earlyprintk root=/dev/ram rw"; + linux,stdout-path = "/axi@0/serial@e0001000"; + } ; + ps7_ddr_0: memory@0 { + device_type = "memory"; + reg = <0x0 0x40000000>; + } ; + ps7_axi_interconnect_0: amba@0 { + ps7_ethernet_0: ps7-ethernet@e000b000 { + phy-handle = <&phy0>; + phy-mode = "rgmii-id"; + mdio { + phy0: phy@0 { + compatible = "marvell,88e1512"; + device_type = "ethernet-phy"; + reg = <0>; + } ; + } ; + } ; + ps7_qspi_0: ps7-qspi@e000d000 { + flash@0 { + compatible = "n25q128"; + reg = <0x0>; + spi-max-frequency = <50000000>; + #address-cells = <1>; + #size-cells = <1>; + partition@qspi-fsbl-uboot { + label = "qspi-fsbl-uboot"; + reg = <0x0 0x100000>; + }; + partition@qspi-linux { + label = "qspi-linux"; + reg = <0x100000 0x500000>; + }; + partition@qspi-device-tree { + label = "qspi-device-tree"; + reg = <0x600000 0x20000>; + }; + partition@qspi-rootfs { + label = "qspi-rootfs"; + reg = <0x620000 0x5E0000>; + }; + partition@qspi-bitstream { + label = "qspi-bitstream"; + reg = <0xC00000 0x400000>; + }; + }; + } ; + ps7_usb_0: ps7-usb@e0002000 { + xlnx,phy-reset-gpio = <&ps7_gpio_0 7 0>; /* MIO USB PHY Reset */ + } ; + ps7_sd_1: ps7-sdio@e0101000 { + /* The SD1 interface is connected to the non-removable eMMC */ + non-removable; + } ; + + /* Disabled Devices */ + ps7_sd_0: ps7-sdio@e0100000 { compatible = "invalid"; }; + ps7_uart_0: serial@e0000000 { compatible = "invalid"; }; + ps7_ethernet_1: ps7-ethernet@e000c000 { compatible = "invalid"; }; + ps7_i2c_0: ps7-i2c@e0004000 { compatible = "invalid"; }; + ps7_i2c_1: ps7-i2c@e0005000 { compatible = "invalid"; }; + ps7_wdt_0: ps7-wdt@f8005000 { compatible = "invalid"; }; + ps7_can_0: ps7-can@e0008000 { compatible = "invalid"; }; + ps7_can_1: ps7-can@e0009000 { compatible = "invalid"; }; + ps7_usb_1: ps7-usb@e0003000 { compatible = "invalid"; }; + } ; +} ; diff --git a/conf/machine/boards/picozed/picozed-zynq7.dts b/conf/machine/boards/picozed/picozed-zynq7.dts new file mode 100644 index 00000000..cd580c9e --- /dev/null +++ b/conf/machine/boards/picozed/picozed-zynq7.dts @@ -0,0 +1,5 @@ +/dts-v1/; +/include/ "zynq7-base.dtsi" +/include/ "picozed-zynq7-board.dtsi" +/ { +} ; diff --git a/conf/machine/picozed-zynq7.conf b/conf/machine/picozed-zynq7.conf new file mode 100644 index 00000000..0573a30b --- /dev/null +++ b/conf/machine/picozed-zynq7.conf @@ -0,0 +1,25 @@ +#@TYPE: Machine +#@NAME: picozed-zynq7 +#@DESCRIPTION: Machine support for picoZed. (http://www.picozed.org/) +# +# Note: This machine configuration is intended as a generic config for +# the picozed SOM. It also covers the multiple SKUs for the picoZed +# including 7010, 7020, 7015 and 7030. + +require conf/machine/include/tune-zynq.inc +require conf/machine/include/machine-xilinx-default.inc +require conf/machine/include/machine-xilinx-board.inc + +# microZed machine definition known by Xilinx UBOOT +UBOOT_MACHINE = "zynq_picozed_config" + +SERIAL_CONSOLE = "115200 ttyPS0" + +MACHINE_DEVICETREE := " \ + picozed/picozed-zynq7-board.dtsi \ + picozed/picozed-zynq7.dts \ + " + +IMAGE_BOOT_FILES += "boot.bin ${MACHINE}.dtb" + +EXTRA_IMAGEDEPENDS += "virtual/boot-bin" -- cgit v1.2.3-54-g00ecf