]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/log
vajnamar/linux-xlnx.git
6 years agodma: xilinx: Update to Framebuffer Driver to support dual addr pointers
Jeffrey Mouroux [Mon, 28 Aug 2017 21:56:52 +0000 (14:56 -0700)]
dma: xilinx: Update to Framebuffer Driver to support dual addr pointers

The 2017.3 version of the Video Framebuffer supports a separate address
pointer for the chroma plane.  This is needed when the chroma plane
is not contiguous with the luma plane for semi-planar formats.  This
patch updates the client API as well.  Additionally, the IP can be
configured for either 32-bit or 64-bit DMA address pointers.  A
new device tree property is added which is used to indicate the address
width and a callback is set during probe to write to memory using
either 32-bit or 64-bit address formats depending on this dts property
as well as the size of dma address space supported on the host.

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: bindings: devicetree: dma: New compatible string and prop
Jeffrey Mouroux [Mon, 28 Aug 2017 21:56:51 +0000 (14:56 -0700)]
Documentation: bindings: devicetree: dma: New compatible string and prop

The Video Framebuffer driver will remove support for any v1 IP.  The
compatibility string associated with the v1 IP is described and the lack
of future support indicated in the device tree bindings document.

Additionally, for the v2 IP, the Video Framebuffer IP now supports either
32-bit or 64-bit dma address pointers which is indicated with a new
required property.

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: bindings: devicetree: dma: Reformatted spaces to tabs
Jeffrey Mouroux [Mon, 28 Aug 2017 21:56:50 +0000 (14:56 -0700)]
Documentation: bindings: devicetree: dma: Reformatted spaces to tabs

The original device tree used 8 leading spaces in the example
dts bindings.  This change reformats these to tabs for proper
indentation.

Signed-off-by: Jeffrey Mouroux <jmouroux@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agocan: xilinx: fix runtime power management code
Mousumi Jana [Mon, 28 Aug 2017 08:25:09 +0000 (13:55 +0530)]
can: xilinx: fix runtime power management code

This patch adds the fix for runtime power management.
Without this the device usage counter decremented and device
is going to suspend state.This patch resumes the device and
prevents it from being suspended again.

Signed-off-by: Mousumi Jana <mousumij@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx: sdirxss: Add support to decode 1080 line video in HD mode
Vishal Sagar [Mon, 28 Aug 2017 06:06:17 +0000 (11:36 +0530)]
v4l: xilinx: sdirxss: Add support to decode 1080 line video in HD mode

Adds support to decode 0x85 as byte1 in ST352 payload to detect 1080
line video.

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 to get width,height in SD mode
Vishal Sagar [Mon, 28 Aug 2017 06:06:16 +0000 (11:36 +0530)]
v4l: xilinx: sdirxss: Add support to get width,height in SD mode

Get the width & height in SD mode based on Transport stream family i.e.
NTSC or PAL.

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 to decode more ST352 payloads for 3G mode
Vishal Sagar [Mon, 28 Aug 2017 06:06:15 +0000 (11:36 +0530)]
v4l: xilinx: sdirxss: Add support to decode more ST352 payloads for 3G mode

Adds support to decode 0x88,0x89,0x8A,0x8B,0x8C byte1 from ST352 payload
in 3G 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 agov4l: xilinx: sdirxss: Support decoding ST352 payload for 6G mode
Vishal Sagar [Mon, 28 Aug 2017 06:06:14 +0000 (11:36 +0530)]
v4l: xilinx: sdirxss: Support decoding ST352 payload for 6G mode

Patch adds support for decoding ST352 payload for 6G mode.
It identifies if resolution is 4096x2160 or 3840x2160.

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: Support decoding ST352 payload for 12G mode
Vishal Sagar [Mon, 28 Aug 2017 06:06:13 +0000 (11:36 +0530)]
v4l: xilinx: sdirxss: Support decoding ST352 payload for 12G mode

Patch adds support for decoding ST352 payload for 12G modes to identify
if resolution is 4096x2160 or 3840x2160.

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: Get EDH status only in case of SD mode
Vishal Sagar [Mon, 28 Aug 2017 06:06:12 +0000 (11:36 +0530)]
v4l: xilinx: sdirxss: Get EDH status only in case of SD mode

The EDH status registers are applicable only in SD mode.
So EDH status related V4L controls check for current mode to be SD mode
before accessing EDH status.

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: Don't register EDH controls if EDH not enabled in IP core
Vishal Sagar [Mon, 28 Aug 2017 06:06:11 +0000 (11:36 +0530)]
v4l: xilinx: sdirxss: Don't register EDH controls if EDH not enabled in IP core

Don't register the EDH related V4L controls when EDH processor is
disabled in IP core settings.

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: Detect mode based on capability
Vishal Sagar [Mon, 28 Aug 2017 06:06:10 +0000 (11:36 +0530)]
v4l: xilinx: sdirxss: Detect mode based on capability

Set the mode detection based on IP configuration.
If the IP is configured for 3G mode then don't allow detection for
6G and 12G Integral/Fractional modes.
If the IP is configured for 6G mode then don't allow detection for 12G
Integral/Fractional modes.

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: Fix kbuild warning of variable used without initalizing
Vishal Sagar [Mon, 28 Aug 2017 06:06:09 +0000 (11:36 +0530)]
v4l: xilinx: sdirxss: Fix kbuild warning of variable used without initalizing

Fix warningi from kbuild test robot of variable being used without
initializing.

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: Update for new register spec
Vishal Sagar [Mon, 28 Aug 2017 06:06:08 +0000 (11:36 +0530)]
v4l: xilinx: sdirxss: Update for new register spec

This patch adds support in driver for new register spec finalized for
SDI Rx Subsystem in 2017.3.
Some bits from old registers are moved to new ones modifying the bit masks.
Some old registers offsets have changed.
Interrupt status register now has standard W1C behavior.
Overflow/underflow interrupts are added.
So removing V4L control and added events.
Global interrupt enable register added.
Soft reset bit is added to Reset Control Register.
CRC Error Count register 31-16 exchanged with 15-0 with W1C behaviour.

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 agomedia: imx274 V4l2 driver for Sony imx274 CMOS sensor
Leon Luo [Fri, 25 Aug 2017 19:56:16 +0000 (12:56 -0700)]
media: 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 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/disable
-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: Michal Simek <michal.simek@xilinx.com>
6 years agodt: bindings: media: Add dt binding for imx274
Leon Luo [Fri, 25 Aug 2017 19:56:17 +0000 (12:56 -0700)]
dt: bindings: media: Add dt binding for imx274

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

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

Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: sdi: Adding more SD and 12G DRM modes
Saurabh Sengar [Thu, 24 Aug 2017 10:18:41 +0000 (15:48 +0530)]
drm: xilinx: sdi: Adding more SD and 12G DRM modes

Adding support for 720x480i@60, 3840x2160@60p and 3840x2160@50p Hz display modes

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 st352 payload calculation for 4096 mode
Saurabh Sengar [Thu, 24 Aug 2017 06:18:58 +0000 (11:48 +0530)]
drm: xilinx: sdi: adding st352 payload calculation for 4096 mode

The 2048 bit need to be set for horizontal display lines of 4096 as well

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: replace SDI_MAX_DATASTREAM with actual number of channels
Saurabh Sengar [Wed, 23 Aug 2017 13:35:18 +0000 (19:05 +0530)]
drm: xilinx: sdi: replace SDI_MAX_DATASTREAM with actual number of channels

No need to put payload in all the channels, but should be programmed
only for the channels requested by user.

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 agoarm64: zynqmp: Update sd properties for dc5
Srinivas Goud [Tue, 22 Aug 2017 09:08:46 +0000 (14:38 +0530)]
arm64: zynqmp: Update sd properties for dc5

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

Signed-off-by: Srinivas Goud <srinivas.goud@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: dts: zynqmp: Update the GPU address size
Hyun Kwon [Tue, 22 Aug 2017 01:54:29 +0000 (18:54 -0700)]
arm64: dts: zynqmp: Update the GPU address size

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

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: sdi: Adding transport support in st352 payload calculation
Saurabh Sengar [Mon, 21 Aug 2017 08:50:33 +0000 (14:20 +0530)]
drm: xilinx: sdi: Adding transport support in st352 payload calculation

Setting 7th bit of byte 2 as per st352 spec for 1125 vertical display.

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 2048 support in st352 payload calculation
Saurabh Sengar [Mon, 21 Aug 2017 08:45:35 +0000 (14:15 +0530)]
drm: xilinx: sdi: Adding 2048 support in st352 payload calculation

Setting 6th bit of third byte if horizontal display is 2048.
This is as per st352 spec for 2048 horizontal display.

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: correcting interlaced modes values
Saurabh Sengar [Mon, 21 Aug 2017 07:11:44 +0000 (12:41 +0530)]
drm: xilinx: sdi: correcting interlaced modes values

Interlaced vertical line values should be half then progressive mode

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 agoarm64: zynqmp: Enable smmu
Naga Sureshkumar Relli [Mon, 31 Jul 2017 05:22:08 +0000 (10:52 +0530)]
arm64: zynqmp: Enable smmu

This patch enables the smmu

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoRevert "rtc: zynqmp: Disable module option in Kconfig"
Michal Simek [Mon, 21 Aug 2017 08:57:31 +0000 (10:57 +0200)]
Revert "rtc: zynqmp: Disable module option in Kconfig"

This reverts commit 00a16cc47f04a61c12b1d7896ea068c0c34e1157.

Issue is fixed by previous commit. Resolution is when alarm timer
registered module can't be unload.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoalarmtimer: ensure RTC module is not unloaded
Alexandre Belloni [Sun, 20 Aug 2017 22:01:46 +0000 (00:01 +0200)]
alarmtimer: ensure RTC module is not unloaded

When registering the rtc device to be used to handle alarm timers,
get_device is used to ensure the device doesn't go away but the module can
still be unloaded. Call try_module_get to ensure the rtc driver will not go
away.

Reported-by: Michal Simek <monstr@monstr.eu>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Tested-by: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: sdi: Adding channel number in st352 payload
Saurabh Sengar [Sat, 12 Aug 2017 14:08:36 +0000 (19:38 +0530)]
drm: xilinx: sdi: Adding channel number in st352 payload

Adding channel number in st352 payload.

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 agophy: zynqmp: Use the configured GT lane for tx_term_fix calibration
Edgar Lakis [Fri, 11 Aug 2017 10:24:14 +0000 (12:24 +0200)]
phy: zynqmp: Use the configured GT lane for tx_term_fix calibration

This is a small correction to
"phy: zynqmp: Change serdes calibraton logic to ICM_CFG1"
(sha1: c1c13c82fbff75d1e4fb19b8ebfc27ea75656c2d)

During the calibration process ICM_CFG register should be set to any
valid lane. The previous version was using hardcoded setting of PCIe
for lane 2 and 3. This breaks other devices on these lanes if they
don't configure the phy in Linux (i.e. expect the value to be configured
in FSBL).

Current version will use the ICM_CFG value for the first selected phy
instead of hardcoding lanes 2 and 3 to PCIe.

Signed-off-by: Edgar Lakis <ela@phaseone.com>
Acked-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx-vpss-scaler: Fix phase calculation
Soren Brinkmann [Fri, 18 Aug 2017 00:18:14 +0000 (17:18 -0700)]
v4l: xilinx-vpss-scaler: Fix phase calculation

Fixes: ee7f2ef65107a65a1b9904b8d4ee4defbf16839a
("v4l: xilinx-vpss-scaler: driver support for xilinx vpss scaler"

Cc: Rohit Athavale <RATHAVAL@xilinx.com>
Signed-off-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Tested-by: Rohit Athavale <rohit.athavale@xilinx.com>
Reviewed-by: Rohit Athavale <rohit.athavale@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: encoder: Check the encoder init function
Hyun Kwon [Fri, 18 Aug 2017 01:09:40 +0000 (18:09 -0700)]
drm: xilinx: encoder: Check the encoder init function

Check if the encoder slave driver registered the init callback.
If the callback exists, the encoder driver assumes that
the slave driver is ready to initialize.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: dsi: Fixes the Hact calculation
Siva Rajesh [Thu, 17 Aug 2017 07:33:01 +0000 (13:03 +0530)]
drm: xilinx: dsi: Fixes the Hact calculation

This patch fixes the HACT calculation. pixels-per-beat parameter is removed from parse_dt function.

Signed-off-by: Siva Rajesh <siva.rajesh.jarugula@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodt: bindings: drm: xilinx: dsi: Correcting HACT calculations by removing the pixels...
Siva Rajesh [Thu, 17 Aug 2017 07:33:02 +0000 (13:03 +0530)]
dt: bindings: drm: xilinx: dsi: Correcting HACT calculations by removing the pixels-per-beat property

HACT calculaion was incorrectly using the pixels-per-beat IP parameter. Since this is no longer used, hence removed.

Signed-off-by: Siva Rajesh <siva.rajesh.jarugula@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: dsi: Fix for checkpatch
Siva Rajesh [Thu, 17 Aug 2017 07:33:00 +0000 (13:03 +0530)]
drm: xilinx: dsi: Fix for checkpatch

Fixed the checkpatch.pl warnings

Signed-off-by: Siva Rajesh <siva.rajesh.jarugula@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx: sdirxss: Initial support for getting video stream properties
Vishal Sagar [Wed, 16 Aug 2017 11:14:09 +0000 (16:44 +0530)]
v4l: xilinx: sdirxss: Initial support for getting video stream properties

Initial support to get the video stream width, height and
field (interlaced or progressive) based on the ST352 Data Stream 0
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: Add support for Video Unlock event
Vishal Sagar [Wed, 16 Aug 2017 11:14:08 +0000 (16:44 +0530)]
v4l: xilinx: sdirxss: Add support for Video Unlock event

This patch allows driver to generate a Video unlock event using which
the application may stop streaming if required.

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 V4L get controls for Modes, CRC, EDH and Video Bridge Status
Vishal Sagar [Wed, 16 Aug 2017 11:14:07 +0000 (16:44 +0530)]
v4l: xilinx: sdirxss: Add V4L get controls for Modes, CRC, EDH and Video Bridge Status

Added V4L controls for getting detected modes, CRC, EDH status and Video
Bridge status.

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 V4L control for Mode detection
Vishal Sagar [Wed, 16 Aug 2017 11:14:06 +0000 (16:44 +0530)]
v4l: xilinx: sdirxss: Add V4L control for Mode detection

Mode detection V4L control added. Modes are passed as bitmask based on
xilinx-sdirxss.h. If only one mode is selected then driver programs IP
in Fixed mode else multi mode detection is enabled.

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 V4L control for EDH error count
Vishal Sagar [Wed, 16 Aug 2017 11:14:05 +0000 (16:44 +0530)]
v4l: xilinx: sdirxss: Add V4L control for EDH error count

This patch adds V4L control for enabling EDH counter.
The list of masks for error conditions are added.
It also fixes how the EDH Error counter register is set.

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 v4l control for Video Lock Window
Vishal Sagar [Wed, 16 Aug 2017 11:14:04 +0000 (16:44 +0530)]
v4l: xilinx: sdirxss: Add v4l control for Video Lock Window

Add support for Video Lock Window 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 agov4l: xilinx: sdirxss: Add v4l control for Framer
Vishal Sagar [Wed, 16 Aug 2017 11:14:03 +0000 (16:44 +0530)]
v4l: xilinx: sdirxss: Add v4l control for Framer

Add Framer control. The control can be set only if not streaming.

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: Streaming is enabled only on video lock
Vishal Sagar [Wed, 16 Aug 2017 11:14:02 +0000 (16:44 +0530)]
v4l: xilinx: sdirxss: Streaming is enabled only on video lock

Enable mode detection and start SDI Rx IP by default. The video bridges
are enabled/disabled when starting/stopping streaming.
Streaming is started only if video is locked.

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: Fix xsdirxss_core for kernel-doc
Vishal Sagar [Wed, 16 Aug 2017 11:10:55 +0000 (16:40 +0530)]
v4l: xilinx: sdirxss: Fix xsdirxss_core for kernel-doc

Fix xsdirxss_core for kernel-doc

Signed-off-by: Vishal Sagar <vsagar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agomedia: xilinx: cresample: Fix xilinx-v4l2-controls.h for checkpatch
Vishal Sagar [Wed, 16 Aug 2017 06:27:28 +0000 (11:57 +0530)]
media: xilinx: cresample: Fix xilinx-v4l2-controls.h for checkpatch

Fix checkpatch.pl --strict warnings for xilinx-v4l2-controls.h

Signed-off-by: Vishal Sagar <vsagar@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoPCI: ZYNQMP EP driver: Adding Root DMA support
Ravi Shankar Jonnalagadda [Tue, 8 Aug 2017 09:58:07 +0000 (15:28 +0530)]
PCI: ZYNQMP EP driver: Adding Root DMA support

PS PCIe DMA can be configured to be both End Point or Root DMA
This patch adds support for Root DMA.

Signed-off-by: Ravi Shankar Jonnalagadda <vjonnal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoPCI: ZYNQMP PS PCIe Driver: Root DMA dt bindings
Ravi Shankar Jonnalagadda [Tue, 8 Aug 2017 09:58:08 +0000 (15:28 +0530)]
PCI: ZYNQMP PS PCIe Driver: Root DMA dt bindings

Added device tree bindings for enabling root dma

Signed-off-by: Ravi Shankar Jonnalagadda <vjonnal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoPCI: ZYNQMP EP driver: Improving desc cleanup
Ravi Shankar Jonnalagadda [Tue, 8 Aug 2017 09:58:06 +0000 (15:28 +0530)]
PCI: ZYNQMP EP driver: Improving desc cleanup

Using cached variable instead of data from buffer descriptor

Signed-off-by: Ravi Shankar Jonnalagadda <vjonnal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoPCI: ZYNQMP EP driver: Fixed typo coaelse
Ravi Shankar Jonnalagadda [Tue, 8 Aug 2017 09:58:05 +0000 (15:28 +0530)]
PCI: ZYNQMP EP driver: Fixed typo coaelse

Fixed typo while declaring variable with name coalesce

Signed-off-by: Ravi Shankar Jonnalagadda <vjonnal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoPCI: ZYNQMP EP driver: Changing Register bit name
Ravi Shankar Jonnalagadda [Tue, 8 Aug 2017 09:58:04 +0000 (15:28 +0530)]
PCI: ZYNQMP EP driver: Changing Register bit name

Changing register bit name to convey more relevant information

Signed-off-by: Ravi Shankar Jonnalagadda <vjonnal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoPCI: ZYNQMP EP driver: Minor code improvements
Ravi Shankar Jonnalagadda [Tue, 8 Aug 2017 09:58:03 +0000 (15:28 +0530)]
PCI: ZYNQMP EP driver: Minor code improvements

Completed bytes and result variables can be declared only once
as the values are assigned and cannot contain old values

Signed-off-by: Ravi Shankar Jonnalagadda <vjonnal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoPCI: Xilinx NWL: Enabling Root DMA
Ravi Shankar Jonnalagadda [Tue, 8 Aug 2017 09:58:01 +0000 (15:28 +0530)]
PCI: Xilinx NWL: Enabling Root DMA

Enabling Bridge translation to access Root DMA registers

Enabling Interrupt generation for Root DMA

Signed-off-by: Ravi Shankar Jonnalagadda <vjonnal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoPCI: Xilinx NWL: Correcting styling errors
Ravi Shankar Jonnalagadda [Tue, 8 Aug 2017 09:58:02 +0000 (15:28 +0530)]
PCI: Xilinx NWL: Correcting styling errors

Fixing errors thrown by checkpatch script

Signed-off-by: Ravi Shankar Jonnalagadda <vjonnal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agochar: xdevcfg: remove unneeded PCFG_PROG_B assertion
Martijn de Gouw [Tue, 8 Aug 2017 14:27:25 +0000 (16:27 +0200)]
char: xdevcfg: remove unneeded PCFG_PROG_B assertion

PCFG_PROG_B is already 1, so asserting it here will not generate
a edge. If the PL is not correctly loaded before (i.e. an invalid bitfile),
waiting for PCFG_INIT will wait forever.

Signed-off-by: Martijn de Gouw <martijn.de.gouw@prodrive-technologies.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agouas: Add US_FL_NO_ATA_1X for linux tcm_usb_gadget
Rajnikant Bhojani [Fri, 11 Aug 2017 08:54:24 +0000 (04:54 -0400)]
uas: Add US_FL_NO_ATA_1X for linux tcm_usb_gadget

tcm_usb_gadget available in linux kernel need US_FL_NO_ATA_1X quirk

Signed-off-by: Rajnikant Bhojani <rajnikant.bhojani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: dwc3: change condition for check request completion
Rajnikant Bhojani [Fri, 11 Aug 2017 08:54:23 +0000 (04:54 -0400)]
usb: dwc3: change condition for check request completion

it may be possible that whole reqest not able to fit in trb
availables. since actual length is calculated from trb size
field which suggest how many bytes not able to transfer out
of trb trnafser size. this fix will remove the false
assumption of request completion

Signed-off-by: Rajnikant Bhojani <rajnikant.bhojani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: dwc3: fix IOC bit set when trb queue is full
Rajnikant Bhojani [Fri, 11 Aug 2017 08:54:22 +0000 (04:54 -0400)]
usb: dwc3: fix IOC bit set when trb queue is full

if queue is full we are depending on HWO bit to see if queue is
full or empty. after advancing trb_enqueue last trb will be the
trb we are working right now. so need to check after HWO bit is
set

Signed-off-by: Rajnikant Bhojani <rajnikant.bhojani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: dwc3: gadget: fix queue remaining sg list trb first
Rajnikant Bhojani [Fri, 11 Aug 2017 08:54:21 +0000 (04:54 -0400)]
usb: dwc3: gadget: fix queue remaining sg list trb first

In cases where we're given an SG-list which is longer than
the amount of currently available TRBs, we should first start
with remaining sg list

Signed-off-by: Rajnikant Bhojani <rajnikant.bhojani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: dwc3: gadget: always try to prepare on started_list first
Felipe Balbi [Fri, 11 Aug 2017 08:54:20 +0000 (04:54 -0400)]
usb: dwc3: gadget: always try to prepare on started_list first

In cases where we're given an SG-list which is
longer than the amount of currently available TRBs,
we will be left with the same request on
started_list and we should prioritize that request
over possible new requests on pending_list. That's
a way to guarantee requests complete in order.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: dwc3: implement stream transfer timout
Rajnikant Bhojani [Fri, 11 Aug 2017 08:54:19 +0000 (04:54 -0400)]
usb: dwc3: implement stream transfer timout

according to databook it may be possible host and device become
out of sync where device wait for host to issue prime transcation
and host waits for device to issue erdy to avoid such deadlock
timeout need to be implement. after timeout device will first
stop transfer and again restart the transfer

Signed-off-by: Rajnikant Bhojani <rajnikant.bhojani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: dwc3: enable transfer complete event for stream endpoint
Rajnikant Bhojani [Fri, 11 Aug 2017 08:54:18 +0000 (04:54 -0400)]
usb: dwc3: enable transfer complete event for stream endpoint

start transfer for new stream id need to free previously held
transfer resources. transfer complete event will automatically
free up the resource once transfer associated with stream
completes

Signed-off-by: Rajnikant Bhojani <rajnikant.bhojani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: dwc3: write stream id in depcmd
Rajnikant Bhojani [Fri, 11 Aug 2017 08:54:17 +0000 (04:54 -0400)]
usb: dwc3: write stream id in depcmd

while start transfer command stream id need to be written in depcmd

Signed-off-by: Rajnikant Bhojani <rajnikant.bhojani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: gadget: f_tcm: support to set maxburst through configfs
Rajnikant Bhojani [Fri, 11 Aug 2017 08:54:16 +0000 (04:54 -0400)]
usb: gadget: f_tcm: support to set maxburst through configfs

support to change maxbust of endpoint through configfs is added

Signed-off-by: Rajnikant Bhojani <rajnikant.bhojani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: gadget: f_tcm: add TARGET_SCF_ACK_KREF flag in BOT
Rajnikant Bhojani [Fri, 11 Aug 2017 08:54:15 +0000 (04:54 -0400)]
usb: gadget: f_tcm: add TARGET_SCF_ACK_KREF flag in BOT

in BOT mode se_cmd and I/O resource getting free during target
fabric module operation check_stop_free which does not gauranteed
freeing of resource after actual usb bus transfer. adding
TARGET_SCF_ACK_KREF flag during submitting target request will
increment additinal cmd_kref which will prevent deallocating
se_cmd and I/O resource before actual usb bus transfer.

Signed-off-by: Rajnikant Bhojani <rajnikant.bhojani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: gadget: f_tcm: queue multiple commands request
Rajnikant Bhojani [Fri, 11 Aug 2017 08:54:14 +0000 (04:54 -0400)]
usb: gadget: f_tcm: queue multiple commands request

increase in performance can be achived by queueing multiple command
request during super speed uas mode. this will make a best use of
uas and stream support.

Signed-off-by: Rajnikant Bhojani <rajnikant.bhojani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: gadget: f_tcm: comp_descriptor workaround during SS gadget
Rajnikant Bhojani [Fri, 11 Aug 2017 08:54:13 +0000 (04:54 -0400)]
usb: gadget: f_tcm: comp_descriptor workaround during SS gadget

If device connect in SS then comp_descriptor with stream
should be atteched to descriptor. Since BOT and UAS using
same endpoint, config_ep_by_speed will returns first match
with comp_descriptor without stream. This is just workaround
proper fix need to be introduced.

Signed-off-by: Rajnikant Bhojani <rajnikant.bhojani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: gadget: f_tcm: adjust write length with max packet size
Rajnikant Bhojani [Fri, 11 Aug 2017 08:54:12 +0000 (04:54 -0400)]
usb: gadget: f_tcm: adjust write length with max packet size

transfer size on out endpoint should be in multiple of endpoint
max packet size. this patch will adjust transfer size on out endpint
with multiple of max packet size

Signed-off-by: Rajnikant Bhojani <rajnikant.bhojani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agousb: gadget: f_tcm: remove code duplication
Rajnikant Bhojani [Fri, 11 Aug 2017 08:54:11 +0000 (04:54 -0400)]
usb: gadget: f_tcm: remove code duplication

function bot_send_write_request() prepares write request and will call
usbg_prepare_w_request() function which does the same

Signed-off-by: Rajnikant Bhojani <rajnikant.bhojani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoDocumentation: devicetree: r5 remoteproc: describe IPI as optional
Wendy Liang [Mon, 14 Aug 2017 23:53:16 +0000 (16:53 -0700)]
Documentation: devicetree: r5 remoteproc: describe IPI as optional

As IPI is not required if user uses remoteproc only to load the RPU
firmware, we should say IPI is optional in the device tree binding.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agowatchdog: cadence_wdt: Show information when driver is probed
Michal Simek [Fri, 4 Aug 2017 07:34:55 +0000 (09:34 +0200)]
watchdog: cadence_wdt: Show information when driver is probed

Showing message that driver is loaded is common across drivers.
This change also fixes checkpatch (--strict) warning
"Alignment should match open parenthesis".

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agowatchdog: cadence_wdt: Enable access to module parameters
Michal Simek [Fri, 4 Aug 2017 07:30:55 +0000 (09:30 +0200)]
watchdog: cadence_wdt: Enable access to module parameters

Give read access to module parameters to all and write access to root.
This change also improves driver error path testing.

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

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

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agozynqmp: sdhci: Prevent SD driver deferred probe after host init
Manish Narani [Thu, 10 Aug 2017 08:22:03 +0000 (13:52 +0530)]
zynqmp: sdhci: Prevent SD driver deferred probe after host init

This patch prevents deferred probe after the host initialization is
done. Instead if the deferred probe is necessary, do it before the host
initialization. This way the unnecessary increase in host id can be
avoided.
In standard boot flow deferred probe is called at least 2 times
that's why it is better to extract it out.
Also add error message when getting silicon version fails.

Signed-off-by: Manish Narani <mnarani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx-vpss-scaler: fix dev_dbg logging typo and remove dead code
Rohit Athavale [Fri, 11 Aug 2017 01:03:54 +0000 (18:03 -0700)]
v4l: xilinx-vpss-scaler: fix dev_dbg logging typo and remove dead code

This commit corrects the dev_dbg typo in the xilinx vpss scaler driver.
It also removes deadcode from xv_hscaler_setup_video_fmt() as
xv_vscaler_setup_fmt() cannot return XVIDC_CSF_YCRCB_420.

Signed-off-by: Rohit Athavale <rathaval@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: plane: Commit only when the plane is off
Hyun Kwon [Fri, 11 Aug 2017 02:44:37 +0000 (19:44 -0700)]
drm: xilinx: plane: Commit only when the plane is off

The DPMS_ON will do commit, and the duplicate commit calls
can cause the same descriptor to be queued twice.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Tested-by: Jeegar Patel <jeegarp@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: plane: Fix styles
Hyun Kwon [Thu, 10 Aug 2017 18:26:11 +0000 (11:26 -0700)]
drm: xilinx: plane: Fix styles

Fix style warning from checkpatch such as u32 over uint32_t,
alignment, comparison to NULL:

CHECK: Prefer kernel type 'u32' over 'uint32_t'
+       uint32_t format;

...

CHECK: Alignment should match open parenthesis
+                               xilinx_drm_dp_sub_enable_alpha(manager->dp_sub,
+                                               plane->alpha_enable);

...

CHECK: Comparison to NULL could be written "manager->dp_sub"
+       } else if (manager->dp_sub != NULL) {

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: fb: Fix styles
Hyun Kwon [Thu, 10 Aug 2017 18:26:10 +0000 (11:26 -0700)]
drm: xilinx: fb: Fix styles

Fix checkpatch warnings such as alignement and extra blank lines:

CHECK: Alignment should match open parenthesis
+       DRM_DEBUG_KMS("surface width(%d), height(%d) and bpp(%d)\n",
+                       sizes->surface_width, sizes->surface_height,

CHECK: Blank lines aren't necessary before a close brace '}'
+
+       }

CHECK: Please don't use multiple blank lines
+
+

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: drv: Fix styles
Hyun Kwon [Thu, 10 Aug 2017 18:26:09 +0000 (11:26 -0700)]
drm: xilinx: drv: Fix styles

Fix checkpatch warnings like u32 over uint32_t and
alignment:

CHECK: Prefer kernel type 'u32' over 'uint32_t'
+       uint32_t drm_format;

CHECK: Alignment should match open parenthesis
+       if (!(drm_is_primary_client(file) && !dev->master) &&
+                       capable(CAP_SYS_ADMIN)) {

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: dp_sub: Fix styles
Hyun Kwon [Thu, 10 Aug 2017 18:26:08 +0000 (11:26 -0700)]
drm: xilinx: dp_sub: Fix styles

Fix warning from checkpatch such BIT() macro, u32 over uint32_t,
comparison to NULL, reuse of macro argument:

CHECK: Prefer using the BIT macro
+#define XILINX_DP_SUB_AV_BUF_FMT_NL_VID_VYUY                   (1 << 0)

...

CHECK: Prefer kernel type 'u32' over 'uint32_t'
+       uint32_t *drm_fmts;

...

CHECK: Macro argument reuse 'x' - possible side-effects?
+#define IN_RANGE(x, min, max) ((x) >= (min) && (x) <= (max))

...

CHECK: Comparison to NULL could be written "!xilinx_drm_dp_sub_node"
+       if (xilinx_drm_dp_sub_node == NULL)

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: dp: Fix styles
Hyun Kwon [Thu, 10 Aug 2017 18:26:07 +0000 (11:26 -0700)]
drm: xilinx: dp: Fix styles

Fix warning below for static variable initialization,
BIT() macro, macro argument:

CHECK: Prefer using the BIT macro
+#define XILINX_DP_TX_SW_RESET_STREAM1                  (1 << 0)

...

CHECK: Macro argument reuse 'x' - possible side-effects?
+#define IN_RANGE(x, min, max) ((x) >= (min) && (x) <= (max))

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: crtc: Fix the styles
Hyun Kwon [Thu, 10 Aug 2017 18:26:06 +0000 (11:26 -0700)]
drm: xilinx: crtc: Fix the styles

Fix styles like alignment, comparison to NULL, extra blank line:

CHECK: Alignment should match open parenthesis
+               DRM_DEBUG_KMS("actual pixel clock rate(%d) is off by %ld\n",
+                               adjusted_mode->clock, diff);

CHECK: Comparison to NULL could be written "crtc->event"
+       if (crtc->event != NULL) {

CHECK: Blank lines aren't necessary before a close brace '}'
+
+       }

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx-vpss-csc: Any-to-any color space conversion
Rohit Athavale [Fri, 4 Aug 2017 22:54:08 +0000 (15:54 -0700)]
v4l: xilinx-vpss-csc: Any-to-any color space conversion

In 2017.3, the VPSS CSC IP supports any-to-any color space converion.
This implies the color space conversion can occur from an
input format consisting of - RGB, YUV 444, YUV 422, YUV 420 to an
output format list consisting of - RGB, YUV 444, YUV 422, YUV 420.

The IP supports YUV 420, but due to the lack of YUV 420 in
media-bus-format.h that support in the driver will be deferred to later.

Signed-off-by: Rohit Athavale <rathaval@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoDocumentation: DT: Update binding doc for any-to-any conversion
Rohit Athavale [Fri, 4 Aug 2017 22:54:07 +0000 (15:54 -0700)]
Documentation: DT: Update binding doc for any-to-any conversion

This commit updates the device tree binding doc to support any-to-any
color space conversion.

Signed-off-by: Rohit Athavale <rathaval@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: fb: Make fbdev optional
Hyun Kwon [Wed, 9 Aug 2017 23:31:37 +0000 (16:31 -0700)]
drm: xilinx: fb: Make fbdev optional

The emulated fbdev doesn't have to be initialized for DRM KMS
functionality. So this patch makes the fbdev not required, and
the driver initializes properly without fbdev. Currently
the condition to skip fbdev is the format.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx: csi2rxss: Handle failing to create custom control
Vishal Sagar [Thu, 10 Aug 2017 07:23:52 +0000 (12:53 +0530)]
v4l: xilinx: csi2rxss: Handle failing to create custom control

Correctly handle the error generated while creating new custom 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 agoremoteproc: Reduce asynchronous request_firmware to auto-boot only
Sarangdhar Joshi [Tue, 8 Aug 2017 18:08:22 +0000 (11:08 -0700)]
remoteproc: Reduce asynchronous request_firmware to auto-boot only

The rproc_add_virtio_devices() requests firmware asynchronously and
triggers boot if the auto_boot flag is set. However, this
asynchronous call seems to be redundant for non auto-boot scenario
since the rproc_boot() would call request_firmware() anyways. Move
the auto_boot check to rproc_add() so that a redundant call to
_request_firmware can be avoided for non auto-boot case.

Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoremoteproc: Drop firmware_loading_complete
Sarangdhar Joshi [Tue, 8 Aug 2017 18:08:21 +0000 (11:08 -0700)]
remoteproc: Drop firmware_loading_complete

firmware_loading_complete is used to synchronize operations
on rproc while asynchronous firmware loading is in progress.
However, rproc_boot() no longer waits on
firmware_loading_complete. Hence drop this completion
variable altogether and handle the race between rproc_del()
and rproc_boot() using new state RPROC_DELETED.

The request_firmware_nowait() will hold the reference to
rproc device by using a get_device()/put_device(), so the
rproc struct will remain valid even when we return from
rproc_del() before the asynchronous call to
rproc_fw_config_virtio() completes.

CC: Loic Pallardy <loic.pallardy@st.com>
CC: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoremoteproc: Drop wait in __rproc_boot()
Bjorn Andersson [Tue, 8 Aug 2017 18:08:20 +0000 (11:08 -0700)]
remoteproc: Drop wait in __rproc_boot()

In the event that rproc_boot() is called before the firmware loaded
completion has been flagged it will wait with the mutex held,
obstructing the request_firmware_nowait() callback from completing the
wait.

As rproc_fw_config_virtio() has been reduced to only triggering
auto-boot there is no longer a reason for waiting in rproc_boot(), so
drop this.

Cc: Sarangdhar Joshi <spjoshi@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoremoteproc: Add RPROC_DELETED state
Sarangdhar Joshi [Tue, 8 Aug 2017 18:08:19 +0000 (11:08 -0700)]
remoteproc: Add RPROC_DELETED state

Add new state RPROC_DELETED to handle synchronization
between rproc_del() and other operations on rproc. This
state represents the rproc device that has been "deleted".

CC: Loic Pallardy <loic.pallardy@st.com>
CC: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agostaging: Remove unused axivdma driver
Michal Simek [Thu, 10 Aug 2017 06:40:18 +0000 (08:40 +0200)]
staging: Remove unused axivdma driver

Remove this unused driver. TRD migrated to V4L2 framework which already
implements generic dma client driver.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoremoteproc: Remove unused mb remoteproc
Michal Simek [Thu, 10 Aug 2017 06:37:39 +0000 (08:37 +0200)]
remoteproc: Remove unused mb remoteproc

MB remoteproc was done as proof of concept but it never turns to a
tested solution because of hw dependencies. Remove this unused driver.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agorpmsg: Remove unused ancient drivers
Michal Simek [Tue, 8 Aug 2017 17:00:28 +0000 (19:00 +0200)]
rpmsg: Remove unused ancient drivers

These two drivers are not used for years that's why remove them.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agomedia: platform: Sync with mainline
Michal Simek [Tue, 8 Aug 2017 14:48:09 +0000 (16:48 +0200)]
media: platform: Sync with mainline

Syncup location with mainline.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: Remove code which was used by QEMU for SMP improvement
Michal Simek [Tue, 8 Aug 2017 13:56:00 +0000 (15:56 +0200)]
arm64: Remove code which was used by QEMU for SMP improvement

Revert "arm64: Implement cpu_relax as yield"
This reverts commit 4d28a8f43854f7ba24836fbbe2a950c2c4e3c542.
where only yield instruction was added to mainline by:
"arm64: Implement cpu_relax as yield"
(sha1: 1baa82f48030f38d1895301f1ec93acbcb3d15db)

Based on discussion with QEMU folks adding sev is also not needed now.
Revert "arm64: spinlock: sev when unlocking locks"
(sha1: 16ae6f669a03f9c9a01768be1d2bfd3de3e9b771)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoi2c: cadence: Remove pm_runtime_disable
Michal Simek [Tue, 8 Aug 2017 13:38:46 +0000 (15:38 +0200)]
i2c: cadence: Remove pm_runtime_disable

pm_runtime_disable was removed as the part of this patch.
"i2c: cadence: Fix power management order of operations"
(sha1: 06416af3a95082d5d459c8a532acaadc91a20138)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodt-binding: Remove obsolete xlnx,zynq-smc.txt
Michal Simek [Tue, 8 Aug 2017 12:53:22 +0000 (14:53 +0200)]
dt-binding: Remove obsolete xlnx,zynq-smc.txt

This binding doc was replaced by memory-controllers/pl353-smc.txt.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodt-binding: Document zynqmp-8.9a compatible string
Michal Simek [Tue, 8 Aug 2017 11:31:25 +0000 (13:31 +0200)]
dt-binding: Document zynqmp-8.9a compatible string

Extend binding to cover "xlnx,zynqmp-8.9a" compatible string.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoedac: synopsys: Do not use symbolic permissions
Michal Simek [Tue, 8 Aug 2017 10:11:00 +0000 (12:11 +0200)]
edac: synopsys: Do not use symbolic permissions

Use octal permission instead of symbolic permissions.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoedac: synopsys: Fix register misspelling
Michal Simek [Tue, 8 Aug 2017 10:10:15 +0000 (12:10 +0200)]
edac: synopsys: Fix register misspelling

s/regsiter/register/g

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoc67x00: Syncup this driver with mainline
Michal Simek [Tue, 8 Aug 2017 09:23:13 +0000 (11:23 +0200)]
c67x00: Syncup this driver with mainline

In past this driver was used on ml50x platform. These platforms are
completely untested and obsolete now that's why revert these changes.

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