]> rtime.felk.cvut.cz Git - zynq/linux.git/log
zynq/linux.git
7 years agodrm: xilinx: crtc: Add crtc set config helper xilinx-v2016.1-trd
Preetesh Parekh [Fri, 3 Jun 2016 02:21:46 +0000 (19:21 -0700)]
drm: xilinx: crtc: Add crtc set config helper

The goal is to be able to synchronize resolution changes between the
drm device and emulated fbdev device if both devices are used by an
application e.g. in Qt we use both graphics and video layer whereas
the former is controlled by fbdev and the latter by drm. This patch
propagates resolution changes from the drm device to fbdev. Before
setting the new mode, a copy of the old mode is saved locally and
restored upon last close.

work in progres:
If hot-plug events happen while the application is running, the mode
pre-application start will be restored instead of the mode set by the
last hot-plug event. For example if we switch monitors from 1080p to
4k while the application is running, last close will restore the
fbconsole to 1080p on the 4k monitor.  The framebuffer for the fbdev
emulation is allocated when the driver is initialized, thus hotplug
between monitors with different resolutions
(ex, 2560x1440->1920x1080) wouldn’t work correctly as of now.

Signed-off-by: Preetesh Parekh <preetesh.parekh@xilinx.com>
Tested-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agostaging: apf: Fixed DMA-BUF used of buffers spanning partial pages
Michael Gill [Fri, 3 Jun 2016 01:21:20 +0000 (18:21 -0700)]
staging: apf: Fixed DMA-BUF used of buffers spanning partial pages

The DRM infrastructure when using the xilinx driver has a
potential to return a buffer mapped to a memory region spanning a
partial page, such as in the case of a 1920x1080 resolution
buffer.  When this happens, the scatterlist returned from the DRM
API describes a region rounded up to a whole page.  This patch
trims the returned scatterlist, thus making it usable by a DMA.

Signed-off-by: Michael Gill <gill@xilinx.com>
Signed-off-by: Christian Kohn <christian.kohn@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agostaging: apf: Fix length for non-aligned(4K) DMA-BUF SG
Michael Gill [Fri, 3 Jun 2016 01:21:19 +0000 (18:21 -0700)]
staging: apf: Fix length for non-aligned(4K) DMA-BUF SG

Iterate through DMA-BUF SG list and set length equal to
buffer size.

Signed-off-by: Michael Gill <gill@xilinx.com>
Signed-off-by: Christian Kohn <christian.kohn@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoirqchip: irq-xilinx-intc: Fix race condition in the irq flow handlers
Kedareswara rao Appana [Wed, 1 Jun 2016 12:42:17 +0000 (18:12 +0530)]
irqchip: irq-xilinx-intc: Fix race condition in the irq flow handlers

This commit bd0b9ac405e1 ("genirq: Remove irq argument from irq flow handlers")
Modified the number of arguments of the irq flow handlers.

With the current driver we are seeing a kernel crash
because of the above commit.

Crash log:
Unable to handle kernel NULL pointer dereference at virtual address 0000002c
pgd = c0004000
[0000002c] *pgd=00000000
Internal error: Oops - BUG: 17 [#1] PREEMPT SMP ARM
Modules linked in: axi_timer
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.4.0-xilinx #5
Hardware name: Xilinx Zynq Platform
task: c0923870 ti: c091e000 task.ti: c091e000
PC is at intc_handler+0x18/0x8c
LR is at 0x1
pc : [<c01e91cc>]    lr : [<00000001>]    psr: 60010193
sp : c091fee0  ip : 00000002  fp : 00000001
r10: 00000000  r9 : 00000008  r8 : 00000001
r7 : ef002600  r6 : c091a464  r5 : 00000010  r4 : 00000000
r3 : 00000000  r2 : 00000000  r1 : ef003c40  r0 : 00000000
Flags: nZCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
Control: 18c5387d  Table: 2f16c04a  DAC: 00000051
Process swapper/0 (pid: 0, stack limit = 0xc091e210)
Stack: (0xc091fee0 to 0xc0920000)
fee0: 00000000 00000000 c091a464 ef002600 00000001 c00576ec 00000000 c00579a8
ff00: f8f00100 c0920f7c c091ff30 c092ec00 f8f01100 c00093ac c0383918 60010013
ff20: ffffffff c091ff64 638ff226 c0013014 00000000 00000008 c091d000 ef7d7000
ff40: ef7d6618 00000001 7725eac9 00000008 638ff226 00000008 00000000 00000001
ff60: 00000008 c091ff80 c03838f4 c0383918 60010013 ffffffff 00000051 c03838e8
ff80: 3b993807 00000000 7725eac9 00000008 c091e000 ef7d6618 c091e000 c094d0e0
ffa0: c0919364 c091ffb8 c06aba30 00000000 00000000 c0050538 c0920400 c067ebdc
ffc0: ffffffff ffffffff 00000000 c067e66c 00000000 c06aba30 00000000 c0954b94
ffe0: c0920480 c06aba2c c0924984 0000406a 413fc090 0000807c 00000000 00000000
[<c01e91cc>] (intc_handler) from [<c00576ec>] (generic_handle_irq+0x18/0x28)
[<c00576ec>] (generic_handle_irq) from [<c00579a8>] (__handle_domain_irq+0x88/0xb0)
[<c00579a8>] (__handle_domain_irq) from [<c00093ac>] (gic_handle_irq+0x50/0x90)
[<c00093ac>] (gic_handle_irq) from [<c0013014>] (__irq_svc+0x54/0x90)
Exception stack(0xc091ff30 to 0xc091ff78)
ff20:                                     00000000 00000008 c091d000 ef7d7000
ff40: ef7d6618 00000001 7725eac9 00000008 638ff226 00000008 00000000 00000001
ff60: 00000008 c091ff80 c03838f4 c0383918 60010013 ffffffff
[<c0013014>] (__irq_svc) from [<c0383918>] (cpuidle_enter_state+0xe8/0x1bc)
[<c0383918>] (cpuidle_enter_state) from [<c0050538>] (cpu_startup_entry+0x19c/0x1ec)
[<c0050538>] (cpu_startup_entry) from [<c067ebdc>] (start_kernel+0x328/0x388)
Code: ebf9c52b e3500000 15904010 01a04000 (e595301c)
---[ end trace 1b82d42394b8ee22 ]---
Kernel panic - not syncing: Fatal exception in interrupt
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D         4.4.0-xilinx #5
Hardware name: Xilinx Zynq Platform
[<c00163b8>] (unwind_backtrace) from [<c0012620>] (show_stack+0x10/0x14)
[<c0012620>] (show_stack) from [<c01c824c>] (dump_stack+0x80/0xcc)
[<c01c824c>] (dump_stack) from [<c0014c2c>] (ipi_cpu_stop+0x3c/0x6c)
[<c0014c2c>] (ipi_cpu_stop) from [<c0015344>] (handle_IPI+0x64/0x84)
[<c0015344>] (handle_IPI) from [<c00093d0>] (gic_handle_irq+0x74/0x90)
[<c00093d0>] (gic_handle_irq) from [<c0013014>] (__irq_svc+0x54/0x90)
Exception stack(0xef06bf68 to 0xef06bfb0)
bf60:                   00000000 00000008 c091d000 ef7e3000 ef7e2618 00000001
bf80: 845530d3 00000008 668ca7c3 00000008 00000000 00000001 00000008 ef06bfb8
bfa0: c03838f4 c0383918 600d0013 ffffffff
[<c0013014>] (__irq_svc) from [<c0383918>] (cpuidle_enter_state+0xe8/0x1bc)
[<c0383918>] (cpuidle_enter_state) from [<c0050538>] (cpu_startup_entry+0x19c/0x1ec)
[<c0050538>] (cpu_startup_entry) from [<0000948c>] (0x948c)
---[ end Kernel panic - not syncing: Fatal exception in interrupt

This patch fixes this issue in the driver
--> By updating the number of arguments in the flow handler to one.
--> Use irq_desc_get_chip instead of irq_get_chip

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agostaging: apf: Fixed buffer over run related to page pinning
Michael Gill [Fri, 20 May 2016 19:40:21 +0000 (12:40 -0700)]
staging: apf: Fixed buffer over run related to page pinning

The data structure used for storing pinned user space page
structures was a constant size.  Now it is adjustable
to accommodate large transfers from malloc allocated buffers

Signed-off-by: Michael Gill <gill@xilinx.com>
Tested-by : Radhey Shyam Pandey <radheys@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agostaging: apf: Enable MPSoC SG-DMA and removed clock control
Michael Gill [Fri, 20 May 2016 19:40:05 +0000 (12:40 -0700)]
staging: apf: Enable MPSoC SG-DMA and removed clock control

This patch enables preliminary scatter-gather support for the
apf DMA driver.  This extends only to memory allocated by a call
to sds_alloc, and dma_buf shared buffers.  Zynq support is
unchanged.  Additionally, control over clocks has been removed
due to clocks being correctly configured during petalinux
boot. There is no impact of this on a user.

Signed-off-by: Michael Gill <gill@xilinx.com>
Tested-by : Radhey Shyam Pandey <radheys@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoARM: zynq: Enable RealTek phy for zynq
Michal Simek [Wed, 1 Jun 2016 11:33:14 +0000 (13:33 +0200)]
ARM: zynq: Enable RealTek phy for zynq

RealTek phy is a common phy on some dc cards.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agospi: xilinx: Update devicetree bindings for spi-xilinx
Naga Sureshkumar Relli [Fri, 27 May 2016 10:10:53 +0000 (15:40 +0530)]
spi: xilinx: Update devicetree bindings for spi-xilinx

Update bindings for spi-xilinx.
as per spi-bus.txt rename num-ss-bits to num-cs.
and add fifo-size and bits-per-word properties.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agospi: xilinx: Add devicetree binding for spi-xilinx
Shubhrajyoti Datta [Wed, 9 Mar 2016 08:47:20 +0000 (14:17 +0530)]
spi: xilinx: Add devicetree binding for spi-xilinx

Add a binding document for the spi/spi-xilinx
Sync with mainline.

Signed-off-by: Shubhrajyoti Datta <shubhraj@xilinx.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
7 years agospi: xilinx: Add QUAD support
Naga Sureshkumar Relli [Fri, 27 May 2016 10:10:52 +0000 (15:40 +0530)]
spi: xilinx: Add QUAD support

This patch adds QUAD mode support to axi spi controller.
updated supported mode bits to SPI_TX_QUAD and SPI_RX_QUAD.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agospi: xilinx: Remove bitbang and register with spi core
Naga Sureshkumar Relli [Fri, 27 May 2016 10:10:51 +0000 (15:40 +0530)]
spi: xilinx: Remove bitbang and register with spi core

This patch removes the bitbang layer registration.
it directly register with spi core using spi_register_master and uses
the call backs provided by spi_master struct.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoARM64: zynqmp: Fix phy entry possition in defconfig
Michal Simek [Mon, 30 May 2016 11:39:27 +0000 (13:39 +0200)]
ARM64: zynqmp: Fix phy entry possition in defconfig

Fix phy entry defconfig position.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoARM64: zynqmp: Enable EFI by default
Michal Simek [Mon, 30 May 2016 11:38:41 +0000 (13:38 +0200)]
ARM64: zynqmp: Enable EFI by default

By using toolchain from 2016.1 EFI can be enabled by default.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoDocumentation: r5_remoteproc: update reg example
Wendy Liang [Thu, 26 May 2016 18:23:42 +0000 (11:23 -0700)]
Documentation: r5_remoteproc: update reg example

Update the reg property example to follow the aarch64 platform
device reg property format:
 * address-cells = <2>;
 * size-cells = <2>;

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoremoteproc: ZynqMP R5: remove HVC/SMC functions
Wendy Liang [Thu, 26 May 2016 18:23:41 +0000 (11:23 -0700)]
remoteproc: ZynqMP R5: remove HVC/SMC functions

Cleans up unused HVC/SMC implementation from ZynqMP R5 remoteproc.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agommc: sdhci-of-arasan: Add "SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12" quirk.
P L Sai Krishna [Thu, 26 May 2016 13:54:18 +0000 (19:24 +0530)]
mmc: sdhci-of-arasan: Add "SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12" quirk.

Arasan controller supports AUTO CMD12, this patch adds
"SDHCI_QUIRK_MULTIBLOCK_READ_ACMD12" quirk to enable auto cmd12
feature.
By using auto cmd12 we can also avoid following error message
"Got data interrupt even though no data operation in progress"

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agommc: Modified the SD standard speed to 19MHz.
P L Sai Krishna [Thu, 26 May 2016 13:54:17 +0000 (19:24 +0530)]
mmc: Modified the SD standard speed to 19MHz.

SD standard speed timing was met only at 19MHz and
not 25 MHz, that's why changing driver to 19MHz.
The reason for this is when a level shifter is used
on the board, timing was met for standard speed only
at 19MHz. since this level shifter is commonly required
for high speed modes, the driver is modified to use
standard speed of 19Mhz. This applies only for ZynqMPSoC.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agommc: sdhci-of-arasan: Merge mainline changes.
P L Sai Krishna [Thu, 26 May 2016 13:54:16 +0000 (19:24 +0530)]
mmc: sdhci-of-arasan: Merge mainline changes.

This patch merge the mainline changes for sdhci-of-arasan.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoARM64: zynqmp: Add gpio-keys for zcu102
Michal Simek [Wed, 25 May 2016 18:09:35 +0000 (20:09 +0200)]
ARM64: zynqmp: Add gpio-keys for zcu102

There is gpio push button on MIO22. Add it to DTS to have full board
description.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agodevice-tree: Fix typo in phy binding doc
Michal Simek [Wed, 25 May 2016 13:25:19 +0000 (15:25 +0200)]
device-tree: Fix typo in phy binding doc

Trivial fix.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
7 years agoARM64: zynqmp: Move serdes node to the right location
Michal Simek [Wed, 25 May 2016 13:23:25 +0000 (15:23 +0200)]
ARM64: zynqmp: Move serdes node to the right location

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

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

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodrm: xilinx: dp: Use phy APIs
Hyun Kwon [Wed, 18 May 2016 18:54:35 +0000 (11:54 -0700)]
drm: xilinx: dp: Use phy APIs

Configure the phy through generic PHY APIs.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodma: xilinx: dpdma: Enable interrupts when enable channels
Hyun Kwon [Wed, 18 May 2016 18:54:34 +0000 (11:54 -0700)]
dma: xilinx: dpdma: Enable interrupts when enable channels

The DPDMA can be reset at runtime, thus it's safer to enable / disable
channel related interrupts when each channel is enabled.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM64: zynqmp: zcu102: Add phy phandles to DisplayPort
Hyun Kwon [Tue, 17 May 2016 11:19:10 +0000 (16:49 +0530)]
ARM64: zynqmp: zcu102: Add phy phandles to DisplayPort

Add phy phandles to the DisplayPort DT node.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodt: bindings: drm: dp: Add PHY properties
Hyun Kwon [Tue, 17 May 2016 11:19:09 +0000 (16:49 +0530)]
dt: bindings: drm: dp: Add PHY properties

The ZynqMP can have phy phandles in the DP node to work with ZynqMP
PHY driver.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoRevert "ARM64: zynqmp: Add serdes address space dp driver"
Anurag Kumar Vulisha [Tue, 17 May 2016 11:19:08 +0000 (16:49 +0530)]
Revert "ARM64: zynqmp: Add serdes address space dp driver"

This reverts commit a11218ab4245b17e331472a8293d399f7ecb8d93

Since we are using serdes driver , no need of mapping serdes register
space into DP driver.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Tested-by: Hyun Kwon <hyunk@xilinx.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoRevert "drm: xilinx: dp: Program SERDES register when training"
Anurag Kumar Vulisha [Tue, 17 May 2016 11:19:07 +0000 (16:49 +0530)]
Revert "drm: xilinx: dp: Program SERDES register when training"

This reverts commit a06b1a4444e6304039c32d08562554b260f5904a.

Since we are using serdes driver, so no need to program serdes
for DP link training.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Tested-by: Hyun Kwon <hyunk@xilinx.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodevicetree: usb: Add phys phandle property in usb node
Anurag Kumar Vulisha [Tue, 17 May 2016 11:19:06 +0000 (16:49 +0530)]
devicetree: usb: Add phys phandle property in usb node

This patch adds phys phandle property in usb node for using
zynqmp phy driver.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Tested-by: Hyun Kwon <hyunk@xilinx.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodevicetree: ata: Add phys phandle property in sata node
Anurag Kumar Vulisha [Tue, 17 May 2016 11:19:05 +0000 (16:49 +0530)]
devicetree: ata: Add phys phandle property in sata node

This patch adds phys phandle property in sata node for using
zynqmp phy driver.

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

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

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Tested-by: Hyun Kwon <hyunk@xilinx.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodevicetree: phy: Add ZynqMP GT core support to zcu102
Anurag Kumar Vulisha [Tue, 17 May 2016 11:19:03 +0000 (16:49 +0530)]
devicetree: phy: Add ZynqMP GT core support to zcu102

This patch adds Zynqmp Phy spport to zcu102 board

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Tested-by: Hyun Kwon <hyunk@xilinx.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodevicetree: phy: Add Zynqmp Phy core support to DC1 board
Anurag Kumar Vulisha [Tue, 17 May 2016 11:19:02 +0000 (16:49 +0530)]
devicetree: phy: Add Zynqmp Phy core support to DC1 board

This patch adds Zynqmp Phy support to DC1 boards

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Tested-by: Hyun Kwon <hyunk@xilinx.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodevicetree: phy: add device tree properties for ZynqMP GT core
Anurag Kumar Vulisha [Tue, 17 May 2016 11:19:01 +0000 (16:49 +0530)]
devicetree: phy: add device tree properties for ZynqMP GT core

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

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Tested-by: Hyun Kwon <hyunk@xilinx.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM64: zynqmp: Enable Zynqmp Phy driver by default
Anurag Kumar Vulisha [Tue, 17 May 2016 11:19:00 +0000 (16:49 +0530)]
ARM64: zynqmp: Enable Zynqmp Phy driver by default

This patch enables the zynqmp serdes driver used by high speed
pheripherals like SATA, USB, DP, PCIe and SGMII

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Tested-by: Hyun Kwon <hyunk@xilinx.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agophy: zynqmp: Add DisplayPort custom functions to serdes driver
Hyun Kwon [Tue, 17 May 2016 11:18:59 +0000 (16:48 +0530)]
phy: zynqmp: Add DisplayPort custom functions to serdes driver

The DisplayPort requires programming of preemphasis / voltage swing
value at runtime. These functions will be called from DisplayPort
driver when required.

This patch adds the same.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agophy: zynqmp: Add phy driver for xilinx zynqmp phy core
Anurag Kumar Vulisha [Tue, 17 May 2016 11:18:58 +0000 (16:48 +0530)]
phy: zynqmp: Add phy driver for xilinx zynqmp phy core

ZynqMP SoC has a Gigabit Transceiver with four lanes. All the high speed
peripherals such as USB, SATA, PCIE, Display Port and Ethernet SGMII can
rely on any of the four GT lanes for PHY layer. This patch adds driver
for that ZynqMP GT core.

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

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

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Tested-by: Hyun Kwon <hyunk@xilinx.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agophy: zynqmp: Add dt bindings for ZynqMP PHY
Anurag Kumar Vulisha [Tue, 17 May 2016 11:18:56 +0000 (16:48 +0530)]
phy: zynqmp: Add dt bindings for ZynqMP PHY

This patch adds the document describing dt bindings for ZynqMP
PHY. ZynqMP SOC has a High Speed Processing System Gigabit
Transceiver which provides PHY capabilties to USB, SATA,
PCIE, Display Port and Ehernet SGMII controllers.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Tested-by: Hyun Kwon <hyunk@xilinx.com
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agogpio: xilinx: Add support to set multiple GPIO at once
Iban Rodriguez [Fri, 13 May 2016 10:11:46 +0000 (12:11 +0200)]
gpio: xilinx: Add support to set multiple GPIO at once

Add function to set multiple GPIO of the same chip at the same time
and register it.

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

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

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

Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agogpio: xilinx: Fix irq-handler prototype
Topi Kuutela [Wed, 11 May 2016 11:53:41 +0000 (14:53 +0300)]
gpio: xilinx: Fix irq-handler prototype

Updated irq-handler to correspond to the prototype change of
commit bd0b9ac405e1 ("genirq: Remove irq argument from irq flow
handlers").

Signed-off-by: Topi Kuutela <topi.kuutela@murata.com>
Tested-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoi2c: cadence: Fix power management order of operations
Topi Kuutela [Wed, 11 May 2016 09:55:51 +0000 (12:55 +0300)]
i2c: cadence: Fix power management order of operations

E.g. pm_runtime_set_active must be called while the power
management system is disabled. Fixes extra hanging clk_enable.

Signed-off-by: Topi Kuutela <topi.kuutela@murata.com>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agonet: macb: Fix kernel crash when MACB_EXT_BD is enabled
Punnaiah Choudary Kalluri [Tue, 10 May 2016 18:46:19 +0000 (00:16 +0530)]
net: macb: Fix kernel crash when MACB_EXT_BD is enabled

When MACB_EXT_BD config option is enabled, while sending TCP data, observing
Kernel crash due to NULL pointer dereference.

Added fix to ensure skb is a valid pointer before dereferencing it for
checking the time stamp option.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Acked-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoRevert "drm: xilinx: crtc: Add crtc set config helper"
Michal Simek [Fri, 6 May 2016 05:42:14 +0000 (07:42 +0200)]
Revert "drm: xilinx: crtc: Add crtc set config helper"

This reverts commit dd7c1f0b5c23bcac5046d77bd5e0631e657003a4.

This patch is fixing problem with Qt and X11 when Mali driver is
enabled.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoedac: zynqmp: Add EDAC support for ZynqMP OCM Controller
Naga Sureshkumar Relli [Wed, 27 Apr 2016 04:17:37 +0000 (09:47 +0530)]
edac: zynqmp: Add EDAC support for ZynqMP OCM Controller

This patch adds EDAC support for ZynqMP OCM Controller, this driver
reports CE and UE errors based on interrupt, and also creates ue/ce
sysfs entires for error injection.
Also updated Kconfig and Makefile.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoedac: zynqmp: Add device tree bindings for ZynqMP OCM Controller
Naga Sureshkumar Relli [Wed, 27 Apr 2016 04:17:38 +0000 (09:47 +0530)]
edac: zynqmp: Add device tree bindings for ZynqMP OCM Controller

This patch adds device tree bindings for ZynqMP OCM Controller for
EDAC.

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

Add SMMU description for all tested IPs.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM64: zynqmp: Enable gpio-led as heartbeat on zcu102
Michal Simek [Wed, 20 Apr 2016 11:12:25 +0000 (13:12 +0200)]
ARM64: zynqmp: Enable gpio-led as heartbeat on zcu102

Show user that Linux is alive on the board.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM64: zynqmp: Added supported PM reset IDs and actions
Filip Drazic [Tue, 26 Apr 2016 14:19:59 +0000 (16:19 +0200)]
ARM64: zynqmp: Added supported PM reset IDs and actions

In pm_defs.h added reset lines controlled with PM reset APIs and
flags stating how to configure reset. Updated reset PM API
definitions accordingly.

Signed-off-by: Filip Drazic <filip.drazic@aggios.com>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agonet: ethernet: xilinx: Fix race condition for 10G MAC
Kedareswara rao Appana [Fri, 29 Apr 2016 10:04:22 +0000 (15:34 +0530)]
net: ethernet: xilinx: Fix race condition for 10G MAC

In the driver napi is enabled after interrupts
are being registered. This may casue issue
if there is already data in the mac rx fifo.

If there is already data in the mac rx fifo
in the current driver flow it will trigger RX ISR
there we are disabling RX interrupts again it will
get enabled after processing the packets upto quota
in the napi poll.

But with the current driver flow napi will never be called
resulting no more rx packets being processed(As napi is enabled
at the end of the open function).

This patch fixes this issue.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agonet: ethernet: fix race condition for eth_irq
Kedareswara rao Appana [Fri, 29 Apr 2016 10:04:21 +0000 (15:34 +0530)]
net: ethernet: fix race condition for eth_irq

eth_irq is valid only for 1G Ethernet case.
For 10G MAC this interrupt won't be available.
Fix if condition checks around eth_irq for the same.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoedac: Enable CE and UE interrupts for ZynqMP DDRC
Naga Sureshkumar Relli [Wed, 20 Apr 2016 05:05:20 +0000 (10:35 +0530)]
edac: Enable CE and UE interrupts for ZynqMP DDRC

This patch enables Corrected and Uncorrected Error
interrupts for ZynqMP DDRC controller

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Reviewed-by: Punnaiah Choudary Kalluri<punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM64: zynqmp: Enable fhandle
Michal Simek [Fri, 22 Apr 2016 08:42:15 +0000 (10:42 +0200)]
ARM64: zynqmp: Enable fhandle

It is required by new systemd used on Linaro rootfs used for bring up.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agortc: zynqmp: Update seconds time programming logic
Anurag Kumar Vulisha [Wed, 20 Apr 2016 15:47:35 +0000 (21:17 +0530)]
rtc: zynqmp: Update seconds time programming logic

We program RTC time using SET_TIME_WRITE register and read the RTC
current time using CURRENT_TIME register. When we set the time by
writing into SET_TIME_WRITE Register and immediately try to read the
rtc time from CURRENT_TIME register, the previous old value is
returned instead of the new loaded time. This is because RTC takes
nearly 1 sec to update the  new loaded value into the CURRENT_TIME
register. This behaviour is expected in our RTC IP.

This patch updates the driver to read the current time from SET_TIME_WRITE
register instead of CURRENT_TIME when rtc time is requested within an 1sec
period after setting the RTC time. Doing so will ensure the correct time is
given to the user.

Since there is a delay of 1sec in updating the CURRENT_TIME we are loading
set time +1sec while programming the SET_TIME_WRITE register, doing this
will give correct time without any delay when read from CURRENT_TIME.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
8 years agortc: zynqmp: Write Calibration value before setting time
Anurag Kumar Vulisha [Tue, 12 Apr 2016 12:15:45 +0000 (17:45 +0530)]
rtc: zynqmp: Write Calibration value before setting time

It is suggested to program CALIB_WRITE register with the calibration
value before updating the SET_TIME_WRITE register, doing so will
clear the Tick Counter and force the next second to be signaled
exactly in 1 second.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
8 years agoARM64: zynqmp: Use 32bit size cell format for amba busses
Michal Simek [Thu, 7 Apr 2016 13:11:21 +0000 (15:11 +0200)]
ARM64: zynqmp: Use 32bit size cell format for amba busses

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

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

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM: zynq: Fix usb phy node
Michal Simek [Thu, 7 Apr 2016 09:54:25 +0000 (11:54 +0200)]
ARM: zynq: Fix usb phy node

Compatible string should be the first property in node.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM: zynq: Enable qspi for Zybo
Michal Simek [Thu, 7 Apr 2016 09:52:56 +0000 (11:52 +0200)]
ARM: zynq: Enable qspi for Zybo

Sync with U-Boot dts.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM: zynq: Sort DTS for various boards
Michal Simek [Thu, 7 Apr 2016 09:26:06 +0000 (11:26 +0200)]
ARM: zynq: Sort DTS for various boards

Use the same alphabelical order everywhere.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM: zynq: Use C pre-processor for includes in dts
Michal Simek [Thu, 7 Apr 2016 09:28:12 +0000 (11:28 +0200)]
ARM: zynq: Use C pre-processor for includes in dts

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

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM: zynq: Use spi0 alias for qspi if it is present
Michal Simek [Thu, 7 Apr 2016 09:34:44 +0000 (11:34 +0200)]
ARM: zynq: Use spi0 alias for qspi if it is present

U-Boot Zynq variables expects to have qspi for saving variables as
qspi0.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM: zynq: Add mmc alias for zc702/zc706/zed/zybo
Michal Simek [Thu, 7 Apr 2016 09:23:34 +0000 (11:23 +0200)]
ARM: zynq: Add mmc alias for zc702/zc706/zed/zybo

Add missing mmc alias.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM: zynq: Move gem node to be in proper location
Michal Simek [Thu, 7 Apr 2016 09:22:21 +0000 (11:22 +0200)]
ARM: zynq: Move gem node to be in proper location

Keep alphabetical order in dts.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM64: zynqmp: Enable cadence watchdog driver
Michal Simek [Wed, 13 Apr 2016 12:30:14 +0000 (14:30 +0200)]
ARM64: zynqmp: Enable cadence watchdog driver

It is available on ZynqMP SoC.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodrm: xilinx: crtc: Add crtc set config helper xilinx-v2016.1
Preetesh Parekh [Mon, 25 Apr 2016 19:02:45 +0000 (12:02 -0700)]
drm: xilinx: crtc: Add crtc set config helper

The goal is to be able to synchronize resolution changes between the
drm device and emulated fbdev device if both devices are used by an
application e.g. in Qt we use both graphics and video layer whereas
the former is controlled by fbdev and the latter by drm. This patch
propagates resolution changes from the drm device to fbdev. Before
setting the new mode, a copy of the old mode is saved locally and
restored upon last close.

work in progres:
If hot-plug events happen while the application is running, the mode
pre-application start will be restored instead of the mode set by the
last hot-plug event. For example if we switch monitors from 1080p to
4k while the application is running, last close will restore the
fbconsole to 1080p on the 4k monitor.

Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodrm: xilinx: dp: Soft-reset after link training
Hyun Kwon [Tue, 12 Apr 2016 06:18:08 +0000 (23:18 -0700)]
drm: xilinx: dp: Soft-reset after link training

Soft-reset after link training and before enabling mainstream.
This fixes the screen out-of-sync issue.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Tested-by: Christian Kohn <christian.kohn@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agostaging: apf: Added support for optional stock DMA driver
Michael Gill [Tue, 12 Apr 2016 11:32:44 +0000 (04:32 -0700)]
staging: apf: Added support for optional stock DMA driver

Previously we exclusively used our own driver internal to apf
for the DMA.  This patch adds the option to instead use
the normal Xilinx DMA driver.  This isn't enabled by default.
In addition to the new driver support, this patch introduces
the ability for the user program to poll for the driver
configuration, thus allowing the user program to
use the correct DMA specific code.

Signed-off-by: Michael Gill <gill@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agomedia: adv7604: automatic "default-input" selection
Chris Kohn [Fri, 8 Apr 2016 00:48:51 +0000 (02:48 +0200)]
media: adv7604: automatic "default-input" selection

Add logic such that the "default-input" property becomes unnecessary
for chips that only have one suitable input (ADV7611 by design, and
ADV7612 due to commit 7111cddd "[media] media: adv7604: reduce
support to first (digital) input").

Additionally, Ian's documentation in commit bf9c8227 ("[media] media:
adv7604: ability to read default input port from DT") states that
the "default-input" property should reside directly in the node
for adv7612. Hence, also adjust the parsing to make the implementation
consistent with this.

Signed-off-by: William Towle <william.towle@codethink.co.uk>
Signed-off-by: Ulrich Hecht <ulrich.hecht+renesas@gmail.com>
Requested-by: Chris Kohn <ckohn@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM64: zynqmp: Enable can1 for ep108
Naga Sureshkumar Relli [Tue, 12 Apr 2016 06:16:11 +0000 (11:46 +0530)]
ARM64: zynqmp: Enable can1 for ep108

This patch enables can1 for ep108.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Reviewed-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agostaging: apf: Introductory MPSoC support
Michael Gill [Tue, 12 Apr 2016 05:48:10 +0000 (22:48 -0700)]
staging: apf: Introductory MPSoC support

Code has been moved to compile under 64-bit and 32-bit.
MPSoC cache flushing now supported.  Additionally, ioctl
arguments have been moved to a data-width stable
form, and correct data widths have been used throughout.
This is the first MPSoC supporting patch

Signed-off-by: Michael Gill <gill@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agostaging: apf: Fixed alignment of ioctl args
Michael Gill [Tue, 12 Apr 2016 04:24:03 +0000 (21:24 -0700)]
staging: apf: Fixed alignment of ioctl args

Some changes to the user-space code resulted in a shift in the
alignment of several arguments in structures that are used
to communicate to the apf kernel driver via ioctl.  This mirrors
those changes in the kernel code.

Signed-off-by: Michael Gill <gill@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM64: zynqmp: Added clocks to DT for ep108
VNSL Durga [Mon, 11 Apr 2016 12:13:47 +0000 (17:43 +0530)]
ARM64: zynqmp: Added clocks to DT for ep108

Added clks for ep108 platform.

Signed-off-by: VNSL Durga <vnsldurg@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agostaging: apf: Modifications to match user-space xlnk lib changes
Michael Gill [Fri, 8 Apr 2016 21:13:29 +0000 (14:13 -0700)]
staging: apf: Modifications to match user-space xlnk lib changes

Modified apf driver to conform to changes made in xlnk lib user-space
code.  Primarily this involves changes in internal DMA naming conventions
and layout of structures used in ioctl calls.

Signed-off-by: Michael Gill <gill@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agostaging: apf: Made allocated buffers properly configure TLB.
Michael Gill [Fri, 8 Apr 2016 21:13:22 +0000 (14:13 -0700)]
staging: apf: Made allocated buffers properly configure TLB.

dma_alloc_coherent inherently assumes certain TLB settings, that we were
then manually violating.  Instead, user-space accessed DMA buffers
are allocated using kmalloc, which we can make use of more flexibly.

Signed-off-by: Michael Gill <gill@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agostaging: apf: Fixed an error involving invalidation
Michael Gill [Fri, 8 Apr 2016 21:13:13 +0000 (14:13 -0700)]
staging: apf: Fixed an error involving invalidation

If a CPU wrote data to the cache, instructed a DMA to write
to a sub-region an incomplete cache line, then read the line back,
an incorrect data would be read.  This stemmed from how the CPU
invalidated the D-Cache after the DMA finished writing.  The CPU
would invalidate the entire block, assuming the DMA has written the
entire block, thus losing the data that the CPU wrote that the DMA
did not over-write.  This is resolved by manually flushing the value
down, and invalidating before the DMA write is issued, instead of
invalidating after.

Signed-off-by: Michael Gill <gill@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agostaging: apf: Fixes to error reporting
Michael Gill [Fri, 8 Apr 2016 21:13:06 +0000 (14:13 -0700)]
staging: apf: Fixes to error reporting

There were several instances in which apf code could fail silently.
This patch adds descriptive messages to the kernel debug log instead of
just returning an error code.  This is done to aid future debugging.

Signed-off-by: Michael Gill <gill@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agostaging: apf: Making regular use of constant for DMA structure sizes
Michael Gill [Fri, 8 Apr 2016 21:11:52 +0000 (14:11 -0700)]
staging: apf: Making regular use of constant for DMA structure sizes

Originally a constant was defined to specify sizes of structures
that track DMA state.  This constant was not used, and instead
a literal integer was used when interacting with these structures as
a bound.  This patch makes proper use of the defined constant, and
abandons the literal.

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

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

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodevicetree: udc-xilinx: Fix coding style in binding doc
Michal Simek [Fri, 8 Apr 2016 06:40:11 +0000 (08:40 +0200)]
devicetree: udc-xilinx: Fix coding style in binding doc

Fix indentation in example.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM: zynq: defconfig: Enable ULPI PHYs for Zynq
Punnaiah Choudary Kalluri [Thu, 7 Apr 2016 19:24:00 +0000 (00:54 +0530)]
ARM: zynq: defconfig: Enable ULPI PHYs for Zynq

Enabled the ULPI PHY for Zynq USB controller.

Signed-off-by: Punnaiah Choudary Kalluri <punnaia@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM64: zynqmp: Enable EVDEV for Qt mouse/kb plugin
Manjukumar Matha [Wed, 6 Apr 2016 18:43:49 +0000 (11:43 -0700)]
ARM64: zynqmp: Enable EVDEV for Qt mouse/kb plugin

EVDEV needs to be enabled for mouse/kb to work in QT

Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM64: zynqmp: Change usb node label representation
Naga Sureshkumar Relli [Tue, 5 Apr 2016 12:04:55 +0000 (17:34 +0530)]
ARM64: zynqmp: Change usb node label representation

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

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

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

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoDocumentation: DT: Add binding documentation for axi emaclite
Kedareswara rao Appana [Mon, 4 Apr 2016 07:04:09 +0000 (12:34 +0530)]
Documentation: DT: Add binding documentation for axi emaclite

Add device-tree binding documentation for the axi emaclite driver.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodrm: xilinx: dp: IRQ_HPD requires link status change check.
Andrei-Liviu Simion [Fri, 1 Apr 2016 22:13:32 +0000 (15:13 -0700)]
drm: xilinx: dp: IRQ_HPD requires link status change check.

Check if the link status has changed on an IRQ_HPD in order
to determine if link training is required.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodrm: xilinx: dp: Maximum pre-emphasis of 2 for ZynqMP.
Andrei-Liviu Simion [Fri, 1 Apr 2016 22:13:31 +0000 (15:13 -0700)]
drm: xilinx: dp: Maximum pre-emphasis of 2 for ZynqMP.

DisplayPort on ZynqMP has a maximum pre-emphasis level of 2.
DisplayPort in soft IP has a maximum level of 3.

Signed-off-by: Andrei-Liviu Simion <andrei.simion@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agodrm: xilinx: dp: Program SERDES register when training
Hyun Kwon [Fri, 1 Apr 2016 22:13:30 +0000 (15:13 -0700)]
drm: xilinx: dp: Program SERDES register when training

SERDES registers should be programmed to predefined values
during link training due to the hardware issue. This patch maps
the SERDES registers directly, but the SERDES is shared between
multiple devices. This patch will be reverted once the SERDES driver,
phy-zynqmp is in place.

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

Add missing mmc aliases.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM64: zynqmp: DC5: Add support for XM019 DC5
Siva Durga Prasad Paladugu [Thu, 5 Nov 2015 12:37:26 +0000 (18:07 +0530)]
ARM64: zynqmp: DC5: Add support for XM019 DC5

Add initial support for zc1751 xm019 dc5
support. It has GEM1 and SD0 enabled.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoedac: synopsys: Update ecc error message info
Naga Sureshkumar Relli [Fri, 1 Apr 2016 09:47:40 +0000 (15:17 +0530)]
edac: synopsys: Update ecc error message info

This patch updates the ecc error message info
for zynqmp ddrc. added Block number and Bankgroup
in the message info.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoedac: synopsys: Fix wrong ecc error log info
Naga Sureshkumar Relli [Fri, 1 Apr 2016 09:47:39 +0000 (15:17 +0530)]
edac: synopsys: Fix wrong ecc error log info

Read ecc log info like bankgroup number,bank and blocknumber for CE
and UE from CEADDR1 and UEADDR1 registers respectively. in previous case
we are updating wrong log info.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoedac: synopsys: Fix incorrect defines and masks
Naga Sureshkumar Relli [Fri, 1 Apr 2016 09:47:38 +0000 (15:17 +0530)]
edac: synopsys: Fix incorrect defines and masks

This patch fixes incorrect DDR control width defines and
also ECC_CEADDR1_BLKNR_MASK value.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoedac: synopsys: Add ecc error injection support
Naga Sureshkumar Relli [Fri, 1 Apr 2016 09:47:37 +0000 (15:17 +0530)]
edac: synopsys: Add ecc error injection support

The ZynqMP DDRC controller has data poisoning support
to inject CE or UE errors. this patch adds this support
using sysfs attributes.

created the following sysfs entries to support this.
-> /sys/devices/system/edac/mc/mc0/inject_data_poison
-> /sys/devices/system/edac/mc/mc0/inject_data_error

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agomedia: i2c: adv7511: Fix use with DT
Matthew Fornero [Tue, 29 Mar 2016 14:36:03 +0000 (10:36 -0400)]
media: i2c: adv7511: Fix use with DT

The DT bindings added in commit:

b983a5a3303f68a2b9422deb452ff5e5cd3b806c
("media: i2c: adv7511: Add DT binding to this driver")

were added before support for infoframes were added in commit:

b4dbad8fe3b60466e0d364b34c075117757838f2
("[media] adv7511: log the currently set infoframes")

With the infoframes added, DT based use of the driver will fail to find
the pktmem I2C device and fail to load.

Add a pktmem-addr device tree binding (similar to the edid-addr)
to enable this address to be specified.

Add a cec-addr device tree binding as well, for future use.

Signed-off-by: Matthew Fornero <mfornero@mathworks.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agospi: zynqmp: gqspi: Added separate dummy entry.
P L Sai Krishna [Fri, 18 Mar 2016 17:21:03 +0000 (22:51 +0530)]
spi: zynqmp: gqspi: Added separate dummy entry.

This patch sends dummy as a separate entry.
Break the Address+Cmd+dummy transfer into multiple transfers.
Address+Cmd as one transfer.
Dummy cycles as another transfer.
As per the controller spec, immediate data field of dummy entry
in the GenFifo represent dummy cycles.
Bus width for dummy cycles transfer should be same as
Rx bus width.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agomtd: Added dummy entry in the spi_transfer structure
P L Sai Krishna [Fri, 18 Mar 2016 17:21:02 +0000 (22:51 +0530)]
mtd: Added dummy entry in the spi_transfer structure

This patch does following things.
1. Added dummy entry in the spi_transfer structure.
2. Assigned dummy cycles to dummy member in the transfer
structure during read operation.

Signed-off-by: P L Sai Krishna <lakshmis@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoRevert "ARM: 8430/1: use default ioremap alignment for SMP or LPAE"
Punnaiah Choudary Kalluri [Fri, 1 Apr 2016 09:23:53 +0000 (14:53 +0530)]
Revert "ARM: 8430/1: use default ioremap alignment for SMP or LPAE"

This reverts commit 803e3dbcb4cf80c898faccf01875f6ff6e5e76fd.

With this change the zynq pl353 nand controller is not working
because the ioremap function returning the address that is  not
aligned to the given size.

Still debugging why the nand transactions are failing even if the
virtual address is not aligned to given size.

So, reverting the change till the resolution is found for the above
issue.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agogpio_keys: Added support to read the IRQ_FLAGS from devicetree
Nava kishore Manne [Wed, 30 Mar 2016 07:19:22 +0000 (12:49 +0530)]
gpio_keys: Added support to read the IRQ_FLAGS from devicetree

This patch adds the support to read the IRQ_FLAGS from the device
instead of hard code the flags in gpio_keys_setup_key().

example gpio-keys DT node:

gpio-keys {
compatible = "gpio-keys";
#address-cells = <1>;
#size-cells = <0>;
autorepeat;
sw14 {
label = "sw14";
gpios = <&gpio0 12 1>;
/*
 * Triggering Type:
 *
 * 1 - edge rising
 * 2 - edge falling
 * 4 - level active high
 * 8 - level active low
 *
 */
linux,code = <108>; /* down */
gpio-key,wakeup;
autorepeat;
};
};

Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
8 years agoARM64: zynqmp: Enable all DMA tests in defconfig
Michal Simek [Fri, 1 Apr 2016 08:50:26 +0000 (10:50 +0200)]
ARM64: zynqmp: Enable all DMA tests in defconfig

Enable add DMA tests to cover them by all builds.

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