linux.git
7 years agoMLK-16918-4: drm: mxsfb: Select DRM_PANEL
Marek Vasut [Wed, 7 Dec 2016 21:23:29 +0000 (22:23 +0100)]
MLK-16918-4: drm: mxsfb: Select DRM_PANEL

Select DRM_PANEL, since the MXSFB driver depends on it. Otherwise,
we get the following error when compiling:

drivers/built-in.o: In function `mxsfb_probe':
core.c:(.text+0x9ce9c): undefined reference to `drm_panel_attach'
core.c:(.text+0x9cff0): undefined reference to `drm_panel_detach'
drivers/built-in.o: In function `mxsfb_panel_connector_destroy':
core.c:(.text+0x9d614): undefined reference to `drm_panel_detach'
drivers/built-in.o: In function `mxsfb_create_output':
core.c:(.text+0x9d68c): undefined reference to `of_drm_find_panel'
make: *** [Makefile:962: vmlinux] Error 1

This is a backport from kernel 4.10.y.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Dave Airlie <airlied@redhat.com>
Reported-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
7 years agoMLK-16918-3: drm: Add new driver for MXSFB controller
Marek Vasut [Thu, 18 Aug 2016 18:23:01 +0000 (20:23 +0200)]
MLK-16918-3: drm: Add new driver for MXSFB controller

Add new driver for the MXSFB controller found in i.MX23/28/6SX .
The MXSFB controller is a simple framebuffer controller with one
parallel LCD output. Unlike the MXSFB fbdev driver that is used
on these systems now, this driver uses the DRM/KMS framework.

This is a backport from kernel 4.10.y.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Shawn Guo <shawnguo@kernel.org>
7 years agoMLK-16918-2: dt-bindings: mxsfb: Add new bindings for the MXSFB driver
Marek Vasut [Tue, 23 Aug 2016 12:56:12 +0000 (14:56 +0200)]
MLK-16918-2: dt-bindings: mxsfb: Add new bindings for the MXSFB driver

Add new DT bindings for new MXSFB driver that is using the
OF graph to parse the video output structure instead of
hard-coding the display properties into the MXSFB node.
The old MXSFB fbdev driver bindings are preserved in the
same file in the "Old bindings" section.

This is a backport from kernel 4.10.y.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Rob Herring <robh@kernel.org>
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Acked-by: Rob Herring <robh@kernel.org>
7 years agoMLK-16918-1: dt-bindings: mxsfb: Indentation cleanup
Marek Vasut [Sun, 25 Sep 2016 18:52:54 +0000 (20:52 +0200)]
MLK-16918-1: dt-bindings: mxsfb: Indentation cleanup

Clean up the ad-hoc indentation in the documentation, no functional change.

This is a backport from kernel 4.10.y.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Lucas Stach <l.stach@pengutronix.de>
Cc: Fabio Estevam <fabio.estevam@nxp.com>
Cc: Shawn Guo <shawnguo@kernel.org>
Acked-by: Rob Herring <robh@kernel.org>
7 years agoMLK-16540: include: mfd: Add MX8 MQ IOMUXC GPR header
Robert Chiras [Wed, 27 Sep 2017 10:24:13 +0000 (13:24 +0300)]
MLK-16540: include: mfd: Add MX8 MQ IOMUXC GPR header

Add header file for the i.MX8mq IOMUXC GPR register offsets definitions.
Also, include definition for the GPR_MIPI_MUX_SEL from GPR13, needed by
MIPI-DSI driver.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
7 years agoMLK-16932: hdp: Add 720x480p60 video mode support
Sandor Yu [Wed, 22 Nov 2017 03:37:17 +0000 (11:37 +0800)]
MLK-16932: hdp: Add 720x480p60 video mode support

Add 720x480p60 video mode to default support modelist.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16928: drm: dcss: fix modesetting issues
Laurentiu Palcu [Tue, 21 Nov 2017 13:00:28 +0000 (15:00 +0200)]
MLK-16928: drm: dcss: fix modesetting issues

DTG needs to be completely stopped before changing the display
resolution through modesetting. If DTG is not stopped, any change in
resolution could result in unpredictable results, like split screen,
etc.

This patch fixes that by introducing a completion signaling mechanism so
that we can signal the DRM CRTC when DCSS core is done stopping DTG.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMLK-16927: drm: imx: dcss: Add basic plane checks
Laurentiu Palcu [Tue, 21 Nov 2017 10:22:18 +0000 (12:22 +0200)]
MLK-16927: drm: imx: dcss: Add basic plane checks

Currently, there are no plane checks and the user can try set up a plane
with a CRTC size that is actually bigger than the current CRTC mode.
Because, currently, the driver does not support cropping, all planes
with CRTC sizes bigger than the actual CRTC mode will be rejected.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMLK-16922-2: drm: imx: dcss: call DCSS runtime PM routines
Laurentiu Palcu [Tue, 21 Nov 2017 07:32:25 +0000 (09:32 +0200)]
MLK-16922-2: drm: imx: dcss: call DCSS runtime PM routines

When CRTC is disabled/enabled, the runtime PM routines should be called.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMLK-16922-1: drm: dcss: Add DCSS core power management support
Laurentiu Palcu [Tue, 21 Nov 2017 07:31:09 +0000 (09:31 +0200)]
MLK-16922-1: drm: dcss: Add DCSS core power management support

This patch support for suspend/resume and runtime PM in DCSS driver
core.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMLK-16923-2: drm: imx: dcss: Add possibility to debug BLKCTL registers
Laurentiu Palcu [Fri, 10 Nov 2017 08:07:28 +0000 (10:07 +0200)]
MLK-16923-2: drm: imx: dcss: Add possibility to debug BLKCTL registers

When debugging it's useful to be able to see the DCSS registers. BLKCTL
was not added to the list of modules supporting this feature. This patch
adds it.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMLK-16923-1: drm: imx: dcss: dont't use static vars in blkctl
Laurentiu Palcu [Fri, 10 Nov 2017 07:52:08 +0000 (09:52 +0200)]
MLK-16923-1: drm: imx: dcss: dont't use static vars in blkctl

If, in the future, a platform will have two DCSS controllers, having
static variables holding various settings will not work out. Add a
private structure instead.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMLK-16924: hdp: Disable HDP hotplug detect thread temporary
Sandor Yu [Tue, 21 Nov 2017 09:03:28 +0000 (17:03 +0800)]
MLK-16924: hdp: Disable HDP hotplug detect thread temporary

HDMI Fw is unstable, hotplug detect thread may
blocked at hdmi mailbox access.
Disable hotplug detect thread function temporary.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16896 tty: serial: lpuart: flush transmit/receive fifo/buffer
Fugang Duan [Tue, 21 Nov 2017 05:56:50 +0000 (13:56 +0800)]
MLK-16896 tty: serial: lpuart: flush transmit/receive fifo/buffer

Although .startup() alreadly do transmit/receive fifo/buffer flush,
but switch the baud rate may introduce dirty data on fifo, in such
case, user will call tcflush() to clean up buffer and fifo. So driver
also ensure HW fifo is cleaned up.

The patch add hw fifo/buffer flush in .flush_buffer() callback.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-16894: ARM64: configs: defconfig
Robin Gong [Tue, 21 Nov 2017 06:40:59 +0000 (14:40 +0800)]
MLK-16894: ARM64: configs: defconfig

Enable CONFIG_CPU_FREQ_STAT.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
7 years agoMLK-16920 ARM64: dts: imx8mq: Remove disp and hdmi power domains
Bai Ping [Tue, 21 Nov 2017 04:52:10 +0000 (12:52 +0800)]
MLK-16920 ARM64: dts: imx8mq: Remove disp and hdmi power domains

Remove the disp and hdmi power domain, these two power domain can
NOT used for domain power management.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
Tested-by: Jian Li <jian.li@nxp.com>
7 years agoMLK-16885-2: ASoC: imx-pcm-dma-v2: query the caps of dma
Shengjiu Wang [Mon, 20 Nov 2017 08:23:21 +0000 (16:23 +0800)]
MLK-16885-2: ASoC: imx-pcm-dma-v2: query the caps of dma

query the caps of dma, then update the hw parameters according
the caps. for EDMA can't support 24bit sample, but we didn't
add any constraint, that cause issues.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-16885-1: DMA: imx-sdma: update the buswidth that is supported
Shengjiu Wang [Mon, 20 Nov 2017 08:21:24 +0000 (16:21 +0800)]
MLK-16885-1: DMA: imx-sdma: update the buswidth that is supported

update buswidth that is supported by sdma.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agodmaengine: imx-sdma: Correct src_addr_widths and directions
Nicolin Chen [Thu, 14 Sep 2017 18:46:43 +0000 (11:46 -0700)]
dmaengine: imx-sdma: Correct src_addr_widths and directions

The driver already supports DMA_DEV_TO_DEV in sdma_config(),
DMA_SLAVE_BUSWIDTH_2_BYTES and DMA_SLAVE_BUSWIDTH_1_BYTE in
sdma_prep_slave_sg(). So this patch adds them to the lists.

Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
(cherry-picked from commit f9d4a398f121b00f581da1428bff9b93d955452d)

7 years agoMLK-16818-2 PCI: imx: enable the pcie ep rc for imx8
Richard Zhu [Fri, 17 Nov 2017 06:46:32 +0000 (14:46 +0800)]
MLK-16818-2 PCI: imx: enable the pcie ep rc for imx8

Enable the PCIE EP RC for iMX8

RC access memory of EP:
- EP:
  write the <ddr_region_address> to the bar0 of ep.
- RC:
  access the <mem_base_address>, and this address
  would be mapped to the <ddr_region_address> of ep.
Note:
        ddr_region_address    mem_base_addr  bar0_addr
imx8mq  0xb820_0000           0x2000_0000    0x33c0_0010
imx8qxp 0xb820_0000           0x6000_0000    0x5f00_0010
imx8qm  0xb820_0000           0x7000_0000    0x5f01_0010

MSI verification:
- EP:
  write 0 to the <msi_addr>, for example ./memtool -32 <msi_addr>=0
- RC:
  check the msi is triggered or not.
  cat /proc/interrupts | grep msi
Note:
The msi_addr can be get by the following command after RC platform
is boot up.
For example
root@imx8_all:~# dmesg | grep msi_addr
[    2.670247] pci_msi_addr = 0x7ff80000, cpu_base 0x80000000

        msi_addr
imx8mq  0x27f8_0000
imx8qxp 0x6ff8_0000
imx8qm  0x7ff8_0000

iMX8QM:
BuildInfo:
- SCFW daabd5d3, IMX-MKIMAGE 0ad6069a, ATF 93dd1cc
- U-Boot 2017.03-imx_v2017.03+gc662e0a
iMX8QXP:
BuildInfo:
- SCFW daabd5d3, IMX-MKIMAGE 0ad6069a, ATF 93dd1cc
- U-Boot 2017.03-imx_v2017.03+gc662e0a

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-16818-1 ARM64: dts: imx8: modify the dts to enable ep rc support
Richard Zhu [Fri, 17 Nov 2017 06:32:23 +0000 (14:32 +0800)]
MLK-16818-1 ARM64: dts: imx8: modify the dts to enable ep rc support

- Correct the comments of iMX8QM PCIEB
- Enlarge the CFG space of iMX8QXP PCIEB.
- PCIE port maybe hard-wired in the hardware design.
Use the hard-wired property to specify it on iMX8MQ.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-16738: ARM64: dts: qxp-lpddr4-arm2: amix: move SAIs MCLKs to AUD_PLL1
Viorel Suman [Mon, 20 Nov 2017 10:37:56 +0000 (12:37 +0200)]
MLK-16738: ARM64: dts: qxp-lpddr4-arm2: amix: move SAIs MCLKs to AUD_PLL1

Move AMIX SAIs MCLKs to AUD_PLL1 and double the frequency
in order to support 64k rate.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
7 years agoMLK-16738: ARM64: dts: qm-lpddr4-arm2: amix: move SAIs MCLKs to AUD_PLL1
Viorel Suman [Mon, 20 Nov 2017 10:36:51 +0000 (12:36 +0200)]
MLK-16738: ARM64: dts: qm-lpddr4-arm2: amix: move SAIs MCLKs to AUD_PLL1

Move AMIX SAIs MCLKs to AUD_PLL1 and double the frequency
in order to support 64k rate.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
7 years agoMLK-16911: drm: imx: dcss: do not advertise modifiers
Laurentiu Palcu [Mon, 20 Nov 2017 09:51:13 +0000 (11:51 +0200)]
MLK-16911: drm: imx: dcss: do not advertise modifiers

Since support for tiled formats has not been added to DCSS DRM driver,
do not allow usage of FB modifiers by userspace.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMLK-16906: drm: imx: core: add possiblity to detect if chip has DCSS
Laurentiu Palcu [Fri, 17 Nov 2017 09:03:52 +0000 (11:03 +0200)]
MLK-16906: drm: imx: core: add possiblity to detect if chip has DCSS

The Mscale Display Controller Subsystem does not support RGB565.
However, the default legacy FB pixel depth is 16. Hence, the users would
have to add a kernel cmdline option to set it to 32bpp:
imxdrm.legacyfb_depth=32

This patch changes imx-drm-core to detect if platform has DCSS and, if
it does, set the FB pixel depth to 32, so that user does not have to.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMLK-16910 ion: fixed KASAN issue
Song Bing [Tue, 21 Nov 2017 01:00:51 +0000 (17:00 -0800)]
MLK-16910 ion: fixed KASAN issue

Fixed KASAN issue.
KASAN: use-after-free in mxc_custom_ioctl

Signed-off-by: Song Bing <bing.song@nxp.com>
7 years agoMLK-16908-3: hdmi phy: Remove debug log
Sandor Yu [Mon, 20 Nov 2017 09:23:30 +0000 (17:23 +0800)]
MLK-16908-3: hdmi phy: Remove debug log

Remove debug log

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16908-2: hdp: Support video modeset
Sandor Yu [Mon, 20 Nov 2017 09:12:05 +0000 (17:12 +0800)]
MLK-16908-2: hdp: Support video modeset

Add HDMI PHY configurated function to mode set.
Add 720p60, 2160p30 and 2160p60 video mode to default video modes.
Rewrite mode valid function.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16908-1: hdmitx: Support hdmi 2.0 to hdmi 1.4 reconfiguration
Sandor Yu [Mon, 20 Nov 2017 08:42:12 +0000 (16:42 +0800)]
MLK-16908-1: hdmitx: Support hdmi 2.0 to hdmi 1.4 reconfiguration

Add HDMI 2.0 to HDMI 1.4 reconfiguration.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16909 irqchip: imx-irqsteer: restore registers after power off
Fugang Duan [Mon, 20 Nov 2017 07:55:40 +0000 (15:55 +0800)]
MLK-16909 irqchip: imx-irqsteer: restore registers after power off

Once irqsteer controller is power off during suspend, the registers
are lost, it should restore the registers after resume back.

BuildInfo:
 - SCFW a479ff78, IMX-MKIMAGE ff9860c5, ATF 923651a
 - U-Boot 2017.03-00691-g96cf020

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Tested-by: Pandy.gao <pandy.gao@nxp.com>
Acked-by: Pandy.gao <pandy.gao@nxp.com>
7 years agoMLK-16890 arm64: dts: imx8qm/qxp: update enet pin setting
Fugang Duan [Thu, 16 Nov 2017 10:13:20 +0000 (18:13 +0800)]
MLK-16890 arm64: dts: imx8qm/qxp: update enet pin setting

enet pins dual voltage pads, bit[0] define the drive strength slection,
bit[4:1] are reserved, and bit[6:5] define the pull down and pull up.

The patch remove the reserved bits setting and pull up the pin.

BuildInfo:
 - SCFW daf9431c, IMX-MKIMAGE 1c6fc7d8, ATF f2547fb
 - U-Boot 2017.03-00097-gd7599cf

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Pandy.gao <pandy.gao@nxp.com>
7 years agoMLK-16902 ARM64: dts: Update the default critical temp setting on imx8mq
Bai Ping [Mon, 20 Nov 2017 06:19:53 +0000 (14:19 +0800)]
MLK-16902 ARM64: dts: Update the default critical temp setting on imx8mq

i.MX8MQ silicon only has consumer and industrial part, for consumer part,
the operating temperature range is 0C ~ 95C, so update the thermal driver
critical temp to 95C. This is only a reference setting based on consumer
part, if the silicon is for industrial use, please update the temperature
according to the industrial part datasheet.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
7 years agoMLK-16891: watchdog: imx8_wdt: add pre_timeout notification
Robin Gong [Tue, 14 Nov 2017 09:03:02 +0000 (17:03 +0800)]
MLK-16891: watchdog: imx8_wdt: add pre_timeout notification

Add pre_timeout set and notification for i.mx8qm/qxp.

BuildInfo:
    - SCFW 36ff24f3, IMX-MKIMAGE 05d3d4a7, ATF 93dd1cc
    - U-Boot 2017.03-00684-g28c5243

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16898: arm64: dts: add the power domain for flexspi0
Han Xu [Fri, 17 Nov 2017 21:23:30 +0000 (15:23 -0600)]
MLK-16898: arm64: dts: add the power domain for flexspi0

add the power domain for flexspi0 for iMX8QM/QXP in device tree.

Signed-off-by: Han Xu <han.xu@nxp.com>
7 years agoMLK-16839-3: ASoC: fsl_esai: remove rate constrain for FE-BE case
Shengjiu Wang [Fri, 17 Nov 2017 08:41:32 +0000 (16:41 +0800)]
MLK-16839-3: ASoC: fsl_esai: remove rate constrain for FE-BE case

In FE-BE case, the constraint in BE cpu dai will propagate to FE.
and the rate constaint is set by .be_hw_params_fixup in dai_link for BE.
So rate constraint in BE cpu dai is not needed in FE-BE case.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-16839-2: ARM64: dts: add clock source for asrc
Shengjiu Wang [Fri, 17 Nov 2017 08:38:41 +0000 (16:38 +0800)]
MLK-16839-2: ARM64: dts: add clock source for asrc

add IMX8QM_ACM_AUD_CLK0_SEL and IMX8QM_ACM_AUD_CLK1_SEL for
asrc clock source. There is no clock gate for them, only
clock mux.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-16839-1: ASoC: fsl_asrc: selec a proper clock source from the clock list
Shengjiu Wang [Fri, 17 Nov 2017 08:29:46 +0000 (16:29 +0800)]
MLK-16839-1: ASoC: fsl_asrc: selec a proper clock source from the clock list

In internal ratio mode, when the clock rate can't be divided with no
remainder, The final convert ratio is not as expected, there is distortion
in output data.
So need to select a proper clock source for this mode, if can't find a good
clock source, then swith to ideal ratio mode.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-16837: ARM64: dts: fix the noise isse with mono stream
Shengjiu Wang [Fri, 17 Nov 2017 02:59:15 +0000 (10:59 +0800)]
MLK-16837: ARM64: dts: fix the noise isse with mono stream

When play the mono stream, there is no data in right channel,
but if config the pin IO in pull up or pull down state, the codec
can get no zero data in right channel, then user can hear noise.
config the pin in no pull state to fix the noise issue.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-16887-2: ARM64: dts: enable spdif2 and add sound card for hdmi arc
Shengjiu Wang [Fri, 17 Nov 2017 08:15:45 +0000 (16:15 +0800)]
MLK-16887-2: ARM64: dts: enable spdif2 and add sound card for hdmi arc

enable spdif2 and add sound card for hdmi arc for mscale

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-16887-1: drm: imx: hdp: add aux config for HDMI ARC
Shengjiu Wang [Fri, 17 Nov 2017 07:24:06 +0000 (15:24 +0800)]
MLK-16887-1: drm: imx: hdp: add aux config for HDMI ARC

Add aux config for HDMI ARC, the config is from the HDMI usr
guide

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-16888: hdp audio: support multi-type audio
Sandor Yu [Fri, 17 Nov 2017 08:30:53 +0000 (16:30 +0800)]
MLK-16888: hdp audio: support multi-type audio

Add audio_type variable to support different audio type.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16886: hdp: Disable EDID function
Sandor Yu [Fri, 17 Nov 2017 08:14:07 +0000 (16:14 +0800)]
MLK-16886: hdp: Disable EDID function

Disable EDID function temporary
because edid read is unstable on some boards.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16814-2: arm64: dts: imx8mq-evk: Make drm DTS default
Laurentiu Palcu [Fri, 17 Nov 2017 07:31:44 +0000 (09:31 +0200)]
MLK-16814-2: arm64: dts: imx8mq-evk: Make drm DTS default

Since video fbdev drivers will not be used anymore, make DRM dts
default.

This patch just renames the drm dts to fsl-imx8mq-evk.dts and updates
the include lines in various dts files to point to the fbdev dts.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMLK-16814-1: arm64: dts: imx8mq-evk: copy default dts and add fbdev suffix
Laurentiu Palcu [Fri, 17 Nov 2017 07:27:22 +0000 (09:27 +0200)]
MLK-16814-1: arm64: dts: imx8mq-evk: copy default dts and add fbdev suffix

Default dts will use DRM, hence this one will not be used anymore.
However, other people may find fbdev drivers useful. So, instead of
deleting it, copy it and add fbdev suffix to the dts name.

This patch preceeds another patch that will make drm dts default.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMLK-16834-03: hdmi/dp phy: Enable additional PLL loop Amplifier.
Sandor Yu [Thu, 16 Nov 2017 03:48:38 +0000 (11:48 +0800)]
MLK-16834-03: hdmi/dp phy: Enable additional PLL loop Amplifier.

Addresses the PLL lock issue found on many devices.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
(cherry picked from commit 5e16126749b90e3e53fc8872b87d310ce808f84e)

7 years agoMLK-16819-3: dts: Add HDMI CEC property to imx8mq dtb
Sandor Yu [Wed, 15 Nov 2017 07:52:17 +0000 (15:52 +0800)]
MLK-16819-3: dts: Add HDMI CEC property to imx8mq dtb

Add imx8 HDMI CEC property to imx8mq dtb.
Change HDMI HDP Controller memory map size.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16819-2: defconfig: Add CEC config
Sandor Yu [Wed, 15 Nov 2017 08:03:30 +0000 (16:03 +0800)]
MLK-16819-2: defconfig: Add CEC config

Add CEC to defconfig.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16819-1: CEC: Add HDMI CEC driver
Sandor Yu [Wed, 15 Nov 2017 07:55:30 +0000 (15:55 +0800)]
MLK-16819-1: CEC: Add HDMI CEC driver

Add iMX8 HDMI CEC function.
Support CEC MSG TX and RX function.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-16841-2: ARM64: dts: freescale: fsl-imx8mq: add 'fsl,ratio-1-1'
Robin Gong [Thu, 16 Nov 2017 09:28:57 +0000 (17:28 +0800)]
MLK-16841-2: ARM64: dts: freescale: fsl-imx8mq: add 'fsl,ratio-1-1'

Add fsl,ratio-1-1 into mscale B0 chip. Please remove this property if you
want to run A0 chip.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
7 years agoMLK-16841-1: dma: imx-sdma: add clock ration 1:1 check
Robin Gong [Thu, 16 Nov 2017 09:23:40 +0000 (17:23 +0800)]
MLK-16841-1: dma: imx-sdma: add clock ration 1:1 check

On i.mx8 mscale B0 chip, AHB/SDMA clock ratio 2:1 can't be supportted,
since SDMA clock ration has to be increased to 250Mhz, AHB can't reach
to 500Mhz, so use 1:1 instead.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
7 years agoMLK-16842 drm/imx: core: Add 32bit ioctrls support for 64bit processors
Liu Ying [Thu, 16 Nov 2017 09:17:21 +0000 (17:17 +0800)]
MLK-16842 drm/imx: core: Add 32bit ioctrls support for 64bit processors

Since we have 64bit processors running imx-drm, we should support
32bit ioctrls for them.

Reported-by: Ivan Liu <xiaowen.liu@nxp.com>
Tested-by: Ivan Liu <xiaowen.liu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16836 PCI: imx: add the bus freq sysfile interface
Richard Zhu [Wed, 15 Nov 2017 04:57:23 +0000 (12:57 +0800)]
MLK-16836 PCI: imx: add the bus freq sysfile interface

To support the bus freq power saving mode, add the
sysfile interface.
request bus high: echo 1 > /sys/devices/platform/xxxxxxxx.pcie/bus_freq
release bus high: echo 1 > /sys/devices/platform/xxxxxxxx.pcie/bus_freq

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-16838 tty: serial: imx: add busfreq support for DMA mode
Fugang Duan [Thu, 16 Nov 2017 08:31:13 +0000 (16:31 +0800)]
MLK-16838 tty: serial: imx: add busfreq support for DMA mode

Add busfreq support for DMA mode.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
7 years agoMLK-16765-8 ARM64: dts: freescale: fsl-imx8qxp: enable PWRON key in dts
Robin Gong [Mon, 13 Nov 2017 07:49:38 +0000 (15:49 +0800)]
MLK-16765-8 ARM64: dts: freescale: fsl-imx8qxp: enable PWRON key in dts

Enable PWRON key in dts.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16765-7 ARM64: dts: freescale: fsl-imx8qm: enable PWRON key in dts
Robin Gong [Mon, 13 Nov 2017 07:48:16 +0000 (15:48 +0800)]
MLK-16765-7 ARM64: dts: freescale: fsl-imx8qm: enable PWRON key in dts

Enable PWRON key in dts.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16765-6 ARM64: configs: defconfig: enable imx_sc_pwrkey driver
Robin Gong [Tue, 7 Nov 2017 09:32:45 +0000 (17:32 +0800)]
MLK-16765-6 ARM64: configs: defconfig: enable imx_sc_pwrkey driver

Enable imx_sc_pwrkey driver by default.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16765-5 soc: imx: sc: ipc: enable SC_IRQ_BUTTON
Robin Gong [Tue, 7 Nov 2017 09:30:54 +0000 (17:30 +0800)]
MLK-16765-5 soc: imx: sc: ipc: enable SC_IRQ_BUTTON

Enable SC_IRQ_BUTTON interrupt in SCU side.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16765-4 input: keyboard: imx_sc_pwrkey: add powerkey driver on i.mx8QM/QXP
Robin Gong [Tue, 7 Nov 2017 09:27:11 +0000 (17:27 +0800)]
MLK-16765-4 input: keyboard: imx_sc_pwrkey: add powerkey driver on i.mx8QM/QXP

This powerkey driver is a virtual driver based on scfw which control
SNVS ON/OFF in SCU side. The key interrupt triggered by MU notfication

BuildInfo:
   - SCFW e7d95e1e, IMX-MKIMAGE 05d3d4a7, ATF 93dd1cc
   - U-Boot 2017.03-00684-g28c5243

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16765-3 rtc: rtc-imx-sc: check group interrupt type
Robin Gong [Tue, 7 Nov 2017 09:18:44 +0000 (17:18 +0800)]
MLK-16765-3 rtc: rtc-imx-sc: check group interrupt type

Check group interrupt type and irq status type supported, return directlly
if it's not the right group and interrupt status.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16765-2 soc: imx: sc: ipc: add 'group' into notificaiton
Robin Gong [Tue, 7 Nov 2017 09:04:23 +0000 (17:04 +0800)]
MLK-16765-2 soc: imx: sc: ipc: add 'group' into notificaiton

Add one more 'group' parameter to notification so that rtc/temperature
driver can check if this MU interrupt is for themselves or not. Worst
case as before, different irq group with the same irq_status can't be
distinguished, such as 'SC_IRQ_BUTTON' and 'SC_IRQ_RTC'(all is 1), which
means both notification will be called once any of both interrupts
triggered. Besides, refine check irq_status code.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16765-1: soc: i.MX8: Update to the latest SCFW API
Robin Gong [Mon, 13 Nov 2017 10:04:31 +0000 (18:04 +0800)]
MLK-16765-1: soc: i.MX8: Update to the latest SCFW API

Update since new button/wdog interface added on scfw:
commit e7d95e1e306a

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16835 ARM64: dts: imx8mq-evk-pcie1-m2: enable usdhc2 node
Fugang Duan [Thu, 16 Nov 2017 06:50:36 +0000 (14:50 +0800)]
MLK-16835 ARM64: dts: imx8mq-evk-pcie1-m2: enable usdhc2 node

i.MX8MQ EVK RevA0/A1 board PCIe M.2 rework for 1CQ WIFI has
pin conflict with usdhc2 node, so disable the node in the extended
dts file. But for EVK RevB1/B2 board, there have no pin conflict
with usdhc1 node.

The change drop RevA0/A1 board PCIe M.2 WIFI support, and only support
RevB1/B2 or later boards. Then usdhc2 can work now.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-16833 ARM64: dts: freescale: imx8mq: enable over-drive mode by default
Anson Huang [Thu, 16 Nov 2017 13:46:22 +0000 (21:46 +0800)]
MLK-16833 ARM64: dts: freescale: imx8mq: enable over-drive mode by default

As all the EVK boards except A0 support over-drive mode,
so enable it in default EVK board dtb and remove over
drive mode dtb.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
7 years agoMLK-16830 PCI: imx: fix boot failulre when the pll is not locked
Richard Zhu [Wed, 15 Nov 2017 09:11:40 +0000 (17:11 +0800)]
MLK-16830 PCI: imx: fix boot failulre when the pll is not locked

Return the error when the pll is not locked.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
7 years agoMLK-16817-2 PCI: imx: enable the pm on imx8qm/qxp
Richard Zhu [Tue, 14 Nov 2017 05:36:31 +0000 (13:36 +0800)]
MLK-16817-2 PCI: imx: enable the pm on imx8qm/qxp

Enable the pcie pm on imx8qm/qxp

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-16817-1 ARM64: imx: add the pcie per clk for imx8qm/qxp
Richard Zhu [Mon, 13 Nov 2017 09:32:16 +0000 (17:32 +0800)]
MLK-16817-1 ARM64: imx: add the pcie per clk for imx8qm/qxp

Add the pcie per clk for imx8qm/qxp.
Since it is mandatory required in imx8qm/qxp pcie pm.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-16829 ARM64: dts: remove unused cpu idle state on imx8mq
Bai Ping [Thu, 16 Nov 2017 02:21:57 +0000 (10:21 +0800)]
MLK-16829 ARM64: dts: remove unused cpu idle state on imx8mq

The cluster level can NOT be power down on i.MX8MQ, so the cluster
level idle state can be removed. Only core level power down is used
for cpuidle support.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMGS-3367 [#imx-809] fix cma_release dump with ctrl-c
Xianzhong [Tue, 14 Nov 2017 19:07:35 +0000 (03:07 +0800)]
MGS-3367 [#imx-809] fix cma_release dump with ctrl-c

need release user memory before close the drmfb handle,
there is no galcore kernel interface for immediate free.

add new interface to release the user memory by force,

[  112.487090] [<ffff0000081748c0>] free_contig_range+0xa0/0xc0
[  112.492757] [<ffff0000081d944c>] cma_release+0x94/0xc0
[  112.497900] [<ffff0000085e344c>]
dma_release_from_contiguous+0x2c/0x38
[  112.504432] [<ffff000008095ab8>]
__dma_free_coherent.isra.14+0x50/0xb8
[  112.510962] [<ffff000008095b7c>] __dma_free+0x5c/0x90
[  112.516022] [<ffff0000085c56b4>] drm_gem_cma_free_object+0xa4/0x130
[  112.522293] [<ffff0000085a6384>] drm_gem_object_free+0x1c/0x58
[  112.528130] [<ffff0000085a646c>]
drm_gem_object_unreference_unlocked+0x54/0x130
[  112.535445] [<ffff0000085a65c0>]
drm_gem_object_handle_unreference_unlocked+0x60/0xb0
[  112.543281] [<ffff0000085a6664>]
drm_gem_object_release_handle+0x54/0x90
[  112.549989] [<ffff0000083c085c>] idr_for_each+0xb4/0x118
[  112.555304] [<ffff0000085a73cc>] drm_gem_release+0x24/0x38
[  112.560794] [<ffff0000085a62dc>] drm_release+0x28c/0x318
[  112.566111] [<ffff0000081df344>] __fput+0x8c/0x1d0
[  112.570906] [<ffff0000081df4ec>] ____fput+0xc/0x18
[  112.575705] [<ffff0000080d7e84>] task_work_run+0xc4/0xe0
[  112.581020] [<ffff0000080c0770>] do_exit+0x2d0/0x970
[  112.585988] [<ffff0000080c0e78>] do_group_exit+0x38/0xa0
[  112.591306] [<ffff0000080caf8c>] get_signal+0x1f4/0x508
[  112.596536] [<ffff000008087970>] do_signal+0x70/0x550
[  112.601591] [<ffff000008088080>] do_notify_resume+0x90/0xb0
[  112.607168] [<ffff000008082ddc>] work_pending+0x8/0x10

Date: Nov 14, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
Reviewed-by: Prabhu Sundararaj <prabhu.sundararaj@nxp.com>
Reviewed-by: Yuchou Gan <yuchou.gan@nxp.com>
7 years agoMGS-1633-2 [#imx-811] fix build for gpu bus frequency
Xianzhong [Wed, 15 Nov 2017 17:14:51 +0000 (01:14 +0800)]
MGS-1633-2 [#imx-811] fix build for gpu bus frequency

need remove IMX8_SCU_CONTROL to include busfreq-imx.h

Date: Nov 15, 2017
Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
7 years agoMLK-16821 ARM64: dts: freescale: imx8mq: increase CMA size to 1GB
Anson Huang [Wed, 15 Nov 2017 14:48:27 +0000 (22:48 +0800)]
MLK-16821 ARM64: dts: freescale: imx8mq: increase CMA size to 1GB

Increase CMA size to 1GB to support dual 4K video playback.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
7 years agoMGS-1633 [#2235] Replace CONFIG_PM_RUNTIME with CONFIG_PM
Shawn Xiao [Mon, 22 Feb 2016 06:48:25 +0000 (14:48 +0800)]
MGS-1633 [#2235] Replace CONFIG_PM_RUNTIME with CONFIG_PM

Since 4.1, linux kernel has dropped CONFIG_PM_RUNTIME macro. And
CONFIG_PM is used instead. GPU driver should be synced with the change.

Date Feb 22, 2016

Signed-off-by: Shawn Xiao <b49994@freescale.com>
7 years agoMLK-16813 drm/imx: core: Set driver data to NULL when we bailout from ->bind()
Liu Ying [Tue, 14 Nov 2017 05:18:46 +0000 (13:18 +0800)]
MLK-16813 drm/imx: core: Set driver data to NULL when we bailout from ->bind()

We need to set driver data to NULL when we bailout from ->bind(),
otherwise it would be leaked to the system power management operations
and cause invalid driver data being used there.

Reported-by: Anson Huang <Anson.Huang@nxp.com>
Fixes: 54db5decce17 ("drm/imx: drop deprecated load/unload drm_driver ops")
Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16810 ARM64: dts: freescale: imx8mq: set timer stop flag in suspend
Anson Huang [Tue, 14 Nov 2017 13:02:21 +0000 (21:02 +0800)]
MLK-16810 ARM64: dts: freescale: imx8mq: set timer stop flag in suspend

System counter's clock is disabled in suspend, set flag
for arch timer driver's awareness.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
7 years agoMLK-16812 drm/imx: ldb: Let system PM behave properly when we are unbinded
Liu Ying [Tue, 14 Nov 2017 05:28:41 +0000 (13:28 +0800)]
MLK-16812 drm/imx: ldb: Let system PM behave properly when we are unbinded

The system power management operations should get correct driver data
before going on to further handling.  When the component is unbinded,
driver data should be set to NULL so that the system power management
may be bypassed(return early).  This way, we may prevent the system power
management from using any invalid driver data.

Fixes: 915ac0ad7369 ("MLK-16581-7 drm/imx: ldb: Add system power management support")
Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-16695-4: mipi_csi: fix build error
Guoniu.Zhou [Tue, 14 Nov 2017 08:24:56 +0000 (16:24 +0800)]
MLK-16695-4: mipi_csi: fix build error

Delete #ifdef CONFIG_PM_SLEEP statement which
lead to build error.

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit ea30b5c6631379cd054f949480e0c897e445c1b0)

7 years agoMLK-16695-3: mipi_csi: Change printk to dev_dbg
Guoniu.Zhou [Fri, 10 Nov 2017 03:09:21 +0000 (11:09 +0800)]
MLK-16695-3: mipi_csi: Change printk to dev_dbg

Messages in ISI irq handler are for debugging, so
change printk to dev_dbg for this purpose.

The width and height of image information need output
in debug process.

Reviewed-by: Sandor Yu <sandor.yu@nxp.com>
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit e254c8408f69eca9b668af58d911f27a4fefc121)

7 years agoMLK-16695-2: mipi_csi: Add pm suspend and resume support
Guoniu.Zhou [Fri, 10 Nov 2017 03:01:46 +0000 (11:01 +0800)]
MLK-16695-2: mipi_csi: Add pm suspend and resume support

Add power manager suspend and resume support for ISI

Reviewed-by: Sandor Yu <sandor.yu@nxp.com>
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit 4af299fed1568551d2e8c4696ec33d87cc873510)

7 years agoMLK-16695-1: mipi_csi: Add pm suspend and resume
Guoniu.Zhou [Fri, 10 Nov 2017 01:58:20 +0000 (09:58 +0800)]
MLK-16695-1: mipi_csi: Add pm suspend and resume

Add mipi_csi power manager suspend and resume support.

Reviewed-by: Sandor Yu <sandor.yu@nxp.com>
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
(cherry picked from commit 3cab760652a489f0f569cfa3744c2f1f9800f2d1)

7 years agoMLK-16777 PCI: imx: enable pcie pm on mscale
Richard Zhu [Tue, 14 Nov 2017 02:22:16 +0000 (10:22 +0800)]
MLK-16777 PCI: imx: enable pcie pm on mscale

Enable the PCIE PM on mScale.
- Refine the codes.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-16798-2: arm64: defconfig: CONFIG_AHCI_IMX=y
Leonard Crestez [Fri, 10 Nov 2017 11:43:22 +0000 (13:43 +0200)]
MLK-16798-2: arm64: defconfig: CONFIG_AHCI_IMX=y

Enabling sata on imx8qm was done by adding "default y", this should just
be modified in config instead.

Fixes: 1d09794d6387 ("MLK-16684-3 ata: imx: enable imx8qm sata")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
7 years agoMLK-16798-1: ata: imx: Fix AHCI_IMX Kconfig dependency
Leonard Crestez [Thu, 9 Nov 2017 18:53:06 +0000 (20:53 +0200)]
MLK-16798-1: ata: imx: Fix AHCI_IMX Kconfig dependency

Enabling sata on imx8qm was done by adding "default y", this should just
be modified in config instead.

Also fix the dependency list to include SOC_IMX53 || COMPILE_TEST.

Fixes: 1d09794d6387 ("MLK-16684-3 ata: imx: enable imx8qm sata")
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
7 years agoMLK-16801-1: arm64: dts: fsl-imx8qm-lpddr4-arm2: Add DTS for 4 displays.
Oliver Brown [Mon, 13 Nov 2017 00:59:32 +0000 (18:59 -0600)]
MLK-16801-1: arm64: dts: fsl-imx8qm-lpddr4-arm2: Add DTS for 4 displays.

Add DTS for 4 displays: 2 LVDS with it6263 and 2 MIPI with adv7535.

Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
7 years agoMLK-15473-7: crypto: caam: Fix CAAM driver build for i.MX6
Aymen Sghaier [Mon, 13 Nov 2017 09:56:02 +0000 (10:56 +0100)]
MLK-15473-7: crypto: caam: Fix CAAM driver build for i.MX6

  Add a check for CONFIG_HAVE_IMX8_SOC befor imx8_get_soc_revision() call
 to avoid i.MX6 build fail. The generic imx_get_soc_revision() call is
 not ready to use.

Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Aymen Sghaier <aymen.sghaier@nxp.com>
7 years agoMLK-16698-5: arm64: defconfig: Build in RM67191 panel driver
Robert Chiras [Wed, 25 Oct 2017 13:56:37 +0000 (16:56 +0300)]
MLK-16698-5: arm64: defconfig: Build in RM67191 panel driver

Enable the Raydium RM67171 drm panel driver as built-in in defconfig.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
7 years agoMLK-16698-4: arm64: dts: fsl-imx8qxp-mek: Enable mipi-dsi with rm67191
Oliver Brown [Fri, 27 Oct 2017 19:30:46 +0000 (14:30 -0500)]
MLK-16698-4: arm64: dts: fsl-imx8qxp-mek: Enable mipi-dsi with rm67191

Enable the MIPI-DSI to RM67191 OLED display panel path on the MX8QXP MEK
board.

Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
7 years agoMLK-16698-3: arm64: dts: fsl-imx8qxp-lpddr4-arm2: Enable mipi-dsi with rm67191
Robert Chiras [Thu, 2 Nov 2017 12:41:31 +0000 (14:41 +0200)]
MLK-16698-3: arm64: dts: fsl-imx8qxp-lpddr4-arm2: Enable mipi-dsi with rm67191

Enable the MIPI-DSI to RM67191 OLED display panel path on the MX8QXP
LPDDR4 board.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
7 years agoMLK-16698-2: arm64: dts: fsl-imx8qm-lpddr4-arm2: Enable mipi-dsi with rm67191
Robert Chiras [Fri, 27 Oct 2017 11:51:34 +0000 (14:51 +0300)]
MLK-16698-2: arm64: dts: fsl-imx8qm-lpddr4-arm2: Enable mipi-dsi with rm67191

Enable the MIPI-DSI to RM67191 OLED display panel path on the MX8QM
LPDDR4 development board.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
7 years agoMLK-16698-1: drm/panel: Add panel driver for Raydium RM67191
Robert Chiras [Mon, 16 Oct 2017 13:24:59 +0000 (16:24 +0300)]
MLK-16698-1: drm/panel: Add panel driver for Raydium RM67191

Add support for the OLED display based on MIPI-DSI protocol from Raydium:
RM67191.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
7 years agoMLK-16804-08 driver: soc: Reduce NOC/AHB/MAIN_AXI to save SOC power for audio playback
Anson Huang [Wed, 8 Nov 2017 10:17:22 +0000 (18:17 +0800)]
MLK-16804-08 driver: soc: Reduce NOC/AHB/MAIN_AXI to save SOC power for audio playback

reduce the NOC, main AXI and AHB bus clock frequency to save power when DDR enter low
frequency mode. VDDSOC is ~195mA during video play, and ~180mA in idle.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Signed-off-by: Bai Ping <ping.bai@nxp.com>
7 years agoMLK-16804-07 ARM64: dts: Add cpuidle state info node for imx8mq
Bai Ping [Fri, 10 Nov 2017 09:01:12 +0000 (17:01 +0800)]
MLK-16804-07 ARM64: dts: Add cpuidle state info node for imx8mq

Add cpuidle states node for imx8mq.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
7 years agoMLK-16804-06 driver: soc: Optimize the DDR frequency in audio playback case
Bai Ping [Wed, 8 Nov 2017 09:58:00 +0000 (17:58 +0800)]
MLK-16804-06 driver: soc: Optimize the DDR frequency in audio playback case

If audio device is the only that access to ddr memory, the DDR
frequency can be reduce to 25MHz to save power. when DDR run in
25MHz frequency, the memory bandwidth is about 66MB/s, it can
meet the performance requirement for audio only case.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
7 years agoMLK-16804-05 driver: soc: add the irq affinity call for child irqchip on imx8mq
Bai Ping [Wed, 8 Nov 2017 09:55:20 +0000 (17:55 +0800)]
MLK-16804-05 driver: soc: add the irq affinity call for child irqchip on imx8mq

On i.MX8MQ, we need the handle the correspoding IMR registers in gpc
to make sure the IRQ affinity to the specific core can be wakeup
successfully from power down idle state.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
7 years agoMLK-16804-04 driver: irqchip: Add IPI SW workaround for imx8mq
Bai Ping [Wed, 8 Nov 2017 09:48:47 +0000 (17:48 +0800)]
MLK-16804-04 driver: irqchip: Add IPI SW workaround for imx8mq

On i.MX8MQ, when the CPU core is in power down state,
the IPI can NOT wakeup the core anymore(ERR011171), so using the
external IRQ32 to wakeup the core in power down idle
state successfully.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
7 years agoMLK-16804-03 driver: clk: Add video pll2 output gate clk on imx8mq
Bai Ping [Wed, 8 Nov 2017 09:44:23 +0000 (17:44 +0800)]
MLK-16804-03 driver: clk: Add video pll2 output gate clk on imx8mq

The Video PLL2 has a output enable bit to do clk gate,
So we need to register this gate to save power.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
7 years agoMLK-16804-02 arm64: configs: enable the system counter timer for nxp imx8
Bai Ping [Mon, 13 Nov 2017 03:23:24 +0000 (11:23 +0800)]
MLK-16804-02 arm64: configs: enable the system counter timer for nxp imx8

Enable the system counter timer by default.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
7 years agoMLK-16804-01 driver: clocksource: Add nxp system counter broadcast timer
Bai Ping [Sun, 5 Nov 2017 07:31:09 +0000 (15:31 +0800)]
MLK-16804-01 driver: clocksource: Add nxp system counter broadcast timer

On NXP i.MX8MQ SOC, it has system counter module for ARM
generic timer implementation. In this system counter module
it also has compare frame module to provide timer support.
So we can use it as an alternative clockevent device for
broadcast timer purpose when CPU core enter power down state
with local timer stopped.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <anson.huang@nxp.com>
7 years agoMLK-16806 - [i.MX8QXP/Malone]: segment fault in gdb environment
Zhou Peng-B04994 [Mon, 13 Nov 2017 04:07:57 +0000 (12:07 +0800)]
MLK-16806 - [i.MX8QXP/Malone]: segment fault in gdb environment

function wait_event_interruptible_timeout may return some special value
in gdb debug environment, so we need to add additional check to these
return values, otherwise, interrupt will reported wrongly

Signed-off-by: Zhou Peng-B04994 <eagle.zhou@nxp.com>
7 years agoMLK-16805 - [i.MX8MQ/Hantro]: Enable runtime bus frequency
Zhou Peng-B04994 [Mon, 13 Nov 2017 04:00:38 +0000 (12:00 +0800)]
MLK-16805 - [i.MX8MQ/Hantro]: Enable runtime bus frequency

Add operation to request/release bus in runtime suspend/resume functions

Signed-off-by: Zhou Peng-B04994 <eagle.zhou@nxp.com>
7 years agoMLK-16803 arm64: dts: imx8mq-evk: removed the reserved ATF space
Peng Fan [Mon, 13 Nov 2017 01:05:34 +0000 (09:05 +0800)]
MLK-16803 arm64: dts: imx8mq-evk: removed the reserved ATF space

ATF has been moved to OCRAM, there is no need to reserve space
for ATF in DRAM space.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
7 years agoMLK-16800: dma: mxs-dma: correctly handle mxs-dma clock
Han Xu [Fri, 10 Nov 2017 23:37:22 +0000 (17:37 -0600)]
MLK-16800: dma: mxs-dma: correctly handle mxs-dma clock

enable mxs-dma clock before HW reset and disable clock after it.

BuildInfo:
- SCFW 15d20cde, IMX-MKIMAGE ff9860c5, ATF
- U-Boot 2017.03-00003-gd09f5db

Signed-off-by: Han Xu <han.xu@nxp.com>