]> git.ipfire.org Git - thirdparty/u-boot.git/log
thirdparty/u-boot.git
7 years agoarm64: zynqmp: devicetree: Update GEM0/1/2 clocks
Harini Katakam [Fri, 1 Dec 2017 09:22:12 +0000 (14:52 +0530)] 
arm64: zynqmp: devicetree: Update GEM0/1/2 clocks

- pclk should be lpd_lsbus; correct the same
- Add rx_clk
- Reorder for readability

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Acked-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Add generic compatible string for I2C EEPROM
Javier Martinez Canillas [Thu, 15 Jun 2017 18:54:13 +0000 (20:54 +0200)] 
arm64: zynqmp: 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>
Acked-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Remove undocumented dma properties
Michal Simek [Mon, 30 Oct 2017 08:46:52 +0000 (09:46 +0100)] 
arm64: zynqmp: Remove undocumented dma properties

Remove overfetch, ratectrl, include-sg and src-issue dma properties.
Driver is not using them and they are also not documented in the binding
doc.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Acked-by: Kedareswara rao Appana <appanad@xilinx.com>
7 years agoarm64: zynqmp: Move pinctrl DT node to proper location
Michal Simek [Wed, 6 Dec 2017 10:08:34 +0000 (11:08 +0100)] 
arm64: zynqmp: Move pinctrl DT node to proper location

Nodes should be sorted for easier comparision with other boards.
Move pinctlr to the right location.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Update DT for gpio heartbeat led
Michal Simek [Wed, 6 Dec 2017 10:16:39 +0000 (11:16 +0100)] 
arm64: zynqmp: Update DT for gpio heartbeat led

Use defines rather than raw values for gpio configurations.
Similar change was done for zcu102.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Fix i2c address for fan controller
Michal Simek [Wed, 6 Dec 2017 11:12:19 +0000 (12:12 +0100)] 
arm64: zynqmp: Fix i2c address for fan controller

Fix incorrect i2c address for fan controller.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agonet: xilinx_axi_emac: Remove in/out_be32 handling
Michal Simek [Fri, 1 Dec 2017 13:25:45 +0000 (14:25 +0100)] 
net: xilinx_axi_emac: Remove in/out_be32 handling

There is no need to handle this because conversion to readl/writel
solved this issue.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agonet: xilinx_axi_emac: Use readl and writel for io ops
Siva Durga Prasad Paladugu [Thu, 23 Nov 2017 06:53:12 +0000 (12:23 +0530)] 
net: xilinx_axi_emac: Use readl and writel for io ops

This patch uses readl and writel instead of in_be32 and
out_be32 for io ops as these internally uses readl,
writel for microblaze and for Zynq, ZynqMP there is
no need of endianness conversion and readl, writel
should work straightaway. This patch starts supporting
the driver for Zynq and ZynqMP platforms.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Use u32 type instead of uint32_t
Michal Simek [Mon, 6 Nov 2017 11:55:59 +0000 (12:55 +0100)] 
arm64: zynqmp: Use u32 type instead of uint32_t

Warning is reported by checkpatch.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoxilinx: Remove .gitignore file from board folder
Michal Simek [Tue, 21 Nov 2017 12:09:42 +0000 (13:09 +0100)] 
xilinx: Remove .gitignore file from board folder

These files are not generated anymore.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Enable debug console for zc770-xm011
Michal Simek [Fri, 15 Dec 2017 06:46:12 +0000 (07:46 +0100)] 
arm: zynq: Enable debug console for zc770-xm011

Wire debug console which is useful for early debugging.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm: zynq: Remove trailing whitespaces from ps7_init* zc770 xm011
Michal Simek [Fri, 15 Dec 2017 09:36:22 +0000 (10:36 +0100)] 
arm: zynq: Remove trailing whitespaces from ps7_init* zc770 xm011

Remove traling whitespaces from zc770 xm011 ps7_init_gpl*.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Add identification string for ep108
Michal Simek [Thu, 14 Dec 2017 14:20:08 +0000 (15:20 +0100)] 
arm64: zynqmp: Add identification string for ep108

Add identification string for ep108 to recognize u-boot setup from log.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoarm64: zynqmp: Add revA to identification string for zcu106
Michal Simek [Thu, 14 Dec 2017 14:17:33 +0000 (15:17 +0100)] 
arm64: zynqmp: Add revA to identification string for zcu106

Add revA to identification string as is done for other boards.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Remove unnedded zynq_slcr_get_mio_pin_status
Michal Simek [Tue, 31 Oct 2017 12:43:15 +0000 (13:43 +0100)] 
arm64: zynqmp: Remove unnedded zynq_slcr_get_mio_pin_status

This function is not called by zynqmp.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Setup partid for QEMU to match silicon
Nathan Rossi [Tue, 14 Nov 2017 07:44:32 +0000 (17:44 +1000)] 
arm64: zynqmp: Setup partid for QEMU to match silicon

During board late init the environment is 'setup' to set the partid to 0
for QEMU. Change this so that QEMU targets behave just like silicon and
emulation targets such that partid is set to auto.

Signed-off-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm: zynq: Fix zynq_cse_qspi testing
Michal Simek [Fri, 3 Nov 2017 12:01:14 +0000 (13:01 +0100)] 
arm: zynq: Fix zynq_cse_qspi testing

The patch:
"dts: zynq_cse: Add dts files for all mini u-boot qspi configurations"
(sha1: d7446e231302d82dced967598cf95fb751830bcb)
changed device tree wiring which is handling SPL configuration.
zynq_cse_qspi target is using zc706 as testing platform that's why
it is required to link zynq-cse-qspi-single with zc706 ps7_init*.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm: zynq: Remove unused slcr qspi macros
Michal Simek [Thu, 2 Nov 2017 09:56:24 +0000 (10:56 +0100)] 
arm: zynq: Remove unused slcr qspi macros

These macros are not used anywhere that's why removing them.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: remove unnecessary logical constraint
Heinrich Schuchardt [Thu, 12 Oct 2017 23:14:27 +0000 (01:14 +0200)] 
arm64: zynqmp: remove unnecessary logical constraint

In

if (a || b)
else if (!a)

the constraint (!a) is always true if else is reached and
can be removed.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agopy: tests: Fix configspec marking for nand tests
Michal Simek [Tue, 31 Oct 2017 14:20:55 +0000 (15:20 +0100)] 
py: tests: Fix configspec marking for nand tests

Fix marking for nand tests. Create multiple markers.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Enable debug uart for zc1751 dc5
Michal Simek [Tue, 31 Oct 2017 13:23:27 +0000 (14:23 +0100)] 
arm64: zynqmp: Enable debug uart for zc1751 dc5

Showing uart earlier.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Update all psu_init for zc1751 dc2-dc5
Michal Simek [Mon, 30 Oct 2017 14:44:19 +0000 (15:44 +0100)] 
arm64: zynqmp: Update all psu_init for zc1751 dc2-dc5

psu_init* files are obsolete and these one are the latest one from
20171019.

dpll_prog is commented out.

dc5 is taken from hwflow 2017.3 20171031.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Remove CMD_RSA for zcu100 and zcu104
Michal Simek [Thu, 19 Oct 2017 10:42:26 +0000 (12:42 +0200)] 
arm64: zynqmp: Remove CMD_RSA for zcu100 and zcu104

This should be the part of:
"Revert "cmd: rsa: Add support for authenticationg images using rsa""
(sha1: b89c684f581a5a168af3e1051944a16dec56d639)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: update psu_init_gpl* files for zc1751-dc1
Michal Simek [Wed, 18 Oct 2017 13:35:21 +0000 (15:35 +0200)] 
arm64: zynqmp: update psu_init_gpl* files for zc1751-dc1

Origin psu_init files are not fully setup system timer (freq reg)

Issue was caused by this patch:
"arm64: zynqmp: Do not setup time if already setup"
(sha1: 20d730f8f5c85196e38896a72bfa1b2a3f6c7913)
where setting up CLKACT bit was enough for CLK detection in connection
to actual vivado version.

dpll_prog() is commented because it is not called.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agospl: Call spl_start_uboot also in case of RAM based boot
Michal Simek [Fri, 8 Sep 2017 12:10:33 +0000 (14:10 +0200)] 
spl: Call spl_start_uboot also in case of RAM based boot

For Xilinx ZynqMP this is filling handoff structure for ATF.
Without this patch handoff structure is not filled and ATF doesn't know
what to do.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agomtd: spi-nor: Added support for Spansion S25FL064L flash part
Vipul Kumar [Thu, 16 Nov 2017 10:20:56 +0000 (15:50 +0530)] 
mtd: spi-nor: Added support for Spansion S25FL064L flash part

JEDEC ID for S25FL064L falsh part is added.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add support for CG/EG/EV device detection
Michal Simek [Tue, 22 Aug 2017 12:58:53 +0000 (14:58 +0200)] 
arm64: zynqmp: Add support for CG/EG/EV device detection

Version string has unused fields 31:20 which can be used for exporting 9
bits from efuse IPDISABLE regs to recognize eg/cg/ev devices.

These efuse bits are setup for certain devices.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Move zcu102 to zcu102 revA
Michal Simek [Fri, 22 Sep 2017 11:25:07 +0000 (13:25 +0200)] 
arm64: zynqmp: Move zcu102 to zcu102 revA

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: remove smmu info from lpd dma channels
Naga Sureshkumar Relli [Tue, 8 Aug 2017 07:38:25 +0000 (13:08 +0530)] 
arm64: zynqmp: remove smmu info from lpd dma channels

ARM Linux SMMU implementation supports only 16 context banks.
To have SMMU support for all relevant peripherals, smmu information in
lpd dma channels are commented by default. Users can add back by
uncommenting the smmu info.

Keep there #stream-id-cells because stream-id-cells property is
mandatory for SMMU driver over xen.
Since just removing "iommus" property suffice to bypass SMMU over
native linux,SMMU would be still bypassed for lpd-dma over linux.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Mubin Sayyed <mubinusm@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: dts: zynqmp: Update the GPU address size
Hyun Kwon [Tue, 22 Aug 2017 01:54:29 +0000 (18:54 -0700)] 
arm64: dts: zynqmp: Update the GPU address size

The correct register size is 0x10000, otherwise
it overlaps with other register space.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add missing gpio property to dtsi
Michal Simek [Wed, 30 Aug 2017 06:06:11 +0000 (08:06 +0200)] 
arm64: zynqmp: Add missing gpio property to dtsi

All gpio controllers should contain this property.
This property is not checked by the code that's why this issue wasn't
found earlier.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add support for ZynqMP RSA H/W accelerator
Nava kishore Manne [Tue, 19 Sep 2017 09:10:55 +0000 (14:40 +0530)] 
arm64: zynqmp: Add support for ZynqMP RSA H/W accelerator

This patch adds support for ZynqMP RSA H/W accelerator.

Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add support for zynqmp SHA3 H/W accelerator
Nava kishore Manne [Tue, 19 Sep 2017 09:10:52 +0000 (14:40 +0530)] 
arm64: zynqmp: Add support for zynqmp SHA3 H/W accelerator

This patch Adds support for zynqmp SHA3 H/W accelerator.

Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Sync sdhci nodes for zcu102/zcu106
Michal Simek [Thu, 5 Oct 2017 08:08:58 +0000 (10:08 +0200)] 
arm64: zynqmp: Sync sdhci nodes for zcu102/zcu106

Use the same location across projects.

This is just the same change as was done by:
"dts: zynqmp: Add no-1-8-v property to sdhci1 node"
(sha1: da811c4511ef9caeb95f9a22fe49d38bd8e56ded)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Fix SD on zcu104
Soren Brinkmann [Fri, 25 Aug 2017 21:11:04 +0000 (14:11 -0700)] 
arm64: zynqmp: Fix SD on zcu104

With a micro-sd interface, no write protect signal is available. Also,
for SD to work the no-1-8-v property needs to be specified.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Enable watchdog for zcu100 revB and revC
Michal Simek [Mon, 31 Jul 2017 09:21:12 +0000 (11:21 +0200)] 
arm64: zynqmp: Enable watchdog for zcu100 revB and revC

Add missing watchdog node for zcu100 revB/revC.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Remove max-frequency for wifi chip
Michal Simek [Mon, 14 Aug 2017 09:30:28 +0000 (11:30 +0200)] 
arm64: zynqmp: Remove max-frequency for wifi chip

There is no reason to limit freq for wifi.
Chip operates up to 52MHz.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Update sd properties for dc5
Srinivas Goud [Tue, 22 Aug 2017 09:08:46 +0000 (14:38 +0530)] 
arm64: zynqmp: Update sd properties for dc5

This patch adds below properties to sd node for dc5 board dts
-> no-1-8-v
-> xlnx,mio_bank

Signed-off-by: Srinivas Goud <srinivas.goud@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agopy: test_gpio: Add support for GPIO pytest
Vipul Kumar [Tue, 12 Sep 2017 12:31:07 +0000 (18:01 +0530)] 
py: test_gpio: Add support for GPIO pytest

This patch tests the gpio commands using the
gpio data from boardenv file.

Also one test will show the default status of all the gpio's
supported by the processor.

Signed-off-by: Vipul Kumar <vipulk@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodts: zynqmp: Add no-1-8-v property to sdhci1 node
Siva Durga Prasad Paladugu [Tue, 26 Sep 2017 12:46:35 +0000 (18:16 +0530)] 
dts: zynqmp: Add no-1-8-v property to sdhci1 node

This patch adds no-1-8-v property to sdhci1 node for zcu102
and zcu106 such that SD operates at 50MHz by default. The
property no-1-8-v can be removed to operate SD at 200Mhz
mode if hw supports.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodts: zynqmp: mini_qspi: Changes misc frequnecy to 125MHz
Siva Durga Prasad Paladugu [Fri, 22 Sep 2017 12:35:52 +0000 (18:05 +0530)] 
dts: zynqmp: mini_qspi: Changes misc frequnecy to 125MHz

Change misc clock to 125MHz as this frequnecy is being used
by qspi driver and this is what we ship as a part of defaults.
This fixes the issue with Spansion parts programming.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoRevert "cmd: rsa: Add support for authenticationg images using rsa"
Siva Durga Prasad Paladugu [Tue, 19 Sep 2017 09:06:40 +0000 (14:36 +0530)] 
Revert "cmd: rsa: Add support for authenticationg images using rsa"

This reverts commit bc778f87ca5fce48717416bd995a53aa6a8f9d22.

The current authentication and device key support have
security violations as mentioned below and hence these
features have to be reverted.
- Devicekey support from Non secure software prone to DPA attack.
- Current authentication using single RSA key pair and not associated
  with device which is security violation.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoRevert "arm64: zynqmp: Add support for verifying authenticated images"
Siva Durga Prasad Paladugu [Tue, 19 Sep 2017 09:06:39 +0000 (14:36 +0530)] 
Revert "arm64: zynqmp: Add support for verifying authenticated images"

This reverts commit 5651de299b5069c79c2cdd0cb4552a7d7ea61d8f.

The current authentication and device key support have
security violations as mentioned below and hence these
features have to be reverted.
- Devicekey support from Non secure software prone to DPA attack.
- Current authentication using single RSA key pair and not associated
  with device which is security violation.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoRevert "cmd: fpga: Update loads command help to handle devicekey support"
Siva Durga Prasad Paladugu [Tue, 19 Sep 2017 09:06:38 +0000 (14:36 +0530)] 
Revert "cmd: fpga: Update loads command help to handle devicekey support"

This reverts commit 938e2ecf16734862d565ca6b649f059e36bf4ae2.

The current authentication and device key support have
security violations as mentioned below and hence these
features have to be reverted.
- Devicekey support from Non secure software prone to DPA attack.
- Current authentication using single RSA key pair and not associated
  with device which is security violation.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoRevert "fpga: zynqmp: Add support to use devicekey for encrypted bitstreams"
Siva Durga Prasad Paladugu [Tue, 19 Sep 2017 09:06:37 +0000 (14:36 +0530)] 
Revert "fpga: zynqmp: Add support to use devicekey for encrypted bitstreams"

This reverts commit 474183b258a0c4dd5f01cf80b8f279cefcaf2464.

The current authentication and device key support have
security violations as mentioned below and hence these
features have to be reverted.
- Devicekey support from Non secure software prone to DPA attack.
- Current authentication using single RSA key pair and not associated
  with device which is security violation.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoRevert "cmd: aes: Add support for using device key while decryption"
Siva Durga Prasad Paladugu [Tue, 19 Sep 2017 09:06:36 +0000 (14:36 +0530)] 
Revert "cmd: aes: Add support for using device key while decryption"

This reverts commit b83240362a3fe90f985ccbe129a0dc9b90be4b17.

The current authentication and device key support have
security violations as mentioned below and hence these
features have to be reverted.
- Devicekey support from Non secure software prone to DPA attack.
- Current authentication using single RSA key pair and not associated
  with device which is security violation.

Signed-off-by: Siva Durga Prasad Paladugu <siva.durga.paladugu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add support for Xilinx zc1275 board
Michal Simek [Thu, 3 Aug 2017 11:49:24 +0000 (13:49 +0200)] 
arm64: zynqmp: Add support for Xilinx zc1275 board

This patch adds support for Xilinx zc1275 board.
The defconfig for compilation is xilinx_zynqmp_zc1275_revA_defconfig

Only QSPI(single) and uarts are wired on this board.
This configuration is taken based on schematics and not tested on real
board yet.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add support for Xilinx zc1254 board
Siva Durga Prasad Paladugu [Thu, 20 Apr 2017 06:55:11 +0000 (12:25 +0530)] 
arm64: zynqmp: Add support for Xilinx zc1254 board

This patch adds support for Xilinx zc1254 board.
The defconfig for compilation is xilinx_zynqmp_zc1254_revA_defconfig

Only QSPI(single) and uarts are wired on this board.

There is an issue with time setup where 1s sleep takes 3s.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add new ID for RFSoC
Michal Simek [Fri, 2 Jun 2017 06:08:59 +0000 (08:08 +0200)] 
arm64: zynqmp: Add new ID for RFSoC

This ID is available on zc1254.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agozynq: cse_nand: Increase malloc size for cse and target
Siva Durga Prasad Paladugu [Thu, 14 Sep 2017 11:15:59 +0000 (16:45 +0530)] 
zynq: cse_nand: Increase malloc size for cse and target

This patch increases malloc pool size for cse nand target
as the provided 4k is not sufficient for and and hence
incrasing it to big 128K. 128K would nt be an issue for
cse_nand as it anyway runs from DDR and has sufficient
space for flashing. This solves issue of programming
fail while using it for flashing purpose from SDK.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoKconfig: Move config SYS_MALLOC_LEN to Kconfig for zynq
Siva Durga Prasad Paladugu [Thu, 14 Sep 2017 11:15:57 +0000 (16:45 +0530)] 
Kconfig: Move config SYS_MALLOC_LEN to Kconfig for zynq

This patch moves the the config SYS_MALLOC_LEN to
Kconfig. It will be just for Zynq arch and to do
will be for all other archs.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agozynq: zc770_xm010: Decrease initial malloc size
Siva Durga Prasad Paladugu [Fri, 8 Sep 2017 11:55:24 +0000 (17:25 +0530)] 
zynq: zc770_xm010: Decrease initial malloc size

This patch decreases initial malloc size as keeping
it more decreases the init stack size and hence
causing exception due to stack overflow. Also 0x800
should be fine for malloc before relocation.
The initial stack pointer is calculated as below.
                                 CONFIG_SYS_INIT_RAM_SIZE - \
                                 GENERATED_GBL_DATA_SIZE)

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agopy: qspi: Add imxtract dependency
Michal Simek [Fri, 8 Sep 2017 11:47:41 +0000 (13:47 +0200)] 
py: qspi: Add imxtract dependency

ep108 target is not enabling it that's why this failure was found.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agopy: net: Do not call config@2 if doesn't exists
Michal Simek [Fri, 8 Sep 2017 09:05:27 +0000 (11:05 +0200)] 
py: net: Do not call config@2 if doesn't exists

Do not call config@2 images if they are not present in image.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agopy: i2c: Do not run i2c eeprom test on qemu
Michal Simek [Fri, 8 Sep 2017 08:09:17 +0000 (10:09 +0200)] 
py: i2c: Do not run i2c eeprom test on qemu

qemu has no i2c eeprom wired.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agopy: test_qspi: Update qspi tests to run at different frequencies
Siva Durga Prasad Paladugu [Fri, 1 Sep 2017 10:49:40 +0000 (16:19 +0530)] 
py: test_qspi: Update qspi tests to run at different frequencies

This patch updates the qspi tests to run at five different
randomized frequency values. This test gets the frequency
range to be tested from the board_env as qspi range will
vary for different flash devices.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agopy: test_qspi: Increase timeout value for erase all test
Siva Durga Prasad Paladugu [Fri, 1 Sep 2017 10:49:39 +0000 (16:19 +0530)] 
py: test_qspi: Increase timeout value for erase all test

Increase timeout value to worst case value as erase all will
take more time depending on flash size

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agopy: test_qspi: Remove qspi_detected flag
Siva Durga Prasad Paladugu [Fri, 1 Sep 2017 10:49:38 +0000 (16:19 +0530)] 
py: test_qspi: Remove qspi_detected flag

This patch removes qspi_detected flag because if
a test has been failed then pytest framework will reset
board and continue with other test. In this case from
pytest point of view it already probed the device but
from device side it hasnt probed after reset. So removing
this flag allows device to probe the qspi for every test
and works even if one test failed in between.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agospi: zynq_qspi: Determine stacked mode using is-stacked
Vipul Kumar [Fri, 1 Sep 2017 13:33:41 +0000 (19:03 +0530)] 
spi: zynq_qspi: Determine stacked mode using is-stacked

Determine stacked configuration using is-stacked property in dts
Incase if is-stacked is not defined in dts, default to single
mode. This change was done in order to be aligned with kernel.
Modified the required dts files as well.

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>
8 years agospi: zynqmp_qspi: Determine stacked mode using is-stacked
Vipul Kumar [Fri, 1 Sep 2017 13:33:40 +0000 (19:03 +0530)] 
spi: zynqmp_qspi: Determine stacked mode using is-stacked

Determine stacked configuration using is-stacked property in dts
Incase if is-stacked is not defined in dts, default to single
mode. This change was done in order to be aligned with kernel.
Modified the required dts files as well.

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>
8 years agocmd: aes: Add support for using device key while decryption
Siva Durga Prasad Paladugu [Mon, 21 Aug 2017 13:49:48 +0000 (19:19 +0530)] 
cmd: aes: Add support for using device key while decryption

This patch adds support for using device key while decryption
Devicekey is nothing but a key which was programmed in device
such as eFUSE or BBRAM. Having this feature support in this
command helps to inform hardware to use key from device instead
of user provided key.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Fix zcu106 spl files
Michal Simek [Tue, 22 Aug 2017 12:15:18 +0000 (14:15 +0200)] 
arm64: zynqmp: Fix zcu106 spl files

This patch should be the part of:
"arm64: zynqmp: Label zcu106 with board revision"
(sha1: f554cdda498f1d535396d8dbc82ccc3317bdf822)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agomicroblaze: Remove kintex7 bootb command
Michal Simek [Wed, 16 Aug 2017 08:49:10 +0000 (10:49 +0200)] 
microblaze: Remove kintex7 bootb command

This feature is in tree for a long time but it is completely untested.
Removes this untested feature.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Enable bootmenu on zcu100 revC
Michal Simek [Fri, 4 Aug 2017 13:05:17 +0000 (15:05 +0200)] 
arm64: zynqmp: Enable bootmenu on zcu100 revC

Enabling bootmenu feature.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add new psu_init for zcu100 revC
Michal Simek [Wed, 9 Aug 2017 08:41:59 +0000 (10:41 +0200)] 
arm64: zynqmp: Add new psu_init for zcu100 revC

Update psu_init which has different ddr setting which fixing DP flickering
issue caused by low DDR bandwidth.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agomtd: nand: Use the calculated ecc address for updating ecc register
Siva Durga Prasad Paladugu [Wed, 9 Aug 2017 11:23:51 +0000 (16:53 +0530)] 
mtd: nand: Use the calculated ecc address for updating ecc register

This patch corrects the ecc address calculation before updating
to ecc register. The ecc address has to be calculated based on
page, oob and ecc sizes of the device.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add missing zynq_board_read_rom_ethaddr() prototype
Michal Simek [Mon, 31 Jul 2017 08:37:09 +0000 (10:37 +0200)] 
arm64: zynqmp: Add missing zynq_board_read_rom_ethaddr() prototype

Add missing zynq_board_read_rom_ethaddr() prototype reported by sparse.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: mp: Correct the R5 release sequence
Siva Durga Prasad Paladugu [Tue, 1 Aug 2017 10:54:52 +0000 (16:24 +0530)] 
arm64: zynqmp: mp: Correct the R5 release sequence

This patch corrects the R5 release sequence by adding the
below steps.
1. Flush dcache to ensure that image loaded into memory.
2. Keep R5 reset just to ensure R5 in reset.
3. Disable caches before accesing TCM as with out this
   A53 can do speculative and may result in ECC failures
   if TCM's are not intialized. So, it is always better
   to disable dcaches before accessing TCM and enable back.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Reported-by: John Linn <linnj@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Dont define CONFIG_MP through header file
Siva Durga Prasad Paladugu [Tue, 1 Aug 2017 10:54:51 +0000 (16:24 +0530)] 
arm64: zynqmp: Dont define CONFIG_MP through header file

Dont define CONFIG_MP through .h file, define it through defconfig as
it now moved to Kconfig. This ensures all dependent configs enabled.

This patch just removes MP support from existing platforms because
access to TCM/OCM was removed by patch
"arm64: zynqmp: Do not map unused OCM/TCM region"
(sha1: 4256d81f99f111731dd8196d680b00de849f9672)
and enabling CONFIG_MP re enables OCM/TCM which again result in
failures with isolation.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Enable config DEFINE_TCM_OCM_MMAP if CONFIG_MP defined
Siva Durga Prasad Paladugu [Tue, 1 Aug 2017 10:54:50 +0000 (16:24 +0530)] 
arm64: zynqmp: Enable config DEFINE_TCM_OCM_MMAP if CONFIG_MP defined

This modifies default value of config DEFINE_TCM_OCM_MMAP
to yes if CONFIG_MP is defined MP supports needs OCM and TCM
part of memory map.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agocmd: Kconfig: Move CONFIG_MP to Kconfig
Siva Durga Prasad Paladugu [Tue, 1 Aug 2017 10:54:49 +0000 (16:24 +0530)] 
cmd: Kconfig: Move CONFIG_MP to Kconfig

This patch moves CONFIG_MP to Kconfig

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Sync defconfig location
Michal Simek [Tue, 1 Aug 2017 12:18:35 +0000 (14:18 +0200)] 
arm64: zynqmp: Sync defconfig location

xilinx_zynqmp_mini_qspi has incorrect location for one symbol.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agozynqmp: tapdelays: Remove usage of SD0_OTAPDLYENA and SD1_OTAPDLYENA
Siva Durga Prasad Paladugu [Tue, 1 Aug 2017 05:36:15 +0000 (11:06 +0530)] 
zynqmp: tapdelays: Remove usage of SD0_OTAPDLYENA and SD1_OTAPDLYENA

This patch removes usage SD0_OTAPDLYENA and SD1_OTAPDLYENA bits.
This bits have impact on functionality of RTL due to one issue in
RTL where SD0_OTAPDLYENA (Bit 6) has been wrongly connected to both
SD0 and SD1 instances. This makes SD1_OTPDLYENA redundant. Also, these
signals are not used anywhere in silicon and hence there is
really no need to set these bits.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: avoid out of buffer access
Heinrich Schuchardt [Sun, 30 Jul 2017 20:18:18 +0000 (22:18 +0200)] 
arm64: zynqmp: avoid out of buffer access

strncat(a, b, c) appends a maximum of c characters plus the 0 byte
to a.

In board_init we first write 4 characters plus 0 byte to version.
So only ZYNQMP_VERSION_SIZE - 5 additional characters fit into
version.

The problem was indicated by cppcheck.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add new psu_init* files for zcu104 with proper DP setup
Michal Simek [Wed, 26 Jul 2017 07:18:44 +0000 (09:18 +0200)] 
arm64: zynqmp: Add new psu_init* files for zcu104 with proper DP setup

Changes are related DP clock setup.
psu_init* are generated with Vivado v2017.3 with these paramaters:
-board zcu104 -build hdf -ddr ddr4auto2133_component -clk video

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Setup correct 2GB memory size for zcu104
Michal Simek [Wed, 26 Jul 2017 08:19:42 +0000 (10:19 +0200)] 
arm64: zynqmp: Setup correct 2GB memory size for zcu104

Documentation incorrectly stated that board has 4GB but it was incorrect
and board has only physical 2GB.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Remove additional phy-names for second GT lane
Michal Simek [Tue, 20 Jun 2017 10:43:52 +0000 (12:43 +0200)] 
arm64: zynqmp: Remove additional phy-names for second GT lane

This should be the part of:
"ARM64: zynqmp: zcu102: Use only one lane for DP"
(sha1: 0fef1fb0fd555a3fa2cb056b36b3245b15bf24b3)
where second GT line was removed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Enable watchdog by default
Shubhrajyoti Datta [Thu, 6 Apr 2017 06:58:14 +0000 (12:28 +0530)] 
arm64: zynqmp: Enable watchdog by default

Enable watchdog in dts for zcu102.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Use zcu102 revB dts file instead of revA
Michal Simek [Tue, 25 Jul 2017 10:55:22 +0000 (12:55 +0200)] 
arm64: zynqmp: Use zcu102 revB dts file instead of revA

Remove already fixed nodes from revB and also add compatible property
with rev1.0 string.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add nvmem i2c decoding to zcu102 rev1.0
Michal Simek [Mon, 19 Jun 2017 12:29:35 +0000 (14:29 +0200)] 
arm64: zynqmp: Add nvmem i2c decoding to zcu102 rev1.0

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Move dts zcu102 to zcu102-revA
Michal Simek [Thu, 20 Jul 2017 08:58:50 +0000 (10:58 +0200)] 
arm64: zynqmp: Move dts zcu102 to zcu102-revA

Not using board revision is causing confusion about which board is
supported and tested. Mark dts files exactly with board revision which
was tested. When new board revision arives it can be symlink if SW view is
the same. Also add -revX suffix to compatible string because user space
tools are parsing this string and can change behavior depends of board
revision.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Label zcu106 with board revision
Michal Simek [Thu, 20 Jul 2017 08:53:15 +0000 (10:53 +0200)] 
arm64: zynqmp: Label zcu106 with board revision

Not using board revision is causing confusion about which board is
supported and tested. Mark dts files exactly with board revision which was
tested. When new board revision arives it can be symlink if SW view is
the same. Also add -revX suffix to compatible string because user space
tools are parsing this string and can change behavior depends of board
revision.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: usb: Correct IOMMU node for making SMMU work with USB
Anurag Kumar Vulisha [Tue, 20 Jun 2017 10:55:16 +0000 (16:25 +0530)] 
arm64: zynqmp: usb: Correct IOMMU node for making SMMU work with USB

This patch makes SMMU work by moving the iommus node under the dwc3 child
entry from parent node.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add quirk for enabling workaround for BULK IN streams
Anurag Kumar Vulisha [Fri, 30 Jun 2017 10:28:09 +0000 (15:58 +0530)] 
arm64: zynqmp: Add quirk for enabling workaround for BULK IN streams

This patch adds support for enabling workaround for BULK IN stream
rings by adding "xhci-stream-quirk" flag to dts node. Enabling this
flag activates the timer for every BULK IN stream ring at the time
of queuing TRB's into BULK IN stream ring.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add GUCTL1 flags for USB dwc3 controller
Anurag Kumar Vulisha [Wed, 10 May 2017 14:12:02 +0000 (19:42 +0530)] 
arm64: zynqmp: Add GUCTL1 flags for USB dwc3 controller

This patch updates the device tree binding properties for programming
GUCTL1 register bit 9 & 10 for adding HW workarounds in dwc3 controller.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Enabled CCI support for USB
Manish Narani [Mon, 27 Mar 2017 12:17:00 +0000 (17:47 +0530)] 
arm64: zynqmp: Enabled CCI support for USB

This patch adds CCI support for USB when CCI is enabled in design.
This patch also adds 'reg' property for Xilinx USB 3.0 IP. The 'reg'
property is added in order to modify a register in that to enable
coherency in Hardware.

Also add address to unit name to avoid dtc warning

Signed-off-by: Manish Narani <mnarani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: sdhci: set host quirk2 for no 1.8V support for 1.0 silicon
Manish Narani [Wed, 19 Jul 2017 15:46:33 +0000 (21:16 +0530)] 
arm64: zynqmp: sdhci: set host quirk2 for no 1.8V support for 1.0 silicon

This patch sets host quirk2 bit field for No 1.8V supported in case of
1.0 silicon. The 1.0 silicon doesn't have support for UHS-I modes. This
property will ensure the SD runs on High Speed mode.

Signed-off-by: Manish Narani <mnarani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add SMMU support for SATA IP
Anurag Kumar Vulisha [Tue, 4 Jul 2017 14:33:42 +0000 (20:03 +0530)] 
arm64: zynqmp: Add SMMU support for SATA IP

AXI master interface in CEVA AHCI controller requires two unique
Write/Read ID tags per port. This is because, ahci controller uses
different AXI ID[3:0] bits for identifying non-data transfers(like
reading descriptors, updating PRD tables, etc) and data transfers
(like sending/receiving FIS).To make SMMU work with SATA we need to
add correct SMMU stream id for SATA. SMMU stream id for SATA is
determined based on the AXI ID[1:0] as shown below

SATA SMMU ID =  <TBU number>, 0011, 00, 00, AXI ID[1:0]
Note: SATA in  ZynqMp uses TBU1 so TBU number = 0x1, so
      SMMU ID = 001, 0011, 00, 00, AXI ID[1:0]

Since we have four different AXI ID[3:0] (2 for port0 & 2 for port1
as said above) we get four different SMMU stream id's combinations
for SATA. These AXI ID can be configured using PAXIC register.
In this patch we assumed the below AXI ID values

 Read ID/ Write ID for Non-Data Port0 transfers = 0
 Read ID/ Write ID for Data Port0 transfers = 1
 Read ID/ Write ID for Non-Data Port1 transfers = 2
 Read ID/ Write ID for Data Port1 transfers = 3

Based on the above values,SMMU stream ID's for SATA will be 0x4c0 &
0x4c1 for PORT0, 0x4c2 & 0x4c3 for PORT1. These values needed to be
added to iommus dts property. This patch does the same.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: dts: xilinx: fix PCI bus dtc warnings
Rob Herring [Wed, 22 Mar 2017 02:03:13 +0000 (21:03 -0500)] 
arm64: dts: xilinx: fix PCI bus dtc warnings

dtc recently added PCI bus checks. Fix these warnings.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: "Sören Brinkmann" <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Fpga region should have different cells sizes
Michal Simek [Wed, 5 Jul 2017 13:50:42 +0000 (15:50 +0200)] 
arm64: zynqmp: Fpga region should have different cells sizes

Address and size cells should be 2/2 instead of 1/1.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Label whole PL part as fpga_full region
Nava kishore Manne [Mon, 22 May 2017 06:35:17 +0000 (12:05 +0530)] 
arm64: zynqmp: Label whole PL part as fpga_full region

This will simplify dt overlay structure for the whole PL.

Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Reduced min-residency time for idle state node
Jolly Shah [Wed, 14 Jun 2017 22:03:52 +0000 (15:03 -0700)] 
arm64: zynqmp: Reduced min-residency time for idle state node

Changed min-residence to 10ms(was 100 ms) for cpu-sleep-0.
Tried lower values 5ms and 8ms and it worked fine with Debug Off.
But to accommodate PM Debug On case, 10 ms is required. With this
change, low power idle state is into effect more frequently.
Measured boot time with PM debugs On and Off. No change observed
compared to 100ms value.

Signed-off-by: Jolly Shah <jollys@xilinx.com>
Acked-by: Will Wong <willw@xilinx.com>
Tested-by: Koteswararao Nayudu <kotin@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Remove leading 0s from mtd table for spi flashes
Michal Simek [Wed, 5 Jul 2017 12:50:44 +0000 (14:50 +0200)] 
arm64: zynqmp: Remove leading 0s from mtd table for spi flashes

dtc reports issues with it.
arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm016-dc2.dtb: Warning
(unit_address_format): Node
/amba/spi@ff040000/spi0_flash0@0/spi0_flash0@00000000 unit name should
not have leading 0s
arch/arm64/boot/dts/xilinx/zynqmp-zc1751-xm016-dc2.dtb: Warning
(unit_address_format): Node
/amba/spi@ff050000/spi1_flash0@0/spi1_flash0@00000000 unit name should
not have leading 0s
arch/arm64/boot/dts/xilinx/zynqmp-ep108.dtb: Warning
(unit_address_format): Node
/amba/spi@ff040000/spi0_flash0@0/spi0_flash0@00000000 unit name should
not have leading 0s
arch/arm64/boot/dts/xilinx/zynqmp-ep108.dtb: Warning
(unit_address_format): Node
/amba/spi@ff050000/spi1_flash0@0/spi1_flash0@00000000 unit name should
not have leading 0s

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Move nodes which have no reg property out of bus
Michal Simek [Wed, 5 Jul 2017 12:51:42 +0000 (14:51 +0200)] 
arm64: zynqmp: Move nodes which have no reg property out of bus

Nodes without reg properties shouldn't be placed in amba node.
Move them out.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Change clock name for dp_aclk
Michal Simek [Fri, 7 Jul 2017 09:15:49 +0000 (11:15 +0200)] 
arm64: zynqmp: Change clock name for dp_aclk

dp_aclk is using clock0 as node name and dp_aclk as reference
which is really bad thing to do. This patch is changing node name to
dp_aclk.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Add gpio line names to zcu100 revB and revC
Michal Simek [Wed, 19 Jul 2017 08:09:01 +0000 (10:09 +0200)] 
arm64: zynqmp: Add gpio line names to zcu100 revB and revC

Add gpio line names for fixed PS part. This can be reused by new
libgpiod library (https://github.com/brgl/libgpiod).
Examples are also available at tools/gpio.

EMIO gpio PL part needs to be generated to cover current HW design.
By purpose there is MIO/EMIO separation for easier EMIO description.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Remove no-1-8-v property to add UHS-I support for SD
Siva Durga Prasad Paladugu [Tue, 25 Jul 2017 06:21:40 +0000 (11:51 +0530)] 
arm64: zynqmp: Remove no-1-8-v property to add UHS-I support for SD

This patch removes the property 'no-1-8-v' to add support
for Running SD in UHS-I mode. This will enable SD to operate
at 1.8V and maximum of 200MHz frequency if the SD card supports
the same

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agommc: zynq_sdhci: Add quirk no 1.8v for silicon version 1.0
Siva Durga Prasad Paladugu [Tue, 25 Jul 2017 06:21:39 +0000 (11:51 +0530)] 
mmc: zynq_sdhci: Add quirk no 1.8v for silicon version 1.0

This patch adds quirk no 1.8v for silicon version 1.0 as 1.0
silicon doesnt support UHS.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Make chip_id routine to handle based on el.
Siva Durga Prasad Paladugu [Tue, 25 Jul 2017 06:21:37 +0000 (11:51 +0530)] 
arm64: zynqmp: Make chip_id routine to handle based on el.

Modify chip_id() routine such that to handle based on
the current el. Also make it available even if FPGA is
not enabled in system such it can be used always.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoarm64: zynqmp: Make chip_id a global routine()
Siva Durga Prasad Paladugu [Tue, 25 Jul 2017 06:21:38 +0000 (11:51 +0530)] 
arm64: zynqmp: Make chip_id a global routine()

This patch makes chip_id() as a global routine so that
it can be used in other places as required.

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