Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restore deleted commit for Petalinux-Zybo example #1

Open
wants to merge 24 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
8c39fed
ARM: zynq: Enable option to overwrite default variables
michalsimek Feb 13, 2016
90d8c5f
net: gem: Allow to set the MAC from an EEPROM
jhershbe Jan 26, 2016
b894417
ARM: zynq: zybo: Enabling reading MAC address from EEPROM
michalsimek Feb 13, 2016
1938f36
ARM: zynq: Fix default ps7_init_gpl.c/h for ZYBO
michalsimek Mar 3, 2016
7654648
Merge tag 'v2016.03'
michalsimek Mar 15, 2016
14c8497
zynq: Add fpga support to u-boot SPL
Mar 18, 2016
4dd0f06
configs: zynq-common: Add uEnv.txt support
michalsimek Mar 18, 2016
d8ded98
zynq: SPL fix spaces in fpga code
michalsimek May 27, 2016
aa2369f
Merge tag 'v2016.07'
michalsimek Aug 11, 2016
82333ab
zynq: Allow to read mac address from SPI flash OTP region
socnix-lab Jun 9, 2016
3b9fb20
ARM: zynq: Add support for Arty Z7 board
michalsimek May 27, 2016
e2382ce
configs: zynq_artyz7_defconfig: Add BOOTDELAY
sbobrowicz Feb 28, 2017
f8a6e6a
Merge tag 'xilinx-v2017.1'
sbobrowicz Jul 18, 2017
783146a
ARM: zynq: Clean-up Arty Z7 device tree
sbobrowicz Jul 18, 2017
47e24b3
ARM: zynq: Update Arty Z7 support for 2017.1
sbobrowicz Jul 18, 2017
5ebcacf
Merge tag 'xilinx-v2017.2'
sbobrowicz Sep 26, 2017
8875fa2
Add Digilent Zybo Z7 board support
sbobrowicz Oct 11, 2017
3dacf05
board: xilinx: zynq: Rename ethaddr SPI offset CONFIG
sbobrowicz Oct 20, 2017
6924304
Merge tag 'xilinx-v2017.4'
sbobrowicz Feb 13, 2018
42deb24
configs: zyboz7: add CONFIG_SYS_TEXT_BASE
sbobrowicz Feb 13, 2018
f244cbb
configs: zynq_zybo: add MALLOC option
sbobrowicz Mar 28, 2018
a2911a9
configs: zynq_artyz7: Add Malloc option
sbobrowicz Mar 28, 2018
9335312
arm: zynq: Add support for Cora Z7 board
sbobrowicz Apr 27, 2018
4a34620
arm: zynq: cleanup Zybo Z7 config typos
sbobrowicz Apr 27, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions arch/arm/dts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,12 @@ dtb-$(CONFIG_ARCH_UNIPHIER) += \
uniphier-sld3-ref.dtb \
uniphier-sld8-ref.dtb
dtb-$(CONFIG_ARCH_ZYNQ) += zynq-zc702.dtb \
zynq-artyz7.dtb \
zynq-coraz7.dtb \
zynq-zc706.dtb \
zynq-zed.dtb \
zynq-zybo.dtb \
zynq-zyboz7.dtb \
zynq-microzed.dtb \
zynq-cc108.dtb \
zynq-cse-nand.dtb \
Expand Down
73 changes: 73 additions & 0 deletions arch/arm/dts/zynq-artyz7.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
/*
* Digilent ARTY Z7 board DTS
*
* Copyright (C) 2016 Digilent
*
* SPDX-License-Identifier: GPL-2.0+
*/
/dts-v1/;
#include "zynq-7000.dtsi"

/ {
model = "Zynq ARTY Z7 Development Board";
compatible = "digilent,zynq-artyz7", "xlnx,zynq-7000";

aliases {
ethernet0 = &gem0;
serial0 = &uart0;
spi0 = &qspi;
mmc0 = &sdhci0;
};

memory@0 {
device_type = "memory";
reg = <0x0 0x20000000>;
};

chosen {
bootargs = "";
stdout-path = "serial0:115200n8";
};

usb_phy0: phy0 {
#phy-cells = <0>;
compatible = "usb-nop-xceiv";
reset-gpios = <&gpio0 46 1>;
};
};

&clkc {
ps-clk-frequency = <50000000>;
};

&gem0 {
status = "okay";
phy-mode = "rgmii-id";
phy-handle = <&ethernet_phy>;

ethernet_phy: ethernet-phy@0 { /* rtl8211e-vl */
reg = <1>;
device_type = "ethernet-phy";
};
};

&qspi {
u-boot,dm-pre-reloc;
status = "okay";
};

&sdhci0 {
u-boot,dm-pre-reloc;
status = "okay";
};

&uart0 {
u-boot,dm-pre-reloc;
status = "okay";
};

&usb0 {
status = "okay";
dr_mode = "host";
usb-phy = <&usb_phy0>;
};
69 changes: 69 additions & 0 deletions arch/arm/dts/zynq-coraz7.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/*
* Digilent Cora Z7 board DTS
*
* Copyright (C) 2016 Digilent
*
* SPDX-License-Identifier: GPL-2.0+
*/
/dts-v1/;
#include "zynq-7000.dtsi"

/ {
model = "Zynq Cora Z7 Development Board";
compatible = "digilent,zynq-coraz7", "xlnx,zynq-7000";

aliases {
ethernet0 = &gem0;
serial0 = &uart0;
mmc0 = &sdhci0;
};

memory@0 {
device_type = "memory";
reg = <0x0 0x20000000>;
};

chosen {
bootargs = "";
stdout-path = "serial0:115200n8";
};

usb_phy0: phy0@e0002000 {
compatible = "ulpi-phy";
#phy-cells = <0>;
reg = <0xe0002000 0x1000>;
view-port = <0x0170>;
drv-vbus;
};
};

&clkc {
ps-clk-frequency = <50000000>;
};

&gem0 {
status = "okay";
phy-mode = "rgmii-id";
phy-handle = <&ethernet_phy>;

ethernet_phy: ethernet-phy@0 { /* rtl8211e-vl */
reg = <1>;
device_type = "ethernet-phy";
};
};

&sdhci0 {
u-boot,dm-pre-reloc;
status = "okay";
};

&uart0 {
u-boot,dm-pre-reloc;
status = "okay";
};

&usb0 {
status = "okay";
dr_mode = "host";
usb-phy = <&usb_phy0>;
};
107 changes: 107 additions & 0 deletions arch/arm/dts/zynq-zyboz7.dts
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
/*
* Digilent Zybo Z7 board DTS
*
* Copyright (C) 2011 - 2015 Xilinx
* Copyright (C) 2012 National Instruments Corp.
*
* SPDX-License-Identifier: GPL-2.0+
*/
/dts-v1/;
#include "zynq-7000.dtsi"

/ {
model = "Zynq Zybo Z7 Development Board";
compatible = "digilent,zynq-zyboz7", "xlnx,zynq-7000";

aliases {
ethernet0 = &gem0;
serial0 = &uart1;
spi0 = &qspi;
mmc0 = &sdhci0;
};

memory@0 {
device_type = "memory";
reg = <0x0 0x40000000>;
};

chosen {
bootargs = "";
stdout-path = "serial0:115200n8";
};

usb_phy0: phy0 {
compatible = "ulpi-phy";
#phy-cells = <0>;
reg = <0xe0002000 0x1000>;
view-port = <0x0170>;
drv-vbus;
};
};

&clkc {
ps-clk-frequency = <33333333>;
};

&gem0 {
status = "okay";
phy-mode = "rgmii-id";
phy-handle = <&ethernet_phy>;

ethernet_phy: ethernet-phy@1 {
reg = <1>;
device_type = "ethernet-phy";
};
};

&qspi {
u-boot,dm-pre-reloc;
status = "okay";
is-dual = <0>;
num-cs = <1>;
flash@0 {
compatible = "s25fl128s", "spi-flash";
reg = <0x0>;
spi-tx-bus-width = <1>;
spi-rx-bus-width = <4>;
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>;
};
};
};

&sdhci0 {
u-boot,dm-pre-reloc;
status = "okay";
};

&uart1 {
u-boot,dm-pre-reloc;
status = "okay";
};

&usb0 {
status = "okay";
dr_mode = "host";
usb-phy = <&usb_phy0>;
};
24 changes: 24 additions & 0 deletions board/xilinx/zynq/board.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <fdtdec.h>
#include <fpga.h>
#include <mmc.h>
#include <spi.h>
#include <spi_flash.h>
#include <zynqpl.h>
#include <asm/arch/hardware.h>
#include <asm/arch/sys_proto.h>
Expand Down Expand Up @@ -132,6 +134,28 @@ int zynq_board_read_rom_ethaddr(unsigned char *ethaddr)
printf("I2C EEPROM MAC address read failed\n");
#endif

#if defined(CONFIG_ZYNQ_QSPI) && \
defined(ZYNQ_GEM_SPI_MAC_OFFSET)
#define CMD_OTPREAD_ARRAY_FAST 0x4b
struct spi_flash *flash;
flash = spi_flash_probe(CONFIG_SF_DEFAULT_BUS,
CONFIG_SF_DEFAULT_CS,
CONFIG_SF_DEFAULT_SPEED,
CONFIG_SF_DEFAULT_MODE);
if (!flash) {
printf("SPI(bus:%u cs:%u) probe failed\n",
CONFIG_SF_DEFAULT_BUS,
CONFIG_SF_DEFAULT_CS);
return 0;
}
/* set the cmd to otp read */
flash->read_cmd = CMD_OTPREAD_ARRAY_FAST;
if (spi_flash_read(flash, ZYNQ_GEM_SPI_MAC_OFFSET, 6, ethaddr))
printf("SPI MAC address read failed\n");

if (flash)
spi_flash_free(flash);
#endif
return 0;
}

Expand Down
Loading