]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/log
vajnamar/linux-xlnx.git
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
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>
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>