]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
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>
7 years agoarm64: zynqmp: Add firmware DT node
Rajan Vaja [Wed, 14 Feb 2018 13:16:56 +0000 (05:16 -0800)] 
arm64: zynqmp: Add firmware DT node

Add firmware DT node in ZynqMP device tree. This node
uses bindings as per new firmware interface driver.

Signed-off-by: Rajan Vaja <rajanv@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Change pmufw DT binding node name
Rajan Vaja [Mon, 12 Feb 2018 13:40:06 +0000 (05:40 -0800)] 
arm64: zynqmp: Change pmufw DT binding node name

"firmware" node name can conflict with other /firmware node
where firmware should include all firmware interfaces. Change
existing node name for transition to new firmware interface
which is defined under /firmware node.

Signed-off-by: Rajan Vaja <rajanv@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: remove pin-control properties
Rajan Vaja [Thu, 1 Feb 2018 04:59:16 +0000 (20:59 -0800)] 
arm64: zynqmp: remove pin-control properties

Remove pin control from firmware device tree binding as
pin control settings for firmware are done in firmware only.
Remove the same from bindings documentation.

Signed-off-by: Rajan Vaja <rajanv@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Sync alignment with mainline
Michal Simek [Wed, 17 Jan 2018 15:32:33 +0000 (16:32 +0100)] 
arm64: zynqmp: Sync alignment with mainline

Sync pcie and lpd_dma nodes with mainline version.
Incorrect locations are causing diff in statistics that's why
synchronizations are needed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agodts: xilinx: Correct GT lanes for zcu111 board
Anurag Kumar Vulisha [Thu, 15 Feb 2018 19:28:20 +0000 (00:58 +0530)] 
dts: xilinx: Correct GT lanes for zcu111 board

This patch corrects the GT lanes for zcu111 board

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Sync up licenses with mainline kernel
Michal Simek [Tue, 27 Mar 2018 11:43:05 +0000 (13:43 +0200)] 
arm: zynq: Sync up licenses with mainline kernel

Use different location for SPDX line. Also update dates for new mainline
DTS files.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Use fixed partitions for spi flash for zc770 xm010
Michal Simek [Tue, 27 Mar 2018 11:49:05 +0000 (13:49 +0200)] 
arm: zynq: Use fixed partitions for spi flash for zc770 xm010

Sync with mainline.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Fix eeprom dt nodes
Michal Simek [Tue, 27 Mar 2018 11:48:51 +0000 (13:48 +0200)] 
arm: zynq: Fix eeprom dt nodes

- Use eeprom for node name
- Use atmel compatible string instead of at.
- Add missing labels

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Remove 0x prefixes from cc108
Michal Simek [Tue, 27 Mar 2018 12:31:42 +0000 (14:31 +0200)] 
arm: zynq: Remove 0x prefixes from cc108

The patch fixing issues reported by DTC:
arch/arm/boot/dts/zynq-cc108.dtb: Warning (unit_address_format): Node
/amba/spi@e000d000/flash@0/partition@0x400000 unit name should not have
leading "0x"
arch/arm/boot/dts/zynq-cc108.dtb: Warning (unit_address_format): Node
/amba/spi@e000d000/flash@0/partition@0x800000 unit name should not have
leading "0x"
arch/arm/boot/dts/zynq-cc108.dtb: Warning (unit_address_format): Node
/amba/spi@e000d000/flash@0/partition@0xc00000 unit name should not have
leading "0x"
arch/arm/boot/dts/zynq-cc108.dtb: Warning (unit_address_format): Node
/amba/spi@e000d000/flash@0/partition@0xd00000 unit name should not have
leading "0x"
arch/arm/boot/dts/zynq-cc108.dtb: Warning (unit_address_format): Node
/amba/spi@e000d000/flash@0/partition@0xf00000 unit name should not have
leading "0x"

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoARM: dts: zynq: Add generic compatible string for I2C EEPROM
Javier Martinez Canillas [Thu, 15 Jun 2017 18:54:12 +0000 (20:54 +0200)] 
ARM: dts: zynq: Add generic compatible string for I2C EEPROM

The at24 driver allows to register I2C EEPROM chips using different vendor
and devices, but the I2C subsystem does not take the vendor into account
when matching using the I2C table since it only has device entries.

But when matching using an OF table, both the vendor and device has to be
taken into account so the driver defines only a set of compatible strings
using the "atmel" vendor as a generic fallback for compatible I2C devices.

So add this generic fallback to the device node compatible string to make
the device to match the driver using the OF device ID table.

Signed-off-by: Javier Martinez Canillas <javier@dowhile0.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Use i2c-mux instead of i2cswitch for pca9548
Michal Simek [Tue, 6 Feb 2018 13:00:30 +0000 (14:00 +0100)] 
arm: zynq: Use i2c-mux instead of i2cswitch for pca9548

i2c muxes should described like this.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoimage: fit: Show information about OS type in firwmare case too
Michal Simek [Mon, 26 Mar 2018 14:01:05 +0000 (16:01 +0200)] 
image: fit: Show information about OS type in firwmare case too

SPL ATF implementation requires FIT image with partitions where the one
is Firmware/ATF and another one Firmware/U-Boot. OS field is used for
recording that difference that's why make sense to show values there for
Firmware types.

For example:
 Image 0 (atf)
  Description:  ATF bl31.bin
  Created:      Mon Mar 26 15:58:14 2018
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    51152 Bytes = 49.95 KiB = 0.05 MiB
  Architecture: ARM
  OS:           ARM Trusted Firmware
  Load Address: 0xfffe0000
  Hash algo:    md5
  Hash value:   36a4212bbb698126bf5a248f0f4b5336
 Image 1 (uboot)
  Description:  u-boot.bin
  Created:      Mon Mar 26 15:58:14 2018
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    761216 Bytes = 743.38 KiB = 0.73 MiB
  Architecture: ARM
  OS:           U-Boot
  Load Address: 0x08000000
  Hash algo:    md5
  Hash value:   f22960fe429be72296dc8dc59a47d566

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoimage: fit: Show firmware configuration property if present
Michal Simek [Mon, 26 Mar 2018 13:55:37 +0000 (15:55 +0200)] 
image: fit: Show firmware configuration property if present

SPL ATF support requires to have firmware property which should be also
listed by mkimage -l when images is created.

The patch is also using this macro in spl_fit to match keyword.

When image is created:
 Default Configuration: 'config'
 Configuration 0 (config)
  Description:  ATF with full u-boot
  Kernel:       unavailable
  Firmware:     atf
  FDT:          dtb

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agotools: xilinx: Fix zynq/zynqmp image recognition
Michal Simek [Wed, 14 Mar 2018 10:02:24 +0000 (11:02 +0100)] 
tools: xilinx: Fix zynq/zynqmp image recognition

There is an issue to recognize zynq or zynqmp image because header
checking is just the same. That's why zynqmp images are recognized as
zynq one.
Check unused fields which are initialized to zero in zynq format
(__reserved1 0x38 and __reserved2 0x44) which are initialized for
zynqmp. This should ensure that images are properly recognized by:
./tools/mkimage -l spl/boot.bin

Also show image type as ZynqMP instead of Zynq which is confusing.

Reported-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Tested-by: Alexander Graf <agraf@suse.de>
7 years agokwbimage: Fix out of bounds access
Alexander Graf [Thu, 15 Mar 2018 10:14:19 +0000 (11:14 +0100)] 
kwbimage: Fix out of bounds access

The kwbimage format is reading beyond its header structure if it
misdetects a Xilinx Zynq image and tries to read it. Fix it by
sanity checking that the header we want to read fits inside our
file size.

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Enable booting to ATF
Luca Ceresoli [Mon, 12 Mar 2018 16:18:38 +0000 (17:18 +0100)] 
arm64: zynqmp: Enable booting to ATF

U-Boot is now able to boot to ARM Trusted Firmware (ATF). The boot
flow is SPL(EL3) loads ATF and full u-boot and jump to ATF(EL3) which
pass control to full u-boot(EL2). This has been tested on zcu106, so
enable it in this defconfig.

To generate an image that triggers this booting flow, you need to pass
'-O arm-trusted-firmware' to mkimage.

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: zcu106: fix SPL MMC booting
Luca Ceresoli [Mon, 12 Mar 2018 16:18:37 +0000 (17:18 +0100)] 
arm64: zynqmp: zcu106: fix SPL MMC booting

The U-Boot SPL generated with the current zcu106 defconfig cannot boot
from MMC:

  [...]
  U-Boot SPL 2018.01 (Feb 21 2018 - 17:47:14)
  EL Level:  EL3
  Trying to boot from MMC1
  sdhci_transfer_data: Error detected in status(0x408020)!
  spl_load_image_fat_os: error reading image u-boot.bin, err - -2
  spl_load_image_fat: error reading image u-boot.img, err - -6
  SPL: failed to boot from all boot devices
  ### ERROR ### Please RESET the board ###

Fix by lowering the rpll value. The new value for the RPLL_CTRL
register comes from the current psu_init_gpl.c from the HDF file at
https://github.com/xilinx/hdf-examples/tree/01ad8ea5fd1989abf4ea5a072d019a16cb2bc546/zcu106-zynqmp
(generated by Vivado v2017.4).

RPLL and sdio1_ref clocks before and after this change:

 - Old values: RPLL 1.36 GHz, sdio1_ref 272 MHz
 - New values: RPLL 1.16 GHz, sdio1_ref 233 MHz

Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Cc: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Handle ENXIO error return value properly
Michal Simek [Fri, 23 Feb 2018 12:39:37 +0000 (13:39 +0100)] 
arm: zynq: Handle ENXIO error return value properly

zynq_clk_get_rate() is also returning ENXIO which is not handled now.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Also enable standardized boot methods
Michal Simek [Mon, 26 Mar 2018 06:39:31 +0000 (08:39 +0200)] 
arm64: zynqmp: Also enable standardized boot methods

Enable distro boot commands if xilinx boot fails.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Add new defconfig for zc1275 revB
Siva Durga Prasad Paladugu [Wed, 11 Apr 2018 08:43:05 +0000 (14:13 +0530)] 
arm64: zynqmp: Add new defconfig for zc1275 revB

This patch enables support zc1275 revB board. It has
SD added compared to revA. The same configuration will
work for RevC boards aswell.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoscsi: Add per-device private data for scsi uclass
Michal Simek [Tue, 20 Mar 2018 15:02:21 +0000 (16:02 +0100)] 
scsi: Add per-device private data for scsi uclass

This patch is doing what was done by
"dm: ahci: Correct uclass private data"
(sha1: bfc1c6b4838501d10aa48c0e92eaf70976f4b2dd)
with reverting pointer to allocated space.

It is questionable if sata_ceva should use UCLASS_SCSI or move to
UCLASS_SATA but this investigation hasn't been done yet.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agofpga: Fix the nonsecure bitstream loading issue
Siva Durga Prasad Paladugu [Wed, 14 Mar 2018 18:47:24 +0000 (00:17 +0530)] 
fpga: Fix the nonsecure bitstream loading issue

Xilfpga library expects the size of bitstream in a pointer
but currenly we are passing the size as a value. This patch
fixes this issue.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: nand: Fixed NAND write issue
Vipul Kumar [Sat, 10 Mar 2018 12:22:23 +0000 (17:52 +0530)] 
arm64: zynqmp: nand: Fixed NAND write issue

In commit 67faecc3059b ("arm64: zynqmp: nand: Fixed NAND erase issue for
size 1GiB or more"), ARASAN_NAND_MEM_ADDR1_PAGE_MASK macro changed
to 0xFFFF and the same macro is used in nand write and so that getting
nand write error.
This patch reverted this macro to the 0xFFFF0000 and used
ARASAN_NAND_MEM_ADDR1_COL_MASK in the nand erase function
which is equal to 0xFFFF.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Print the value of pl clocks and wdt clock using clk dump
Vipul Kumar [Wed, 7 Mar 2018 09:22:44 +0000 (14:52 +0530)] 
arm64: zynqmp: Print the value of pl clocks and wdt clock using clk dump

This patch print pl clocks (pl0...pl3) and watchdog
clock using clk dump.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: nand: Fixed NAND erase issue for size 1GiB or more
Vipul Kumar [Mon, 5 Mar 2018 09:54:59 +0000 (15:24 +0530)] 
arm64: zynqmp: nand: Fixed NAND erase issue for size 1GiB or more

NAND erase was not happening for size 1GiB or more. Erase
command was executing successfully but in actual, it was not
erasing.
This patch fixed erase issue for 1 GiB or more size nand.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agopytest: zynq_aes: Add pytest for zynqaes command
Siva Durga Prasad Paladugu [Tue, 6 Mar 2018 12:07:11 +0000 (17:37 +0530)] 
pytest: zynq_aes: Add pytest for zynqaes command

This patch adds pytest for zynqaes commands. It tests
loading encrypted image back to DDR and tests loading
encrypted bitstream to PL using "zynqaes load" command.
This test needs to be executed only in bootmode, if not it
wil be skipped.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agofpga: zynq: Poll for PCFG_DONE if encrypted image is bitstream
Siva Durga Prasad Paladugu [Tue, 6 Mar 2018 12:07:10 +0000 (17:37 +0530)] 
fpga: zynq: Poll for PCFG_DONE if encrypted image is bitstream

This patch polls for PCFG_DONE if encrypted image is bitstream
to ensure that bitstream programming is successful. This also
invokes missing zynq_slcr_devcfg_enable() to bring up axi interface
after programming is done.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agofpga: zynq: Add delay after PCFG_PROG_B change
Siva Durga Prasad Paladugu [Tue, 6 Mar 2018 12:07:09 +0000 (17:37 +0530)] 
fpga: zynq: Add delay after PCFG_PROG_B change

There is delay needed after PCFG_PROGB change if
AES key source is efuse. This fixes the issue of
encrypted bitstream loading with AES efuse as key
source.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agofpga: zynq: aes: Use flush_dcache_range() instead of cache on/off
Siva Durga Prasad Paladugu [Tue, 6 Mar 2018 12:07:08 +0000 (17:37 +0530)] 
fpga: zynq: aes: Use flush_dcache_range() instead of cache on/off

Use flush_dcache_range() instead of dcache disable and
enable as its more meaningful to flush a region than
disabling cache and enabling it back. This fixes the
issue of GEM failure after using zynq aes.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>