]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
7 years agozynq: dts: Added alias for usb node
Vipul Kumar [Tue, 7 Aug 2018 11:00:04 +0000 (16:30 +0530)] 
zynq: dts: Added alias for usb node

This patch added alias for usb node in dts file.

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agozynqmp: Add avnet_ultra96_rev1_defconfig to the lits of boards
Tom Rini [Tue, 7 Aug 2018 15:36:39 +0000 (11:36 -0400)] 
zynqmp: Add avnet_ultra96_rev1_defconfig to the lits of boards

Signed-off-by: Tom Rini <trini@konsulko.com>
7 years agoarm64: zynqmp: Add support for Avnet Ultra96
Michal Simek [Tue, 24 Jul 2018 14:27:00 +0000 (16:27 +0200)] 
arm64: zynqmp: Add support for Avnet Ultra96

Avnet Ultra96 is rebranded Xilinx zcu100 revC/D. Add new defconfig files
and point to origin internal board name.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agomtd: spi-nor: Added support for low-density ISSI serial NOR flash
Vipul Kumar [Tue, 24 Jul 2018 09:47:21 +0000 (15:17 +0530)] 
mtd: spi-nor: Added support for low-density ISSI serial NOR flash

This patch added support for the following ISSI flash parts:
-is25lp008d (8M/3.3V), is25wp008d (8M/1.8V)
-is25lp016d (16M/3.3V), is25wp016d (16M/1.8V)
-is25lp032d (32M/3.3V), is25wp032d (32M/1.8V)
-is25wp064d (64M/1.8V)

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agospi: xilinx_spi: Added support to read JEDEC-id twice at the boot time
Vipul Kumar [Sat, 30 Jun 2018 02:45:19 +0000 (08:15 +0530)] 
spi: xilinx_spi: Added support to read JEDEC-id twice at the boot time

This patch is for the startup block issue in the spi controller.
SPI clock is passing through STARTUP block to FLASH. STARTUP block
don't provide clock as soon as QSPI provides command. So, first
command fails.

This patch added support to read JEDEC id in xilinx_spi_xfer ().

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
7 years agowatchdog: cadence: Do not stop wdt in probe
Michal Simek [Tue, 17 Jul 2018 11:17:39 +0000 (13:17 +0200)] 
watchdog: cadence: Do not stop wdt in probe

Watchdog can be started before probe and u-boot should just take control
over it. That's why do not stop watchdog in probe to cover cases where
watchdog can expire before probe and start.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agowatchdog: cdns: Add comment for expire_now function
Michal Simek [Mon, 16 Jul 2018 11:34:55 +0000 (13:34 +0200)] 
watchdog: cdns: Add comment for expire_now function

IP itself has no reg/no bit which can be used for this functionality.
Add this note to the driver to make sure that none will be asking for
that. Current method is to setup 1s timeout and hang() which is done via
wdt_expire_now().

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Try to enable the first watchdog via aliases
Michal Simek [Wed, 11 Jul 2018 06:35:22 +0000 (08:35 +0200)] 
arm: zynq: Try to enable the first watchdog via aliases

The same change as was done for zynqmp with this description:

Add support for enabling the first watchdog pointed via aliases.

DT fragment:
aliases {
...
watchdog0= &watchdog0;
watchdog1 = &watchdog_lpd;
...
};

<zynqmp example removed>

Till this patch the first watchdog found in DT was used and started
which is not enabling all possible configuration based on user request.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Try to enable the first watchdog via aliases
Michal Simek [Wed, 11 Jul 2018 06:30:07 +0000 (08:30 +0200)] 
arm64: zynqmp: Try to enable the first watchdog via aliases

Add support for enabling the first watchdog pointed via aliases.

DT fragment:
aliases {
...
watchdog0 = &watchdog0;
watchdog1 = &watchdog_lpd;
...
};

dm tree fragment for above configuration with patch applied:
ZynqMP> dm tree
 Class    index  Probed  Driver      Name
-----------------------------------------
...
 watchdog    0  [   ]   cdns_wdt    |   |-- watchdog@ff150000
 watchdog    1  [ + ]   cdns_wdt    |   `-- watchdog@fd4d0000
...

dm uclass fragment:
ZynqMP> dm uclass
...
uclass 75: watchdog
0   watchdog@ff150000 @ 7df02f40, seq -1, (req 1)
1 * watchdog@fd4d0000 @ 7df02ff0, seq 0, (req 0)
...

It is visible that index 1 is IP with seq 0 which means that FPD
watchdog (@fd4d0000) is in DT below LPD watchdog (@ff150000).

Till this patch the first watchdog found in DT was used and started
which is not enabling all possible configuration based on user request.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agomicroblaze: Do not call timer init that early
Michal Simek [Wed, 11 Jul 2018 12:08:26 +0000 (14:08 +0200)] 
microblaze: Do not call timer init that early

Timer needs to be converted to DM but as of now it can't be called so
early because intc controller is not ready. Call it later in board_r.c.
Before this patch timer_init is called twice which is wrong.
The patch is blocking initialization before relocation.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
7 years agogpio: zynq: Fix typo in one error message
Michal Simek [Thu, 12 Jul 2018 10:30:34 +0000 (12:30 +0200)] 
gpio: zynq: Fix typo in one error message

Just fix error message.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agowatchdog: dm: Change uclass name to watchdog and enable DM_UC_FLAG_SEQ_ALIAS
Michal Simek [Wed, 11 Jul 2018 06:24:43 +0000 (08:24 +0200)] 
watchdog: dm: Change uclass name to watchdog and enable DM_UC_FLAG_SEQ_ALIAS

uclass name is used by dev_read_alias_seq which return seq number when
aliases are used.

Code fragment:
168 int dev_read_alias_seq(struct udevice *dev, int *devnump)
169 {
170         ofnode node = dev_ofnode(dev);
171         const char *uc_name = dev->uclass->uc_drv->name;
172         int ret;
173
174         if (ofnode_is_np(node)) {
175                 ret = of_alias_get_id(ofnode_to_np(node), uc_name);

Also this patch enables DM_UC_FLAG_SEQ_ALIAS to be in sync with Linux
which is also using watchdog name for watchdog aliases.

drivers/watchdog/watchdog_core.c:215:
 ret = of_alias_get_id(wdd->parent->of_node, "watchdog");

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
7 years agoarm64: zynqmp: Added support of mmio read and write commands
Vipul Kumar [Mon, 16 Jul 2018 12:34:22 +0000 (18:04 +0530)] 
arm64: zynqmp: Added support of mmio read and write commands

This patch added support of mmio read and write commands. These commands
can be used to read and write registers from the u-boot command line.
It can be useful in debugging.

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Changed zynqmp command to handle subcommands with U_BOOT_CMD_MKENT
Vipul Kumar [Wed, 11 Jul 2018 09:48:28 +0000 (15:18 +0530)] 
arm64: zynqmp: Changed zynqmp command to handle subcommands with U_BOOT_CMD_MKENT

This patch changed zynqmp command to handle subcommands with
U_BOOT_CMD_MKENT.

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agonet: zynq_gem: Added 64-bit addressing support
Vipul Kumar [Wed, 11 Jul 2018 06:13:19 +0000 (11:43 +0530)] 
net: zynq_gem: Added 64-bit addressing support

This patch added 64-bit addressing support for zynq gem.

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agospi: zynqmp_qspi: Added 64-bit addressing support for qspi
Vipul Kumar [Wed, 11 Jul 2018 06:13:18 +0000 (11:43 +0530)] 
spi: zynqmp_qspi: Added 64-bit addressing support for qspi

This patch added 64-bit addressing support for zynqmp qspi.

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoclk: zynqmp: Fixed the same if/else part error reported by coverity
Vipul Kumar [Wed, 27 Jun 2018 05:14:45 +0000 (10:44 +0530)] 
clk: zynqmp: Fixed the same if/else part error reported by coverity

This patch fixed the same if/else part error by adding the required
source select on the basis of is_pre_src check.

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm/arm64: zynq/zynqmp: pass the PS init file as a kconfig variable
Luca Ceresoli [Fri, 22 Jun 2018 10:40:16 +0000 (12:40 +0200)] 
arm/arm64: zynq/zynqmp: pass the PS init file as a kconfig variable

U-Boot needs to link ps7_init_gpl.c on Zynq or psu_init_gpl.c on
ZynqMP (PS init for short). The current logic to locate this file for
both platforms is:

 1. if a board-specific file exists in
    board/xilinx/zynq[mp]/$(CONFIG_DEFAULT_DEVICE_TREE)/ps?_init_gpl.c
    then use it
 2. otherwise use board/xilinx/zynq/ps?_init_gpl.c

In the latter case the file does not exist in the U-Boot sources and
must be copied in the source tree from the outside before starting the
build. This is typical when it is generated from Xilinx tools while
developing a custom hardware. However making sure that a
board-specific file is _not_ found (and used) requires some trickery
such as removing or overwriting all PS init files (e.g.: the current
meta-xilinx yocto layer).

This generates a few problems:

 * if the source tree is shared among different out-of-tree builds,
   they will pollute (and potentially corrupt) each other
 * the source tree cannot be read-only
 * any buildsystem must add a command to copy the PS init file binary
 * overwriting or deleting files in the source tree is ugly as hell

Simplify usage by allowing to pass the path to the desired PS init
file in kconfig variable XILINX_PS_INIT_FILE. It can be an absolute
path or relative to $(srctree). If the variable is set, the
user-specified file will always be used without being copied
around. If the the variable is left empty, for backward compatibility
fall back to the old behaviour.

Since the issue is the same for Zynq and ZynqMP, add one kconfig
variable in a common place and use it for both.

Also use the new kconfig help text to document all the ways to give
U-Boot the PS init file.

Build-tested with all combinations of:
 - platform: zynq or zynqmp
 - PS init file: from XILINX_PS_INIT_FILE (absolute, relative path,
   non-existing), in-tree board-specific, in board/xilinx/zynq[mp]/
 - building in-tree, in subdir, in other directory

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Albert Aribaud <albert.u.boot@aribaud.net>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: accept an absolute path for PMUFW_INIT_FILE
Luca Ceresoli [Mon, 4 Jun 2018 10:21:01 +0000 (12:21 +0200)] 
arm64: zynqmp: accept an absolute path for PMUFW_INIT_FILE

The value of PMUFW_INIT_FILE is prefixed with "$(srctree)/", thus
forcing it to be a relative path inside the U-Boot source tree. Since
the PMUFW is a binary file generated outside of U-Boot, the PMUFW
binary must be copied inside the U-Boot source tree before the
build.

This generates a few problems:

 * if the source tree is shared among different out-of-tree builds,
   they will pollute (and potentially corrupt) each other
 * the source tree cannot be read-only
 * any buildsystem must add a command to copy the PMUFW binary
 * putting an externally-generated binary in the source tree is ugly
   as hell

Avoid these problems by accepting an absolute path for
PMUFW_INIT_FILE. This would be as simple as removing the "$(srctree)/"
prefix, but in order to keep backward compatibility we rather use the
shell and readlink to get the absolute path even when starting from a
relative path.

Since 'readlink -f' produces an empty string if the file does not
exist, we also add a check to ensure the file configured in
PMUFW_INIT_FILE exists. Otherwise the build would exit successfully,
but produce a boot.bin without PMUFW as if PMUFW_INIT_FILE were empty.

Tested in the 12 possible combinations of:
 - PMUFW_INIT_FILE empty, relative, absolute, non-existing
 - building in-tree, in subdir, in other directory

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Emmanuel Vadot <manu@bidouilliste.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agommc: sdhci: Fixed non high-spped mode issue
Vipul Kumar [Thu, 14 Jun 2018 05:15:53 +0000 (10:45 +0530)] 
mmc: sdhci: Fixed non high-spped mode issue

This patch added SDHCI_QUIRK_BROKEN_HISPD_MODE to force the sdhci
host-controller to non high-speed mode when CONFIG_ZYNQ_HISPD_BROKEN
is defined.

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agospi: zynq_qspi: Fixed incorrect return value error
Vipul Kumar [Thu, 14 Jun 2018 06:46:13 +0000 (12:16 +0530)] 
spi: zynq_qspi: Fixed incorrect return value error

This patch replaced "return 0" with "return status" to fix the
incorrect return value error reported by the coverity.

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agogpio: zynq: Do not check unsigned type that is >= 0
Michal Simek [Wed, 13 Jun 2018 07:05:51 +0000 (09:05 +0200)] 
gpio: zynq: Do not check unsigned type that is >= 0

There is no reason to check that unsigned type that is >= 0.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Wire watchdog internals
Michal Simek [Thu, 19 Apr 2018 13:43:38 +0000 (15:43 +0200)] 
arm64: zynqmp: Wire watchdog internals

Enable watchdog in full U-Boot.

Similar changes were done by:
"arm: zynq: Wire watchdog internals"
(sha1: e6cc3b25d721c3001019f8b44bfaae2a57255162)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agowatchdog: cadence: Use live-tree functions
Michal Simek [Wed, 16 May 2018 08:57:27 +0000 (10:57 +0200)] 
watchdog: cadence: Use live-tree functions

Use live-tree functions.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
7 years agowatchdog: cadence: Show used timeout value
Michal Simek [Thu, 19 Apr 2018 13:22:04 +0000 (15:22 +0200)] 
watchdog: cadence: Show used timeout value

Debug message was showing timeout value which was passed to start
function but there is a checking if this value can be setup.
The patch is moving this debug printf function below checking.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agowatchdog: cadence: Remove useless ioremap
Michal Simek [Thu, 19 Apr 2018 11:51:50 +0000 (13:51 +0200)] 
watchdog: cadence: Remove useless ioremap

There is no need to call ioremap. Also reg pointer is completely unused
in the driver.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Wire watchdog internals
Michal Simek [Wed, 21 Feb 2018 16:04:28 +0000 (17:04 +0100)] 
arm: zynq: Wire watchdog internals

Watchdog is only enabled in full u-boot. Adoption for SPL should be also
done because that's the right place where watchdog should be enabled.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agowatchdog: Add Cadence watchdog driver
Shreenidhi Shedi [Wed, 21 Feb 2018 15:50:20 +0000 (16:50 +0100)] 
watchdog: Add Cadence watchdog driver

This IP can be found on Zynq and ZynqMP devices.
The driver was tested with reset-on-timeout; feature.

Also adding WATCHDOG symbol to Kconfig because it is required.

Signed-off-by: Shreenidhi Shedi <imshedi@gmail.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Added defconfig to enable save env in eeprom
Vipul Kumar [Wed, 30 May 2018 05:36:16 +0000 (11:06 +0530)] 
arm: zynq: Added defconfig to enable save env in eeprom

This patch created defconfig to enable save env in eeprom. After this
patch, user can use zynq_zc706_eeprom_defconfig to enable
CONFIG_ENV_IS_IN_EEPROM.
Also, this patch defined CONFIG_ENV_SIZE for eeprom on the basis
of it's size.

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Add TTC clocks
Rajan Vaja [Wed, 25 Apr 2018 12:34:04 +0000 (05:34 -0700)] 
arm64: zynqmp: Add TTC clocks

PS clock(LPD_APB_CLK) is default clock for TTC. Add this clock
entry in TTC nodes.

Signed-off-by: Rajan Vaja <rajan.vaja@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Disable WP on zcu111
Michal Simek [Wed, 4 Apr 2018 12:08:24 +0000 (14:08 +0200)] 
arm64: zynqmp: Disable WP on zcu111

On this board there is SD slot without WP connected.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Remove broken-cd from zcu100-revC
Michal Simek [Mon, 28 May 2018 13:19:02 +0000 (15:19 +0200)] 
arm64: zynqmp: Remove broken-cd from zcu100-revC

Card detect bit was broken on revA and it is working fine with revC
board that's why this property can be removed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Add ina226 to zcu104 revC
Michal Simek [Tue, 29 May 2018 12:45:13 +0000 (14:45 +0200)] 
arm64: zynqmp: Add ina226 to zcu104 revC

Add new ina226 chip present on i2c bus which wasn't on revA.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agopy: tests: Mark scsi reset test as xfail
Michal Simek [Mon, 28 May 2018 10:26:22 +0000 (12:26 +0200)] 
py: tests: Mark scsi reset test as xfail

Sandbox travis targets enable SCSI commands but without any HDD
connected that's why that commands fails. Mark them as xfail to keep
travis happy till there is better/mainline solution.

Also remove i2c dependency which is not there.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agodefconfigs: Disable ISO_PARTITIONS for amXXXX
Michal Simek [Mon, 28 May 2018 07:08:44 +0000 (09:08 +0200)] 
defconfigs: Disable ISO_PARTITIONS for amXXXX

Disable ISO_PARTITIONS for two amXXXX targets to keep travis happy
about SPL size.
These commands are enabled via DISTRO default in mainline that's why
this change is aligned.

Error message:
arm-linux-gnueabihf-ld.bfd: region `.sram' overflowed by 540 bytes

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agopy: tests: Extend timeout for qspi read twice test
Michal Simek [Thu, 24 May 2018 12:19:36 +0000 (14:19 +0200)] 
py: tests: Extend timeout for qspi read twice test

On some systems reading the whole qspi can take longer than default
timeout.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agopy: tests: Mark mii tests as xfail
Michal Simek [Fri, 25 May 2018 12:06:20 +0000 (14:06 +0200)] 
py: tests: Mark mii tests as xfail

On systems which have mii commands enabled but there is no ethernet
controller these commands fails. For example zcu100, sanbox.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agopy: tests: Add missing net dependencies
Michal Simek [Thu, 24 May 2018 08:04:19 +0000 (10:04 +0200)] 
py: tests: Add missing net dependencies

boot_config2 requires net to be enabled.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Remove spl fpga support
Michal Simek [Thu, 24 May 2018 10:29:45 +0000 (12:29 +0200)] 
arm: zynq: Remove spl fpga support

This is not the way how this should be implemented.
Right now there is fit image format which should be extended to cover
this feature.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agousb: dwc3: Fix travis issues caused by DM_USB code
Michal Simek [Fri, 18 May 2018 11:47:29 +0000 (13:47 +0200)] 
usb: dwc3: Fix travis issues caused by DM_USB code

Edison board requires dwc3_uboot to be availabe when DM_USB is enabled.
Also dwc3-omap is missing pointer to devm_kzalloc function.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoFix misaligned buffer in env_fat_save
Alex Kiernan [Wed, 7 Feb 2018 20:01:54 +0000 (20:01 +0000)] 
Fix misaligned buffer in env_fat_save

When saving the environment on a platform which has DMA alignment
larger than the natural alignment, env_fat_save triggers a debug
message in file_fat_write:

  Saving Environment to FAT... writing uboot.env
  FAT: Misaligned buffer address (9df1c8e0)
  OK

Signed-off-by: Alex Kiernan <alex.kiernan@gmail.com>
7 years agocmd: zynqrsa: Added support to load non-encrypted bitstream
Vipul Kumar [Wed, 9 May 2018 13:40:31 +0000 (19:10 +0530)] 
cmd: zynqrsa: Added support to load non-encrypted bitstream

zynqrsa programs the PL when a partition includes an authenticated
and encrypted bitstream. However, if the partition is only
authenticated there is no PL programming operation because
there was no support to load only authenticated bitstream.

This patch added support to load only authenticated bitstream.

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agopytest: Add pytest case for zynqrsa command
Siva Durga Prasad Paladugu [Thu, 3 May 2018 11:15:01 +0000 (16:45 +0530)] 
pytest: Add pytest case for zynqrsa command

This patch adds pytest case for zynqrsa command
This test runs only in bootmodes other than jtag
It tests authentication of images with valid keys
and invalid keys as well.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agocmd: zynqrsa: Dont use ppk info from image
Siva Durga Prasad Paladugu [Thu, 3 May 2018 11:15:00 +0000 (16:45 +0530)] 
cmd: zynqrsa: Dont use ppk info from image

This patch removes usage of PPK info from image as it
is supposed to use the verified key residing in OCM for
verificationof SPK. u-boot is already reading PPK data
from OCM, so removing the code of reading from image should
be sufficient. The PPK was actually verified and placed in
OCM by bootrom during boot.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Ibai Erkiaga <ibai.erkiaga-elorza@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agommc: sdhci: add SDHCI_QUIRK_BROKEN_HISPD_MODE
Hannes Schmelzer [Wed, 7 Mar 2018 07:00:56 +0000 (08:00 +0100)] 
mmc: sdhci: add SDHCI_QUIRK_BROKEN_HISPD_MODE

Some IP-core implementations of the SDHCI have different troubles on the
silicon where they are placed.

On ZYNQ platform for example Xilinx doesn't accept the hold timing of an
eMMC chip which operates in High-Speed mode and must be forced to
operate in non high-speed mode. To get rid of this
"SDHCI_QUIRK_BROKEN_HISPD_MODE" is introduced.

For more details about this refer to the Xilinx answer-recor #59999
https://www.xilinx.com/support/answers/59999.html

This commit:
- doesn't set HISPD bit on the host-conroller
- reflects this fact within the host-controller capabilities

Upon this the layer above (mmc-driver) can setup the card correctly.

Otherwise the MMC card will be switched into high-speed mode and causes
possible timing violation on the host-controller side.

Signed-off-by: Hannes Schmelzer <oe5hpm@oevsv.at>
Signed-off-by: Hannes Schmelzer <hannes.schmelzer@br-automation.com>
7 years agommc: Changed the datatype of the variable to handle 64-bit arch
Vipul Kumar [Thu, 3 May 2018 06:50:54 +0000 (12:20 +0530)] 
mmc: Changed the datatype of the variable to handle 64-bit arch

This patch changed the datatype of variable "start" from uint to ulong
to work properly on 64-bit machines as well. Also the return type of
get_timer() function is ulong.

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Fix address for tca6416_u97 chip on zcu104
Michal Simek [Tue, 29 May 2018 13:28:43 +0000 (15:28 +0200)] 
arm64: zynqmp: Fix address for tca6416_u97 chip on zcu104

I2c address is not 0x21 but 0x20. This patch is fixing both revA and
revC boards.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agospi: xilinx_spi: Increment tx and rx pointers only if they are valid
Siva Durga Prasad Paladugu [Fri, 4 May 2018 11:53:50 +0000 (17:23 +0530)] 
spi: xilinx_spi: Increment tx and rx pointers only if they are valid

This patch increments tx and rx buf pointers only if they are valid,
otherwise, they dont need to be incremented and its of no use.
Moreover, this patch fixes the issue of inconsistent processor
hang on AC701 while performing operations to spi flash due to these
incorrect operations on rxbuf when it is null.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agocmd: zynqrsa: Added support to load bitstream
Vipul Kumar [Wed, 25 Apr 2018 09:57:53 +0000 (15:27 +0530)] 
cmd: zynqrsa: Added support to load bitstream

This patch added support to check whether the bitstream is full
or none. On the basis of that, it loads the bitstream. Only
full bitstream loading is supported because we don't have a way
to identify it based on data in boot.bin format.

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: env: Added support to save env to spi
Vipul Kumar [Wed, 25 Apr 2018 11:08:21 +0000 (16:38 +0530)] 
arm64: zynqmp: env: Added support to save env to spi

This patch added support to save environment to spi. User
need to enable CONFIG_ENV_IS_IN_SPI_FLASH. This patch also
added support to enable CONFIG_ENV_SIZE, CONFIG_ENV_OFFSET
and CONFIG_ENV_SECT_SIZE through Kconfig.

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agomini-uboot: cse-nor: Enabled CONFIG_MTD_NOR_FLASH for nor in defconfig
Vipul Kumar [Wed, 25 Apr 2018 09:11:45 +0000 (14:41 +0530)] 
mini-uboot: cse-nor: Enabled CONFIG_MTD_NOR_FLASH for nor in defconfig

In mainline with e856bdcf commit, CONFIG_SYS_NO_FLASH renamed to
CONFIG_MTD_NOR_FLASH. And this config was not enabled for cse-nor
and hence nor programming was getting fail as it was not able to
unprotect sector for programming.

This patch fixed this issue. After enabling CONFIG_MTD_NOR_FLASH,
flash programming is working fine.

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agomtd: spi: Set the current bank of flash to zero after doing clear bar
Vipul Kumar [Fri, 20 Apr 2018 05:06:23 +0000 (10:36 +0530)] 
mtd: spi: Set the current bank of flash to zero after doing clear bar

clean_bar() function selecting bank zero but not setting the
flash current bank to zero. After erase operation, bank zero is selected
but the flash current bank is pointing to bank one. So, during
write operation, while trying to write bank one, it actually writes in
bank zero.
This patch fixed this issue by setting the current bank of flash
to zero after doing clear_bar() after erase, write and read operations.

Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Enable debug_uart_init in spl when enabled
Michal Simek [Thu, 19 Apr 2018 10:36:48 +0000 (12:36 +0200)] 
arm: zynq: Enable debug_uart_init in spl when enabled

In past this code was commented and was used for debug purpose.
But there is no reason not to enabled it based on macros.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Setup MMU map for DDR at run time
Nitin Jain [Fri, 20 Apr 2018 07:00:40 +0000 (12:30 +0530)] 
arm64: zynqmp: Setup MMU map for DDR at run time

This patch used for filling the MMU map for DDR at run time based
information read from Device Tree or automatically detected from static
configuration.

Signed-off-by: Nitin Jain <nitin.jain@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agocmd: zynqaes: check aes engine enabled
Ibai Erkiaga [Thu, 5 Apr 2018 12:19:27 +0000 (05:19 -0700)] 
cmd: zynqaes: check aes engine enabled

AES engine cannot be used if has not been enabled at boot time
with an encrypted boot image.

Signed-off-by: Ibai Erkiaga <ibai.erkiaga-elorza@xilinx.com>
Acked-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agospi: spi_flash: Don't read bank address register in 4-byte mode
Siva Durga Prasad Paladugu [Fri, 13 Apr 2018 11:13:16 +0000 (16:43 +0530)] 
spi: spi_flash: Don't read bank address register in 4-byte mode

There is no need to read bank address register when working
in 4-byte mode and hence bypass it.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agozynqmp: spi: Added support for IO mode
Moon John C [Fri, 13 Apr 2018 07:40:46 +0000 (13:10 +0530)] 
zynqmp: spi: Added support for IO mode

This patch added support for device tree "has-io-mode" flag.
This forced the driver to use IO mode instead of DMA. This
flag is necessary for UBIFS to operate correctly with SPI-NOR
devices.

Signed-off-by: Moon John C <John.Moon2@ngc.com>
Signed-off-by: Vipul Kumar <vipul.kumar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agofpga: Fix travis build issues with sys_proto.h inclusion
Siva Durga Prasad Paladugu [Fri, 13 Apr 2018 06:45:50 +0000 (12:15 +0530)] 
fpga: Fix travis build issues with sys_proto.h inclusion

This patch fixes the travis build issue for platforms which dont
have sys_proto.h.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agommc: Resolve the mmc build issues for other platmorms
Siva Durga Prasad Paladugu [Fri, 13 Apr 2018 06:45:49 +0000 (12:15 +0530)] 
mmc: Resolve the mmc build issues for other platmorms

This patch resolve the build issues for mmc while
building for other platforms(eg-s5p_goni).

Signed-off-by: Nitin Jain <nitin.jain@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agospi: spi_flash: Handle dualparallel case for macronix flash
Siva Durga Prasad Paladugu [Fri, 13 Apr 2018 06:38:54 +0000 (12:08 +0530)] 
spi: spi_flash: Handle dualparallel case for macronix flash

This patch handles the dual parallel case while
preserving the QEB bit for macronix flash devices.
This fixes the issue of DMA timeout during probe
of macronix flash devices in dual parallel mode.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Remove uneeded empty line from psu_init* files
Michal Simek [Thu, 12 Apr 2018 08:20:05 +0000 (10:20 +0200)] 
arm64: zynqmp: Remove uneeded empty line from psu_init* files

Remove additional and useless newline which was fixed with upstreaming.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoscsi: ceva: Convert driver to use UCLASS_AHCI instead of SCSI
Michal Simek [Fri, 6 Apr 2018 11:32:52 +0000 (13:32 +0200)] 
scsi: ceva: Convert driver to use UCLASS_AHCI instead of SCSI

In v2018 the patch
"dm: ahci: Correct uclass private data"
(sha1: bfc1c6b4838501d10aa48c0e92eaf70976f4b2dd)
was causing an issue for ceva_sata.
But this issue is not in v2018.05-rc1 but still converting to
UCLASS_AHCI would make more sense.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoRevert "scsi: Add per-device private data for scsi uclass"
Michal Simek [Fri, 6 Apr 2018 11:55:30 +0000 (13:55 +0200)] 
Revert "scsi: Add per-device private data for scsi uclass"

This reverts commit df365a0d76352c4b675444c660cc4eb53b36d51e.

The reason is that next patch is converting ceva driver to UCLASS_AHCI
which is also fixing issue introduced by reported patch.

In mainline there is another fix for that.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agommc: Added support to switch emmc to correct frequency
Vipul Kumar [Mon, 9 Apr 2018 12:45:16 +0000 (18:15 +0530)] 
mmc: Added support to switch emmc to correct frequency

When no-1-8-v is added in device tree, it slows down emmc to 25MHz.
This patch fixed this issue by setting correct emmc frequency.
Now, after adding no-1-8-v is added in device tree, it slows down emmc
to 52MHz.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq_rsa: remove bootcommand configuration
Ibai Erkiaga [Thu, 5 Apr 2018 10:01:37 +0000 (03:01 -0700)] 
arm: zynq_rsa: remove bootcommand configuration

BOOTCOMMAND config setting in the header file is warning generation prome,
as it likely redefines the configuration file setting.

Signed-off-by: Ibai Erkiaga <ibaie@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agocmd: zynqaes: fix dependencies
Ibai Erkiaga [Wed, 28 Mar 2018 14:44:55 +0000 (07:44 -0700)] 
cmd: zynqaes: fix dependencies

CMD_ZYNQ_AES does not depend on CMD_ZYNQ_RSA. Actually RSA requires
AES to be enabled.

Signed-off-by: Ibai Erkiaga <ibaie@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Switch zc702_RSA to distro default configuration
Michal Simek [Wed, 11 Apr 2018 10:42:19 +0000 (12:42 +0200)] 
arm64: zynqmp: Switch zc702_RSA to distro default configuration

This platform should be moved to distro default too.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agospi: Add support for macronix devices mx25u12835f and mx25u25635f
Siva Durga Prasad Paladugu [Wed, 28 Mar 2018 12:36:19 +0000 (18:06 +0530)] 
spi: Add support for macronix devices mx25u12835f and mx25u25635f

This patch add macronix flash devices mx25u12835f and mx25u25635f
to spi flahs ids list.

Signed-off-by: Prashant Mehta <pmeh@xilinx.com>
Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Also remove psu_init setup for ep108
Michal Simek [Wed, 28 Mar 2018 12:55:40 +0000 (14:55 +0200)] 
arm64: zynqmp: Also remove psu_init setup for ep108

This patch should be the part of
"arm64: zynqmp: Remove ep108 board"
(sha1: 56ec77acda5065d015fbfd819462479d63b0b72d)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Sync license year from mainline
Michal Simek [Tue, 27 Mar 2018 13:52:48 +0000 (15:52 +0200)] 
arm64: zynqmp: Sync license year from mainline

Year was updated in mainline that's why this syncup commit.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Use keycode from input/input.h
Michal Simek [Tue, 27 Mar 2018 10:13:13 +0000 (12:13 +0200)] 
arm64: zynqmp: Use keycode from input/input.h

zcu100 could use sw4 as key_power instead of key_down.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Use 96boards labels for zcu100
Michal Simek [Tue, 27 Mar 2018 10:29:38 +0000 (12:29 +0200)] 
arm64: zynqmp: Use 96boards labels for zcu100

Use label for i2c and spi buses.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Sync up license with mainline kernel
Michal Simek [Tue, 27 Mar 2018 08:36:39 +0000 (10:36 +0200)] 
arm64: zynqmp: Sync up license with mainline kernel

Mainline Linux kernel has adopted SPDX header license in a different
format then was used before. This patch is syncing it up.

Also update years in License text and remove Nathalie's email because it
is no longer valid.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Add eeprom reference to eeprom nodes
Michal Simek [Tue, 27 Mar 2018 11:15:17 +0000 (13:15 +0200)] 
arm64: zynqmp: Add eeprom reference to eeprom nodes

Eeprom can contain information which can be used by nvmem drivers.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Add silabs prefix to u69 for zcu102
Michal Simek [Tue, 27 Mar 2018 10:48:30 +0000 (12:48 +0200)] 
arm64: zynqmp: Add silabs prefix to u69 for zcu102

Add vendor prefix to si5341.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Use wifi as node name for wl1831 for zcu100
Michal Simek [Tue, 27 Mar 2018 10:31:53 +0000 (12:31 +0200)] 
arm64: zynqmp: Use wifi as node name for wl1831 for zcu100

Use standard name for wifi node.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Sync up pmic with mainline for zcu100
Michal Simek [Tue, 27 Mar 2018 10:27:43 +0000 (12:27 +0200)] 
arm64: zynqmp: Sync up pmic with mainline for zcu100

pmic should use pmic as node name.
Also remove comments about setting.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Remove double spaces from dts files
Michal Simek [Tue, 27 Mar 2018 11:00:40 +0000 (13:00 +0200)] 
arm64: zynqmp: Remove double spaces from dts files

There is no reason to have double spaces for indentation.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Remove additional comments from dts files
Michal Simek [Tue, 27 Mar 2018 10:01:24 +0000 (12:01 +0200)] 
arm64: zynqmp: Remove additional comments from dts files

Remove additional comments which were removed as the part of upstreaming.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Label 8T49n287 as clock-generator
Michal Simek [Tue, 27 Mar 2018 10:05:38 +0000 (12:05 +0200)] 
arm64: zynqmp: Label 8T49n287 as clock-generator

Based on spec clock chips should be labeled as clock-generators.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Enable watchdog on zcu106
Michal Simek [Tue, 27 Mar 2018 10:04:14 +0000 (12:04 +0200)] 
arm64: zynqmp: Enable watchdog on zcu106

It is enabled in mainline that's why enable it here too.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Use keycode from input/input.h
Michal Simek [Tue, 27 Mar 2018 10:13:13 +0000 (12:13 +0200)] 
arm64: zynqmp: Use keycode from input/input.h

zcu100 could use sw4 as key_power instead of key_down.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Use atmel prefix instead of at
Michal Simek [Tue, 27 Mar 2018 08:54:25 +0000 (10:54 +0200)] 
arm64: zynqmp: Use atmel prefix instead of at

This changes was done in mainline and this patch is just following it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Use maxim prefix for all maxim chips
Michal Simek [Tue, 27 Mar 2018 08:52:40 +0000 (10:52 +0200)] 
arm64: zynqmp: Use maxim prefix for all maxim chips

Use vendor prefix for Maxim chips.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Remove u-boot commands from dts files
Michal Simek [Tue, 27 Mar 2018 08:47:26 +0000 (10:47 +0200)] 
arm64: zynqmp: Remove u-boot commands from dts files

U-Boot commands shouldn't be the part of kernel DTS files.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Remove number from clock-generator node name
Michal Simek [Tue, 27 Mar 2018 08:39:53 +0000 (10:39 +0200)] 
arm64: zynqmp: Remove number from clock-generator node name

There shouldn't be a number appended based on spec.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Use i2c-mux instead of i2cswitch instead
Michal Simek [Tue, 27 Mar 2018 08:38:08 +0000 (10:38 +0200)] 
arm64: zynqmp: Use i2c-mux instead of i2cswitch instead

Based on review from mainline i2c-mux is standard name for i2c switches.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Use s/_/-/g in node name for zcu102 rev1.0
Michal Simek [Tue, 27 Mar 2018 10:50:04 +0000 (12:50 +0200)] 
arm64: zynqmp: Use s/_/-/g in node name for zcu102 rev1.0

Follow spec for node names.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Use backward compatible string for gem
Michal Simek [Tue, 27 Mar 2018 10:53:37 +0000 (12:53 +0200)] 
arm64: zynqmp: Use backward compatible string for gem

Add backward compatible string for gem ("cdns,gem").

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Fix spi flash partition definition for zc1751 dc2
Michal Simek [Tue, 27 Mar 2018 11:09:15 +0000 (13:09 +0200)] 
arm64: zynqmp: Fix spi flash partition definition for zc1751 dc2

Using different node name and label partitions as data.
Also use latest compatible strings based on mainline review.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: dwc3: add flag for supporting hibernation
Anurag Kumar Vulisha [Thu, 11 Jan 2018 11:49:03 +0000 (17:19 +0530)] 
arm64: zynqmp: dwc3: add flag for supporting hibernation

This patch documents the snps,enable-hibernation devicetree
property , which enables the hibernation support for dwc3
driveer when operating in peripheral mode

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Mayank Adesara <mayank.adesara@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: dt: usb: add hibernation wakeup interrupt number
Anurag Kumar Vulisha [Fri, 12 Jan 2018 12:57:47 +0000 (18:27 +0530)] 
arm64: zynqmp: dt: usb: add hibernation wakeup interrupt number

This patch adds the hibernation wakeup interrupt number to
dwc3 node.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Use serdev for zcu100 BT
Michal Simek [Mon, 12 Mar 2018 15:12:33 +0000 (16:12 +0100)] 
arm64: zynqmp: Use serdev for zcu100 BT

Mainline started to use serdev interface for uart attached devices.
Change description to reflect it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: dt: Add new ZynqMP DP changes
Hyun Kwon [Fri, 9 Mar 2018 18:50:11 +0000 (10:50 -0800)] 
arm64: zynqmp: dt: Add new ZynqMP DP changes

This removes old dt contents from all dts files for ZynqMP DisplayPort
and updates all with new bindings. Please note, some of these changes
are only build-tested.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agodevice-tree: serdes: Remove unused lpd register address mapping
Anurag Kumar Vulisha [Thu, 1 Mar 2018 18:25:07 +0000 (23:55 +0530)] 
device-tree: serdes: Remove unused lpd register address mapping

This patch removes the unused lpd register address mapping from
serdes dts node.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Add the devicetree node for ocm apm node
Shubhrajyoti Datta [Thu, 1 Mar 2018 09:42:27 +0000 (15:12 +0530)] 
arm64: zynqmp: Add the devicetree node for ocm apm node

Add the dt node for ocm apm.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Remove deprecated zynqmp-pm node
Rajan Vaja [Fri, 23 Feb 2018 13:31:15 +0000 (05:31 -0800)] 
arm64: zynqmp: Remove deprecated zynqmp-pm node

Remove deprecated "zynqmp-pm" node. It has been replaced by
"zynqmp-firmware" and "zynqmp-power" nodes.

Signed-off-by: Rajan Vaja <rajanv@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agodrivers: pinctrl: Update ZynqMP pin control driver
Rajan Vaja [Fri, 23 Feb 2018 13:31:13 +0000 (05:31 -0800)] 
drivers: pinctrl: Update ZynqMP pin control driver

Replace existng pin control driver with a new version
of ZyqnMP pin control driver. This driver queries pin
information from firmware and registers pin control
accordingly instead of using hard coded pin info.

New pin control driver creates group name from function name
by adding postfix so some group names are different than existing
group names. Deprecate old pin control driver and its DT bindings
and use new pin control DT binding in device tree.

Signed-off-by: Rajan Vaja <rajanv@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoclk: zynqmp: Use firmware APIs in clock driver
Rajan Vaja [Tue, 20 Feb 2018 12:28:37 +0000 (04:28 -0800)] 
clk: zynqmp: Use firmware APIs in clock driver

In existing driver, clocks are registered statically.
Instead of using static clocks, get clock information
from firmware and register clocks accordinglly.

Firmware maintains database of all clocks avaiable for the
variant. So if there is any new clocks are avaiable for
specific variant or some clocks are not present in
variant, Linux driver would not need any change.

To contorl the clocks, use firmware APIs instead of
register read/write. This prevents direct clock control
from any single master(processor) shared between multiple
masters. Firmware can implement this APIs to manage
shared clocks.

Change clock IDs in dts based on new firmware IDs.

Signed-off-by: Tejas Patel <tejasp@xilinx.com>
Signed-off-by: Rajan Vaja <rajanv@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Add PM node compatible with new driver
Rajan Vaja [Wed, 14 Feb 2018 13:16:57 +0000 (05:16 -0800)] 
arm64: zynqmp: Add PM node compatible with new driver

Add "zynqmp-power" node which is compatible with new
ZynqMP SoC power management driver.

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