]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
9 years agodevicetree: phy: add device tree properties for ZynqMP GT core
Anurag Kumar Vulisha [Tue, 17 May 2016 11:19:01 +0000 (16:49 +0530)] 
devicetree: phy: add device tree properties for ZynqMP GT core

This patch adds the ZynqMP GT core device-tree properties for
zynqmp.dtsi file.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Tested-by: Hyun Kwon <hyunk@xilinx.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add ocm node in dtsi
Naga Sureshkumar Relli [Wed, 18 May 2016 06:53:13 +0000 (12:23 +0530)] 
ARM64: zynqmp: Add ocm node in dtsi

This patch adds ocm controller node in zynqmp.dtsi.
needed for OCM edac support.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: List all SMMU ids
Michal Simek [Wed, 6 Apr 2016 08:43:23 +0000 (10:43 +0200)] 
ARM64: zynqmp: List all SMMU ids

Add SMMU description for all tested IPs.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodevicetree: phy: Include phy.h in dts files
Anurag Kumar Vulisha [Tue, 17 May 2016 11:19:04 +0000 (16:49 +0530)] 
devicetree: phy: Include phy.h in dts files

This patch adds phy.h include file from dt-bindings. This is used
for adding phandles to phy driver by high speed pheripherals like
SATA, USB, Display Port, PCIe and SGMII in their device tree nodes.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Tested-by: Hyun Kwon <hyunk@xilinx.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agophy: Add Display port and SGMII type PHYs
Anurag Kumar Vulisha [Tue, 17 May 2016 11:18:57 +0000 (16:48 +0530)] 
phy: Add Display port and SGMII type PHYs

This patch adds two new macros for specifying Display
Port and SGMII PHYs.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Tested-by: Hyun Kwon <hyunk@xilinx.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agodt-bindings: Add include/dt-bindings/phy/phy.h from Linux v4.4
Stefan Roese [Fri, 29 Jan 2016 08:35:37 +0000 (09:35 +0100)] 
dt-bindings: Add include/dt-bindings/phy/phy.h from Linux v4.4

This will be needed by the upcoming Marvell Armada 375 dts files.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Luka Perkov <luka.perkov@sartura.hr>
9 years agoxilinx: zynqmp: Correct sd autoboot command
Siva Durga Prasad Paladugu [Wed, 25 May 2016 07:37:44 +0000 (13:07 +0530)] 
xilinx: zynqmp: Correct sd autoboot command

Correct the SD auto boot command so that it
will work even if uEnv.txt file did not
exist in SD card

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Align gic ranges for 64k in device tree
Alexander Graf [Thu, 12 May 2016 11:44:01 +0000 (13:44 +0200)] 
ARM64: zynqmp: Align gic ranges for 64k in device tree

The GIC ranges in the zynqmp device tree are only 4kb aligned. Since
commit 12e14066f we automatically deal with aliases GIC regions though,
so we can map them transparently into guests even on 64kb page size
systems.

This patch makes use of that features and sets GICC and GICV to 64kb
aligned and sized regions.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Remove -fno-strict-aliasing from config.mk
Michal Simek [Tue, 24 May 2016 12:10:17 +0000 (14:10 +0200)] 
ARM: zynq: Remove -fno-strict-aliasing from config.mk

config.mk is not included in the build for a while and none reported any
problem. Remove this file completely.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Remove -mno-unaligned-access flag duplication
Michal Simek [Tue, 24 May 2016 12:05:57 +0000 (14:05 +0200)] 
ARM: zynq: Remove -mno-unaligned-access flag duplication

Patch:
"arm: Switch to -mno-unaligned-access when supported by the compiler"
(sha1: 1551df35f296f0a8df32f4f2054254f46e8be252)
enables -mno-unaligned-access for all platforms. Remove it for Zynq.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: Move AES from board file to Kconfig
Michal Simek [Wed, 18 May 2016 11:45:55 +0000 (13:45 +0200)] 
ARM: Move AES from board file to Kconfig

And also enable it for RSA defconfigs.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agocmd: zynq: Fixed CMD_ZYNQ_RSA dependency on a non-existent menu option
Jude Nifong [Fri, 1 Apr 2016 15:44:31 +0000 (11:44 -0400)] 
cmd: zynq: Fixed CMD_ZYNQ_RSA dependency on a non-existent menu option

Fix dependencies.

Signed-off-by: Jude Nifong <jnifong@gatech.edu>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agousb: dwc3: Modify routines dwc3_readl and dwc3_writel
Siva Durga Prasad Paladugu [Thu, 12 May 2016 06:36:02 +0000 (12:06 +0530)] 
usb: dwc3: Modify routines dwc3_readl and dwc3_writel

Modify routines dwc3_readl and dwc3_writel to be insync
with mainline.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agousb: dwc3: Correct datatype of base to unsigned long
Siva Durga Prasad Paladugu [Thu, 12 May 2016 06:36:01 +0000 (12:06 +0530)] 
usb: dwc3: Correct datatype of base to unsigned long

Correct type of varibale base to unsigned long as
keeping it as int causes usb failures if MSB of
the base address is set.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agospi: xilinx_spi: Add support for Quad mode
Siva Durga Prasad Paladugu [Tue, 17 May 2016 10:07:23 +0000 (15:37 +0530)] 
spi: xilinx_spi: Add support for Quad mode

Add Quad mode support for xilinx spi driver
Inform the spi framework about quad mode
capability by reading it from devicetree.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: zynq_gem: Correct SGMII enable bit setting
Siva Durga Prasad Paladugu [Mon, 16 May 2016 10:01:38 +0000 (15:31 +0530)] 
net: zynq_gem: Correct SGMII enable bit setting

Correct the SGMII enable bit position to 27 instead
of 31.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: zynq_gem: Modify the nwcfg bit definitions
Siva Durga Prasad Paladugu [Mon, 16 May 2016 10:01:37 +0000 (15:31 +0530)] 
net: zynq_gem: Modify the nwcfg bit definitions

Modify the nwcfg bit definitions to have 32-bit
by removing the extra nibble.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Add support for SPL for cc108
Michal Simek [Thu, 5 May 2016 09:17:01 +0000 (11:17 +0200)] 
ARM: zynq: Add support for SPL for cc108

It is necessary to call ps7_post_config to enable PS-PL level shifters
because UART is on EMIO.
SPL is enabled but output is not visible because

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agomicroblaze: Enable option to overwrite default variables
Michal Simek [Tue, 10 May 2016 11:11:19 +0000 (13:11 +0200)] 
microblaze: Enable option to overwrite default variables

Enable overwriting variables out of main config file.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoRevert "net: gem: Add support for DMA coherent"
Michal Simek [Tue, 10 May 2016 11:28:11 +0000 (13:28 +0200)] 
Revert "net: gem: Add support for DMA coherent"

This reverts commit 455bb41aba6055b491ef3522966df7481c1eb2de.

Added this patch for backup. It can be used for CCI testing in u-boot.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agonet: gem: Add support for DMA coherent
Michal Simek [Thu, 21 Jan 2016 09:34:57 +0000 (10:34 +0100)] 
net: gem: Add support for DMA coherent

dma-coherent property can be added on zynqmp where coherency is done via
CCI400 but some settings needs to happen.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Enable emmc boot partitions handling
Michal Simek [Tue, 26 Apr 2016 14:03:42 +0000 (16:03 +0200)] 
ARM64: zynqmp: Enable emmc boot partitions handling

Enable additional EMMC boot partitions handling commands.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Enable RAM boot mode by default
Michal Simek [Tue, 10 May 2016 06:07:09 +0000 (08:07 +0200)] 
ARM: zynq: Enable RAM boot mode by default

It is useful for testing that's why enable it by default.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Call ps7_post_config() for SPL
Michal Simek [Tue, 10 May 2016 05:55:52 +0000 (07:55 +0200)] 
ARM: zynq: Call ps7_post_config() for SPL

If ps7_post_config() is defined call it. It is enabling for example
level shifters for PL bitstreams.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agospl: Introduce new function spl_board_prepare_for_boot
Michal Simek [Tue, 10 May 2016 05:54:20 +0000 (07:54 +0200)] 
spl: Introduce new function spl_board_prepare_for_boot

Call this function before passing control from SPL.
For fpga case it is necessary to enable for example level shifters.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Enable option to overwrite default variables
Michal Simek [Tue, 10 May 2016 07:50:35 +0000 (09:50 +0200)] 
ARM64: zynqmp: Enable option to overwrite default variables

Enable overwriting variables out of main config file.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Enable option to overwrite default variables
Michal Simek [Sat, 13 Feb 2016 10:50:03 +0000 (11:50 +0100)] 
ARM: zynq: Enable option to overwrite default variables

Enable overwriting variables out of main config file.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Read environment from uEnv.txt
Siva Durga Prasad Paladugu [Mon, 18 Apr 2016 11:08:11 +0000 (16:38 +0530)] 
ARM64: zynqmp: Read environment from uEnv.txt

Add support to read environment form
uEnv.txt file present in sd/eMMC device

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Add missing reset-gpio property for Zybo
Michal Simek [Thu, 7 Apr 2016 12:02:16 +0000 (14:02 +0200)] 
ARM: zynq: Add missing reset-gpio property for Zybo

Sync with the kernel.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Add u-boot,dm-pre-reloc from mainline
Michal Simek [Thu, 7 Apr 2016 10:56:19 +0000 (12:56 +0200)] 
ARM: zynq: Add u-boot,dm-pre-reloc from mainline

Sync qspi nodes from mainline.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Use 32bit size cell format for amba busses
Michal Simek [Thu, 7 Apr 2016 11:23:56 +0000 (13:23 +0200)] 
ARM64: zynqmp: Use 32bit size cell format for amba busses

But use 64bit size cells for memory nodes to be able to address more
then 4GB memories in single block.

It is revert of the patch
"ARM64: zynqmp: Use 64bit size cell format"
(sha1: a4b88ed52e54c267dd8ecfea53618c2edb55970c)
which was rejected by Linux reviewers.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Do not have empty line below header
Michal Simek [Thu, 7 Apr 2016 11:13:20 +0000 (13:13 +0200)] 
ARM64: zynqmp: Do not have empty line below header

It is the style used everywhere. Sync it up.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Fix license headers for afx, cc108 and xm011
Michal Simek [Thu, 7 Apr 2016 09:36:10 +0000 (11:36 +0200)] 
ARM: zynq: Fix license headers for afx, cc108 and xm011

Sync with others boards and use SPDX header.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Sort DTS for zc770-xm010/zybo boards
Michal Simek [Thu, 7 Apr 2016 09:42:53 +0000 (11:42 +0200)] 
ARM: zynq: Sort DTS for zc770-xm010/zybo boards

Use the same alphabelical order everywhere.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Unify qspi mode
Michal Simek [Thu, 7 Apr 2016 09:19:11 +0000 (11:19 +0200)] 
ARM: zynq: Unify qspi mode

Put together two qspi mode references and remove duplication.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: zc706: Linux adv7511 on i2c bus
Christian Kohn [Thu, 12 Nov 2015 23:53:36 +0000 (15:53 -0800)] 
ARM: zynq: zc706: Linux adv7511 on i2c bus

Add missing adv7511 and configure to match Base TRD.

Signed-off-by: Christian Kohn <christian.kohn@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: zc702: Linux adv7511 on i2c bus
Christian Kohn [Thu, 12 Nov 2015 23:53:35 +0000 (15:53 -0800)] 
ARM: zynq: zc702: Linux adv7511 on i2c bus

Fix bindings for adv7511 to match Base TRD.

Signed-off-by: Christian Kohn <christian.kohn@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: DT: Add ethernet phy reset information
Punnaiah Choudary Kalluri [Wed, 3 Feb 2016 09:57:18 +0000 (15:27 +0530)] 
ARM: zynq: DT: Add ethernet phy reset information

Added phy reset gpio information for gem0.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Fix bootargs in board dtsi
Michal Simek [Thu, 7 Apr 2016 09:15:00 +0000 (11:15 +0200)] 
ARM: zynq: Fix bootargs in board dtsi

- Sync with Linux kernel
- Remove rootfs
- Remove earlyprintk

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Align devcfg node
Michal Simek [Thu, 7 Apr 2016 09:00:37 +0000 (11:00 +0200)] 
ARM: zynq: Align devcfg node

- Have compatible string as the first property
- Sync with Linux kernel dtsi

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: dts: Updated devicetree bindings for Zynq 7000 platform
Moritz Fischer [Tue, 23 Jun 2015 06:18:44 +0000 (23:18 -0700)] 
ARM: dts: Updated devicetree bindings for Zynq 7000 platform

Added addtional bindings required for FPGA Manager operation
of the Xilinx Zynq Devc configuration interface.

Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: dts: zynq: Add devicetree entry for Xilinx Zynq reset controller.
Moritz Fischer [Fri, 31 Jul 2015 01:13:55 +0000 (18:13 -0700)] 
ARM: dts: zynq: Add devicetree entry for Xilinx Zynq reset controller.

Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Correct the smc nor memory region size
Punnaiah Choudary Kalluri [Tue, 24 Mar 2015 08:52:37 +0000 (14:22 +0530)] 
ARM: zynq: Correct the smc nor memory region size

Corrected the smc nor memory region size as per the zynq trm

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Add interrupt-controller property to gpio nodes
Michal Simek [Thu, 7 Apr 2016 08:54:08 +0000 (10:54 +0200)] 
ARM: zynq: 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 agoARM: zynq: Support systems with more memory banks
Michal Simek [Fri, 1 Apr 2016 13:56:33 +0000 (15:56 +0200)] 
ARM: zynq: Support systems with more memory banks

This is example how to change u-boot to support more memory banks read
from DT.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM: zynq: Use memory initialization based on DTS file
Michal Simek [Fri, 1 Apr 2016 14:04:14 +0000 (16:04 +0200)] 
ARM: zynq: Use memory initialization based on DTS file

Remove hardcoded memory sizes. Use information from DT memory node.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agocmd: rsa: Use run time memory setup instead of CONFIG_SYS_SDRAM_BASE
Michal Simek [Fri, 1 Apr 2016 14:18:03 +0000 (16:18 +0200)] 
cmd: rsa: Use run time memory setup instead of CONFIG_SYS_SDRAM_BASE

Make RSA code work with dynamic memory setup.
The first memory block is used by U-Boot.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agousb: dwc3: Increase the timeout for generic commands
Siva Durga Prasad Paladugu [Wed, 13 Apr 2016 11:57:25 +0000 (17:27 +0530)] 
usb: dwc3: Increase the timeout for generic commands

Increase the response timeout for generic commands
for handling worst case scenarios

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoRevert "Data types defined for 64 bit physical address"
Siva Durga Prasad Paladugu [Wed, 13 Apr 2016 11:57:24 +0000 (17:27 +0530)] 
Revert "Data types defined for 64 bit physical address"

This reverts commit f4f0b7403a06d2642ca40e6a0b18ee7336f276a8.
Reverting this commit as it is causing usb failures
Need to find the exact root cause yet and hence this
workaround for the usb to work

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Make DDR detection code work on 32bit system
Michal Simek [Fri, 1 Apr 2016 13:55:47 +0000 (15:55 +0200)] 
ARM64: zynqmp: Make DDR detection code work on 32bit system

Define u64 types to be usable on 32bit system because of 64bit address
and size cells and 32bit shifts in the code.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Enable can1 for ep108
Naga Sureshkumar Relli [Tue, 12 Apr 2016 06:16:11 +0000 (11:46 +0530)] 
ARM64: zynqmp: Enable can1 for ep108

This patch enables can1 for ep108.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Reviewed-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Added clocks to DT for ep108
VNSL Durga [Mon, 11 Apr 2016 12:13:47 +0000 (17:43 +0530)] 
ARM64: zynqmp: Added clocks to DT for ep108

Added clks for ep108 platform.

Signed-off-by: VNSL Durga <vnsldurg@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Add defconfig for zcu102 revB board
Michal Simek [Mon, 11 Apr 2016 06:07:07 +0000 (08:07 +0200)] 
ARM64: zynqmp: Add defconfig for zcu102 revB board

Support natively revB board. Till now support for revB was done via
zcu102 defconfig where device-tree was changed to revB.
This patch is adding direct defconfig for RevB.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Added is-dual property to QSPI node on zcu102
P L Sai Krishna [Fri, 8 Apr 2016 08:01:20 +0000 (13:31 +0530)] 
ARM64: zynqmp: Added is-dual property to QSPI node on zcu102

This patch adds is-dual property to QSPI node to
configure QSPI for DUAL PARALLEL.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Change usb node label representation
Naga Sureshkumar Relli [Tue, 5 Apr 2016 12:04:55 +0000 (17:34 +0530)] 
ARM64: zynqmp: Change usb node label representation

This patch changes usb node label represenation.
Our DTG is not able to recognize that usb node because
the usb node label doesn't have ip address as like other
ip nodes.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Fix usb nodes for ep108, dc1 and dc2
Michal Simek [Tue, 5 Apr 2016 10:01:16 +0000 (12:01 +0200)] 
ARM64: zynqmp: Fix usb nodes for ep108, dc1 and dc2

Fix DT binding for usb nodes. Setup correct aliases and enable dwc3
nodes.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Changes to fix broken zynqmp mini qspi
Siva Durga Prasad Paladugu [Thu, 31 Mar 2016 12:06:00 +0000 (17:36 +0530)] 
ARM64: zynqmp: Changes to fix broken zynqmp mini qspi

Decrease the zynqmp mini uboot size to get it working
on latest master.
common/Makefile will be solved in next upgrade when CMD_FDT config
option is introduced.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Use dcc instead regular uart for mini targets
Michal Simek [Tue, 5 Apr 2016 11:46:28 +0000 (13:46 +0200)] 
ARM64: zynqmp: Use dcc instead regular uart for mini targets

mini configuration is supposed to run from OCM which don't need to use
any psu_init configuration that's why using dcc is much better option.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Do not setup DM_ETH/GPIO/MMC by default for all boards
Michal Simek [Mon, 4 Apr 2016 13:32:20 +0000 (15:32 +0200)] 
ARM64: zynqmp: Do not setup DM_ETH/GPIO/MMC by default for all boards

There are mini configurations which need to be fit to OCM that's why
these options shouldn't be enabled by default.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Fix CMD_GPIO config location
Michal Simek [Wed, 6 Apr 2016 17:55:18 +0000 (19:55 +0200)] 
ARM64: zynqmp: Fix CMD_GPIO config location

Fix location of CMD_GPIO config with savedefconfig.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Sync DTS empty lines with the kernel
Michal Simek [Fri, 1 Apr 2016 12:57:04 +0000 (14:57 +0200)] 
ARM64: zynqmp: Sync DTS empty lines with the kernel

Trivial change.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: dts: Use C pre-processor for includes
Alistair Francis [Thu, 25 Feb 2016 17:30:03 +0000 (09:30 -0800)] 
ARM64: dts: Use C pre-processor for includes

Change the dtsi include code to use the C pre-processor #include instead
of the device tree /include/. This brings all ZynqMP device trees inline
with each other.

Signed-off-by: Alistair Francis <alistair.francis@xilinx.com>
Reviewed-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Fix i2c eeprom address
Michal Simek [Tue, 29 Mar 2016 08:07:04 +0000 (10:07 +0200)] 
ARM64: zynqmp: Fix i2c eeprom address

I2C EEPROM address on DC1 is at 0x55 not on 0x54.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Use only earlycon bootargs instead of full one
Michal Simek [Tue, 16 Feb 2016 08:53:36 +0000 (09:53 +0100)] 
ARM64: zynqmp: Use only earlycon bootargs instead of full one

OF_EARLYCON_DECLARE support in uart driver read information about
console and setup via stdout-path that's why addresses and setting
doesn't need to be specified.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Remove incorrect 24c08 DT description
Michal Simek [Mon, 29 Feb 2016 13:18:08 +0000 (14:18 +0100)] 
ARM64: zynqmp: Remove incorrect 24c08 DT description

24c08 contains four 256B blocks which are addresses by last two bits.
Linux at24 driver automatically detects number of addresses based on
this algorithm.

num_addresses = DIV_ROUND_UP(chip.byte_len,
(chip.flags & AT24_FLAG_ADDR16) ? 65536 : 256);

for 24c08 it is 4 addresses where driver create one regular device
and 3 dummy devices.
These dummy devices were causing problem when kernel tries to create
another eeprom device on already allocated addresses which were
in collision with dummy devices.

Error log:
[    3.124001] i2c i2c-6: Failed to register i2c client 24c08 at 0x55
(-16)
[    3.124005] i2c i2c-6: of_i2c: Failure registering
/amba/i2c@ff030000/i2cswitch@74/i2c@0/eeprom@55
[    3.124012] i2c i2c-6: Failed to register i2c client 24c08 at 0x56
(-16)
[    3.124015] i2c i2c-6: of_i2c: Failure registering
/amba/i2c@ff030000/i2cswitch@74/i2c@0/eeprom@56
[    3.124022] i2c i2c-6: Failed to register i2c client 24c08 at 0x57
(-16)
[    3.124025] i2c i2c-6: of_i2c: Failure registering
/amba/i2c@ff030000/i2cswitch@74/i2c@0/eeprom@57

This patch removes incorrect eeprom devices which were detect via U-Boot
but it is same device with 4 blocks on 4 different addresses.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoARM64: zynqmp: Do not setup default value for DWC3
Michal Simek [Fri, 1 Apr 2016 09:02:26 +0000 (11:02 +0200)] 
ARM64: zynqmp: Do not setup default value for DWC3

Setting up default value is causing dev_WARN_ONCE which end up with
error in bootlog. Remove default setting from DTS to remove this
warning.

Error log:
[    4.254668] dwc3 fe200000.dwc3: request value same as default,
ignoring
[    4.261236] ------------[ cut here ]------------
[    4.265799] WARNING: at drivers/usb/dwc3/core.c:178

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
9 years agoPCI: Xilinx NWL PCIe Bridge: Modifying device tree node
Bharat Kumar Gogada [Mon, 15 Feb 2016 15:48:58 +0000 (21:18 +0530)] 
PCI: Xilinx NWL PCIe Bridge: Modifying device tree node

Modifying device tree node to support legacy interrupts.

Signed-off-by: Bharat Kumar Gogada <bharatku@xilinx.com>
Signed-off-by: Ravi Kiran Gummaluri <rgummal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
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>