]> rtime.felk.cvut.cz Git - vajnamar/linux-xlnx.git/log
vajnamar/linux-xlnx.git
6 years agodt-binding: Remove duplicated property
Michal Simek [Tue, 8 Aug 2017 09:19:41 +0000 (11:19 +0200)]
dt-binding: Remove duplicated property

Remove duplicated interrupt controller property.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agophy: Remove empty line from Makefile
Michal Simek [Tue, 8 Aug 2017 09:09:40 +0000 (11:09 +0200)]
phy: Remove empty line from Makefile

There is no reason for this empty line.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agospi: mark device nodes only in case of successful instantiation
Ralf Ramsauer [Mon, 17 Oct 2016 13:59:56 +0000 (15:59 +0200)]
spi: mark device nodes only in case of successful instantiation

Instantiated SPI device nodes are marked with OF_POPULATE. This was
introduced in bd6c164. On unloading, loaded device nodes will of course
be unmarked. The problem are nodes that fail during initialisation: If a
node fails, it won't be unloaded and hence not be unmarked.

If a SPI driver module is unloaded and reloaded, it will skip nodes that
failed before.

Skip device nodes that are already populated and mark them only in case
of success.

Note that the same issue exists for I2C.

Fixes: bd6c164 ("spi: Mark instantiated device nodes with OF_POPULATE")
Signed-off-by: Ralf Ramsauer <ralf@ramses-pyramidenbau.de>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Pantelis Antoniou <pantelis.antoniou@konsulko.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
6 years agoRevert "xen: Add support for earlycon"
Michal Simek [Tue, 8 Aug 2017 08:14:53 +0000 (10:14 +0200)]
Revert "xen: Add support for earlycon"

This reverts commit 0dd1a95882e75362626ed97df44754e24a3be305.

This is implemented already by mainline patch:
"hvc_xen: add earlycon support"
(sha1: 16e506efc08e5cab313588bd0e38803d4bbaad59)

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm: zynq: Remove useless empty line
Michal Simek [Tue, 8 Aug 2017 07:59:49 +0000 (09:59 +0200)]
arm: zynq: Remove useless empty line

Syncup with mainline.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoRevert "apf: Introduce cache prefetch workaround"
Michal Simek [Tue, 8 Aug 2017 05:53:27 +0000 (07:53 +0200)]
Revert "apf: Introduce cache prefetch workaround"

This reverts commit 468329e7fac2b22e76897fbd40532cc0884ded2a.
The issue was in APF code which was already fixed that's why this
workaround is no longer needed.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoremoteproc: zynqmp_r5: probe() error out if no 'srams' found
Wendy Liang [Mon, 7 Aug 2017 23:41:17 +0000 (16:41 -0700)]
remoteproc: zynqmp_r5: probe() error out if no 'srams' found

As 'srams' is always required for RPU firmware memories, make
zynqmp_r5 driver probe() failed if no 'srams' exists in the
DTB.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoPCI: XDMA PL PCIe: Fixing legacy interrupt handling bug
Bharat Kumar Gogada [Wed, 9 Aug 2017 14:58:55 +0000 (20:28 +0530)]
PCI: XDMA PL PCIe: Fixing legacy interrupt handling bug

Interrupts were tested as per fixes in CR-981433.
Verified interrupts and fixing bug while handling legacy interrupts.

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

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

Signed-off-by: Naga Sureshkumar Relli <nagasure@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoremoteproc: zynqmp_r5: replace udelay() with usleep_range()
Wendy Liang [Tue, 8 Aug 2017 06:49:46 +0000 (23:49 -0700)]
remoteproc: zynqmp_r5: replace udelay() with usleep_range()

As suggested by checkpatch, use usleep_range to replace
udelay(), as busy loop is not required and we want to delay
500us.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoremoteproc: zynqmp_r5: Use () around macro argument
Wendy Liang [Tue, 8 Aug 2017 06:49:45 +0000 (23:49 -0700)]
remoteproc: zynqmp_r5: Use () around macro argument

Macro argument is better put in '()' as '(ARG)' in macro definition to
avoid precedence issues.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoremoteproc: zynqmp_r5: fix more than 80 chars warning
Wendy Liang [Tue, 8 Aug 2017 06:49:44 +0000 (23:49 -0700)]
remoteproc: zynqmp_r5: fix more than 80 chars warning

This patch is to fix the checkpatch warning on one line
exceeds 80 characters.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: sdi: Modify DRM modes for sdi
Saurabh Sengar [Tue, 8 Aug 2017 04:33:01 +0000 (10:03 +0530)]
drm: xilinx: sdi: Modify DRM modes for sdi

This patch modifies the sdi DRM modes for sdi tx driver and a minor comment
associated with it.

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 agodwc3: Fix the logic used to get data from parent node
Anurag Kumar Vulisha [Fri, 4 Aug 2017 15:01:59 +0000 (20:31 +0530)]
dwc3: Fix the logic used to get data from parent node

At present when two usb nodes are enabled, incorrect simple data is
getting fetched from parent node. Because of this kernel panic was
getting triggered when more than one usb nodes are enabled.
This patch fixes the logic used to get simple data from parent node.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agowatchdog: cadence_wdt: make of_device_ids const.
Arvind Yadav [Tue, 20 Jun 2017 05:34:26 +0000 (11:04 +0530)]
watchdog: cadence_wdt: make of_device_ids const.

of_device_ids are not supposed to change at runtime. All functions
working with of_device_ids provided by <linux/of.h> work with const
of_device_ids. So mark the non-const structs as const.

File size before:
   text    data     bss     dec     hex filename
   1962     612       4    2578     a12 drivers/watchdog/cadence_wdt.o

File size after constify cdns_wdt_of_match:
   text    data     bss     dec     hex filename
   2378     196       4    2578     a12 drivers/watchdog/cadence_wdt.o

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
6 years agodrm: xilinx: sdi: UHD-SDI subsystem register spec change
Saurabh Sengar [Fri, 4 Aug 2017 06:21:13 +0000 (11:51 +0530)]
drm: xilinx: sdi: UHD-SDI subsystem register spec change

This patch modifies the registers as per latest UHD-SDI register spec
finalized for 2017.3.
Due to the registers and bit changes,
there are some masks needs to be added/modified too.
Also the error status bits are converted to interrupts,
hence updating the handler too accordingly.

Signed-off-by: Saurabh Sengar <saurabhs@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: sdi: correcting the payload value for line 1
Saurabh Sengar [Wed, 2 Aug 2017 14:21:18 +0000 (19:51 +0530)]
drm: xilinx: sdi: correcting the payload value for line 1

Correcting the payload value for line 1 in SDI - SD 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 agozynqmp_dma: Fix race condition in the prep_sg
Kedareswara rao Appana [Wed, 2 Aug 2017 09:07:07 +0000 (14:37 +0530)]
zynqmp_dma: Fix race condition in the prep_sg

Currently driver is allocating a descriptor at the
beginning of the prep_sg(), after that checking for length
of the descriptor it may set to NULL.

In this case we should either free the allocated descriptor
or allocate descriptor after checking for the size of the
descriptor, instead of allocating the descriptor at the
beginning of the prep_sg().

This patch fixes this issue.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agonet: phy: xilinx_phy: Add support for 2p5G phy
Kedareswara rao Appana [Wed, 2 Aug 2017 09:07:06 +0000 (14:37 +0530)]
net: phy: xilinx_phy: Add support for 2p5G phy

This patch adds support for 2.5G PCS/PMA PHY

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Enable watchdog for zcu100 revB and revC
Michal Simek [Mon, 31 Jul 2017 09:21:12 +0000 (11:21 +0200)]
arm64: zynqmp: Enable watchdog for zcu100 revB and revC

Add missing watchdog node for zcu100 revB/revC.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoRevert "drm: xilinx: crtc: Add crtc set config helper"
Hyun Kwon [Tue, 1 Aug 2017 17:07:25 +0000 (10:07 -0700)]
Revert "drm: xilinx: crtc: Add crtc set config helper"

This reverts commit 589d1b61a232
("drm: xilinx: crtc: Add crtc set config helper").

This patch results in the fbconsole looking strange. For example,
if fbconsole is set to 1080p, while modeset changes to 4k, it ends up
with 2 fbconsole next to each other.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
CC: Preetesh Parekh <preetesh.parekh@xilinx.com>
CC: Christian Kohn <christian.kohn@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: plane: commit for each plane update
Hyun Kwon [Wed, 2 Aug 2017 01:32:48 +0000 (18:32 -0700)]
drm: xilinx: plane: commit for each plane update

The dma descriptor should be updated for every plane update
request. Call the plane commit to schedule the descriptor
with the latest framebuffer information.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx-gamma: Correct return value checking
Rohit Athavale [Tue, 1 Aug 2017 02:30:32 +0000 (19:30 -0700)]
v4l: xilinx-gamma: Correct return value checking

This commit fixes the return values checking for Green and Blue
Gamma controls. Driver probe fails as it is unable to setup Green
and Blue controls.

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 agoPCI: XDMA PL PCIe: Adding XDMA PL PCIe Root Port
Bharat Kumar Gogada [Fri, 28 Jul 2017 12:25:37 +0000 (17:55 +0530)]
PCI: XDMA PL PCIe: Adding XDMA PL PCIe Root Port

Adding kernel configuration for XDMA PL PCIe controller.
Adding support for XDMA PL PCIe root port driver.

Changes v2:
- Fixed kernel doc and checkpatch warnings.
- Removed unneccessary checks

Signed-off-by: Bharat Kumar Gogada <bharatku@xilinx.com>
6 years agoPCI: XDMA PL PCIe: Adding device tree binding for XDMA PL PCIe
Bharat Kumar Gogada [Fri, 28 Jul 2017 12:25:36 +0000 (17:55 +0530)]
PCI: XDMA PL PCIe: Adding device tree binding for XDMA PL PCIe

Adding device tree binding for XDMA PL PCIe root port.

Signed-off-by: Bharat Kumar Gogada <bharatku@xilinx.com>
6 years agodwc3: Correct errors when dwc3 loaded as module
Anurag Kumar Vulisha [Sat, 29 Jul 2017 04:29:43 +0000 (09:59 +0530)]
dwc3: Correct errors when dwc3 loaded as module

This patch fixes the errors when dwc3 is selected as a loadable
moodule.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agozynqmp: Use new firmware.h instead of pm.h
Michal Simek [Thu, 27 Jul 2017 14:45:58 +0000 (16:45 +0200)]
zynqmp: Use new firmware.h instead of pm.h

Do not source pm.h which also contain power management functions which
are not needed by drivers.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoremoteproc: zynqmp_r5: Add dependency on PM
Michal Simek [Thu, 27 Jul 2017 13:30:34 +0000 (15:30 +0200)]
remoteproc: zynqmp_r5: Add dependency on PM

Remoteproc driver requires functions which are enabled only when ZynqMP
PM is enabled.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agosoc: zynqmp: Extract firmware part from PM
Michal Simek [Thu, 27 Jul 2017 13:32:26 +0000 (15:32 +0200)]
soc: zynqmp: Extract firmware part from PM

The purpose of this patch is to separate code used by drivers for
communication with firmware and power management functions.

New Kconfig option is added for enabling ZYNQMP_PM to enable power
management only. Low level wiring is enabled when SOC_XILINX_ZYNQMP is
enabled.

There is only one difference in behavior which is that pm platform
driver is asking for pm_api_version again and not reading this value
from low level driver.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agosoc: zynqmp: Move macros and enums from code to header
Michal Simek [Thu, 27 Jul 2017 13:48:48 +0000 (15:48 +0200)]
soc: zynqmp: Move macros and enums from code to header

This is preparation step for extracting parts which are using firmware
interface without power management features.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Enable UHDSDI Tx flag in default defconfig
Saurabh Sengar [Fri, 28 Jul 2017 05:38:07 +0000 (11:08 +0530)]
arm64: zynqmp: Enable UHDSDI Tx flag in default defconfig

This patch enables the UHDSDI Tx flag in xilinx_zynqmp_defconfig

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: DRM driver for UHDSDI Tx subsystem
Saurabh Sengar [Fri, 28 Jul 2017 05:38:06 +0000 (11:08 +0530)]
drm: xilinx: sdi: DRM driver for UHDSDI Tx subsystem

This patch adds DRM driver for Xilinx SDI Tx subsystem

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 agodt: bindings: drm: xilinx: Help for Xilinx UHDSDI Tx driver
Saurabh Sengar [Fri, 28 Jul 2017 05:38:05 +0000 (11:08 +0530)]
dt: bindings: drm: xilinx: Help for Xilinx UHDSDI Tx driver

This patch adds the documentation for xilinx UHDSDI Tx driver

Signed-off-by: Saurabh Sengar <saurabhs@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: dp_sub: Use static for internal variables
Hyun Kwon [Thu, 27 Jul 2017 17:19:20 +0000 (10:19 -0700)]
drm: xilinx: dp_sub: Use static for internal variables

Fixing the warning,
drivers/gpu/drm/xilinx/xilinx_drm_dp_sub.c:379:30: warning: symbol 'dp_sub_debugfs' was not declared. Should it be static?
drivers/gpu/drm/xilinx/xilinx_drm_dp_sub.c:540:38: warning: symbol 'dp_sub_debugfs_reqs' was not declared. Should it be static?
  CC      drivers/gpu/drm/xilinx/xilinx_drm_dp_sub.o

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
CC: Tejas Upadhyay <tejasu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: dsi: Don't check unsigned with negative
Hyun Kwon [Thu, 27 Jul 2017 17:19:19 +0000 (10:19 -0700)]
drm: xilinx: dsi: Don't check unsigned with negative

Fixing the warning,
drivers/gpu/drm/xilinx/xilinx_drm_dsi.c: In function ‘xilinx_dsi_parse_dt’:
drivers/gpu/drm/xilinx/xilinx_drm_dsi.c:677:13: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
   (datatype < MIPI_DSI_FMT_RGB888)) {

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
CC: Siva Rajesh <siva.rajesh.jarugula@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx-vpss-csc: driver support for xilinx vpss csc
Rohit Athavale [Thu, 27 Jul 2017 23:57:16 +0000 (16:57 -0700)]
v4l: xilinx-vpss-csc: driver support for xilinx vpss csc

This commit adds V4L sub-device based driver support for the
Xilinx Video Processing Sub-System (VPSS) Color Space Converter (CSC).

The driver offers color-space conversion from RGB to YUV444. It also
exposes V4L controls like Brightness, Contrast and Color Gains.

Please see http://www.wiki.xilinx.com/Xilinx+V4L2+VPSS+CSC+driver
for more details.

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: Add bindings documentation for VPSS CSC
Rohit Athavale [Thu, 27 Jul 2017 23:57:15 +0000 (16:57 -0700)]
Documentation: DT: Add bindings documentation for VPSS CSC

This patch adds DT bindings for the V4L sub-device based
VPSS CSC driver.

Signed-off-by: Rohit Athavale <rathaval@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx-gamma: initial driver support for xilinx video gamma lut ip
Rohit Athavale [Fri, 28 Jul 2017 00:29:01 +0000 (17:29 -0700)]
v4l: xilinx-gamma: initial driver support for xilinx video gamma lut ip

This commit adds V4L sub-device based driver support for the
Xilinx Video Gamma Correction Look-Up-Table (LUT) IP.

The driver allows Gamma Correction to be applied to R,G and B
components via V4L controls.

See http://www.wiki.xilinx.com/Xilinx+V4L2+Gamma+Correction+LUT+driver
for more details.

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: add bindings documentation for gamma lut ip
Rohit Athavale [Fri, 28 Jul 2017 00:29:00 +0000 (17:29 -0700)]
documentation: dt: add bindings documentation for gamma lut ip

This commit adds device tree bindings for the Xilinx Video
Gamma Correction LUT IP.

Signed-off-by: Rohit Athavale <rathaval@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodma: xilinx: dpdma: Correct interrupt enable / disable
Hyun Kwon [Fri, 28 Jul 2017 07:23:15 +0000 (00:23 -0700)]
dma: xilinx: dpdma: Correct interrupt enable / disable

The global bits are from 24 to 27, so fix the macro.
And the enable / disable registers are write only,
so there's no need to read-modifty-write.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Enable UHDSDI Rx flag in default defconfig
Vishal Sagar [Thu, 27 Jul 2017 10:11:56 +0000 (15:41 +0530)]
arm64: zynqmp: Enable UHDSDI Rx flag in default defconfig

This patch enables the UHDSDI Rx flag in xilinx_zynqmp_defconfig

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: Driver support for Xilinx UHDSDI Rx subsystem
Vishal Sagar [Thu, 27 Jul 2017 10:11:55 +0000 (15:41 +0530)]
v4l: xilinx: Driver support for Xilinx UHDSDI Rx subsystem

This patch adds the V4L2 driver for Xilinx SDI Rx subsystem.

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 agodt: bindings: media: xilinx: Documentation for Xilinx UHDSDI Rx driver
Vishal Sagar [Thu, 27 Jul 2017 10:11:54 +0000 (15:41 +0530)]
dt: bindings: media: xilinx: Documentation for Xilinx UHDSDI Rx driver

This patch adds the documentation for the Xilinx UHDSDI Rx driver.

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 agosoc: zynqmp: sdhci: Avoid setting SDx_OTAPDLYENA bits
Manish Narani [Tue, 25 Jul 2017 14:19:25 +0000 (19:49 +0530)]
soc: zynqmp: sdhci: Avoid setting SDx_OTAPDLYENA bits

This patch modifies driver to avoid setting SD0_OTAPDLYENA and
SD01_OTAPDLYENA bits. This bits have impact on functionality of RTL due
to one issue in RTL where SD0_OTAPDLYENA (Bit 6) has been wrongly
connected to both SD0 and SD1 instance. This makes the
SD1_OTAPDLYENA(bit 22) redundant. These signals are where else on the
design so there is really no need to set these bits.

Signed-off-by: Manish Narani <mnarani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoOF: resolver: Switch to new local fixups format.
Nava kishore Manne [Tue, 20 Jun 2017 12:33:13 +0000 (18:03 +0530)]
OF: resolver: Switch to new local fixups format.

The current resolver format is way too cryptic and its fail to
fix the local_fixups created by the latest dtc compiler.
this patch fix the local fixups based on the information exists in
devicetree ovelay file generated by the latest dtc compiler 1.4.4.

Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: config: xilinx: zynqmp: Increase CMA to 256M
Hyun Kwon [Wed, 26 Jul 2017 00:55:49 +0000 (17:55 -0700)]
arm64: config: xilinx: zynqmp: Increase CMA to 256M

About 100 Mbytes are required with 4K desktop environment:
(6 4K framebuffers: 2 for fbdev, 4 for Xorg). The Xorg sometimes
fails to allocate framebuffers from 128M CMA memory, since the CMA
is shared with other drivers too. Thus increase CMA size to 256M
to have enough memory, especially for video applications.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agomm: page_alloc: Demote the PFNs busy message to debug
Hyun Kwon [Wed, 26 Jul 2017 00:55:48 +0000 (17:55 -0700)]
mm: page_alloc: Demote the PFNs busy message to debug

The message is flooding the console when the reason
is not critical. Make the message less visible.

Reference: https://patchwork.kernel.org/patch/9490969/

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoremoteproc: zynq: remove unused power domain id
Wendy Liang [Wed, 26 Jul 2017 22:08:08 +0000 (15:08 -0700)]
remoteproc: zynq: remove unused power domain id

Remove the unused power domain id setting from the driver
probe() function.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodevicetree: remoteproc: zynq: update srams binding
Wendy Liang [Wed, 26 Jul 2017 22:08:07 +0000 (15:08 -0700)]
devicetree: remoteproc: zynq: update srams binding

Update firmware srams binding to use single property to
list firmware memories instead of using multiple properties.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoremoteproc: zynq: use single "srams" property
Wendy Liang [Wed, 26 Jul 2017 22:08:06 +0000 (15:08 -0700)]
remoteproc: zynq: use single "srams" property

Instead of using "sram_X" for each of the sram, use
"srams" property to list srams used by the remoteproc.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoremoteproc: zynqmp_r5: Fix code alignment
Michal Simek [Thu, 27 Jul 2017 08:42:26 +0000 (10:42 +0200)]
remoteproc: zynqmp_r5: Fix code alignment

Fix issues reported by checkpatch strict.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoremoteproc: zynqmp_r5: fix how to get power domain id
Wendy Liang [Thu, 27 Jul 2017 06:19:45 +0000 (23:19 -0700)]
remoteproc: zynqmp_r5: fix how to get power domain id

Previous, it always gets the device node parent handle which
contain the power domain id of the first one in the srams list.
This patch is to get the device node parent handler properly.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agonet: ethernet: xilinx: Fix race in the random queue selection
Kedareswara rao Appana [Thu, 27 Jul 2017 06:08:26 +0000 (11:38 +0530)]
net: ethernet: xilinx: Fix race in the random queue selection

In Axi Ethernet MCDMA configuration with the existing
driver we are hard coding max 16 queues for num_queues
private structure variable it should be user configuriable.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodwc3: Add support for removing vbus when suspended
Anurag Kumar Vulisha [Thu, 27 Jul 2017 06:55:56 +0000 (12:25 +0530)]
dwc3: Add support for removing vbus when suspended

During suspend, dwc3 host puts the device into U3 state and disables the
clocks. During resume, dwc3 host drives LFPS.polling to detect the
connected usb device and most of the usb devices detect LFPS.polling signal
and drives LFPS.U3 exit signal and gets detected by the dwc3 host. But very
few usb devices during resume doesn't drive u3 exit signalling even after
seeing LFPS.polling signal on the link and wait for the host to initiate an
u3 exit(Currently the USB stack doesn't drive U3 exit during resume from
suspened). These kind of devices doesn't even respond to warm reset
signalling sent by the host. Since these usb devices doesn't respond to
polling or warm reset, host controller doesn't generate USB detect event
after resume from suspend until manual disconnect.

To aviod the above said issue, during suspend we need to ask ULPI phy to
stop driving of VBUS and restore VBUS during resume. Doing so, will make
usb device to enter into RX Detect state and start LFPS.polling after
restoring LFPS.polling signal and thus generating detect event on the host
side.

This patch does the above said with a check to ensure that VBUS is not
disabled for the usb devices that are remote wakeup capable.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agogpu: xilinx: dpdma: dpsub removed warning
Tejas Upadhyay [Thu, 27 Jul 2017 07:29:55 +0000 (00:29 -0700)]
gpu: xilinx: dpdma: dpsub removed warning

min() function requires same type of variables in argument,
due to different type of argument on different architecure
(32bit/64bit), warning was thrown. Addressed warning by this
patch.

Signed-off-by: Tejas Upadhyay <tejasu@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agogpu: drm: xilinx: Remove blank lines
Michal Simek [Thu, 27 Jul 2017 08:34:22 +0000 (10:34 +0200)]
gpu: drm: xilinx: Remove blank lines

There is no need for additional blank lines.
All reported by checkpatch.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agomedia: xilinx: Ensure Video Framebuffer selected by Kconfig
Jeffrey Mouroux [Thu, 27 Jul 2017 00:21:15 +0000 (17:21 -0700)]
media: xilinx: Ensure Video Framebuffer selected by Kconfig

The Xilinx Video Linux driver is a client of the Video Framebuffer DMA
driver. Because the Framebuffer driver exports symbols used by this driver,
it is important that both are built in the same manner: as modules or
as statically included drivers.

Signed-off-by: Jeffrey Mouroux <jmouroux@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: Ensure Video Framebuffer selected by Kconfig
Jeffrey Mouroux [Thu, 27 Jul 2017 00:21:14 +0000 (17:21 -0700)]
drm: xilinx: Ensure Video Framebuffer selected by Kconfig

The Xilinx DRM driver is a client of the Video Framebuffer DMA driver.
Because the Framebuffer driver exports symbols used by this driver, it
is important that both are built in the same manner: as modules or
as statically included drivers.

Signed-off-by: Jeffrey Mouroux <jmouroux@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodma: xilinx: Ensure custom framebuffer dma interface builds as module
Jeffrey Mouroux [Thu, 27 Jul 2017 00:21:13 +0000 (17:21 -0700)]
dma: xilinx: Ensure custom framebuffer dma interface builds as module

The Video Framebuffer DMA driver has a custom client interface.  It
is built properly when the driver is configured to be built statically
but not when built as a module.

Signed-off-by: Jeffrey Mouroux <jmouroux@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Setup correct 2GB memory size for zcu104
Michal Simek [Thu, 27 Jul 2017 07:22:44 +0000 (09:22 +0200)]
arm64: zynqmp: Setup correct 2GB memory size for zcu104

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

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodts: zynqmp: Add maximum-speed property to dwc3 node
Siva Durga Prasad Paladugu [Mon, 15 May 2017 11:52:40 +0000 (17:22 +0530)]
dts: zynqmp: Add maximum-speed property to dwc3 node

Add maximum-speed property to dwc3 node of zcu102 dts
This property needs to defined as per latest USB DM
patches. This fixes the issue of usb on zcu102
board.

Signed-off-by: Siva Durga Prasad Paladugu <sivadur@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Use proper license for zc1232
Michal Simek [Tue, 25 Jul 2017 10:00:03 +0000 (12:00 +0200)]
arm64: zynqmp: Use proper license for zc1232

This was c&p error from U-Boot which use SDPX license identifier.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Add missing alias for gem0 for ep108
Michal Simek [Thu, 11 May 2017 08:15:15 +0000 (10:15 +0200)]
arm64: zynqmp: Add missing alias for gem0 for ep108

Add missing alias for gem0 for ep108 to have proper sequence number.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodma: xilinx: ps_pcie_dma_client: Cosmetic Changes
Ravi Shankar Jonnalagadda [Fri, 21 Jul 2017 10:20:10 +0000 (15:50 +0530)]
dma: xilinx: ps_pcie_dma_client: Cosmetic Changes

Using ARRAY_SIZE macro for calculating size of array

Signed-off-by: Ravi Shankar Jonnalagadda <vjonnal@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: crtc: Fix the pixel clock enablement
Hyun Kwon [Mon, 24 Jul 2017 03:52:18 +0000 (20:52 -0700)]
drm: xilinx: crtc: Fix the pixel clock enablement

The pixel clock doesn't have to be enabled in probe. Enable
the clock upon DPMS on request. The clock needs to be enabled
first to make sure that CCF disables the clock as CCF skips
the disable request for already disabled clock.
And the clock enable flag was always set to true upon DPMA on.
Fix it to be set to false when the clk_prepare_enable() fails.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodrm: xilinx: dp: Disable the audio clock
Hyun Kwon [Mon, 24 Jul 2017 03:52:17 +0000 (20:52 -0700)]
drm: xilinx: dp: Disable the audio clock

For DPMS off, turn off the audio clock.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agosound: soc: xilinx: codec: Add the PM functions
Hyun Kwon [Mon, 24 Jul 2017 03:52:16 +0000 (20:52 -0700)]
sound: soc: xilinx: codec: Add the PM functions

The audio clock needs to be disabled when going into suspend.

Signed-off-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agonet: ethernet: xilinx: Fix race condition in the tx path
Kedareswara rao Appana [Fri, 21 Jul 2017 09:51:40 +0000 (15:21 +0530)]
net: ethernet: xilinx: Fix race condition in the tx path

In the _xmit driver is checking for the buffer descriptor
availabilty, If the buffer descriptors are not available
it is stopping all the device queues,
It should stop only that particular queue as
other queues still may have free buffer descriptors
for servicing the data.

This patch fixes this issue.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agonet: ethernet: xilinx: Add support for 1588 in buffered mode
Kedareswara rao Appana [Fri, 21 Jul 2017 09:51:39 +0000 (15:21 +0530)]
net: ethernet: xilinx: Add support for 1588 in buffered mode

This patch adds support for 1588 in buffered mode.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agonet: ethernet: xilinx: Add support for mcdma
Kedareswara rao Appana [Fri, 21 Jul 2017 09:51:38 +0000 (15:21 +0530)]
net: ethernet: xilinx: Add support for mcdma

This patch adds support for MCDMA IP in the driver.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoDocumentation: DT: Add support for mcdma
Kedareswara rao Appana [Fri, 21 Jul 2017 09:51:37 +0000 (15:21 +0530)]
Documentation: DT: Add support for mcdma

THis patch updates the binding doc with mcdma properties.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Acked-by: Harini Katakam <harinik@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodwc3: Add support for clock disabling during suspend
Anurag Kumar Vulisha [Wed, 19 Jul 2017 13:55:51 +0000 (19:25 +0530)]
dwc3: Add support for clock disabling during suspend

In dwc3 usb controller, when remote wakeup feature is enabled and
the controller is in U3 state (suspended), it requires suspend_clk
to be active to detect wakeup signalling driven on the link.
For all other cases usb clocks can be disabled once the controller
enters U3 state.

This patch adds the logic for disabling usb clocks when remote
wakeup feature is not enabled.

Signed-off-by: Anurag Kumar Vulisha <anuragku@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agosdhci: add support for switching to UHS-I modes on ZynqMP Platform
Manish Narani [Wed, 19 Jul 2017 15:46:35 +0000 (21:16 +0530)]
sdhci: add support for switching to UHS-I modes on ZynqMP Platform

This patch adds support for switching to UHS-I modes on ZynqMP platform.
There is one issue with the ZynqMP ZCU102 where it is not able to power
cycle the SD card. Due to this once the card is initialized in UHS-I
mode it cannot be reinitialized in UHS-I mode again. So to solve this
issue there are some of the checks are made in place to ensure that the
card operates in UHS-I mode even on reinitialization. This will enable
the SD host controller to run SD at 200MHz in linux if it was running at
200MHz in U-boot.

Signed-off-by: Manish Narani <mnarani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agozynqmp: devicetree: Remove no-1-8-v property to add UHS-I support for SD
Manish Narani [Wed, 19 Jul 2017 15:46:32 +0000 (21:16 +0530)]
zynqmp: devicetree: Remove no-1-8-v property to add UHS-I support for SD

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

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

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

Signed-off-by: Manish Narani <mnarani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodocumentation: dt: modify bindings documentation for arasan sdhci
Manish Narani [Wed, 19 Jul 2017 15:46:34 +0000 (21:16 +0530)]
documentation: dt: modify bindings documentation for arasan sdhci

This patch modifies device tree bindings documentation for arasan sdhci.

Signed-off-by: Manish Narani <mnarani@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoARM: zynq: Reserve correct amount of non-DMA RAM
Kyle Roeschley [Mon, 31 Oct 2016 16:26:17 +0000 (11:26 -0500)]
ARM: zynq: Reserve correct amount of non-DMA RAM

On Zynq, we haven't been reserving the correct amount of DMA-incapable
RAM to keep DMA away from it (per the Zynq TRM Section 4.1, it should be
the first 512k). In older kernels, this was masked by the
memblock_reserve call in arm_memblock_init(). Now, reserve the correct
amount excplicitly rather than relying on swapper_pg_dir, which is an
address and not a size anyway.

Fixes: 46f5b96 ("ARM: zynq: Reserve not DMAable space in front of the
kernel")

Signed-off-by: Kyle Roeschley <kyle.roeschley@ni.com>
Tested-by: Nathan Rossi <nathan@nathanrossi.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: dts: xilinx: fix PCI bus dtc warnings
Rob Herring [Wed, 22 Mar 2017 02:03:13 +0000 (21:03 -0500)]
arm64: dts: xilinx: fix PCI bus dtc warnings

dtc recently added PCI bus checks. Fix these warnings.

Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Michal Simek <michal.simek@xilinx.com>
Cc: "Sören Brinkmann" <soren.brinkmann@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Add nvmem i2c decoding to zcu102 rev1.0
Michal Simek [Mon, 19 Jun 2017 12:29:35 +0000 (14:29 +0200)]
arm64: zynqmp: Add nvmem i2c decoding to zcu102 rev1.0

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoarm64: zynqmp: Add zcu102 Rev1.0 dts
Michal Simek [Thu, 20 Jul 2017 10:57:15 +0000 (12:57 +0200)]
arm64: zynqmp: Add zcu102 Rev1.0 dts

Add Rev1.0 dts file to have an option to describe only specific revision
changes. This also means that Rev1.0 is tested.

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

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

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

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

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

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

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

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

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

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx-vpss-scaler: fix logical error in pixels per clock check
Rohit Athavale [Thu, 13 Jul 2017 17:43:14 +0000 (10:43 -0700)]
v4l: xilinx-vpss-scaler: fix logical error in pixels per clock check

Typo in logic that verifies that only 1 or 2 PPC is supported.
Existing code fails for 2 PPC. This commit fixes that.

Signed-off-by: Rohit Athavale <rohit.athavale@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoiio: adc: xilinx-ams: Fix code alignment reported by checkpatch
Michal Simek [Wed, 19 Jul 2017 07:06:36 +0000 (09:06 +0200)]
iio: adc: xilinx-ams: Fix code alignment reported by checkpatch

All issues are reported as "Alignment should match open parenthesis".
The patch is fixing all issues in this file.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoiio: adc: xilinx-ams: reset [ps|pl]-sysmon before channel config
Olivier Dugas [Tue, 18 Jul 2017 17:32:36 +0000 (13:32 -0400)]
iio: adc: xilinx-ams: reset [ps|pl]-sysmon before channel config

The documentation for PS and PL System Monitor Programming Model
specifies that in order to change which channel to monitor, the SYSMON
must be put in a soft reset. This is done by modifying its
sequence_mode to default.

This fixes in_voltage15_vccbram_raw always reading 0.

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Olivier Dugas <dugaso@sonatest.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agowatchdog: cadence_wdt: Fix issue with timeout-sec dt property
Nava kishore Manne [Wed, 19 Jul 2017 06:48:08 +0000 (12:18 +0530)]
watchdog: cadence_wdt: Fix issue with timeout-sec dt property

Unable to change timeout value via DT because watchdog_init_timeout()
code which reads from DT is not called at all. Because
watchdog_init_timeout() gives the priority for the module parameter value.
If the value is not valid then only it will read from the Device tree.
But currenly in the driver module parameter default value is fixed to 10s
means watchdog_init_timeout() always use the module parameter timeout
value. It will always ignore the timeout-sec dt property value.

This patch fix this issue.

Signed-off-by: Nava kishore Manne <navam@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agov4l: xilinx-vpss-scaler: add bilinear and bicubic scaling support
Rohit Athavale [Wed, 19 Jul 2017 00:05:20 +0000 (17:05 -0700)]
v4l: xilinx-vpss-scaler: add bilinear and bicubic scaling support

This commit adds bilinear and bicubic scaling support to
the driver.Bilinear scaling is much simpler as the driver
need not program coefficients.

Signed-off-by: Rohit Athavale <rohit.athavale@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodevice-tree: vpss-scaler: update doc for bilinear scaling algorithm
Rohit Athavale [Fri, 14 Jul 2017 00:14:31 +0000 (17:14 -0700)]
device-tree: vpss-scaler: update doc for bilinear scaling algorithm

This patch updates the binding document for bilinear scaling
driver support.

Signed-off-by: Rohit Athavale <rohit.athavale@xilinx.com>
Reviewed-by: Hyun Kwon <hyun.kwon@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoremoteproc: zynqmp_r5: use single "srams" property
Wendy Liang [Mon, 17 Jul 2017 05:23:08 +0000 (22:23 -0700)]
remoteproc: zynqmp_r5: use single "srams" property

Instead of using "sram_X" for each of the sram, use
"srams" property to list srams used by the remoteproc.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agodevicetree: remoteproc: zynqmp_r5: update srams binding
Wendy Liang [Mon, 17 Jul 2017 05:23:09 +0000 (22:23 -0700)]
devicetree: remoteproc: zynqmp_r5: update srams binding

Update firmware srams binding to use single property to
list firmware memories instead of using multiple properties.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
6 years agodevicetree: remoteproc: zynqmp_r5: add missing pd-handle
Wendy Liang [Mon, 17 Jul 2017 05:18:36 +0000 (22:18 -0700)]
devicetree: remoteproc: zynqmp_r5: add missing pd-handle

Add missing "pd-handle" property binding to documentation.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agoremoteproc: zynqmp_r5: allow use r5 rproc without IPI
Wendy Liang [Mon, 17 Jul 2017 05:24:04 +0000 (22:24 -0700)]
remoteproc: zynqmp_r5: allow use r5 rproc without IPI

This modification is to allow the ZynqMP RPU remoteproc
to be used without IPI as user can use the remoteproc
to just load firmware but no communication with the remote.

Signed-off-by: Wendy Liang <jliang@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agomedia: xilinx: dma: Enable use of Framebuffer Write IP in V4L2 Driver
Jeffrey Mouroux [Fri, 14 Jul 2017 01:31:13 +0000 (18:31 -0700)]
media: xilinx: dma: Enable use of Framebuffer Write IP in V4L2 Driver

The Xilinx Video Framebuffer driver is video 'format aware' and
requires clients to pass video format information as part of DMA
programming. As the DMA Engine interface does not support passing
this information, a configuration object is passed through the
dma channel's private data to the Framebuffer Driver with this
information.

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: Enable use of Framebuffer Read IP in Xilinx DRM Driver
Jeffrey Mouroux [Fri, 14 Jul 2017 01:31:12 +0000 (18:31 -0700)]
drm: xilinx: Enable use of Framebuffer Read IP in Xilinx DRM Driver

Xilinx Video Framebuffer read is a 'format aware' DMA device.  It
requires knowledge of the video memory format to be explicitly
programmed by DMA clients.  This change enables this data to be
passed via the dma channel private data pointer as there is no
standard DMA Engine interface for passing this information.

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: New driver for Video Framebuffer IP
Jeffrey Mouroux [Fri, 14 Jul 2017 01:31:11 +0000 (18:31 -0700)]
dma: xilinx: New driver for Video Framebuffer IP

The Video Framebuffer IP is available in two forms: read or write.
This driver supports either form of the IP.
Each IP is a single channel DMA but which is video format aware
supporting video data that arranged in memory as packed or semi-planar data.
This driver introduces support for these IP and integrates with the
DMA Engine framework.

Signed-off-by: Radhey Pandey <radheys@xilinx.com>
Signed-off-by: John Nichols <jnichol@xilinx.com>
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: xilinx: Video Framebuffer IP
Jeffrey Mouroux [Fri, 14 Jul 2017 01:31:10 +0000 (18:31 -0700)]
Documentation: devicetree: bindings: dma: xilinx: Video Framebuffer IP

Add binding doc.

Signed-off-by: Radhey Pandey <radheys@xilinx.com>
Signed-off-by: John Nichols <jnichol@xilinx.com>
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 agopinctrl: zynqmp: Change macros name to reflect actual mA setting
Michal Simek [Tue, 18 Jul 2017 13:06:01 +0000 (15:06 +0200)]
pinctrl: zynqmp: Change macros name to reflect actual mA setting

DT should use these DRIVE_STRENGTH macro but all others are simply using
value. Setting up macros as values in mA to avoid issues where users
write values directly without macros.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
6 years agouio: apm: Add documentation for 32-bit filter
Shubhrajyoti Datta [Fri, 14 Jul 2017 05:43:56 +0000 (11:13 +0530)]
uio: apm: Add documentation for 32-bit filter

Add documentation for xlnx,id-filter-32bit.

Signed-off-by: Shubhrajyoti Datta <shubhrajyoti.datta@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>