]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
9 years agoARM64: zynqmp: Add ddrc node in dts
Naga Sureshkumar Relli [Fri, 11 Mar 2016 07:40:26 +0000 (13:10 +0530)] 
ARM64: zynqmp: Add ddrc node in dts

This patch adds ddrc memory controller node in dts.
size mentioned in dts is 0x30000, because we need to access DDR_QOS
INTR registers located at fd090208 from this driver.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodma: zynqmp: Added clocks to DT
VNSL Durga [Thu, 24 Mar 2016 17:15:12 +0000 (22:45 +0530)] 
dma: zynqmp: Added clocks to DT

Zyqmp DMA's main clock and apb clock are added
in zynqmp DT.

Signed-off-by: VNSL Durga <vnsldurg@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
9 years agodma: zynqmp: Added zynqmp DMA clks
VNSL Durga [Thu, 24 Mar 2016 17:15:11 +0000 (22:45 +0530)] 
dma: zynqmp: Added zynqmp DMA clks

zynqmp dma main clock and apb clock are
added in zynqmp-clk.dtsi

Signed-off-by: VNSL Durga <vnsldurg@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
9 years agonet: zynq_gem: Return error incase of invalid phy address
Siva Durga Prasad Paladugu [Wed, 30 Mar 2016 06:59:49 +0000 (12:29 +0530)] 
net: zynq_gem: Return error incase of invalid phy address

Return error from probe in case of invalid phy address.
This fixes the issue of uboot crash if phy is not detected.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: zynq_gem: Add SGMII support for zynqMP
Siva Durga Prasad Paladugu [Fri, 25 Mar 2016 07:23:44 +0000 (12:53 +0530)] 
net: zynq_gem: Add SGMII support for zynqMP

PCS auto negotaiation bit should be enabled
along with SGMII autonegotation enabled
in phy.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: phy: Add SGMII support for TI phy
Siva Durga Prasad Paladugu [Fri, 25 Mar 2016 07:23:43 +0000 (12:53 +0530)] 
net: phy: Add SGMII support for TI phy

Add support of SGMII to TI phy dp838367
Enable the SGMII and PCS settings in phy
control, CFG2 and BIST registers

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agogpio: zynq: Add support for reading gpio pin state
Michal Simek [Fri, 4 Mar 2016 14:56:50 +0000 (15:56 +0100)] 
gpio: zynq: Add support for reading gpio pin state

Add zynq_gpio_get_function() which return status on gpio pin.
This function enables gpio status command.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoRevert "fdt: Try to read address-cells/size-cells from parent"
Michal Simek [Wed, 16 Mar 2016 16:18:56 +0000 (17:18 +0100)] 
Revert "fdt: Try to read address-cells/size-cells from parent"

This reverts commit 50a14db52c4115e903fbc62941d9d8e3930c5e3b.
becase fdt_get_reg() was fixed by
""
(sha1: XXX)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Read address and size cells from parent
Michal Simek [Wed, 16 Mar 2016 16:20:21 +0000 (17:20 +0100)] 
ARM64: zynqmp: Read address and size cells from parent

Based on these two rules:
* #address-cells and #size-cells describe the format of addresses
  for children of this node, not this node itself.  So if you're
  looking to parse 'reg' for this node, you *always* need to look at
  the parent, not just as a fallback.

* #address-cells and #size-cells are *not* inherited.  If they're
  missing in a node, then the format for its children's addresses is
  2 cell addresses and 2 cell sizes, it is *not* correct to look at
  the next parent up for these properties.

fdt_get_reg has to find parent node and read address and size cells from
parent node not from actual node.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Change the netboot load address
Wendy Liang [Fri, 18 Mar 2016 00:15:15 +0000 (17:15 -0700)] 
ARM64: zynqmp: Change the netboot load address

The netboot address to load the FIT image needs to be higher than
the address where the kernel is loaded.

For ZynqMP, kernel is loaded to 0x80000, the netboot
address for the image.ub which is supposed to be
the FIT image needs to be higher. Set it to 10000000.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agozynqmp: Move default IP address into server's subnet
Soren Brinkmann [Fri, 11 Mar 2016 01:21:52 +0000 (17:21 -0800)] 
zynqmp: Move default IP address into server's subnet

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agozynqmp: Switch to 3-component net-boot
Soren Brinkmann [Fri, 11 Mar 2016 01:21:51 +0000 (17:21 -0800)] 
zynqmp: Switch to 3-component net-boot

For JTAG boot, load Image, DT and ramdisk through tftp and boot.
Also, adjust the image layout in memory a bit to avoid them overlapping:
The old/current layout is:
 0x80000 - Image
 0x7000000 - DT
And no space for a rootfs.

With this change the layout becomes:
 0x80000 - Image
 0x4000000 - DT
 0x6000000 - rootfs

That provides more than enough space for the kernel without changing the
kernel address everywhere.
Enough room for the DT, which is rather tiny.
And puts the rootfs at the top allowing it to grow.

This seems to be the least intrusive way as it just changes one
variable that is commonly used (fdt_addr), while the addresses
for other components are often repeated and even differ between
boot modes.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agozynqmp: Enable config CMD_GPIO for ZynqMP
Siva Durga Prasad Paladugu [Thu, 10 Mar 2016 10:57:45 +0000 (16:27 +0530)] 
zynqmp: Enable config CMD_GPIO for ZynqMP

Enable CONFIG_CMD_GPIO for all ZynqMP boards

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agozynqmp: Kconfig: Enable DM_GPIO and ZYNQ_GPIO for ZynqMP
Siva Durga Prasad Paladugu [Thu, 10 Mar 2016 10:57:44 +0000 (16:27 +0530)] 
zynqmp: Kconfig: Enable DM_GPIO and ZYNQ_GPIO for ZynqMP

Enable  DM_GPIO and ZYNQ_GPIO for ZynqM using
Kconfig. The enables the GPIO driver support
for ZynqMP

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agogpio: zynqmp: Add GPIO driver support for ZynqMP
Siva Durga Prasad Paladugu [Thu, 10 Mar 2016 10:57:43 +0000 (16:27 +0530)] 
gpio: zynqmp: Add GPIO driver support for ZynqMP

Add GPIO driver support for ZynqMP platform

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agogpio: zynq: Move the definitions to driver file
Siva Durga Prasad Paladugu [Thu, 10 Mar 2016 10:57:42 +0000 (16:27 +0530)] 
gpio: zynq: Move the definitions to driver file

Move all the gpio definitions to driver file as
there is no use of them in other files.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoarm: Kconfig: Enable Zynq GPIO driver using kconfig
Siva Durga Prasad Paladugu [Thu, 10 Mar 2016 10:57:41 +0000 (16:27 +0530)] 
arm: Kconfig: Enable Zynq GPIO driver using kconfig

Enable DM GPIO and ZYNQ GPIO using kconfig
instead of the board config file

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agogpio: zynq: Remove non driver model code
Siva Durga Prasad Paladugu [Thu, 10 Mar 2016 10:57:40 +0000 (16:27 +0530)] 
gpio: zynq: Remove non driver model code

Remove non driver model support as it moved
to driver model. Dont need non driver model
anymore.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agozynq: Enable gpio driver model for Zynq
Siva Durga Prasad Paladugu [Thu, 10 Mar 2016 10:57:39 +0000 (16:27 +0530)] 
zynq: Enable gpio driver model for Zynq

Enable gpio driver model for Zynq

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agogpio: zynq: Convert Zynq GPIO to driver model
Siva Durga Prasad Paladugu [Thu, 10 Mar 2016 10:57:38 +0000 (16:27 +0530)] 
gpio: zynq: Convert Zynq GPIO to driver model

Convert Zynq GPIO driver to driver model

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agousb: gadget: f_thor: Fix request buffer freeing
Michal Simek [Wed, 24 Feb 2016 07:45:21 +0000 (08:45 +0100)] 
usb: gadget: f_thor: Fix request buffer freeing

This patch fixes origin patch:
"usb: gadget: f_thor: free the allocated out request buffer"
(sha1: f63465733427b7bfbd0fe9c6d8ba3fb90189ad69)
by removing out_req_buf reference and using dev->out_req->buf
directly.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: xilinx_axi: Declare another missing variable
Alistair Francis [Wed, 2 Mar 2016 17:37:28 +0000 (09:37 -0800)] 
net: xilinx_axi: Declare another missing variable

Since commit
"net: xilinx_axi: Clear Isolate bit if found set suring phy"
(sha1: 39579875c) u-boot fails to build as the temp variable is
never declared. This patch declares the variable in the setup_phy()
function.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agospi: spi_flash: Restrict max read length to 16MiB
Siva Durga Prasad Paladugu [Wed, 2 Mar 2016 05:34:33 +0000 (11:04 +0530)] 
spi: spi_flash: Restrict max read length to 16MiB

Restrict max read length to 16MiB for a single
read command. The max read length would be 32MiB
incase of dual parallel.
This is workaround for read failures if read length
is greater than 16MiB in single and 32MiB in dual
parallel connection.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: xilinx_axi: Declare missing variable
Alistair Francis [Mon, 29 Feb 2016 22:11:13 +0000 (14:11 -0800)] 
net: xilinx_axi: Declare missing variable

Since commit
"net: xilinx_axi: Clear Isolate bit if found set suring phy"
(sha1: 39579875c) u-boot fails to build as the ret variable is
never declared. This patch declares the variable in the setup_phy()
function.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agocmd: mem: Show 64bit addresses which are tested
Michal Simek [Tue, 23 Feb 2016 12:33:52 +0000 (13:33 +0100)] 
cmd: mem: Show 64bit addresses which are tested

Fix print message.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodefconfig: zynqmp: ep108: Enable configs SPI_FLASH and SPI_FLASH_BAR
Siva Durga Prasad Paladugu [Thu, 25 Feb 2016 09:15:51 +0000 (14:45 +0530)] 
defconfig: zynqmp: ep108: Enable configs SPI_FLASH and SPI_FLASH_BAR

Enable configs SPI_FLASH and SPI_FLASH_BAR for ep
platform of zynqmp. This fixes the issues of qspi
flash probe failure on ep108

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agommc: sdhci: Disable internal clock enable bit
Siva Durga Prasad Paladugu [Thu, 25 Feb 2016 07:21:50 +0000 (12:51 +0530)] 
mmc: sdhci: Disable internal clock enable bit

Disable internal clock by clearing the internal
clock enable bit. This bit needs to be cleared too
when we stop the SDCLK for changing the frequency
divisor. This bit should be set to zero when the
device is not using the Host controller.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: zynqmp: Enable DCC serial driver by default
Michal Simek [Thu, 18 Feb 2016 15:56:17 +0000 (16:56 +0100)] 
ARM: zynq: zynqmp: Enable DCC serial driver by default

Compile DCC serial driver by default.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoserial: dcc: Move driver to DM
Michal Simek [Thu, 18 Feb 2016 06:52:10 +0000 (07:52 +0100)] 
serial: dcc: Move driver to DM

Enabling this driver requires some DT changes.
Adding DCC to root or main bus:
dcc: dcc {
compatible = "arm,dcc";
u-boot,dm-pre-reloc;
};

Extend alias list to link DCC:
serial0 = &uart0;
serial1 = &uart1;
serial2 = &dcc;

Change stdout-path to point to dcc port.
stdout-path = "serial2:115200n8";

Also add support for debug uart to help with early debug.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
9 years agoARM64: zynqmp: Extend early malloc space to be able to run DM drivers
Michal Simek [Mon, 22 Feb 2016 09:01:27 +0000 (10:01 +0100)] 
ARM64: zynqmp: Extend early malloc space to be able to run DM drivers

DM drivers need more malloc space for early DM models allocation.
Use 4k instead of 1k.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add missing mmc aliases
Michal Simek [Tue, 23 Feb 2016 08:30:15 +0000 (09:30 +0100)] 
ARM64: zynqmp: Add missing mmc aliases

Add missing mmc aliases.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Clear temporary place for storing DDR sizes
Michal Simek [Mon, 22 Feb 2016 09:22:31 +0000 (10:22 +0100)] 
ARM64: zynqmp: Clear temporary place for storing DDR sizes

tmp is placed in BSS section but BSS section is initialized after
relocation but DDR layout needs to be known before relocation that's
why clear temporary place for DDR sizes.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: xilinx_axi: Clear Isolate bit if found set suring phy
Siva Durga Prasad Paladugu [Sun, 21 Feb 2016 10:16:15 +0000 (15:46 +0530)] 
net: xilinx_axi: Clear Isolate bit if found set suring phy

In SGMII cases the isolate bit might set after DMA and
ethernet resets and hence check and clear during
setup_phy if it was set.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: xilinx_axi: use interface type instead of zero
Siva Durga Prasad Paladugu [Sun, 21 Feb 2016 10:16:14 +0000 (15:46 +0530)] 
net: xilinx_axi: use interface type instead of zero

Pass appropriate interface type to phy_connect
instead of zero.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoconfigs: zynqmp: Fix SPI position in DC2 defconfig
Michal Simek [Mon, 22 Feb 2016 07:43:30 +0000 (08:43 +0100)] 
configs: zynqmp: Fix SPI position in DC2 defconfig

No functional changes.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoconfigs: zynqmp: Enable config NET_RANDOM_ETHADDR for DC1 and DC2
Siva Durga Prasad Paladugu [Mon, 22 Feb 2016 07:11:00 +0000 (12:41 +0530)] 
configs: zynqmp: Enable config NET_RANDOM_ETHADDR for DC1 and DC2

Enable config NET_RANDOM_ETHADDR for DC1 and DC2, as it may
lead to Ethernet probe failure if mac address is not found
in environment

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Enable SF test command
Michal Simek [Mon, 15 Feb 2016 10:13:24 +0000 (11:13 +0100)] 
ARM64: zynqmp: Enable SF test command

Add option to test flash memory.
Please make sure you have enough malloc space if you want to test larger
memories (CONFIG_SYS_MALLOC_LEN).

ZynqMP> sf test 0 20000
SPI flash test:
0 erase: 2906 ticks, 44 KiB/s 0.352 Mbps
1 check: 9 ticks, 14222 KiB/s 113.776 Mbps
2 write: 166 ticks, 771 KiB/s 6.168 Mbps
3 read: 8 ticks, 16000 KiB/s 128.000 Mbps
Test passed
0 erase: 2906 ticks, 44 KiB/s 0.352 Mbps
1 check: 9 ticks, 14222 KiB/s 113.776 Mbps
2 write: 166 ticks, 771 KiB/s 6.168 Mbps
3 read: 8 ticks, 16000 KiB/s 128.000 Mbps

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Remove !OF_CONTROL code for timer and interrupt
Michal Simek [Mon, 15 Feb 2016 12:44:19 +0000 (13:44 +0100)] 
microblaze: Remove !OF_CONTROL code for timer and interrupt

OF_CONTROL is enabled by default that's why this is dead code.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Read information about timer/interrupts from DT
Michal Simek [Mon, 15 Feb 2016 11:10:32 +0000 (12:10 +0100)] 
microblaze: Read information about timer/interrupts from DT

Read information about timer and interrupts from DT. This is the first
small step to move timer and intc to DM.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Do not enable CMD_GPIO in board config file
Michal Simek [Tue, 16 Feb 2016 15:32:36 +0000 (16:32 +0100)] 
microblaze: Do not enable CMD_GPIO in board config file

CMD_GPIO is enabled (and can be enabled) via menuconfig
that's why it should be removed from board config file.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Do not setup the same mac adress for all boards
Michal Simek [Tue, 16 Feb 2016 09:35:52 +0000 (10:35 +0100)] 
ARM64: zynqmp: Do not setup the same mac adress for all boards

This was fixed in mainline some time ago and none board should hardcode
mac address.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Remove earlyconX helper variables
Michal Simek [Tue, 16 Feb 2016 08:56:01 +0000 (09:56 +0100)] 
ARM64: zynqmp: Remove earlyconX helper variables

There is no need to specify earlycon for certain because only earlycon
can be add to bootargs. Linux kernel read information about console from
stdout-path property.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodm: ns16550: Add support for reg-offset property
Michal Simek [Tue, 16 Feb 2016 15:05:23 +0000 (16:05 +0100)] 
dm: ns16550: Add support for reg-offset property

reg-offset is the part of standard 8250 binding in the kernel.
It is shifting start of address space by reg-offset.
On Xilinx platform this offset is typically 0x1000.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Sai Pavan Boddu <saipava@xilinx.com>
Acked-by: Alistair Francis <alistair.francis@xilinx.com>
Tested-by: Alistair Francis <alistair.francis@xilinx.com>
9 years agophy: ti: Do not use binary specification in macros
Michal Simek [Thu, 4 Feb 2016 08:14:31 +0000 (09:14 +0100)] 
phy: ti: Do not use binary specification in macros

Sync it with mainline.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoRevert "microblaze: Overwrite default GCC-5.x behavior"
Michal Simek [Thu, 4 Feb 2016 08:10:13 +0000 (09:10 +0100)] 
Revert "microblaze: Overwrite default GCC-5.x behavior"

This reverts commit 2cf38db35bc4644717d151d42f636dc5a93f294b.

All gnu89 inlining functions were fixed that's why this flag is not
needed anymore.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoRevert "arm: smc: Add helper asm code for invoking smc"
Michal Simek [Thu, 4 Feb 2016 07:40:00 +0000 (08:40 +0100)] 
Revert "arm: smc: Add helper asm code for invoking smc"

This reverts commit 1f4dc97747abd75fb23f8d9f43f9acbf49408da6.

SMC call is replaced by mainline patch:
"armv8: Add Secure Monitor/Hypervisor Call (SMC/HVC) infrastructure"
(sha1: a5b9fa30cebd91082f9fea93d7ef33812910da6a)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agofpga: zynqmp: Use mainline smc_call() instead of own
Michal Simek [Thu, 4 Feb 2016 07:45:40 +0000 (08:45 +0100)] 
fpga: zynqmp: Use mainline smc_call() instead of own

Use mainline smc_call() instead of our out of tree smc implementation.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoarmv8: Add Secure Monitor/Hypervisor Call (SMC/HVC) infrastructure
Sergey Temerkhanov [Wed, 14 Oct 2015 16:55:46 +0000 (09:55 -0700)] 
armv8: Add Secure Monitor/Hypervisor Call (SMC/HVC) infrastructure

This commit adds functions issuing calls to secure monitor or
hypervisore. This allows using services such as Power State
Coordination Interface (PSCI) provided by firmware, e.g. ARM
Trusted Firmware (ATF)

The SMC call can destroy all registers declared temporary by the
calling conventions. The clobber list is "x0..x17" because of
this

Signed-off-by: Sergey Temerkhanov <s.temerkhanov@gmail.com>
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Signed-off-by: Radha Mohan Chintakuntla <rchintakuntla@cavium.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Mateusz Kulikowski <mateusz.kulikowski@gmail.com>
9 years agozynq-common: Enable phy driver for Xilinx PCS/PMA core
Siva Durga Prasad Paladugu [Fri, 5 Feb 2016 07:52:12 +0000 (13:22 +0530)] 
zynq-common: Enable phy driver for Xilinx PCS/PMA core

Add support of Xilinx PCS/PMA core phy for Zynq

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: zynq_gem: Add support for SGMII interface
Siva Durga Prasad Paladugu [Fri, 5 Feb 2016 07:52:11 +0000 (13:22 +0530)] 
net: zynq_gem: Add support for SGMII interface

Add support of SGMII interface for zynq GEM.
Read xlnx,emio property from DT.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agophy: Add phy driver support for xilinx PCS/PMA core
Siva Durga Prasad Paladugu [Fri, 5 Feb 2016 07:52:10 +0000 (13:22 +0530)] 
phy: Add phy driver support for xilinx PCS/PMA core

Add phy driver support for xilinx PCS/PMA core

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Use SPDX header in zcu102 revB
Michal Simek [Thu, 11 Feb 2016 14:50:26 +0000 (15:50 +0100)] 
ARM64: zynqmp: Use SPDX header in zcu102 revB

No functional changes.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Prepade DT for include headers
Michal Simek [Mon, 18 Jan 2016 15:06:42 +0000 (16:06 +0100)] 
ARM64: zynqmp: Prepade DT for include headers

To be able to include headers from dt generic location.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: zcu102: dp: Use si570_1 for pixel clock
Hyun Kwon [Tue, 24 Nov 2015 01:12:59 +0000 (17:12 -0800)] 
ARM64: zynqmp: zcu102: dp: Use si570_1 for pixel clock

Enable the video clock from PL, and set phandle to si570_1.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: zcu102: Enable DisplayPort
Hyun Kwon [Tue, 24 Nov 2015 01:12:57 +0000 (17:12 -0800)] 
ARM64: zynqmp: zcu102: Enable DisplayPort

Enable DisplayPort related drivers.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add property snps,quirk-frame-length-adjustment
Subbaraya Sundeep Bhatta [Wed, 27 Jan 2016 14:27:03 +0000 (19:57 +0530)] 
ARM64: zynqmp: Add property snps,quirk-frame-length-adjustment

Added snps,quirk-frame-length-adjustment and snps,refclk_fladj
for USB

Signed-off-by: Subbaraya Sundeep Bhatta <sbhatta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Move usb description to the latest state
Michal Simek [Thu, 11 Feb 2016 14:39:15 +0000 (15:39 +0100)] 
ARM64: zynqmp: Move usb description to the latest state

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Align node address with parent node for dpdma
Michal Simek [Wed, 27 Jan 2016 18:04:56 +0000 (19:04 +0100)] 
ARM64: zynqmp: Align node address with parent node for dpdma

Use right addresses for channel names

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Use correct addresses in node names
Hyun Kwon [Tue, 24 Nov 2015 01:12:54 +0000 (17:12 -0800)] 
ARM64: zynqmp: Use correct addresses in node names

Reflect acutal silicon addresses in DT node names.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: DT: Added PM domains for PLLs
Filip Drazic [Wed, 10 Feb 2016 11:00:43 +0000 (12:00 +0100)] 
ARM64: zynqmp: DT: Added PM domains for PLLs

Signed-off-by: Filip Drazic <filip.drazic@aggios.com>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: DT: Added PM domain for DDR
Filip Drazic [Fri, 29 Jan 2016 17:56:08 +0000 (18:56 +0100)] 
ARM64: zynqmp: DT: Added PM domain for DDR

Signed-off-by: Filip Drazic <filip.drazic@aggios.com>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: DT: Add power domains
Soren Brinkmann [Mon, 11 Jan 2016 23:34:42 +0000 (15:34 -0800)] 
ARM64: zynqmp: DT: Add power domains

Add power-domains to the DT and attach devices to them.
The power-domains are all logical domains as understood by firmware.
Each PD is identified by a unique identifier that the platform firmware
understands.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add backward compatible string for uart
Michal Simek [Fri, 27 Nov 2015 12:22:58 +0000 (13:22 +0100)] 
ARM64: zynqmp: Add backward compatible string for uart

Mainline kernel has no r1p12 compatible string that's why console stops
to work with the latest DTS files. Append generic compatible string.
Keep in your mind that using this generic compatible string not all uart
features will be available.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Sync GEM nodes with Linux
Michal Simek [Thu, 11 Feb 2016 14:26:46 +0000 (15:26 +0100)] 
ARM64: zynqmp: Sync GEM nodes with Linux

Remove jumbo properties which are handled in the driver directly
and use mainline compatible string which is already handled by the
driver.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Hook up the GEMs to the SMMU
Edgar E. Iglesias [Thu, 26 Nov 2015 13:12:20 +0000 (14:12 +0100)] 
ARM64: zynqmp: Hook up the GEMs to the SMMU

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Correct IRQ nr for the SMMU
Edgar E. Iglesias [Thu, 26 Nov 2015 13:12:19 +0000 (14:12 +0100)] 
ARM64: zynqmp: Correct IRQ nr for the SMMU

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Added broken-tuning property to SD, eMMC nodes
P L Sai Krishna [Tue, 19 Jan 2016 13:31:10 +0000 (19:01 +0530)] 
ARM64: zynqmp: Added broken-tuning property to SD, eMMC nodes

This patch adds broken-tuning property to SD and
eMMC nodes.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Fix coding style for pcie
Michal Simek [Wed, 20 Jan 2016 11:59:23 +0000 (12:59 +0100)] 
ARM64: zynqmp: Fix coding style for pcie

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add interrupt-controller property to gpio nodes
Michal Simek [Mon, 23 Nov 2015 12:26:15 +0000 (13:26 +0100)] 
ARM64: zynqmp: Add interrupt-controller property to gpio nodes

GPIO driver supports an input interrupt that's why gpio node itself can
be labeled as interrupt controller.

Reported-by: John Linn <linnj@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add CCI-400 node
Michal Simek [Thu, 26 Nov 2015 10:21:25 +0000 (11:21 +0100)] 
ARM64: zynqmp: Add CCI-400 node

Add CCI-400 node to DTSI.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: DT: Add power domains
Soren Brinkmann [Mon, 11 Jan 2016 23:34:42 +0000 (15:34 -0800)] 
ARM64: zynqmp: DT: Add power domains

Add power-domains to the DT and attach devices to them.
The power-domains are all logical domains as understood by firmware.
Each PD is identified by a unique identifier that the platform firmware
understands.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Put qspi size to comment for zcu102 rev A
Michal Simek [Tue, 2 Feb 2016 10:55:24 +0000 (11:55 +0100)] 
ARM64: zynqmp: Put qspi size to comment for zcu102 rev A

Different board revisions have different QSPI parts.
Use comments to mentioned it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Disable PCIe for zcu102
Michal Simek [Fri, 15 Jan 2016 11:25:44 +0000 (12:25 +0100)] 
ARM64: zynqmp: Disable PCIe for zcu102

PCIe is valid configuration for this board but GT muxes are setup to use
DP, USB and SATA instead of PCIe x4.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Added OOB timing settings in zynqmp-zcu102.dts
Anurag Kumar Vulisha [Thu, 5 Nov 2015 11:51:39 +0000 (17:21 +0530)] 
ARM64: zynqmp: Added OOB timing settings in zynqmp-zcu102.dts

This patch adds the sata port phy OOB timing values in the sata
device-tree node.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add missing compatible property for si5328
Michal Simek [Thu, 4 Feb 2016 12:56:23 +0000 (13:56 +0100)] 
ARM64: zynqmp: Add missing compatible property for si5328

Missing compatible string It is causing error in bootlog
i2c i2c-10: of_i2c: modalias failure on
/amba/i2c@ff030000/i2cswitch@74/i2c@4/clock-generator4@69

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: zcu102: Change factory-fout of si570_1 to 300Hz
Hyun Kwon [Tue, 24 Nov 2015 01:12:58 +0000 (17:12 -0800)] 
ARM64: zynqmp: zcu102: Change factory-fout of si570_1 to 300Hz

'factory-fout' should reflect correct default value.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Use different clock-generator names
Michal Simek [Wed, 27 Jan 2016 18:09:35 +0000 (19:09 +0100)] 
ARM64: zynqmp: Use different clock-generator names

If the same names in front of @ are used si570 driver reject clock
registration.
Error message:
si570: probe of 10-005d failed with error -17

Change all names to avoid it.

Reported-by: Chris Kohn <ckohn@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Fix i2c u8 chip address on rev B
Michal Simek [Wed, 20 Jan 2016 12:32:37 +0000 (13:32 +0100)] 
ARM64: zynqmp: Fix i2c u8 chip address on rev B

There was conflict with 0x20 with i2c mux that's why it was changed on
rev B board.
Disable unreachable i2c chip.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add missing compatible string for zcu102
Michal Simek [Mon, 18 Jan 2016 15:53:46 +0000 (16:53 +0100)] 
ARM64: zynqmp: Add missing compatible string for zcu102

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zcu102: GT selection via DT
Michal Simek [Thu, 26 Nov 2015 14:02:01 +0000 (15:02 +0100)] 
ARM64: zcu102: GT selection via DT

Use gpio hogs to select GT muxes based on HW design.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zcu102: Fix i2c gpio GT muxes description
Michal Simek [Mon, 18 Jan 2016 15:39:33 +0000 (16:39 +0100)] 
ARM64: zcu102: Fix i2c gpio GT muxes description

Add simple u-boot i2c command to know how to setup GPIO gt outputs.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Mark zcu102 revision A in DTS
Michal Simek [Thu, 11 Feb 2016 14:01:34 +0000 (15:01 +0100)] 
ARM64: zynqmp: Mark zcu102 revision A in DTS

Extend model description for zcu102 revA.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: dc1: Remove default properties
Hyun Kwon [Tue, 24 Nov 2015 01:12:56 +0000 (17:12 -0800)] 
ARM64: zynqmp: dc1: Remove default properties

Remove default properies which are present in zynqmp.dtsi.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: dp: Add default properties to zynqmp.dtsi
Hyun Kwon [Tue, 24 Nov 2015 01:12:55 +0000 (17:12 -0800)] 
ARM64: zynqmp: dp: Add default properties to zynqmp.dtsi

Add some default properties to zynqmp.dtsi.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add no-1-8-v property to SD node.
P L Sai Krishna [Thu, 7 Jan 2016 09:27:28 +0000 (14:57 +0530)] 
ARM64: zynqmp: Add no-1-8-v property to SD node.

There is no support to switch to 1.8V and use
UHS mode on 1.0 silicon. Hence, this patch add
no-1-8-v property to SD node to denotes 1.8v card
voltage is not supported on this system, even if
the controller claims it is.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Added OOB timing settings in zynqmp-zc1751-xm015-dc1.dts
Anurag Kumar Vulisha [Thu, 5 Nov 2015 11:51:38 +0000 (17:21 +0530)] 
ARM64: zynqmp: Added OOB timing settings in zynqmp-zc1751-xm015-dc1.dts

This patch adds the sata port phy OOB timing values in the sata
device-tree node.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add 8-bit bus width property.
P L Sai Krishna [Thu, 7 Jan 2016 09:27:27 +0000 (14:57 +0530)] 
ARM64: zynqmp: Add 8-bit bus width property.

This patch add 8-bit bus width property to eMMC node.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Added OOB timing settings in zynqmp-ep108.dts
Anurag Kumar Vulisha [Thu, 5 Nov 2015 11:51:37 +0000 (17:21 +0530)] 
ARM64: zynqmp: Added OOB timing settings in zynqmp-ep108.dts

This patch adds the sata port phy OOB timing values in the sata
device-tree node.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: dt: Change qspi node compatible string
Ranjit Waghmode [Wed, 2 Dec 2015 04:36:58 +0000 (10:06 +0530)] 
ARM64: zynqmp: dt: Change qspi node compatible string

This patch makes compatible string as "m25p80" for qspi node in
ep108 device tree file

Signed-off-by: Ranjit Waghmode <ranjit.waghmode@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: DT: Add earlycon to EP108
Soren Brinkmann [Wed, 13 Jan 2016 18:19:53 +0000 (10:19 -0800)] 
ARM64: zynqmp: DT: Add earlycon to EP108

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: clk: Enable the aud_clk for ALSA drivers
Hyun Kwon [Tue, 24 Nov 2015 01:13:00 +0000 (17:13 -0800)] 
ARM64: zynqmp: clk: Enable the aud_clk for ALSA drivers

Enable audio clock for ALSA drivers.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Use 64bit size cell format
Michal Simek [Tue, 9 Feb 2016 11:35:06 +0000 (12:35 +0100)] 
ARM64: zynqmp: Use 64bit size cell format

Use 64bit size cell format instead of 32bit for memory
description. Change 64bit sizes also for all others IPs.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add serdes address space dp driver
Michal Simek [Wed, 27 Jan 2016 18:02:37 +0000 (19:02 +0100)] 
ARM64: zynqmp: Add serdes address space dp driver

Probably for run time serdes adjustment.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Read RAM information from DT
Michal Simek [Mon, 8 Feb 2016 08:34:53 +0000 (09:34 +0100)] 
ARM64: zynqmp: Read RAM information from DT

Read information about memory from DT. This patch simplify life with
synchronization between DT and board files.

zynqmp-mini-nand, zynqmp-mini-qspi are not converted because they need
specific settings which needs to be tested.

dram_init() only needs maximum RAM size below 4GB that's why please sort
banks in memory node.
dram_init_banksize() copies memory setup to bi_dram[].
This will avoid reading information from DT twice.

Memory test start/end were changed to DDR location to let memtest still
compiled.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agofdt: Try to read address-cells/size-cells from parent
Michal Simek [Wed, 10 Feb 2016 11:46:23 +0000 (12:46 +0100)] 
fdt: Try to read address-cells/size-cells from parent

Read address-cells and size-cells from parent if they are not present in
current node.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Enable libfdt for mini configurations
Michal Simek [Thu, 11 Feb 2016 15:25:50 +0000 (16:25 +0100)] 
ARM64: zynqmp: Enable libfdt for mini configurations

Even mini configuration requires libfdt because of DM.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Separate qspi register to two blocks
Michal Simek [Tue, 9 Feb 2016 11:42:53 +0000 (12:42 +0100)] 
ARM64: zynqmp: Separate qspi register to two blocks

Separation is easier for reading.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Fix mics_clk alignment
Michal Simek [Tue, 9 Feb 2016 11:35:27 +0000 (12:35 +0100)] 
ARM64: zynqmp: Fix mics_clk alignment

Fix mics_clk alignment to follow rules.
Also remove one blank line.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: axi_emac: Report phy-node error message permanently
Michal Simek [Mon, 8 Feb 2016 12:54:05 +0000 (13:54 +0100)] 
net: axi_emac: Report phy-node error message permanently

Do not use debug() when printing error message. Use printf instead.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Remove ZYNQ_BOOT_FREEBSD option
Michal Simek [Thu, 4 Feb 2016 10:08:26 +0000 (11:08 +0100)] 
ARM: zynq: Remove ZYNQ_BOOT_FREEBSD option

Remove CONFIG_ZYNQ_BOOT_FREEBSD configuration option and setup
CONFIG_SYS_MMC_MAX_DEVICE 1 for all Zynq boards.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>