]> rtime.felk.cvut.cz Git - zynq/linux.git/log
zynq/linux.git
6 years agoimx274: Fix error handling xilinx-v2017.4 xilinx-v2017.4
Sakari Ailus [Thu, 2 Nov 2017 03:22:30 +0000 (20:22 -0700)]
imx274: Fix error handling

Fix error handling in driver probe and unregister the correct control handler
in driver remove.

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Christian Kohn <christian.kohn@xilinx.com>
Reviewed-by: Vishal Sagar <vishal.sagar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx: sdirxss: Add V4L control for 3G Level B support
Vishal Sagar [Tue, 7 Nov 2017 11:22:45 +0000 (16:52 +0530)]
v4l: xilinx: sdirxss: Add V4L control for 3G Level B support

Adds control to determine if current 3G level is 3G level B or not.

Signed-off-by: Vishal Sagar <vsagar@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agospi: zynqmp-gqspi direct read made word aligned.
Holden Sandlar [Tue, 7 Nov 2017 05:35:23 +0000 (11:05 +0530)]
spi: zynqmp-gqspi direct read made word aligned.

in gqspi driver direct read is updated with the word aligned read.
For reading file which is not page aligned word aligned read is
required in IO mode, DMA mode handles this by default.

Signed-off-by: Holden Sandlar <holden.sandlar@ultra-fei.com>
Signed-off-by: Tejas Prajapati Rameshchandra <tejaspra@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoRevert "spi: zynqmp-gqspi direct read made word aligned"
Tejas Prajapati Rameshchandra [Tue, 7 Nov 2017 05:35:22 +0000 (11:05 +0530)]
Revert "spi: zynqmp-gqspi direct read made word aligned"

This reverts commit b1e87c90a26e911b98fa018b7fb46b6cc4f845fe.
Patch should contain the signed off of original submitter.

Signed-off-by: Tejas Prajapati Rameshchandra <tejaspra@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: dp_sub: debugfs kernel crash fix
Tejas Upadhyay [Fri, 3 Nov 2017 08:40:27 +0000 (01:40 -0700)]
drm: xilinx: dp_sub: debugfs kernel crash fix

In debugfs kern_buff was freed from current position,
rather it should be freed from start.

Signed-off-by: Tejas Upadhyay <tejasu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: dp: debugfs kernel crash fix
Tejas Upadhyay [Fri, 3 Nov 2017 08:40:26 +0000 (01:40 -0700)]
drm: xilinx: dp: debugfs kernel crash fix

In debugfs kern_buff was freed from current position,
rather it should be freed from start.

Signed-off-by: Tejas Upadhyay <tejasu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodma: xilinx: dpdma: debugfs kernel crash fix
Tejas Upadhyay [Fri, 3 Nov 2017 08:40:25 +0000 (01:40 -0700)]
dma: xilinx: dpdma: debugfs kernel crash fix

In debugfs kern_buff was freed from current position,
rather it should be freed from start.

Signed-off-by: Tejas Upadhyay <tejasu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agostaging: apf: Fix warnings in apf drivers
Michael Gill [Tue, 31 Oct 2017 18:26:52 +0000 (11:26 -0700)]
staging: apf: Fix warnings in apf drivers

This is a small patch to address a number of compiler warnings
and style problems in the apf drivers.  No features or functional
changes are associated with this patch.

Signed-off-by: Michael Gill <gill@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agostaging: apf: Remove unused variable
Michal Simek [Mon, 30 Oct 2017 09:34:32 +0000 (10:34 +0100)]
staging: apf: Remove unused variable

There is no reason to use status variable. Return value directly.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agospi: zynqmp-gqspi direct read made word aligned
Tejas Prajapati Rameshchandra [Thu, 2 Nov 2017 10:55:43 +0000 (16:25 +0530)]
spi: zynqmp-gqspi direct read made word aligned

in gqspi driver direct read is updated with the word aligned read.
For reading file which is not page aligned word aligned read is
required in IO mode, DMA mode handles this by default.

Signed-off-by: Tejas Prajapati Rameshchandra <tejaspra@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agomtd: nand: fix for mtd nand_oob test
Naga Sureshkumar Relli [Tue, 31 Oct 2017 07:17:19 +0000 (12:47 +0530)]
mtd: nand: fix for mtd nand_oob test

mtd nand oob test gives reset to nand device at the start.
This will be problem for the nand devices which are configured for
nvddr modes. i.e controller and device both are not is same mode,
resulting failure in mtd-oob test. this patch fixes this with out
issuing reset.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: crtc: disabling SDI for zynq(arm)
Saurabh Sengar [Fri, 3 Nov 2017 05:21:32 +0000 (10:51 +0530)]
drm: xilinx: crtc: disabling SDI for zynq(arm)

Disabling SDI functionality for arm systems, as SDI
is currently supported only for zynqmp.
This fixes the compilation issue for arm

Signed-off-by: Saurabh Sengar <saurabhs@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: crtc: Adding sdi vblank support in xlnx crtc
Saurabh Sengar [Mon, 30 Oct 2017 18:16:42 +0000 (23:46 +0530)]
drm: xilinx: crtc: Adding sdi vblank support in xlnx crtc

Adding drm sdi vblank support in xilinx crtc

Signed-off-by: Saurabh Sengar <saurabhs@xilinx.com>
Acked-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: sdi: adding vblank support
Saurabh Sengar [Mon, 30 Oct 2017 18:16:41 +0000 (23:46 +0530)]
drm: xilinx: sdi: adding vblank support

Adding vblank support APIs in SDI drm driver.
In order to export these APIs added the header
file so that it can be used by crtc.

Signed-off-by: Saurabh Sengar <saurabhs@xilinx.com>
Acked-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: vtc: exporting interrupt APIs
Saurabh Sengar [Mon, 30 Oct 2017 18:16:40 +0000 (23:46 +0530)]
drm: xilinx: vtc: exporting interrupt APIs

Exporting interrupt APIs outside of vtc driver.
Also adding new vblank specific enable/disable APIs

Signed-off-by: Saurabh Sengar <saurabhs@xilinx.com>
Acked-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 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>
6 years agochar: xilinx_devcfg: Fix regression
Michael Hennerich [Fri, 27 Oct 2017 09:38:04 +0000 (11:38 +0200)]
char: xilinx_devcfg: Fix regression

Fixed regression introduced by remove volatile in
'a920e66a043 ("char: xilinx_devcfg: Fix warnings in the driver")'

removed volatile around dma_done and error_status without further actions.
This fix prevents these variables from being optimized away without being
read.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: sdi: adding psf mode support
Saurabh Sengar [Fri, 20 Oct 2017 11:55:56 +0000 (17:25 +0530)]
drm: xilinx: sdi: adding psf mode support

Adding Progressive Segmented Frame support in sdi Tx driver.

For psf modes, input should be double the output framerate
For 30 psf output, input vrefresh should be 60
For 25 psf output, input vrefresh should be 50
For 24 psf output, input vrefresh should be 48

Signed-off-by: Saurabh Sengar <saurabhs@xilinx.com>
6 years agoedac: synopsys: fix incorrect macro defines
Naga Sureshkumar Relli [Wed, 18 Oct 2017 10:59:26 +0000 (16:29 +0530)]
edac: synopsys: fix incorrect macro defines

device_config[31:30] in MSTR register of ddrc Indicates the configuration
of the device used in the system as follows
- 00 - x4 device
- 01 - x8 device
- 10 - x16 device
- 11 - x32 device
for x16 and x32, instead of 2 and 3 we added 0x10 and 0x11 which is wrong.
This patch corrects these macro defines.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agostaging: apf: Fix sg-dma memory leak
Michael Gill [Wed, 18 Oct 2017 19:51:49 +0000 (12:51 -0700)]
staging: apf: Fix sg-dma memory leak

There was a slow memory leak that occurred when repeatedly running
the init/shutdown sequence for the sg-dma.  This resolves that
leak.

Signed-off-by: Michael Gill <gill@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: sdi: omnitek box modes
Saurabh Sengar [Mon, 16 Oct 2017 13:02:33 +0000 (18:32 +0530)]
drm: xilinx: sdi: omnitek box modes

Tested with new sdi compliance Omnitek box.
Based on this box modifying SDI DRM_MODE table.
Adding the support for below new modes:
- 1920x1080i@48
- 2048x1080i@48
- 2048x1080i@50
- 2048x1080i@60
- 1920x1080@48
- 3840x2160@48
Correcting 3 other resolutions value as well observed
while testing.
- 1920x1080i@50
- 4096x2160@48Hz
- 1920x1080i@96Hz

Signed-off-by: Saurabh Sengar <saurabhs@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: vtc: removing hard coded values for signal polarity
Saurabh Sengar [Fri, 13 Oct 2017 10:12:57 +0000 (15:42 +0530)]
drm: xilinx: vtc: removing hard coded values for signal polarity

removing hard coded values for following signal polarity parameters,
and taking from vm.flags instead.
This will help clients driver to program signal polarity as per
drivers need.

- hsync
- vsync
- hblank
- vblank
- field_id

Signed-off-by: Saurabh Sengar <saurabhs@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: sdi: Passing signal polarity values to vtc
Saurabh Sengar [Fri, 13 Oct 2017 10:12:56 +0000 (15:42 +0530)]
drm: xilinx: sdi: Passing signal polarity values to vtc

Passing video signal polarity values to vtc, in order to configure
signal polarity exactly as per resolution.

Signed-off-by: Saurabh Sengar <saurabhs@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: crtc: Passing signal polarity values to vtc
Saurabh Sengar [Fri, 13 Oct 2017 10:12:55 +0000 (15:42 +0530)]
drm: xilinx: crtc: Passing signal polarity values to vtc

Passing video signal polarity values to vtc, in order to configure
signal polarity exactly as per resolution.

Signed-off-by: Saurabh Sengar <saurabhs@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: vtc: adding interlaced support
Saurabh Sengar [Fri, 13 Oct 2017 10:12:54 +0000 (15:42 +0530)]
drm: xilinx: vtc: adding interlaced support

Adding interlaced video support in vtc driver.

Signed-off-by: Saurabh Sengar <saurabhs@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: sdi: Adding 3G-B support in drm SDI driver
Saurabh Sengar [Fri, 13 Oct 2017 10:12:53 +0000 (15:42 +0530)]
drm: xilinx: sdi: Adding 3G-B support in drm SDI driver

Adding sdi mode 3G-B support in driver.
3G-B works in PSF modes hence setting the st352 payload
calculation accordingly.

Signed-off-by: Saurabh Sengar <saurabhs@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodma: xilinx: xilinx_dma: Fix compilation warning
Kedareswara rao Appana [Tue, 17 Oct 2017 10:32:15 +0000 (16:02 +0530)]
dma: xilinx: xilinx_dma: Fix compilation warning

This patch fixes the below sparse warning in the driver
drivers/dma/xilinx/xilinx_dma.c: In function ‘xilinx_vdma_dma_prep_interleaved’:
drivers/dma/xilinx/xilinx_dma.c:1589:43: warning: variable ‘prev’ set but not used [-Wunused-but-set-variable]
  struct xilinx_vdma_tx_segment *segment, *prev = NULL;

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodma: xilinx: axidmatest: Fix race conditions in the test client
Kedareswara rao Appana [Mon, 16 Oct 2017 08:52:41 +0000 (14:22 +0530)]
dma: xilinx: axidmatest: Fix race conditions in the test client

This patch does the below
--> Test client is limiting the test buffer size to 700
remove the check for the same also this patch increases the
default value of test buf size from 64 to 16k.
--> Terminate the existing transactions before freeing the dma channel.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodma: xilinx: Differentiate probe based on the IP type
Kedareswara rao Appana [Mon, 16 Oct 2017 08:52:40 +0000 (14:22 +0530)]
dma: xilinx: Differentiate probe based on the IP type

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodma: xilinx: Fix race conditions in the driver for cdma
Kedareswara rao Appana [Mon, 16 Oct 2017 08:52:39 +0000 (14:22 +0530)]
dma: xilinx: Fix race conditions in the driver for cdma

This patch fixes the below issues
--> when hardware is idle we need to toggle the SG bit
inorder to update new value to the current descriptor
register other wise undefined results will occur.
--> Halt bit is not valid for cdma case add checks
for the same.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodma: xilinx: Add support for memory sg transactions for cdma
Kedareswara rao Appana [Mon, 16 Oct 2017 08:52:38 +0000 (14:22 +0530)]
dma: xilinx: Add support for memory sg transactions for cdma

This patch adds support for memory sg transactions
(prep_sg) support for CDMA.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx: sdirxss: Add V4L control for Active streams
Vishal Sagar [Mon, 16 Oct 2017 06:43:01 +0000 (12:13 +0530)]
v4l: xilinx: sdirxss: Add V4L control for Active streams

Add support to get the number of Active streams using a
v4l control.

Signed-off-by: Vishal Sagar <vsagar@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agocan: xilinx: proper acknowledgment of ISR Flags.
Mousumi Jana [Thu, 12 Oct 2017 11:33:11 +0000 (17:03 +0530)]
can: xilinx: proper acknowledgment of ISR Flags.

This patch adds the correct acknowledgment of the
ISR Flags. Previously all the bitflags are used to
acknowledge all kind of interrupts.But now required
flags are acknowledged.

Signed-off-by: Mousumi Jana <mousumij@xilinx.com>
Reviewed-by: Kedareswara Rao appana<appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agocan: xilinx: tx->head and tx->tail are initialized properly.
Mousumi Jana [Thu, 12 Oct 2017 11:32:56 +0000 (17:02 +0530)]
can: xilinx: tx->head and tx->tail are initialized properly.

This patch adds the support for initialization of the counters
tx->head and tx->tail properly.

Signed-off-by: Mousumi Jana <mousumij@xilinx.com>
Reviewed-by: Kedareswara Rao appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: dp: Skip the aux communication when there's no sink
Hyun Kwon [Wed, 11 Oct 2017 00:26:39 +0000 (17:26 -0700)]
drm: xilinx: dp: Skip the aux communication when there's no sink

The DRM master may request the aux transaction, for example, power off
request, even when the sink is not connected. This would result in
the timeout. The connection status is stored in the HPD handler
and checked before the aux transaction.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agomtd: spi-nor: fix incorrect len return
Tejas Prajapati Rameshchandra [Mon, 9 Oct 2017 09:43:13 +0000 (15:13 +0530)]
mtd: spi-nor: fix incorrect len return

in nor_write, we need to say back to upper layers about how much
data we transferred. there is a bug in this logic while updating the
number of bytes written. this patch fixes this issue. the existing logic
is not checking for last page and from there onwards we are running into
issues while updating the written bytes.

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx: sdirxss: Add v4l control for transport stream type
Vishal Sagar [Mon, 9 Oct 2017 05:48:47 +0000 (11:18 +0530)]
v4l: xilinx: sdirxss: Add v4l control for transport stream type

Add v4l control to get the transport stream type as interlaced
or progressive. In case ST352 payload is not available, fallback
to detecting the transport type from the rx_t_scan bit.

Signed-off-by: Vishal Sagar <vsagar@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx: sdirxss: Add support for subdev get frame interval
Vishal Sagar [Mon, 9 Oct 2017 05:48:46 +0000 (11:18 +0530)]
v4l: xilinx: sdirxss: Add support for subdev get frame interval

Add support to get the subdev frame interval from ST352 payload.
The numerator is either 1000 or 1001 for integral or fractional fps.
The denominator is actual fps * 1000.

Signed-off-by: Vishal Sagar <vsagar@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx: sdirxss: Add ST352 decode macros
Vishal Sagar [Mon, 9 Oct 2017 05:48:45 +0000 (11:18 +0530)]
v4l: xilinx: sdirxss: Add ST352 decode macros

Added macros for decoding different fields in ST352 payload.

Signed-off-by: Vishal Sagar <vsagar@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx: sdirxss: Decode ST352 in irq context
Vishal Sagar [Mon, 9 Oct 2017 05:48:44 +0000 (11:18 +0530)]
v4l: xilinx: sdirxss: Decode ST352 in irq context

Decode ST352 payload packet in irq context to get width, height
and field type instead of doing it in get_format().

Signed-off-by: Vishal Sagar <vsagar@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoimx274: V4l2 driver for Sony imx274 CMOS sensor
Leon Luo [Fri, 6 Oct 2017 16:23:48 +0000 (09:23 -0700)]
imx274: V4l2 driver for Sony imx274 CMOS sensor

The imx274 is a Sony CMOS image sensor that has 1/2.5 image size.
It supports up to 3840x2160 (4K) 60fps, 1080p 120fps. The interface
is 4-lane MIPI CSI-2 running at 1.44Gbps each.

This driver has been tested on Xilinx ZCU102 platform with a Leopard
LI-IMX274MIPI-FMC camera board.

Support for the following features:
-Resolutions: 3840x2160, 1920x1080, 1280x720
-Frame rate: 3840x2160 : 5 – 60fps
            1920x1080 : 5 – 120fps
            1280x720 : 5 – 120fps
-Exposure time: 16 – (frame interval) micro-seconds
-Gain: 1x - 180x
-VFLIP: enable/disabledrivers/media/i2c/imx274.c
-Test pattern: 12 test patterns

Signed-off-by: Leon Luo <leonl@leopardimaging.com>
Tested-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
(cherry picked from commit 9216969e80c0b87b164ffd827b17471e769aad99)
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoimx274: device tree binding file
Leon Luo [Fri, 6 Oct 2017 16:23:47 +0000 (09:23 -0700)]
imx274: device tree binding file

The binding file for imx274 CMOS sensor V4l2 driver

Signed-off-by: Leon Luo <leonl@leopardimaging.com>
Acked-by: Sören Brinkmann <soren.brinkmann@xilinx.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
(cherry picked from commit 49b4f20dbe4bd17d9f1b22bf0b481fe4c2d2ca83)
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoRevert "dt: bindings: media: Add dt binding for imx274"
Soren Brinkmann [Fri, 6 Oct 2017 16:23:46 +0000 (09:23 -0700)]
Revert "dt: bindings: media: Add dt binding for imx274"

This reverts commit a5b81341e98f3b9852881671c5d784b8fa973158.
This early version of the patch is superseded by the version accepted
upstream.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoRevert "media: imx274 V4l2 driver for Sony imx274 CMOS sensor"
Soren Brinkmann [Fri, 6 Oct 2017 16:23:45 +0000 (09:23 -0700)]
Revert "media: imx274 V4l2 driver for Sony imx274 CMOS sensor"

This reverts commit aff4debf2f9fb9d9d140730cdbd5569691c3dc87.
This early version of the patch is superseded by the version accepted
upstream.

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: sdi: correcting st352 value for 3GB
Saurabh Sengar [Fri, 29 Sep 2017 05:26:33 +0000 (10:56 +0530)]
drm: xilinx: sdi: correcting st352 value for 3GB

Correcting byte1 of st352 payload value.
As per ST352 doc 89h is for 3GA and 8Ah for 3GB

Signed-off-by: Saurabh Sengar <saurabhs@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: xhci-plat: Add remote wakeup support
Anurag Kumar Vulisha [Wed, 27 Sep 2017 14:05:07 +0000 (19:35 +0530)]
usb: xhci-plat: Add remote wakeup support

This patch adds support for enabling remote wakeup capability
to the host controller

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodwc3: Add code for supporting entering into D3 state during suspend
Anurag Kumar Vulisha [Wed, 27 Sep 2017 14:05:06 +0000 (19:35 +0530)]
dwc3: Add code for supporting entering into D3 state during suspend

This patch adds support for making the core enter D3 state during
suspend. D3 state is only entered for when wakeup capability is
enabled.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoclk: zynqmp: Remove a unused variable
Shubhrajyoti Datta [Tue, 3 Oct 2017 11:08:18 +0000 (16:38 +0530)]
clk: zynqmp: Remove a unused variable

Fixes the following warning

drivers/clk/zynqmp/clkc.c:155:20: warning: 'usb0_mio_mux_parents'
defined but not used [-Wunused-variable]
static const char *usb0_mio_mux_parents[] __initconst = {usb0_bus_ref,
^
drivers/clk/zynqmp/clkc.c:157:20: warning: 'usb1_mio_mux_parents'
defined but not used [-Wunused-variable]
static const char *usb1_mio_mux_parents[] __initconst = {usb1_bus_ref,

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agomisc: atg: Fix the offset for the extended command ram
Shubhrajyoti Datta [Wed, 20 Sep 2017 06:39:28 +0000 (12:09 +0530)]
misc: atg: Fix the offset for the extended command ram

Fix  the offset for the  extended command ram

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: Kconfig: Correcting the SDi flag description
Saurabh Sengar [Thu, 14 Sep 2017 10:42:02 +0000 (16:12 +0530)]
drm: xilinx: Kconfig: Correcting the SDi flag description

Correcting the SDI flag description

Signed-off-by: Saurabh Sengar <saurabhs@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agotty: xilinx_uartps: move to arch_initcall for earlier console
Shubhrajyoti Datta [Thu, 7 Sep 2017 07:02:13 +0000 (12:32 +0530)]
tty: xilinx_uartps: move to arch_initcall for earlier console

move to arch_initcall to get the console up really early, it is
quite helpful for spotting early boot problems.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agozynqmp: devicetree: Add no-1-8-v property to sdhci1 node xilinx-v2017.3
Manish Narani [Tue, 26 Sep 2017 12:43:24 +0000 (18:13 +0530)]
zynqmp: devicetree: Add no-1-8-v property to sdhci1 node

This patch adds no-1-8-v property to sdhci1 node such that SD operates
at 50MHz by default. To operate at UHS mode, this property can be
removed from the sdhci1 node.

Signed-off-by: Manish Narani <mnarani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agomisc: xilinx-sdfec: make irq support an optional DT parameter
Rohit Athavale [Fri, 28 Jul 2017 20:50:23 +0000 (13:50 -0700)]
misc: xilinx-sdfec: make irq support an optional DT parameter

This commit adds support to make Interrupt line information
an optional parameter to support designs that do not use interrupts.

Signed-off-by: Rohit Athavale <rathaval@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agomisc: xilinx-sdfec: initial driver support for xilinx sdfec
Rohit Athavale [Tue, 11 Jul 2017 20:36:31 +0000 (13:36 -0700)]
misc: xilinx-sdfec: initial driver support for xilinx sdfec

This commit adds a char driver for SDFEC (Soft Decision FEC) IP.
The Forward Error Correction(FEC) Engine is a Hard IP block which
provides high throughput LDPC and Turbo Code implementations.

Some of the driver design decisions were based on the following
hardware behaviour:
- In-band reset register was not present. External reset
  being provisioned depends on system designer. Driver
  needs to be notified of a reset by ioctl.
- Codes cannot be updated on the fly and codes can be large.
  Codes are marshalled via ioctl to setup the device.
- Interrupts indicate a failure of the SDFEC instance

Signed-off-by: Rohit Athavale <rohit.athavale@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodocumentation: device-tree: add bindings for xilinx sdfec driver
Rohit Athavale [Tue, 11 Jul 2017 20:36:30 +0000 (13:36 -0700)]
documentation: device-tree: add bindings for xilinx sdfec driver

This patch adds device tree bindings for the Xilinx SDFEC (16nm) driver.

Signed-off-by: Rohit Athavale <rohit.athavale@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 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>
6 years agocrypto: zynqmp-rsa: Adopted RSA support for ZynqMP SoC
Nava kishore Manne [Tue, 19 Sep 2017 09:10:54 +0000 (14:40 +0530)]
crypto: zynqmp-rsa: Adopted RSA support for ZynqMP SoC

This patch adds RSA (Encryption/Decryption) support
for ZynqMP SoC.

Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm: dt: crypto: Added binding docs for Xilinx ZynqMP RSA H/W accelerator
Nava kishore Manne [Tue, 19 Sep 2017 09:10:53 +0000 (14:40 +0530)]
arm: dt: crypto: Added binding docs for Xilinx ZynqMP RSA H/W accelerator

New bindings document for ZynqMP RSA H/W accelerator.

Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 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>
6 years agocrypto: zynqmp-sha: Adopted SHA3 support for ZynqMP Soc
Nava kishore Manne [Tue, 19 Sep 2017 09:10:51 +0000 (14:40 +0530)]
crypto: zynqmp-sha: Adopted SHA3 support for ZynqMP Soc

This patch adds SHA3 support for ZynqMP Soc.

Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm: dt: crypto: Added binding docs for Xilinx ZynqMP SHA3 H/W accelerator
Nava kishore Manne [Tue, 19 Sep 2017 09:10:50 +0000 (14:40 +0530)]
arm: dt: crypto: Added binding docs for Xilinx ZynqMP SHA3 H/W accelerator

New bindings document for ZynqMP SHA3 H/W accelerator.

Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agosoc: zynqmp: Added pm api functions for RSA, SHA and AES
Nava kishore Manne [Tue, 19 Sep 2017 09:10:49 +0000 (14:40 +0530)]
soc: zynqmp: Added pm api functions for RSA, SHA and AES

This patch adds PM APIs to provided access to xilsecure
library to calculate SHA3 hash on the data or to encrypt
or decrypt the data using AES hardware engine and to
encrypt or decrypt the data by using RSA public or private
keys respectively.

Signed-off-by: Durga Challa <vnsldurg@xilinx.com>
Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agonet: macb: Misc cleanup
Harini Katakam [Tue, 19 Sep 2017 09:15:50 +0000 (14:45 +0530)]
net: macb: Misc cleanup

This patch does the following cleanup to keep master in
sync with rebase branch:
- Correct comment style in one place
- Correct coding style when using case in one place
- Remove repeated code for setting DMA mask in the probe

Signed-off-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoRevert "fpga manager: Adopted Authenticated BitStream loading support for Xilinx"
Nava kishore Manne [Mon, 18 Sep 2017 14:14:54 +0000 (19:44 +0530)]
Revert "fpga manager: Adopted Authenticated BitStream loading support for Xilinx"

This reverts commit ed5a1413206f479a2ec68205539af4e299ce8ee7.

The FW (xilfpga) is using single pair of keys to authenticate the
Image. According to the xilinx flow we need to use a pair of
keys to provide the proper authentication support.
currently the FW don't have this support. So this patch
remove the Authenticated BitStream loading support.

Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoRevert "fpga manager: Adopted Device-Key Encrypted BitStream loading support for...
Nava kishore Manne [Mon, 18 Sep 2017 14:14:53 +0000 (19:44 +0530)]
Revert "fpga manager: Adopted Device-Key Encrypted BitStream loading support for Xilinx zynqmp."

This reverts commit 18df7049e07c67a04b14a4833d628fc82f49921e.

This patch reverts the Deivce-key Encrypted BitStream loading
support due to the security issues.

Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Add support for zc1275 revA
Michal Simek [Wed, 9 Aug 2017 14:26:07 +0000 (16:26 +0200)]
arm64: zynqmp: Add support for zc1275 revA

Add DT file for zc1275 revA.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Add support for Xilinx zc1254 board
Michal Simek [Fri, 30 Jun 2017 06:39:35 +0000 (08:39 +0200)]
arm64: zynqmp: Add support for Xilinx zc1254 board

This patch adds support for Xilinx zc1254 board.

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

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoRevert "mmc: arasan: Add ADMA broken quirk based on DT parameter"
Michal Simek [Fri, 15 Sep 2017 08:37:08 +0000 (10:37 +0200)]
Revert "mmc: arasan: Add ADMA broken quirk based on DT parameter"

This reverts commit 0e4e4071493171bbac37bf60709022f49171c813.

It should be the part of:
"zynq: devicetree: Remove 'broken-adma2' property"
(sha1: fec1fe44076b1b2f8b7d6b2669697ea16b33a215)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoRevert "Documentation: mmc: Add broken-adma2 property"
Michal Simek [Fri, 15 Sep 2017 08:35:15 +0000 (10:35 +0200)]
Revert "Documentation: mmc: Add broken-adma2 property"

This reverts commit 358257734eea7ae4b16d91a5e91e940181448fd9.

It should be the part of:
"zynq: devicetree: Remove 'broken-adma2' property"
(sha1: fec1fe44076b1b2f8b7d6b2669697ea16b33a215)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoRevert "ASoC: Add SPDIF DAI format"
Michal Simek [Fri, 15 Sep 2017 06:54:32 +0000 (08:54 +0200)]
Revert "ASoC: Add SPDIF DAI format"

This reverts commit 80336ab140a467c469effb50d5467e1c45f28824.

It should be the part of commit:
"drm: i2c: adv7511: Remove non-mainline adv7511 driver"
(sha1: c650bd1e08e6e42073ca7e2f68dfd9cb90e55366)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodma: Revert empty line Kconfig fix
Michal Simek [Mon, 11 Sep 2017 11:06:55 +0000 (13:06 +0200)]
dma: Revert empty line Kconfig fix

This change is done by my editor and it is not done in mainline that's
why I am reverting it.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoi2c: media: ad9389b: Use mainline version
Michal Simek [Mon, 11 Sep 2017 12:36:58 +0000 (14:36 +0200)]
i2c: media: ad9389b: Use mainline version

This file was changed in past because of TRD but it wasn't tested over
time that's why several merges between probably breaks it.
Changes which were done are already integreated in this kernel that's
why this syncup.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agouapi: mtd: Remove unused mtd_locking_state enum
Michal Simek [Wed, 13 Sep 2017 08:38:51 +0000 (10:38 +0200)]
uapi: mtd: Remove unused mtd_locking_state enum

These enum values are not used anywhere that's why remove them.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodt-binding: Remove old zynq_edac binding
Michal Simek [Wed, 13 Sep 2017 11:27:26 +0000 (13:27 +0200)]
dt-binding: Remove old zynq_edac binding

This file was replaced by
Documentation/devicetree/bindings/memory-controllers/synopsys.txt

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agospi: Fix kernel doc format in spi.h
Michal Simek [Wed, 13 Sep 2017 13:20:17 +0000 (15:20 +0200)]
spi: Fix kernel doc format in spi.h

Document dummy variable which fix this kernel-doc issue.
include/linux/spi/spi.h:778: warning: No description found for parameter
'dummy'

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodt-binding: Remove MB remoteproc binding
Michal Simek [Wed, 13 Sep 2017 14:32:53 +0000 (16:32 +0200)]
dt-binding: Remove MB remoteproc binding

Driver was already removed by:
"remoteproc: Remove unused mb remoteproc"
(sha1: 3bcabd8e8726fc099ce86ad9e60c1c18c30f351b)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodt-bindings: zynq-gpio: Remove duplicated property in example
Michal Simek [Thu, 14 Sep 2017 11:09:27 +0000 (13:09 +0200)]
dt-bindings: zynq-gpio: Remove duplicated property in example

Example contains the same properties. Remove one.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoremoteproc: elf loader: revert obsolete change
Wendy Liang [Thu, 14 Sep 2017 18:22:03 +0000 (11:22 -0700)]
remoteproc: elf loader: revert obsolete change

This patch is to revert the change to get the loaded
resource table which is no longer required.

The change to remove is part of
commit 106a1dc8416d ("Merge tag 'v3.10' into master-next")

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agonet: phy: Fix mask value write on gmii2rgmii converter speed register
Fahad Kunnathadi [Thu, 14 Sep 2017 06:03:17 +0000 (11:33 +0530)]
net: phy: Fix mask value write on gmii2rgmii converter speed register

To clear Speed Selection in MDIO control register(0x10),
ie, clear bits 6 and 13 to zero while keeping other bits same.
Before AND operation,The Mask value has to be perform with bitwise NOT
operation (ie, ~ operator)

This patch clears current speed selection before writing the
new speed settings to gmii2rgmii converter

Signed-off-by: Fahad Kunnathadi <fahad.kunnathadi@dexceldesigns.com>
Acked-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agonet: macb: Fix issues with FPD off
Kedareswara rao Appana [Tue, 12 Sep 2017 12:55:39 +0000 (18:25 +0530)]
net: macb: Fix issues with FPD off

After suspend/resume with FPD off
ethernet functionlaity is not working
with the existing driver.

This patch fixes this issue by implementing the
context store in the driver.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoRevert "arm64: zynqmp: Enable smmu"
Mubin Sayyed [Tue, 12 Sep 2017 05:36:11 +0000 (11:06 +0530)]
Revert "arm64: zynqmp: Enable smmu"

Following issues are being observed when SMMU is
enabled,
  - After suspend/resume with FPD off,all peripherals
    registered with SMMU are failed to work.
  - SATA device detection is failed
Disabling SMMU till said issues are fixed.

This reverts commit 3b94edc4c8aa7c6f07f99a52c1d85ad9e27d5ec0.

Signed-off-by: Mubin Sayyed <mubinusm@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoARM64: zynqmp: Do not set requirements to 0 for wakeup sources
Rajan Vaja [Mon, 28 Aug 2017 09:13:57 +0000 (02:13 -0700)]
ARM64: zynqmp: Do not set requirements to 0 for wakeup sources

Devices which are set as wakeup source or belongs to wakeup
source device's path should not be powered off by generic power
domain driver.

Add check in zynqmp GPD power off function to check if device
is in wakeup source path. If so, set capabilities to WAKEUP
instead of 0 in GPD power off function.

Signed-off-by: Rajan Vaja <rajanv@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodma: xilinx: Fix issues with vdma mulit fstore configuration
Kedareswara rao Appana [Fri, 8 Sep 2017 14:30:47 +0000 (20:00 +0530)]
dma: xilinx: Fix issues with vdma mulit fstore configuration

This commit
ie: 'commit 4f143cb03aba ("dmaeninge: xilinx_dma: Fix bug in multiple
frame stores scenario in vdma")'
fixes issues with multiple fstore by using circular mode feature.
This implementation has a limitation as user needs to enable a hidden
configuration option(c_debug_all) in the IP while creating the design.

If user not aware of this h/w option and submits more frames
then driver throughs a warning asking to enable the
hidden configuration option.

This patches fixes these issues by using the park mode feature.
With this patch driver continuously parks through frame buffers
based on the number of frames user submitted.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: dp: Add delay after Monitor wake up
Hyun Kwon [Fri, 8 Sep 2017 18:03:38 +0000 (11:03 -0700)]
drm: xilinx: dp: Add delay after Monitor wake up

Some monitors require delay to fully wake up. Otherwise, it may
result in some error such as training failure.

Delay of 4 msec was not specified in the spec, but found from
experimentation (ex, no failure for 20 times or more). Thus,
this setting is exposed as module parameter so that user can
change if needed.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodma: xilinx: Add private API to permit retrieval of supported mem formats
Jeffrey Mouroux [Wed, 6 Sep 2017 23:32:59 +0000 (16:32 -0700)]
dma: xilinx: Add private API to permit retrieval of supported mem formats

The video Framebuffer DMA IP requires clients to send a fourcc code
to indicate the memory format layout.  The IP can be configured to support
a variety of memory formats ranging from YUYV, RGB and in either 8 bit
or 10 bit formats.  There has been no method for clients to obtain
this list of supported formats.  This patch adds private APIs that
can be called from clients to retrieve this list so that user space
applications can choose from any of the available memory formats.

Depends on patch 13fd162 (dma: xilinx: Bug fix to ensure only video formats
enabled in IP are in driver)

Signed-off-by: Jeffrey Mouroux <jmouroux@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: dp: Enable the training pattern transmission early
Hyun Kwon [Wed, 30 Aug 2017 22:05:44 +0000 (15:05 -0700)]
drm: xilinx: dp: Enable the training pattern transmission early

Per DP v1.2 spec 3.5.1.2.2, the transmission of training pattern
needs to be enabled before setting the sink device. This sequence
was causing the failure of initial training attempt, thus, enable
the pattern in the controller before setting the sink through aux.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agozynq: devicetree: Remove 'broken-adma2' property
Manish Narani [Wed, 30 Aug 2017 06:34:16 +0000 (12:04 +0530)]
zynq: devicetree: Remove 'broken-adma2' property

This patch removes 'broken-adma2' property from the zynq device-tree.
This basically enables the use of ADMA instead of SDMA. With the latest
kernel the ADMA is working fine in SD so no need to use the SDMA which
is slower than ADMA.

Fixed by : 7c415150cdd6 ("ARM: zynq: Reserve correct amount of non-DMA RAM")

Signed-off-by: Manish Narani <mnarani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodma: xilinx: Bug fix to ensure GPIO is reset between DMA operations
Jeffrey Mouroux [Tue, 29 Aug 2017 01:12:45 +0000 (18:12 -0700)]
dma: xilinx: Bug fix to ensure GPIO is reset between DMA operations

Some registers within the Video Framebuffer driver, such as the
video format register, require a reset of the IP before they can
be altered.  Because there is no software accessible reset register,
an external GPIO is used.  This patch fixes a runtime issue wherein
clients wish to reprogram the IP for a new memory between DMA operations.
Without this fix, the Video Framebuffer Write IP may halt when a client
requests a new DMA operation using a different memory format for
writes to host memory.  In some cases, Framebuffer Read operations
will need to be reset when the downstream video pipeline is being
reset.

Signed-off-by: Jeffrey Mouroux <jmouroux@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: sdi: xilinx: correcting multi link payload value
Saurabh Sengar [Tue, 29 Aug 2017 06:32:57 +0000 (12:02 +0530)]
drm: sdi: xilinx: correcting multi link payload value

Channel bit have to be set only in case of multi link data.
In SDI-TX logicore IP, except 3GB mode all other modes are
single link only, hence these bit is redundant.
3GB mode is dual link.
For 3GB mode first link have to be programmed as channel 1,
and second link payload have to be programmed as channel 3.

Signed-off-by: Saurabh Sengar <saurabhs@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoclkc: zynqmp: fix the usb mux
Shubhrajyoti Datta [Tue, 29 Aug 2017 09:40:53 +0000 (15:10 +0530)]
clkc: zynqmp: fix the usb mux

correct the offset for the usb mux.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Add back stream-id-cells property for lpd-dma
Mubin Sayyed [Thu, 31 Aug 2017 05:56:06 +0000 (11:26 +0530)]
arm64: zynqmp: Add back stream-id-cells property for lpd-dma

stream-id-cells property is mandatory for SMMU driver over xen,
so adding it back to all lpd-dma-channels.
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: Mubin Sayyed <mubinusm@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx: sdirxss: Add source change event support
Vishal Sagar [Fri, 1 Sep 2017 05:48:58 +0000 (11:18 +0530)]
v4l: xilinx: sdirxss: Add source change event support

Add support for V4L2_EVENT_SOURCE_CHANGE event by
generating this event when video lock occurs.

Signed-off-by: Vishal Sagar <vsagar@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: plane: Don't cache the property values
Hyun Kwon [Sat, 2 Sep 2017 01:05:48 +0000 (18:05 -0700)]
drm: xilinx: plane: Don't cache the property values

Some of these properties need to be updated as hardware values
don't get restored to the default values. Thus, don't cache
the values, but update those when there's request.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agommu_defconfig: Enable devtmps and tmpfs
Manjukumar Matha [Tue, 29 Aug 2017 15:03:27 +0000 (08:03 -0700)]
mmu_defconfig: Enable devtmps and tmpfs

Currently dropbear does not run in background because devtmps and tmpfs
is not enabled by default. Enable devtmps and tmpfs to fix this issue

Signed-off-by: Manjukumar Matha <manjukumar.harthikote-matha@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodwc3: fix the logic for finding parent node
Anurag Kumar Vulisha [Tue, 29 Aug 2017 15:53:21 +0000 (21:23 +0530)]
dwc3: fix the logic for finding parent node

The present logic doesn't fetch the correct parent node when two usb nodes
are enabled. It searches all nodes and doesn't fetch the first node with
matching compatible string when two usb nodes are enabled.
This patch fixes the logic by searching "xlnx,zynqmp-dwc3" compatible
string only in the parent nodes instead of the searching all nodes.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 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>
6 years agomtd: qspi: Corrected the sequence for accessing flash part
Tejas Prajapati Rameshchandra [Tue, 29 Aug 2017 05:58:58 +0000 (11:28 +0530)]
mtd: qspi: Corrected the sequence for accessing flash part

For accessing flash part using the mtd devices for architectures which
only supports 3 byte addressing need to call write_ear() for accessing
memory above 16MB. After every call to write_ear(), write_enable()
has to be called for further process.

Signed-off-by: Tejas Prajapati Rameshchandra <tejaspra@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx: sdirxss: Decode HD mode stream in case of no payload
Vishal Sagar [Mon, 28 Aug 2017 10:09:50 +0000 (15:39 +0530)]
v4l: xilinx: sdirxss: Decode HD mode stream in case of no payload

Get the stream properties even when no payload is obtained in HD mode.

Signed-off-by: Vishal Sagar <vsagar@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoBug fix to ensure only video formats enabled in IP are in driver
Jeffrey Mouroux [Mon, 28 Aug 2017 21:56:54 +0000 (14:56 -0700)]
Bug fix to ensure only video formats enabled in IP are in driver

The driver used to assume that all IP supported video formats were
legal choices for configuration.  However, the IP can be configured
to support all or only some (or only one) of the many possible formats.
This patch adds the needed mechanism via device-tree to communicate to
the driver which video formats are actually supported in the IP.
Additional changes are required to ensure that DMA client requests
for video formats that are NOT supported by the device instance are
rejected.

Signed-off-by: Jeffrey Mouroux <jmouroux@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoDocumentation: devicetree: bindings: dma: New dts property
Jeffrey Mouroux [Mon, 28 Aug 2017 21:56:53 +0000 (14:56 -0700)]
Documentation: devicetree: bindings: dma: New dts property

A new device tree property is described that will describe
the video formats supported in the Video Framebuffer DMA device.
The Video Framebuffer IP is configurabe and can be configured with
varying support for a number of possible video memory formats in
an effort to tailor the size of the logic footprint.  The driver
will utilize this new device tree property to describe this
configuration.

Signed-off-by: Jeffrey Mouroux <jmouroux@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>