linux.git
7 years agoMLK-16097-1 ARM64: imx8qxp: distinguish qm and qxp for pcie
Richard Zhu [Fri, 28 Jul 2017 04:38:28 +0000 (12:38 +0800)]
MLK-16097-1 ARM64: imx8qxp: distinguish qm and qxp for pcie

Use imx8qxp to specify the imx8qxp pcie support

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-16052-2 PCI: imx: fix the pcieb link down issue
Richard Zhu [Thu, 27 Jul 2017 07:58:27 +0000 (15:58 +0800)]
MLK-16052-2 PCI: imx: fix the pcieb link down issue

The calibration value of PCIEA is mandatory required
by PCIEB on iMX8QM.

The RSTs of the PCIEA would be cleared when the PDs
of PCIEA are turned off.
The calibration value of PCIEA would be lost when the
RSTs of PCIEA are cleared.
So, the RSTs of PCIEA should be asserted when enable
the PCIEB port. Otherwise, PCIEB wouldn't be functional.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-16052-1 arm64: imx8qm: refine pcie power on imx8qm
Richard Zhu [Mon, 24 Jul 2017 03:20:09 +0000 (11:20 +0800)]
MLK-16052-1 arm64: imx8qm: refine pcie power on imx8qm

- Refine the pd definitions of the imx8qm/qxp hsio.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-13951-3 arm64: dts: fsl-imx8qm: enable AMIX
Viorel Suman [Thu, 27 Jul 2017 08:47:05 +0000 (11:47 +0300)]
MLK-13951-3 arm64: dts: fsl-imx8qm: enable AMIX

Enable AMIX in i.MX8 QM.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-13951-2 arm64: dts: fsl-imx8qm: enable SAI6, SAI7 and AMIX
Viorel Suman [Mon, 24 Jul 2017 11:16:26 +0000 (14:16 +0300)]
MLK-13951-2 arm64: dts: fsl-imx8qm: enable SAI6, SAI7 and AMIX

Enable SAI6, SAI7 and AMIX nodes.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-13951-1 clk: imx8qm: fix PD for SAI1 and SAI2 MCLK_SELs
Viorel Suman [Thu, 27 Jul 2017 07:49:45 +0000 (10:49 +0300)]
MLK-13951-1 clk: imx8qm: fix PD for SAI1 and SAI2 MCLK_SELs

Fix PD for SAI1 and SAI2 MCLK_SELs

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-15986-9: arm64: config: video: fbdev: Add fbdev config options
Cristina Ciocan [Thu, 6 Jul 2017 09:28:16 +0000 (12:28 +0300)]
MLK-15986-9: arm64: config: video: fbdev: Add fbdev config options

This patch enables fbdev configs for LCDIF, MIPI DSI Northwest, Truly panel
and ADV7535 MIPI-to-HDMI converter.

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
7 years agoMLK-15986-8: video: fbdev: Add 64bit framebuffer support for ADV7535
Cristina Ciocan [Wed, 5 Jul 2017 17:26:39 +0000 (20:26 +0300)]
MLK-15986-8: video: fbdev: Add 64bit framebuffer support for ADV7535

This patch adds support for ADV7535  MIPI-to-HDMI converter for 64bit
platforms.

ADV7535 driver changes are added from Fancy Fang's commit ca389b0895c9
("MLK-15322-11: video: fbdev: adv7535: enable adv7535 driver").

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
7 years agoMLK-15986-7: video: fbdev: Add MIPI DSI NORTHWEST support for 64bit platforms
Cristina Ciocan [Wed, 5 Jul 2017 17:14:47 +0000 (20:14 +0300)]
MLK-15986-7: video: fbdev: Add MIPI DSI NORTHWEST support for 64bit platforms

This patch adds support for 64bit platforms, on top of existing 32bit
support. Among some noticeable differences that occurred for the MIPI DSI
Northwest controller: 4 lane support is added and power management differs.

MIPI DSI Northwest driver changes are added from Fancy Fang's commit
df47fccaf6 "MLK-15322-8 video: fbdev: imx_northwest_dsi: enable Northwest
mipi dsi driver".

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
7 years agoMLK-15986-6: video: fbdev: Add LCDIF 64bit support
Cristina Ciocan [Wed, 5 Jul 2017 15:25:53 +0000 (18:25 +0300)]
MLK-15986-6: video: fbdev: Add LCDIF 64bit support

This patch enables LCDIF support for 64bit platforms.

Code for the LCDIF can be found in drivers/video/fbdev/mxsfb.c. Add 64bit
debug conditional directives to LCDIF code since this is a new option for
64bit platforms.

LCDIF driver changes are added from Fancy Fang's commit c12dd5e1c24c
("MLK-15322-4 video: fbdev: imx: lcdif: enable lcdif driver for imx8mq").

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
7 years agoMLK-15986-5: video: fbdev: Add 64bit fbdev option
Cristina Ciocan [Wed, 5 Jul 2017 14:10:30 +0000 (17:10 +0300)]
MLK-15986-5: video: fbdev: Add 64bit fbdev option

Add FB_IMX64 config option that will allow fbdev drivers to offer future
support for 64bit platforms.

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
7 years agoMLK-15986-4: video: fbdev: Separate display framework code from fb driver code
Cristina Ciocan [Wed, 5 Jul 2017 13:31:42 +0000 (16:31 +0300)]
MLK-15986-4: video: fbdev: Separate display framework code from fb driver code

The display driver framework code in drivers/video/fbdev/mxc/mxc_dispdrv.c
is currently compiled along with fb driver code in
drivers/video/fbdev/mxc. This is a framework that is also used by another
fb driver that can be found in drivers/video/fbdev/mxsfb.c.

This patch separates the framework compilation by pulling it into its
own CONFIG_FB_MXC_DISP_FRAMEWORK that can be selected by any fb driver
and/or panel whose implementation relies on this framework.

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
7 years agoMLK-15986-3: Revert "MLK-15322-4 video: fbdev: imx: lcdif: enable lcdif driver for...
Cristina Ciocan [Mon, 17 Jul 2017 08:08:59 +0000 (11:08 +0300)]
MLK-15986-3: Revert "MLK-15322-4 video: fbdev: imx: lcdif: enable lcdif driver for imx8mq"

This reverts commit c12dd5e1c24c470bb391ebaffe249d5cb98acb8e.

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
7 years agoMLK-15986-2: Revert "MLK-15322-8 video: fbdev: imx_northwest_dsi: enable Northwest...
Cristina Ciocan [Mon, 17 Jul 2017 08:08:45 +0000 (11:08 +0300)]
MLK-15986-2: Revert "MLK-15322-8 video: fbdev: imx_northwest_dsi: enable Northwest mipi dsi driver"

This reverts commit df47fccaf638cf17176d202dbf05d12b17cbd3da.

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
7 years agoMLK-15986-1: Revert "MLK-15322-11: video: fbdev: adv7535: enable adv7535 driver"
Cristina Ciocan [Mon, 17 Jul 2017 07:52:29 +0000 (10:52 +0300)]
MLK-15986-1: Revert "MLK-15322-11: video: fbdev: adv7535: enable adv7535 driver"

This reverts commit ca389b0895c975b86af286064e81cd86037e09e6.

Signed-off-by: Cristina Ciocan <cristina-mihaela.ciocan@nxp.com>
7 years agoMLK-16013-8 ARM64: dts: imx8mq: add dis_u2_susphy_quirk for usb
Li Jun [Fri, 14 Jul 2017 15:13:29 +0000 (23:13 +0800)]
MLK-16013-8 ARM64: dts: imx8mq: add dis_u2_susphy_quirk for usb

This is temp workaround to resolve usb host enumeration issue
by disable usb2 phy suspend.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-7 usb: dwc3: gadget: increase timeout count for ep cmd
Li Jun [Mon, 5 Jun 2017 10:29:43 +0000 (18:29 +0800)]
MLK-16013-7 usb: dwc3: gadget: increase timeout count for ep cmd

Increase the timeout value for wait ep command complete, this is temp
solution to workaround it but no harm any good cases.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-6 Documentation: usb: dwc3: add suspend clk setting
Li Jun [Mon, 17 Jul 2017 16:52:34 +0000 (00:52 +0800)]
MLK-16013-6 Documentation: usb: dwc3: add suspend clk setting

Add dt documentation for specify the suspend clk and its caculation.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-5 ARM64: dts: imx8mq: add power-down-scale property
Li Jun [Mon, 17 Jul 2017 16:51:39 +0000 (00:51 +0800)]
MLK-16013-5 ARM64: dts: imx8mq: add power-down-scale property

As i.mx8mq USB3 suspend clock setting is 32KHz, and the default
power down scale setting is not correct, so add a property to
fix it.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-4 usb: dwc3: add suspend_clk setting interface
Li Jun [Thu, 13 Apr 2017 15:00:00 +0000 (23:00 +0800)]
MLK-16013-4 usb: dwc3: add suspend_clk setting interface

Some dwc3 based USB3 IP may have a wrong default suspend clk
setting, so add an interface to correct it by dts property.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-3 usb: dwc3: of-simple: add imx8mq usb support
Li Jun [Tue, 18 Jul 2017 12:40:05 +0000 (20:40 +0800)]
MLK-16013-3 usb: dwc3: of-simple: add imx8mq usb support

Add i.mx8mq USB3 phy compatible string for dwc3-of-simple driver.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-2 phy: add imx8mq usb phy driver
Li Jun [Fri, 14 Jul 2017 20:22:30 +0000 (04:22 +0800)]
MLK-16013-2 phy: add imx8mq usb phy driver

Use generic phy driver for i.mx8mq USB3 phy reset and clock enable.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-16013-1 ARM64: dts: fsl-imx8mq: add controller glue layer and phy node
Li Jun [Tue, 20 Jun 2017 16:17:27 +0000 (00:17 +0800)]
MLK-16013-1 ARM64: dts: fsl-imx8mq: add controller glue layer and phy node

Restruct i.mx8mq usb3 dts node, add phy and of-simple node, use of-simple
driver to handle the glue layer as there is only clock handling right now,
use generic phy driver model to handle the phy init.

Reviewed-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoarm64: dts: freescale: Fix asrc1 node address
Daniel Baluta [Wed, 26 Jul 2017 14:56:51 +0000 (17:56 +0300)]
arm64: dts: freescale: Fix asrc1 node address

According to DMA_Audio_8X_v0.5.04.docx, ASRC1
is mapped at 0x59000000 + 0x800000 = 0x59800000.

Most likely, the current value is a copy/paste error
from ASRC0.

Fixes: cc20b6b242 ("MLK-15317-5: ARM64: dts: Add asrc1 node definition")
Reported-by: Viorel Suman <viorel.suman@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-16089: mtd: gpmi-nand: calculate the correct free oob space for large oob layout...
Han Xu [Thu, 27 Jul 2017 02:20:00 +0000 (21:20 -0500)]
MLK-16089: mtd: gpmi-nand: calculate the correct free oob space for large oob layout setting

for the large oob layout setting, need to calculate the correct free oob
space.

Signed-off-by: Han Xu <han.xu@nxp.com>
7 years agoMLK-16073 ARM64: dts: enable pcie on imx8qxp mek board
Richard Zhu [Mon, 24 Jul 2017 09:47:58 +0000 (17:47 +0800)]
MLK-16073 ARM64: dts: enable pcie on imx8qxp mek board

Enable the pcie support for iMX8QXP MEK board.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-15926: ARM64: dts: fsl-imx8mq-evk: Enable WiFi
Tiberiu Breana [Tue, 11 Jul 2017 07:43:51 +0000 (10:43 +0300)]
MLK-15926: ARM64: dts: fsl-imx8mq-evk: Enable WiFi

Add bcmdhd WiFi node to dts.

Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
7 years agoMLK-15141-2: ARM64: dts: fsl-imx8qm-lpddr4-arm2: Enable WiFi
Tiberiu Breana [Thu, 6 Jul 2017 15:37:06 +0000 (18:37 +0300)]
MLK-15141-2: ARM64: dts: fsl-imx8qm-lpddr4-arm2: Enable WiFi

Add the bcmdhd_wlan node and the epdev_on regulator.

Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
7 years agoMLK-15141-1: PCI: imx: Add epdev_on regulator for 8QM WiFi
Tiberiu Breana [Thu, 6 Jul 2017 15:28:11 +0000 (18:28 +0300)]
MLK-15141-1: PCI: imx: Add epdev_on regulator for 8QM WiFi

Add the epdev_on regulator to power up the WiFi module
on the iMX8QM board.
This regulator needs to be powered up before the pcie
link, in order for the WiFi module to work.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
7 years agoMLK-16042-3: Enable bcmdhd v1.363 for imx8
Tiberiu Breana [Thu, 20 Jul 2017 14:43:37 +0000 (17:43 +0300)]
MLK-16042-3: Enable bcmdhd v1.363 for imx8

Enable cfg80211 and the bcmdhd pcie version in arm64 defconfig.

Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
7 years agoMLK-16042-2: net: wireless: bcmdhd_1363: Add dts fw parse support
Tiberiu Breana [Thu, 20 Jul 2017 14:06:46 +0000 (17:06 +0300)]
MLK-16042-2: net: wireless: bcmdhd_1363: Add dts fw parse support

Add support for parsing the fw_path and nv_path parameters
from dts files.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
7 years agoMLK-16042-1: Add bcmdhd v1.363 PCIE driver
Tiberiu Breana [Thu, 20 Jul 2017 13:17:49 +0000 (16:17 +0300)]
MLK-16042-1: Add bcmdhd v1.363 PCIE driver

Add another bcmdhd driver version (v1.363) for PCIE devices.
This will be used for WiFi modules such as Murata 1FD (BCM89359)
or 1CX (BCM4356).

Signed-off-by: Tiberiu Breana <andrei-tiberiu.breana@nxp.com>
7 years agoMLK-16077-5: ARM64: dts: support wm8960 in imx8qxp mek board
Shengjiu Wang [Tue, 25 Jul 2017 10:20:00 +0000 (18:20 +0800)]
MLK-16077-5: ARM64: dts: support wm8960 in imx8qxp mek board

Add sound card node for imx8qxp mek board

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-16077-4: ARM64: dts: add cm40 i2c device node
Shengjiu Wang [Tue, 25 Jul 2017 10:18:51 +0000 (18:18 +0800)]
MLK-16077-4: ARM64: dts: add cm40 i2c device node

add the cm40 i2c device node and power domain

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-16077-3: ARM64: defconfig: built in the wm8960 sound card
Shengjiu Wang [Mon, 24 Jul 2017 06:52:06 +0000 (14:52 +0800)]
MLK-16077-3: ARM64: defconfig: built in the wm8960 sound card

built in the wm8960 sound card

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-16077-2: clk: imx: update cm40 clock for imx8qxp
Shengjiu Wang [Mon, 24 Jul 2017 06:51:21 +0000 (14:51 +0800)]
MLK-16077-2: clk: imx: update cm40 clock for imx8qxp

Add cm40 I2C clock for imx8qxp

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-16077-1: irqchip: intmux: add interrupt multiplexing support
Shengjiu Wang [Mon, 24 Jul 2017 06:09:57 +0000 (14:09 +0800)]
MLK-16077-1: irqchip: intmux: add interrupt multiplexing support

The intmux module is used to output internal interrupt in subsystem
to system with 32-to-8 configuration. It has several multiplex
channels depends on system. intmux is introduced in KL28Z reference
manual.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-13471: fxls8471: add a symbol export to fix module build
Julien Olivain [Tue, 15 Nov 2016 16:35:13 +0000 (17:35 +0100)]
MLK-13471: fxls8471: add a symbol export to fix module build

When CONFIG_SENSOR_FXLS8471=m build was failing due to missing
exported symbol. This patch export the missing symbol.

Signed-off-by: Julien Olivain <julien.olivain@nxp.com>
7 years agoMLK-13472: hwmon: mxc_mma8451: add empty sentinel entry at the end of i2c_device_id...
Julien Olivain [Wed, 16 Nov 2016 08:20:25 +0000 (09:20 +0100)]
MLK-13472: hwmon: mxc_mma8451: add empty sentinel entry at the end of i2c_device_id table

This is fixing the build when the driver is enabled as a module, when
CONFIG_MXC_MMA8451=m

Signed-off-by: Julien Olivain <julien.olivain@nxp.com>
7 years agoMLK-16075-21 drm/imx: dpu: kms: Add several YUV pixel formats support
Liu Ying [Fri, 21 Jul 2017 08:21:26 +0000 (16:21 +0800)]
MLK-16075-21 drm/imx: dpu: kms: Add several YUV pixel formats support

This patch adds several YUV pixel formats support for dpu kms.
The pixel formats are YUYV, UYVY, NV12, NV21, NV16, NV61, NV24 and NV42.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-20 drm/imx: dpu: plane: Use a better way to calculate base address
Liu Ying [Mon, 24 Jul 2017 08:56:56 +0000 (16:56 +0800)]
MLK-16075-20 drm/imx: dpu: plane: Use a better way to calculate base address

This patch uses the helper drm_format_plane_cpp() to calculate base address
so that we can calculate correctly for the YUV pixel formats as well.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-19 gpu: imx: dpu: common: Add fetchecos support in dpu plane group
Liu Ying [Mon, 24 Jul 2017 02:48:29 +0000 (10:48 +0800)]
MLK-16075-19 gpu: imx: dpu: common: Add fetchecos support in dpu plane group

This patch adds fetchecos support in dpu plane group.
We currently supports fetcheco0 and fetcheco1.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-18 gpu: imx: fetchdecode: Add several YUV pixel formats support
Liu Ying [Mon, 24 Jul 2017 02:36:26 +0000 (10:36 +0800)]
MLK-16075-18 gpu: imx: fetchdecode: Add several YUV pixel formats support

This patch adds several YUV pixel formats support for fetchdecode.
The pixel formats are YUYV, UYVY, NV12, NV21, NV16, NV61, NV24 and NV42.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-17 gpu: imx: dpu: fetchdecode: Add helper fetchdecode_need_fetcheco()
Liu Ying [Mon, 24 Jul 2017 06:44:34 +0000 (14:44 +0800)]
MLK-16075-17 gpu: imx: dpu: fetchdecode: Add helper fetchdecode_need_fetcheco()

This patch adds helper fetchdecode_need_fetcheco() so that users may
check if a fetchdecode needs to use fetcheco for a specific pixel format.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-16 gpu: imx: dpu: fetchdecode: Add helper fetchdecode_get_fetcheco()
Liu Ying [Mon, 24 Jul 2017 05:59:25 +0000 (13:59 +0800)]
MLK-16075-16 gpu: imx: dpu: fetchdecode: Add helper fetchdecode_get_fetcheco()

This patch adds helper fetchdecode_get_fetcheco() so that users may
get the relevant fetcheco via fetchdecode.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-15 gpu: imx: dpu: fetchdecode: Specify DPU_VPROC_CAP_FETCHECO0/1 cap
Liu Ying [Tue, 25 Jul 2017 03:44:35 +0000 (11:44 +0800)]
MLK-16075-15 gpu: imx: dpu: fetchdecode: Specify DPU_VPROC_CAP_FETCHECO0/1 cap

This patch specifies DPU_VPROC_CAP_FETCHECO0/1 video processing
capabilities of fetchdecode.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-14 gpu: imx: dpu: fetchdecode: Add fetchdecode sources for DPU v2
Liu Ying [Mon, 24 Jul 2017 08:36:40 +0000 (16:36 +0800)]
MLK-16075-14 gpu: imx: dpu: fetchdecode: Add fetchdecode sources for DPU v2

This patch adds fetchdecode sources for DPU version2.
Logics are tweaked to split DPU version1 and version2.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-13 video: dpu: Add more sources for fetchdecode
Liu Ying [Mon, 24 Jul 2017 08:32:48 +0000 (16:32 +0800)]
MLK-16075-13 video: dpu: Add more sources for fetchdecode

This patch adds more sources for fetchdecode.
The new sources are fetchdecode0, fetchdecode1 and fetchwarp2,
which are valid only on DPU v2.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-12 gpu: imx: dpu: common: Add helpers dpu_vproc_has/get_fetcheco_cap()
Liu Ying [Tue, 25 Jul 2017 03:40:22 +0000 (11:40 +0800)]
MLK-16075-12 gpu: imx: dpu: common: Add helpers dpu_vproc_has/get_fetcheco_cap()

This patch adds helpers dpu_vproc_has/get_fetcheco_cap() support
so that the users may check if a video processing mask has fetcheco
capability or get the fetcheco capability from the mask.
We currently only support fetcheco0 and fetcheco1.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-11 gpu: imx: dpu: Add basic fetcheco units support
Liu Ying [Fri, 23 Jun 2017 07:59:39 +0000 (15:59 +0800)]
MLK-16075-11 gpu: imx: dpu: Add basic fetcheco units support

This patch adds basic fetcheco units support.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-10 gpu: imx: dpu: common: Add helpers to get plane w/h of format
Liu Ying [Tue, 25 Jul 2017 07:25:28 +0000 (15:25 +0800)]
MLK-16075-10 gpu: imx: dpu: common: Add helpers to get plane w/h of format

This patch adds helpers dpu_format_plane_width/height() to get plane
width or height of pixel formats which are supported by the current
dpu base driver.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-9 gpu: imx: dpu: common: Add helper to get number of planes of format
Liu Ying [Tue, 25 Jul 2017 07:24:02 +0000 (15:24 +0800)]
MLK-16075-9 gpu: imx: dpu: common: Add helper to get number of planes of format

This patch adds a helper dpu_format_num_planes() to get number of planes
of pixel formats which are supported by the current dpu base driver.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-8 gpu: imx: dpu: common: Add helpers to get sub-samplings of pfmt
Liu Ying [Tue, 25 Jul 2017 07:20:22 +0000 (15:20 +0800)]
MLK-16075-8 gpu: imx: dpu: common: Add helpers to get sub-samplings of pfmt

This patch adds helpers dpu_format_horz/vert_chroma_subsampling() to
get horizontal or vertical sub-samplings of pixel formats which are
supported by the current dpu base driver.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-7 gpu: imx: dpu: prv: Add several YUV pixel format definitions
Liu Ying [Mon, 24 Jul 2017 05:52:01 +0000 (13:52 +0800)]
MLK-16075-7 gpu: imx: dpu: prv: Add several YUV pixel format definitions

This patch adds several YUV pixel format definitions in
array dpu_pixel_format_matrix[].  The pixel formats are
YUYV, UYVY, NV12, NV21, NV16, NV61, NV24 and NV42.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-6 gpu: imx: dpu: prv: Add RASTERMODE reg field definitions
Liu Ying [Mon, 24 Jul 2017 05:41:18 +0000 (13:41 +0800)]
MLK-16075-6 gpu: imx: dpu: prv: Add RASTERMODE reg field definitions

This patch adds RASTERMODE register field definitions.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-5 gpu: imx: dpu: prv: Add INPUSELECT reg field definitions
Liu Ying [Mon, 24 Jul 2017 05:40:15 +0000 (13:40 +0800)]
MLK-16075-5 gpu: imx: dpu: prv: Add INPUSELECT reg field definitions

This patch adds INPUSELECT register field definitions.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-4 gpu: imx: dpu: prv: Add YUV422UPSAMPLINGMODE reg field definitions
Liu Ying [Mon, 24 Jul 2017 05:35:40 +0000 (13:35 +0800)]
MLK-16075-4 gpu: imx: dpu: prv: Add YUV422UPSAMPLINGMODE reg field definitions

This patch adds YUV422UPSAMPLINGMODE register field definitions.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-3 gpu: imx: dpu: prv: Add DELTAX/Y reg field definitions
Liu Ying [Mon, 24 Jul 2017 05:34:18 +0000 (13:34 +0800)]
MLK-16075-3 gpu: imx: dpu: prv: Add DELTAX/Y reg field definitions

This patch adds DELTAX/Y register field definitions.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-2 gpu: imx: dpu: prv: Cleanup definitions for YUV conversion mode bits
Liu Ying [Mon, 24 Jul 2017 05:29:58 +0000 (13:29 +0800)]
MLK-16075-2 gpu: imx: dpu: prv: Cleanup definitions for YUV conversion mode bits

This patch cleans up definitions for the YUV conversion mode register field.
Two macros are introduced for users to program the field easily.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16075-1 gpu: imx: dpu: fetchdecode: Update funcs to enable/disable src buf
Liu Ying [Mon, 24 Jul 2017 05:26:19 +0000 (13:26 +0800)]
MLK-16075-1 gpu: imx: dpu: fetchdecode: Update funcs to enable/disable src buf

The bit to enable/disable source buffer is embedded in the register
LAYERPORPERTY0.  However, the other bits of the register may have
other functionalities.  So, using fetchdecode_layerproperty() to
enable/disable source buffer isn't appropriate.  This patch uses
new functions to enable/disable fetchdecode source buffer so that
the function names could be a bit specific about what they are doing.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16086 tty: serial: lpuart: add port.lock to protect registers accessing in suspend
Fugang Duan [Wed, 26 Jul 2017 06:16:11 +0000 (14:16 +0800)]
MLK-16086 tty: serial: lpuart: add port.lock to protect registers accessing in suspend

Add port.lock to protect register accessing in suspend/resume function.
Disable RIE and ILIE before DMA chan is ternminated in suspend function.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-16085 net: fsl: kconfig: add NET_VENDOR_FREESCALE dependency with ARM64
Fugang Duan [Wed, 26 Jul 2017 05:27:27 +0000 (13:27 +0800)]
MLK-16085 net: fsl: kconfig: add NET_VENDOR_FREESCALE dependency with ARM64

Add NET_VENDOR_FREESCALE dependency with ARCH_MXC_ARM64 for i.MX8x
platforms.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Pete Zhang <pete.zhang@nxp.com>
7 years agoMLK-13473: imx_sim: fix module device table name
Julien Olivain [Wed, 16 Nov 2016 08:39:46 +0000 (09:39 +0100)]
MLK-13473: imx_sim: fix module device table name

This fixes the build when this driver is built as a module, when
CONFIG_MXC_SIM=m

Signed-off-by: Julien Olivain <julien.olivain@nxp.com>
7 years agoMLK-16053 ARM64: defconfig: add pcie support in defconfig
Richard Zhu [Fri, 21 Jul 2017 07:50:42 +0000 (15:50 +0800)]
MLK-16053 ARM64: defconfig: add pcie support in defconfig

Add the pcie support in defconfig for 64bit imx socs.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-16074 PCI: imx: correct some bits configiration of hsio
Richard Zhu [Mon, 24 Jul 2017 04:44:50 +0000 (12:44 +0800)]
MLK-16074 PCI: imx: correct some bits configiration of hsio

- Both APB_RST_0 and APB_RST_1 should be asserted, when PHYX2
is used.
Otherwise, PHYX2 can't finish calibration.
- Correct the PCIEB(PHYX2_1) TX PLL locked check.
- The clear check of the reset should be done after
clks are enabled

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-16067 tty: serial: lpuart: enable wakeup source in .suspend_noirq()
Fugang Duan [Tue, 25 Jul 2017 08:42:11 +0000 (16:42 +0800)]
MLK-16067 tty: serial: lpuart: enable wakeup source in .suspend_noirq()

When use lpuart with DMA mode as wake up source, it still switch to
cpu mode in .suspend() that enable cpu interrupts RIE and ILIE as
wakkup source. When the wakeup signal coming while rx dma chan is
already teminated down, then driver should not call irq handler to
submit the new dma descriptor.

Enable the wakeup irq bits in .suspend_noirq() and disable the wakeup
irq bits in .resume_noirq().

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-16045: pxp: add lut function in pxp data flow path
Guoniu.Zhou [Thu, 20 Jul 2017 04:18:42 +0000 (12:18 +0800)]
MLK-16045: pxp: add lut function in pxp data flow path

When do epdc colormap test, the epdc need pxp lut function. But
if the data flow through mux0->mux1...or mux0->mux2..., the pxp
can not trigger interrupt but mux0->mux3... can. This issue only
occures on imx7d, so I set a constant data path when using lut function.

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
7 years agoMLK-16068 printk: use console_trylock() in console_cpu_notify()
Sergey Senozhatsky [Sat, 21 Jan 2017 10:47:29 +0000 (19:47 +0900)]
MLK-16068 printk: use console_trylock() in console_cpu_notify()

There is no need to always call blocking console_lock() in
console_cpu_notify(), it's quite possible that console_sem can
be locked by other CPU on the system, either already printing
or soon to begin printing the messages. console_lock() in this
case can simply block CPU hotplug for unknown period of time
(console_unlock() is time unbound). Not that hotplug is very
fast, but still, with other CPUs being online and doing
printk() console_cpu_notify() can stuck.

Use console_trylock() instead and opt-out if console_sem is
already acquired from another CPU, since that CPU will do
the printing for us.

Link: http://lkml.kernel.org/r/20170121104729.8585-1-sergey.senozhatsky@gmail.com
Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
This patch also fixes a deadlock that happens if while holding the
console lock someone issues a call that eventually takes the cpu
hotplug lock, like in the case below, where the following happens:

* task Xorg issues an ioctl to the fb layer which takes the console
lock and calls the driver's ioctl routine

* at the same time, task bat-cpuhotplug issue a hotplug cpu enable
operation which takes the cpu hotplug lock and waits for the cpu
bringup operation to complete

* the fb driver calls dma_alloc_coherent which, on this platform,
eventually tries to take the cpu hotplug

* task cpuhp/2 tries to flush the console

* at this point task Xorg waits after task bat-cpuhotplug to release
the cpu hotplug lock which waits after task cpuhp/2 to signal that
the CPU is up which waits after the Xorg to release the console
lock

Linux version 4.9.11-02771-gd85d61b-dirty
CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
OF: fdt:Machine model: Freescale i.MX6 Quad SABRE Smart Device Board

sysrq: SysRq : Show Blocked State

task                PC stack   pid father
cpuhp/2         D    0    18      2 0x00000000
[<80a794ac>] (__schedule) from [<80a79904>] (schedule+0x4c/0xac)
[<80a79904>] (schedule) from [<80a7e680>] (schedule_timeout+0x1e8/0x2fc)
[<80a7e680>] (schedule_timeout) from [<80a7d208>] (__down+0x64/0x9c)
[<80a7d208>] (__down) from [<80174224>] (down+0x44/0x58)
[<80174224>] (down) from [<80181a6c>] (console_lock+0x2c/0x74)
[<80181a6c>] (console_lock) from [<801849b4>] (console_cpu_notify+0x28/0x34)
[<801849b4>] (console_cpu_notify) from [<80150e58>] (notifier_call_chain+0x44/0x84)
[<80150e58>] (notifier_call_chain) from [<8012ed34>] (__cpu_notify+0x38/0x50)
[<8012ed34>] (__cpu_notify) from [<8012ed64>] (notify_online+0x18/0x20)
[<8012ed64>] (notify_online) from [<8012ea4c>] (cpuhp_up_callbacks+0x24/0xd4)
[<8012ea4c>] (cpuhp_up_callbacks) from [<8012f4c8>] (cpuhp_thread_fun+0x13c/0x148)
[<8012f4c8>] (cpuhp_thread_fun) from [<80153544>] (smpboot_thread_fn+0x17c/0x2dc)
[<80153544>] (smpboot_thread_fn) from [<8014f7d8>] (kthread+0xf0/0x108)
[<8014f7d8>] (kthread) from [<801077d0>] (ret_from_fork+0x14/0x24)

bat-cpuhotplug. D    0   841    718 0x00000000
[<80a794ac>] (__schedule) from [<80a79904>] (schedule+0x4c/0xac)
[<80a79904>] (schedule) from [<80a7e680>] (schedule_timeout+0x1e8/0x2fc)
[<80a7e680>] (schedule_timeout) from [<80a7a47c>] (wait_for_common+0xb0/0x160)
[<80a7a47c>] (wait_for_common) from [<8012f600>] (bringup_cpu+0x50/0xa8)
[<8012f600>] (bringup_cpu) from [<8012ea4c>] (cpuhp_up_callbacks+0x24/0xd4)
[<8012ea4c>] (cpuhp_up_callbacks) from [<8012ff58>] (_cpu_up+0xa8/0xec)
[<8012ff58>] (_cpu_up) from [<80130010>] (do_cpu_up+0x74/0x9c)
[<80130010>] (do_cpu_up) from [<80520c88>] (device_online+0x68/0x8c)
[<80520c88>] (device_online) from [<80520d14>] (online_store+0x68/0x74)
[<80520d14>] (online_store) from [<8029842c>] (kernfs_fop_write+0xf4/0x1f8)
[<8029842c>] (kernfs_fop_write) from [<80223da0>] (__vfs_write+0x1c/0x114)
[<80223da0>] (__vfs_write) from [<80224c78>] (vfs_write+0xa4/0x168)
[<80224c78>] (vfs_write) from [<802259c4>] (SyS_write+0x3c/0x90)
[<802259c4>] (SyS_write) from [<80107740>] (ret_fast_syscall+0x0/0x1c)

Xorg            D    0   860    832 0x00000000
[<80a794ac>] (__schedule) from [<80a79904>] (schedule+0x4c/0xac)
[<80a79904>] (schedule) from [<80a79d98>] (schedule_preempt_disabled+0x14/0x20)
[<80a79d98>] (schedule_preempt_disabled) from [<80a7ab10>] (mutex_lock_nested+0x1f8/0x4a4)
[<80a7ab10>] (mutex_lock_nested) from [<8012ef94>] (get_online_cpus+0x78/0xbc)
[<8012ef94>] (get_online_cpus) from [<801e7858>] (lru_add_drain_all+0x48/0x1b4)
[<801e7858>] (lru_add_drain_all) from [<8021f65c>] (migrate_prep+0x8/0x10)
[<8021f65c>] (migrate_prep) from [<801e1bc8>] (alloc_contig_range+0xd0/0x320)
[<801e1bc8>] (alloc_contig_range) from [<80220ec4>] (cma_alloc+0xb8/0x1a8)
[<80220ec4>] (cma_alloc) from [<80113b38>] (__alloc_from_contiguous+0x38/0xd8)
[<80113b38>] (__alloc_from_contiguous) from [<80113c0c>] (cma_allocator_alloc+0x34/0x3c)
[<80113c0c>] (cma_allocator_alloc) from [<80113d88>] (__dma_alloc+0x174/0x338)
[<80113d88>] (__dma_alloc) from [<80113fc8>] (arm_dma_alloc+0x40/0x48)
[<80113fc8>] (arm_dma_alloc) from [<80478a88>] (mxcfb_set_par+0x8ec/0xd7c)
[<80478a88>] (mxcfb_set_par) from [<8045f200>] (fb_set_var+0x1d4/0x358)
[<8045f200>] (fb_set_var) from [<8045f9e8>] (do_fb_ioctl+0x4e4/0x704)
[<8045f9e8>] (do_fb_ioctl) from [<8023773c>] (do_vfs_ioctl+0xa0/0xa10)
[<8023773c>] (do_vfs_ioctl) from [<802380e0>] (SyS_ioctl+0x34/0x5c)
[<802380e0>] (SyS_ioctl) from [<80107740>] (ret_fast_syscall+0x0/0x1c)

Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Reviewed-by: Leonard Crestez <leonard.crestez@nxp.com>
7 years agoMLK-16055 arm64: dts: freescale: imx8mq: enable power domain support
Anson Huang [Fri, 21 Jul 2017 09:30:52 +0000 (17:30 +0800)]
MLK-16055 arm64: dts: freescale: imx8mq: enable power domain support

Assign i.MX8MQ power domain id to each module to enable
power domain control for runtime power management.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK16061 imx8qm/imx8qxp: Add support allowing devices to enter into low
Ranjani Vaidyanathan [Fri, 21 Jul 2017 16:35:04 +0000 (11:35 -0500)]
MLK16061 imx8qm/imx8qxp: Add support allowing devices to enter into low
power mode during runtime suspend and idle.

On imx8qm/imx8qx, when devices enter into runtime suspend/idle,
the resource associated with the device will be enter a low power
state (as defined by SCFW). None of the state or clocks will be lost
in this mode.

Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
7 years agoMLK-16064 arm64: dts: imx8qxp: force enet1 use PHY clock delay on lpddr4 arm2 board
Fugang Duan [Mon, 24 Jul 2017 03:38:48 +0000 (11:38 +0800)]
MLK-16064 arm64: dts: imx8qxp: force enet1 use PHY clock delay on lpddr4 arm2 board

Currently enet1 use MAC clock delay, there have packet error
in 100Mbps mode, no packet error in Gbps mode. Still use PHY
clock delay instead of MAC that 100Mbps mode has better timing
and no frame error.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-16063-2 arm64: dts: add new dts file for imx8qxp mlb
Gao Pan [Mon, 24 Jul 2017 02:11:14 +0000 (10:11 +0800)]
MLK-16063-2 arm64: dts: add new dts file for imx8qxp mlb

add new dts file to support imx8qxp mlb due to pin conflict.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
7 years agoMLK-16063-1 arm64: dts: disable mlb in default dts
Gao Pan [Mon, 24 Jul 2017 02:01:01 +0000 (10:01 +0800)]
MLK-16063-1 arm64: dts: disable mlb in default dts

mlb has pin confict with ESAI. So this patch disable mlb in dts.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
7 years agoMLK-15132-8: Enable Hantro decoder on i.MX8MQ
Zhou Peng-B04994 [Mon, 24 Jul 2017 05:12:04 +0000 (13:12 +0800)]
MLK-15132-8: Enable Hantro decoder on i.MX8MQ

Implement runtime PM, disable power/clk when vpu is not used

Signed-off-by: Zhou Peng-B04994 <eagle.zhou@nxp.com>
7 years agoMLK-16060: mtd: fsl-quadspi: fix the unalignment issue for qspi
Han Xu [Fri, 21 Jul 2017 21:17:59 +0000 (16:17 -0500)]
MLK-16060: mtd: fsl-quadspi: fix the unalignment issue for qspi

ARM64 platforms may access QSPI from non-64-bit-aligned address which
causes unalignment fault. Fixed the issue for AHB reading.

Signed-off-by: Han Xu <han.xu@nxp.com>
7 years agoMLK-16059-2: ARM64: config: add quadspi to defconfig
Han Xu [Fri, 21 Jul 2017 21:30:26 +0000 (16:30 -0500)]
MLK-16059-2: ARM64: config: add quadspi to defconfig

add quadspi in defconfig

Signed-off-by: Han Xu <han.xu@nxp.com>
7 years agoMLK-16059-1: ARM64: dts: enable quadspi on i.MX8MQ
Han Xu [Thu, 20 Jul 2017 22:27:36 +0000 (17:27 -0500)]
MLK-16059-1: ARM64: dts: enable quadspi on i.MX8MQ

enable the quadspi module on i.MX8MQ

Signed-off-by: Han Xu <han.xu@nxp.com>
7 years agousb: xhci: fix spinlock recursion for USB2 test mode
Peter Chen [Thu, 20 Jul 2017 11:48:30 +0000 (14:48 +0300)]
usb: xhci: fix spinlock recursion for USB2 test mode

Both xhci_hub_control and xhci_disable_slot tries to hold spinlock, the
spinlock recursion occurs when enters USB2 test mode. Fix it by unlock
spinlock before calling xhci_disable_slot.

Cc: <stable@vger.kernel.org>
Fixes: 0f1d832ed1fb ("usb: xhci: Add port test modes support for usb2")
Signed-off-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agoxhci: use correct flags for spin_lock_irqrestore() when setting port power
Mathias Nyman [Thu, 13 Apr 2017 11:01:04 +0000 (14:01 +0300)]
xhci: use correct flags for spin_lock_irqrestore() when setting port power

commit a6ff6cbf1fab ("usb: xhci: Add helper function xhci_set_power_on().")
created a helper to control port power that needs to be called with
xhci->lock held and interrupts disabled.
It released the lock with spin_unlock_irqrestore using a new zero flag
variable instead of the original flag from spin_lock_irqsave.
This regression triggered a static checker warning about bogus flags, and
a null pointer dereference on armada-385.

Fix it by passing a pointer to the correct flags and using it instead

Fixes: a6ff6cbf1fab ("usb: xhci: Add helper function xhci_set_power_on().")
Cc: Guoqing Zhang <guoqing.zhang@intel.com>
Reported-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
Tested-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agousb: xhci: Add port test modes support for usb2.
Guoqing Zhang [Fri, 7 Apr 2017 14:56:54 +0000 (17:56 +0300)]
usb: xhci: Add port test modes support for usb2.

For usb2 ports, the port test mode Test_J_State, Test_K_State,
Test_Packet, Test_SE0_NAK and Test_Force_En can be enabled
as described in usb2 spec.

USB2 test mode is a required hardware feature for system integrators
validating their hardware according to USB spec, regarding signal
strength and stuff. It is purely a hardware test feature.

Usually you need an oscilloscope and have to enable those test modes on
the hardware. This will send some specific test patterns on D+/D-. There
is no report available (in Linux itself) as it is purely externally
visible. Regular USB usage is not possible at that time.
Anyone (well access to e.g. /dev/bus/usb/001/001 provided) can use it by
sending appropriate USB_PORT_FEAT_TEST requests to the hub.

[Add better commit message by Alexander Stein  -Mathias]
Signed-off-by: Guoqing Zhang <guoqing.zhang@intel.com>
Cc: Alexander Stein <alexander.stein@systec-electronic.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agousb: xhci: Expose xhci_start() function.
Guoqing Zhang [Fri, 7 Apr 2017 14:56:53 +0000 (17:56 +0300)]
usb: xhci: Expose xhci_start() function.

Change the visability of xhci_start() so that it
can be used when enabling test mode.

Signed-off-by: Guoqing Zhang <guoqing.zhang@intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agousb: xhci: Add helper function xhci_disable_slot().
Guoqing Zhang [Fri, 7 Apr 2017 14:56:52 +0000 (17:56 +0300)]
usb: xhci: Add helper function xhci_disable_slot().

Refactoring slot disable related code into a helper
function xhci_disable_slot() which can be used when
enabling test mode.

Signed-off-by: Guoqing Zhang <guoqing.zhang@intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agousb: xhci: Add helper function xhci_set_power_on().
Guoqing Zhang [Fri, 7 Apr 2017 14:56:51 +0000 (17:56 +0300)]
usb: xhci: Add helper function xhci_set_power_on().

Refactoring port power on/off related code into
a helper function xhci_set_power_on() which can
be reused when enabling test mode.

[set port state to neutral before writing port power -Mathias]
Signed-off-by: Guoqing Zhang <guoqing.zhang@intel.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
7 years agoMLK-13975 arm64: dts: fsl-imx8qxp: enable AMIX
Viorel Suman [Thu, 6 Jul 2017 09:09:59 +0000 (12:09 +0300)]
MLK-13975 arm64: dts: fsl-imx8qxp: enable AMIX

Enable AMIX in i.MX8 QXP.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-13975 arm64: dts: fsl-imx8qxp: enable SAI4 and SAI5
Viorel Suman [Thu, 6 Jul 2017 09:02:39 +0000 (12:02 +0300)]
MLK-13975 arm64: dts: fsl-imx8qxp: enable SAI4 and SAI5

Enable SAI4 and SAI5.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-13975: ASoC: fsl: add AMIX machine driver
Viorel Suman [Mon, 17 Jul 2017 08:16:55 +0000 (11:16 +0300)]
MLK-13975: ASoC: fsl: add AMIX machine driver

Add audio mixer machine driver.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-13975: ASoC: fsl: add AMIX device driver
Viorel Suman [Mon, 17 Jul 2017 08:15:32 +0000 (11:15 +0300)]
MLK-13975: ASoC: fsl: add AMIX device driver

Add audio mixer device driver.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-15305-2: dma: imx-sdma: force to load context in sdma_config
Robin Gong [Tue, 18 Jul 2017 09:01:17 +0000 (17:01 +0800)]
MLK-15305-2: dma: imx-sdma: force to load context in sdma_config

Force to load context in sdma_config whatever context loaded or not,
since some configuration may change when the upper driver call sdma_config
such as bus width.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
(cherry picked from commit ee8930b657af0c9ce2cfb1a521530c7d31016675)

7 years agoMLK-16044 clk: imx: correct i.mx8mq qspi/nand clock name
Anson Huang [Fri, 21 Jul 2017 09:26:29 +0000 (17:26 +0800)]
MLK-16044 clk: imx: correct i.mx8mq qspi/nand clock name

i.MX8MQ QSPI and NAND's pre and post div clock
use incorrect parent name, correct them.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16037: ARM64: dts: switch to use DMA.I2C0 instead HDMI.I2C0
Shengjiu Wang [Thu, 20 Jul 2017 02:58:19 +0000 (10:58 +0800)]
MLK-16037: ARM64: dts: switch to use DMA.I2C0 instead HDMI.I2C0

Use the DMA.I2C0 instead HDMI.I2C0, they share same hardware pin
in imx8qm, then the HDMI power domain will not be enabled when
audio codec is working.

Signed-off-by: Shengjiu Wang <shengjiu.wang@freescale.com>
7 years agoMLK-16036 drm/imx: ldb: Avoid early return when getting aux PHY in dual mode
Liu Ying [Thu, 20 Jul 2017 02:19:43 +0000 (10:19 +0800)]
MLK-16036 drm/imx: ldb: Avoid early return when getting aux PHY in dual mode

In dual mode, we return too early from ->bind when we get
the auxiliary channel's PHY.  This causes we miss the logics
to set driver data, get ldb alias id and initialize pixel
link(if necessary).  This patch fixes the issue here by
tweaking the driver logic to do component binding properly.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-15343-3 PCI: imx: enable the DBI_RO_WR_EN of PCIEB
Richard Zhu [Wed, 5 Jul 2017 08:22:05 +0000 (16:22 +0800)]
MLK-15343-3 PCI: imx: enable the DBI_RO_WR_EN of PCIEB

The DBI_RO_WR_EN of PCIEB should be asserted,
otherwise the CLASS_DEVICE can't be configured
correctly, then PCIEB RC doesn't work at all.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-15343-2 clk: imx8qm: correct the PD of PCIEB PHY CLK
Richard Zhu [Wed, 5 Jul 2017 08:21:35 +0000 (16:21 +0800)]
MLK-15343-2 clk: imx8qm: correct the PD of PCIEB PHY CLK

Correct the PD of the PCIEB PHY CLK.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-15343-1 ARM: imx: enable pcieb on imx8qm
Richard Zhu [Mon, 3 Jul 2017 05:02:57 +0000 (13:02 +0800)]
MLK-15343-1 ARM: imx: enable pcieb on imx8qm

Based on base board, enable pcieb lane1, enlarge
the CFG mapping space.
HSIO configuration is 1 lane PCIEA, 1 lane PCIEB and SATA.
PHY configurations:
PHY_X2_0 <------> PCIEA 1 lane
PHY_X2_1 <------> PCIEB 1 lane
PHY_X1 <------> SATA

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-16020 drivers: soc: imx8: fill in machine field
Octavian Purdila [Tue, 18 Jul 2017 09:32:14 +0000 (12:32 +0300)]
MLK-16020 drivers: soc: imx8: fill in machine field

As for imx6/7, read the 'model' field from device tree and fill in the
machine soc field.

Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
7 years agoMLK-16038 ARM: dts: fsl-imx8mq-evk: improve the usdhc I/O drive strength
Haibo Chen [Thu, 20 Jul 2017 05:55:14 +0000 (13:55 +0800)]
MLK-16038 ARM: dts: fsl-imx8mq-evk: improve the usdhc I/O drive strength

Some normal high-speed SD card may meet some CRC error on imx8mq-evk
board, so improve the default usdhc I/O drive strength to fix this.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
7 years agoMLK-15132-7 : Enable Hantro decoder on i.MX8MQ
Zhou Peng-B04994 [Thu, 20 Jul 2017 03:04:02 +0000 (11:04 +0800)]
MLK-15132-7 : Enable Hantro decoder on i.MX8MQ

Refine clk/power operation
Adjust print level to reduce some unnecessary print info
Removing some redundant codes in bring up stage

Signed-off-by: Zhou Peng-B04994 <eagle.zhou@nxp.com>
7 years agoMLK-16025 ARM64: defconfig: enable xen backend blkdev
Octavian Purdila [Tue, 18 Jul 2017 12:47:36 +0000 (15:47 +0300)]
MLK-16025 ARM64: defconfig: enable xen backend blkdev

This provides a kernel dom0 based blkdev backend for domUs (raw disk)
and avoids the need to run qemu in dom0 as a backend for blkdev.

Signed-off-by: Octavian Purdila <octavian.purdila@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
7 years agoMLK-16031 arm64: dts: add mlb support for imx8qxp
Gao Pan [Wed, 19 Jul 2017 05:57:28 +0000 (13:57 +0800)]
MLK-16031 arm64: dts: add mlb support for imx8qxp

add mlb support for imx8qxp

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
7 years agoMLK-16030-2 soc: imx: gpc: add power domain names
Anson Huang [Wed, 19 Jul 2017 13:09:46 +0000 (21:09 +0800)]
MLK-16030-2 soc: imx: gpc: add power domain names

Add power domain names for i.MX8MQ, currently only
11 power domains support runtime ON/OFF.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>