linux.git
7 years agoMLK-17804-4: dts: change gpio pin for qxp mipi csi
Guoniu.Zhou [Wed, 14 Mar 2018 11:20:32 +0000 (19:20 +0800)]
MLK-17804-4: dts: change gpio pin for qxp mipi csi

Replace mipi gpio pins with generic gpio pins.

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

7 years agoMLK-17804-3: dts: change gpio pin for qm ov5640 sensor
Guoniu.Zhou [Wed, 14 Mar 2018 11:01:01 +0000 (19:01 +0800)]
MLK-17804-3: dts: change gpio pin for qm ov5640 sensor

Because ov5640 need power and rest pin, so replace mipi
csi gpio with generic gpio controller pins.

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

7 years agoMLK-17804-2: dts: change gpio pin for qm mipi csi
Guoniu.Zhou [Wed, 14 Mar 2018 10:34:59 +0000 (18:34 +0800)]
MLK-17804-2: dts: change gpio pin for qm mipi csi

Replace mipi csi gpio pin with generic gpio pin.

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

7 years agoMLK-17804-1: dts: fix ISI and MIPI CSI power domain can't enter lp mode
Guoniu.Zhou [Wed, 14 Mar 2018 09:53:05 +0000 (17:53 +0800)]
MLK-17804-1: dts: fix ISI and MIPI CSI power domain can't enter lp mode

MIPI CSI power domain can not enter low power mode because gpio of
mipi csi module occupy the resource, but camera sensor always use
the gpio, so making gpio of gpio3 controlloer replace mipi csi gpio
to control sensor EN and RESET pins.

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

7 years agoMLK-17790-2: CI_PI: add system and runtime suspend/resume
Guoniu.Zhou [Tue, 13 Mar 2018 10:08:16 +0000 (18:08 +0800)]
MLK-17790-2: CI_PI: add system and runtime suspend/resume

1. For QXP, after system suspend and resume, parent of pixel
and per clk will drop, so driver need to restore it. The rate
of pixel and per clk also will miss, so driver have to set it
in resume callback again.

2. I have to power off CI_PI subsystem power domain in resume
callback, otherwise setting clock parent will fail.

3. Driver need free gpio resouce after device do not use it.

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

7 years agoMLK-17790-1: dts: add clocks for CI_PI subsystme
Guoniu.Zhou [Tue, 13 Mar 2018 10:03:02 +0000 (18:03 +0800)]
MLK-17790-1: dts: add clocks for CI_PI subsystme

Because QXP will drop parent clock info of CI_PI SS
after system suspend/resume, so driver need to record
the relationship of clocks.

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

7 years agoMLK-17741-3: dts: add dt for ov5640 mipi interface
Guoniu.Zhou [Mon, 12 Mar 2018 01:58:21 +0000 (09:58 +0800)]
MLK-17741-3: dts: add dt for ov5640 mipi interface

Add ov5640 mipi interface support for 8QM.

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

7 years agoMLK-17741-2: media: add ov5640 mipi driver
Guoniu.Zhou [Fri, 9 Mar 2018 08:19:37 +0000 (16:19 +0800)]
MLK-17741-2: media: add ov5640 mipi driver

Add driver for ov5640 mipi csi interface.

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

7 years agoMLK-17741-1: sensor: add dts for ov5640 mipi interface
Guoniu.Zhou [Fri, 9 Mar 2018 08:07:41 +0000 (16:07 +0800)]
MLK-17741-1: sensor: add dts for ov5640 mipi interface

Add device tree file for ov5640 mipi csi interface.

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

7 years agoMLK-17230-12: camera: fixed enum frame interval issue
Guoniu.Zhou [Tue, 6 Feb 2018 03:34:13 +0000 (11:34 +0800)]
MLK-17230-12: camera: fixed enum frame interval issue

when enum frame interval, kernel will be panic. It caused by
an null pointer, so correct the subdev data structure pointer.

ov5640 only support 15fps when mode is 1080P, so add this info
when user enum frame interval.

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

7 years agoMLK-17230-11: dts: disable mjpeg decoder and encoder
Guoniu.Zhou [Mon, 5 Feb 2018 10:23:27 +0000 (18:23 +0800)]
MLK-17230-11: dts: disable mjpeg decoder and encoder

Disable mjpeg decoder and encoder.

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

7 years agoMLK-17230-10: mipi_csi: add some subdev ops for compatibility
Guoniu.Zhou [Mon, 5 Feb 2018 08:58:52 +0000 (16:58 +0800)]
MLK-17230-10: mipi_csi: add some subdev ops for compatibility

In order to use the same unit test for both mipi csi and parallel
csi, add pad and video subdev ops in mipi csi driver.

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

7 years agoMLK-17230-9: max9286: delete redundant 15fps support
Guoniu.Zhou [Mon, 5 Feb 2018 08:50:08 +0000 (16:50 +0800)]
MLK-17230-9: max9286: delete redundant 15fps support

Delete redundant 15fps statements because max9286 does not
support.

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

7 years agoMLK-17230-8: camera: add CI_PI in camera device framework
Guoniu.Zhou [Mon, 5 Feb 2018 08:26:38 +0000 (16:26 +0800)]
MLK-17230-8: camera: add CI_PI in camera device framework

Add CI_PI and ov5640 camera sensor support in camera device
framework. The data flow is "ov5640->ci_pi->isi_ch0". Disable
the other channels of ISI.

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

7 years agoMLK-17230-7: defconfig: enable CI_PI and ov5640 as bulit-in
Guoniu.Zhou [Mon, 5 Feb 2018 08:04:16 +0000 (16:04 +0800)]
MLK-17230-7: defconfig: enable CI_PI and ov5640 as bulit-in

Enable CI_PI and ov5640 as built-in.

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

7 years agoMLK-17230-6: sensor: add driver for ov5640 camera sensor
Guoniu.Zhou [Mon, 5 Feb 2018 07:58:39 +0000 (15:58 +0800)]
MLK-17230-6: sensor: add driver for ov5640 camera sensor

Add version3.0 driver for ov5640 camera sensor. It works on DVP
mode

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

7 years agoMLK-17230-5: CI_PI: enable CI_PI SS
Guoniu.Zhou [Mon, 5 Feb 2018 07:43:23 +0000 (15:43 +0800)]
MLK-17230-5: CI_PI: enable CI_PI SS

Add driver for CI_PI controller.

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

7 years agoMLK-17230-4: CI_PI: add dts file for CI_PI SS
Guoniu.Zhou [Mon, 5 Feb 2018 07:26:34 +0000 (15:26 +0800)]
MLK-17230-4: CI_PI: add dts file for CI_PI SS

Add pinmux setting for CI_PI and bridge connection between
CI_PI and camera sensor.

Enable CI_PI and camera sensor ov5640.

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

7 years agoMLK-17230-3: CI_PI: add device nodes for CI_PI SS
Guoniu.Zhou [Mon, 5 Feb 2018 07:17:23 +0000 (15:17 +0800)]
MLK-17230-3: CI_PI: add device nodes for CI_PI SS

Add clock and power domain device nodes for CI_PI subsystem.

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

7 years agoMLK-17230-2: CI_PI: add power domain names for CI_PI ss
Guoniu.Zhou [Mon, 5 Feb 2018 07:12:58 +0000 (15:12 +0800)]
MLK-17230-2: CI_PI: add power domain names for CI_PI ss

Add power domain macro names for CI_PI subsystem.

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

7 years agoMLK-17230-1: CI_PI: register clocks for CI_PI ss
Guoniu.Zhou [Mon, 5 Feb 2018 06:52:07 +0000 (14:52 +0800)]
MLK-17230-1: CI_PI: register clocks for CI_PI ss

Register clocks for CI_PI subsystem.

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

7 years agoMLK-17843 rtc: rtc-imx-rpmsg: fix alarm enable function
Anson Huang [Tue, 20 Mar 2018 07:25:51 +0000 (15:25 +0800)]
MLK-17843 rtc: rtc-imx-rpmsg: fix alarm enable function

Add missing enable parameter for alarm enable function,
without correct parameter, the "enable" value is a random
value in memory and M4 may disable alarm unexpectedly.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
7 years agoMLK-17815-2 ata: imx: imx8qm: configure phy impedance ratio
Richard Zhu [Tue, 13 Mar 2018 09:14:07 +0000 (17:14 +0800)]
MLK-17815-2 ata: imx: imx8qm: configure phy impedance ratio

- To save power consumption, PHY related CLKs can be
gated off after the configurations are done.
- The impedance ratio should be configured refer to
differnet REXT values.
0x6c <--> REXT valuse is 85Ohms
Default values 0x80 <--> REXT value is 100Ohms.
- IMX8QM_HSIO_PHY_X1_APB_CLK is mandatory required when
access SATA PHY registers. Change the power domain to SATA.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-17815-1 dts: arm64: imx8qm: add sata phy region
Richard Zhu [Tue, 13 Mar 2018 09:11:57 +0000 (17:11 +0800)]
MLK-17815-1 dts: arm64: imx8qm: add sata phy region

Add the extra imx8qm sata phy register region,
and the clock phy_apbclk, mandatory required to
access phy registers.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-17829-2 ARM64: imx8mscale: add s3508 touch support in device tree
Haibo Chen [Mon, 12 Mar 2018 10:57:48 +0000 (18:57 +0800)]
MLK-17829-2 ARM64: imx8mscale: add s3508 touch support in device tree

Default disable this touch.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
7 years agoMLK-17829 touchscreen: Add synaptics_dsx S3508 i2c touch driver
Haibo Chen [Mon, 5 Mar 2018 09:46:15 +0000 (17:46 +0800)]
MLK-17829 touchscreen: Add synaptics_dsx S3508 i2c touch driver

Add S3508 touch driver support.

Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
7 years agoMLK-17674-4: driver/crypto: CAAM add support for 7ulp
Silvano di Ninno [Fri, 16 Mar 2018 13:49:57 +0000 (14:49 +0100)]
MLK-17674-4: driver/crypto: CAAM add support for 7ulp

Add support for imx7ulp SoC.

Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
7 years agoMLK-17674-2: CAAM SM : get base address from device tree
Silvano di Ninno [Fri, 16 Mar 2018 13:48:10 +0000 (14:48 +0100)]
MLK-17674-2: CAAM SM : get base address from device tree

Remove hard coded value for base physical address.
Use device tree to get this value.

i.MX8 with seco is still not address since CAAM uses a private bus
to access secure memory

Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
7 years agoMLK-17674-1: sm_store remove CONFIG_OF
Silvano di Ninno [Fri, 16 Mar 2018 13:46:28 +0000 (14:46 +0100)]
MLK-17674-1: sm_store remove CONFIG_OF

I.MX linux only works with device tree support
No need to keep code without CONFIG_OF

Signed-off-by: Silvano di Ninno <silvano.dininno@nxp.com>
7 years agoMLK-17819 ARM: imx7ulp: update iomux header for i.MX7ULP B0 silicon
Fugang Duan [Thu, 15 Mar 2018 09:36:29 +0000 (17:36 +0800)]
MLK-17819 ARM: imx7ulp: update iomux header for i.MX7ULP B0 silicon

- Update iomux header for i.MX7ULP B0 silicon.
- Keep the pin func name prefix name is "IMX7ULP_" that align with
  upstreaming kernel.
- Align the pin func name with header file for all dts files.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Shenwei Wang <shenwei.wang@nxp.com>
7 years agoMLK-17787 clk: imx: gate-scu: fix return code
Peng Fan [Tue, 13 Mar 2018 07:43:53 +0000 (15:43 +0800)]
MLK-17787 clk: imx: gate-scu: fix return code

The sc api error code is not compatible with Linux error code,
directly returning the sc api error code to caller is wrong.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-17803 drm/imx: dpu: kms: Correct the way to do DPR manual/auto mode switch
Liu Ying [Wed, 14 Mar 2018 06:10:13 +0000 (14:10 +0800)]
MLK-17803 drm/imx: dpu: kms: Correct the way to do DPR manual/auto mode switch

The DPR works in manual mode for the first frame and we need to
switch it to auto mode so that auto shadow load mechanism works.
The designers require us to switch the DPR manual mode to auto mode
directly for display controllers instead of using the DPR control
done irq handler, because the irq will not come in some cases(which
leads to shadow load failure).  Finer switch operations on DPR
register bits are needed for SW_SHADOW_LOAD_SEL, SHADOW_LOAD_EN,
RUN_EN and REPEAT_EN.  Also, for overlay planes, we need to wait for
a frame additionally in the "on-the-fly" cases to make sure the
switch is successful.  In all, this patch should be able to address
frame dropping and screen tearing issue(due to the shadow load
failure) when users play video on overlay planes.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-17802 drm/imx: dpu: plane: Remove pixel formats unsupported by DPR
Liu Ying [Wed, 14 Mar 2018 03:07:42 +0000 (11:07 +0800)]
MLK-17802 drm/imx: dpu: plane: Remove pixel formats unsupported by DPR

The RGB888/BGR888/NV16/NV61/NV24/NV42 pixel formats are not supported
by DPR.  They cannot get the benefits(i.e., tile resolving and
underrun-proof) from the prefetch engines.  Also, 16bit and 32bit
RGB pixel formats are widely used by GUI, while NV12 pixel format
is the only pixel format supported by VPU.  Thus, it makes little
sense to support the pixel formats which are not supported by DPR.
Another idea is that removing the pixel formats makes the driver
a bit simpler since we don't have to deal with the cases in which
prefetch engines are bypassed.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoRevert "MLK-17750: drm/imx: ldb: Fix build on imx6/7"
Leonard Crestez [Wed, 14 Mar 2018 12:39:28 +0000 (14:39 +0200)]
Revert "MLK-17750: drm/imx: ldb: Fix build on imx6/7"

This reverts commit 414fba94a0f0cbc0ca6c7f445908aa86288a178f.

7 years agoMLK-17799: ARM64: dts: restruct audio power domain tree
Shengjiu Wang [Wed, 14 Mar 2018 07:47:12 +0000 (15:47 +0800)]
MLK-17799: ARM64: dts: restruct audio power domain tree

There is dedicate resource id for audio clocks (PLL_0, PLL_1,
AUDIO_CLK_0, AUDIO_CLK_1), the scfw need user to enable the power
of resource before using it.  The audio clock may used by all
audio devices, but the kernel only allow register one power-domains
for each device note.

So the solution is to add parent-child relationship for them

Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-17798: ARM64: dts: configure IOMUXD_COMP_CTL_GPIO_1V8_3V3_GPIORHB
Shengjiu Wang [Wed, 14 Mar 2018 07:25:46 +0000 (15:25 +0800)]
MLK-17798: ARM64: dts: configure IOMUXD_COMP_CTL_GPIO_1V8_3V3_GPIORHB

The ESAI and SPDIF pin are in enet bank, the board is using 3.3v,
so we need to configure the PSW_OVR to zero, whose default setting
is for 2.5V.

Signed-off-by: Anson Huang <anson.huang@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17796: hdp: Remove duplicate define variable cur_mode
Sandor Yu [Wed, 14 Mar 2018 02:45:10 +0000 (10:45 +0800)]
MLK-17796: hdp:  Remove duplicate define variable cur_mode

variable cur_mode have define in struct of imx_hdp.video.
so remove it in stuct imx_hdp.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17794: ASoC: fsl: Add SND_SOC_IMX_CDNHDMI back
Shengjiu Wang [Wed, 14 Mar 2018 02:44:15 +0000 (10:44 +0800)]
MLK-17794: ASoC: fsl: Add SND_SOC_IMX_CDNHDMI back

The FB_MX8_HDMI is removed, the dependency is changed
to DRM_IMX_HDP.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Sandor Yu <sandor.yu@nxp.com>
7 years agoMLK-11780 PCI: imx: correct some type mistakes
Richard Zhu [Fri, 9 Mar 2018 05:50:29 +0000 (13:50 +0800)]
MLK-11780 PCI: imx: correct some type mistakes

- They should be bitwise logic, not the boolean logic.
- Correct the error return values.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-17792: arm64: configs: i.MX8QM flexspi power domain fix
Han Xu [Tue, 13 Mar 2018 19:56:51 +0000 (14:56 -0500)]
MLK-17792: arm64: configs: i.MX8QM flexspi power domain fix

fix the flexspi power domain for i.MX8QM.

Signed-off-by: Han Xu <han.xu@nxp.com>
7 years agoMLK-17750: drm/imx: ldb: Fix build on imx6/7
Leonard Crestez [Fri, 9 Feb 2018 14:54:55 +0000 (16:54 +0200)]
MLK-17750: drm/imx: ldb: Fix build on imx6/7

This code is enabled in upstream imx_v6_v7_defconfig but fails to build
because of sc api calls. Fix this by adding ifdef checks to pixel_link
code.

These calls are already guarded at runtime with checks for devtype
pixel_link_valid_quirks so the empty ifdefed functions will never get
called anyway.

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Robert Chiras <robert.chiras@nxp.com>
7 years agoMLK-17579 ARM64: dts: correct the pad setting for imx8 usdhc
Haibo Chen [Fri, 9 Feb 2018 10:02:18 +0000 (18:02 +0800)]
MLK-17579 ARM64: dts: correct the pad setting for imx8 usdhc

according to IC suggestion, usdhc clock pad need to be configed as
input/output mode, for other usdhc pad, including the strobe pad, need
to be configed as normal mode.

This patch do the change on the imx8qxp and imx8qm board.

Reviewed-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
7 years agoMLK-17782 dma: fsl-edma-v3: fix issue reported by Coverity
Robin Gong [Mon, 12 Mar 2018 18:03:09 +0000 (02:03 +0800)]
MLK-17782 dma: fsl-edma-v3: fix issue reported by Coverity

Fix below issue reported by Coverity, actually, don't need this
condition check here, remove it.

CID undefined (#1 of 1): Wrong operator used (CONSTANT_EXPRESSION_RESULT)operator_confusion:
(16UL /* 1UL << 4 */) | (__u16)(__le16)tcd->csr is always 1/true regardless of the values of its operand.
This occurs as the logical first operand of "&&".

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17684-3: drm/mxsfb: Add support for new pixel formats in eLCDIF
Mirela Rabulea [Wed, 7 Mar 2018 08:48:21 +0000 (10:48 +0200)]
MLK-17684-3: drm/mxsfb: Add support for new pixel formats in eLCDIF

Add support for the following pixel formats:
16 bpp: RG16 ,BG16, XR15, XB15, AR15, AB15
Set the bus format based on input from the user and panel capabilities.
Save the bus format in crtc->mode.private_flags, the DSI will use it.
Use drm_get_format_name instead of locally defined fourcc_to_str.

Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
7 years agoMLK-17684-2: drm/bridge: nwl-dsi: Let CRTC dictate the final bus format
Mirela Rabulea [Wed, 7 Mar 2018 08:45:29 +0000 (10:45 +0200)]
MLK-17684-2: drm/bridge: nwl-dsi: Let CRTC dictate the final bus format

Use the bus format that was established by CRTC in
crtc->mode.private_flags.
This will be available during enable phase.

The DSI host will be configured via interface_color_coding
and pixel_format (DPI-2 interface ports).
Previously the interface_color_coding was hardcoded to 24-bit.

Set the DSI pixel format before it is necessary in
nwl_dsi_get_bit_clock, during imx_nwl_dsi_enable.

Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
7 years agoMLK-17684-1: drm/panel: rm67191: Add support for new bus formats
Mirela Rabulea [Wed, 7 Mar 2018 08:41:31 +0000 (10:41 +0200)]
MLK-17684-1: drm/panel: rm67191: Add support for new bus formats

Do not hardcode pixel_format to 0x77 but calculate it from dsi->format.
Report all the supported bus formats in get_modes:
        MEDIA_BUS_FMT_RGB888_1X24
        MEDIA_BUS_FMT_RGB666_1X18
        MEDIA_BUS_FMT_RGB565_1X16
Change pixelclock from 120 to 132 MHz, or 16 bpp formats will not work.

Signed-off-by: Mirela Rabulea <mirela.rabulea@nxp.com>
7 years agoMLK-17583-2: arm: imx: Fix imx6sl cpuidle build fail without CONFIG_SOC_IMX6SLL
Leonard Crestez [Fri, 9 Feb 2018 14:35:59 +0000 (16:35 +0200)]
MLK-17583-2: arm: imx: Fix imx6sl cpuidle build fail without CONFIG_SOC_IMX6SLL

Fixes commit 91558864ab21 ("MLK-13344-05 ARM: imx: Add cpuidle support on imx6sll")

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
7 years agoMLK-17583-1: arm: imx: Fix ifdef check on imx6sll_lpddr2_freq_change
Leonard Crestez [Fri, 9 Feb 2018 14:11:42 +0000 (16:11 +0200)]
MLK-17583-1: arm: imx: Fix ifdef check on imx6sll_lpddr2_freq_change

Fixes commit e9f330efbe16 ("MLK-13344-04 ARM: imx: Add busfreq support on imx6sll")

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
7 years agoMGS-3691 fix gpu kernel panic in cache invalidate
Xianzhong [Mon, 12 Mar 2018 19:12:17 +0000 (03:12 +0800)]
MGS-3691 fix gpu kernel panic in cache invalidate

kernel panic when run opencl cts test_buffers on mScale850D,
use get_user and put_user to touch and validate user memory,

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
7 years agoMMIOT-30 staging: android: uapi: add secure_ion.h
Olivier Masse [Thu, 1 Feb 2018 14:02:12 +0000 (15:02 +0100)]
MMIOT-30 staging: android: uapi: add secure_ion.h

Signed-off-by: Olivier Masse <olivier.masse@nxp.com>
7 years agoMMIOT-35-1 arm64: dts: imx8mq drm: create dts for drm purpose
Antoine Bouyer [Wed, 17 Jan 2018 16:47:28 +0000 (17:47 +0100)]
MMIOT-35-1 arm64: dts: imx8mq drm: create dts for drm purpose

Signed-off-by: Antoine Bouyer <antoine.bouyer@nxp.com>
7 years agoMMIOT-35-1 arm64: dts: imx8mq: add dts node pointers
Antoine Bouyer [Thu, 7 Sep 2017 14:41:02 +0000 (16:41 +0200)]
MMIOT-35-1 arm64: dts: imx8mq: add dts node pointers

These pointers are required for drm dts

Signed-off-by: Antoine Bouyer <antoine.bouyer@nxp.com>
7 years agoDocumentation: add fsl-heap and imx-ion-pool docs
Antoine Bouyer [Wed, 7 Feb 2018 15:12:56 +0000 (16:12 +0100)]
Documentation: add fsl-heap and imx-ion-pool docs

Signed-off-by: Antoine Bouyer <antoine.bouyer@nxp.com>
7 years agodevicetree: add linux,ion-heap-unmapped compatible
Antoine Bouyer [Wed, 7 Feb 2018 15:10:55 +0000 (16:10 +0100)]
devicetree: add linux,ion-heap-unmapped compatible

Signed-off-by: Antoine Bouyer <antoine.bouyer@nxp.com>
7 years agoMMIOT-6-2 android: ion: add carveouts for Freescale i.MX8MQ DCSS and VPU
Hervé Fache [Thu, 7 Sep 2017 14:41:02 +0000 (16:41 +0200)]
MMIOT-6-2 android: ion: add carveouts for Freescale i.MX8MQ DCSS and VPU

Signed-off-by: Hervé Fache <herve.fache@nxp.com>
Signed-off-by: Antoine Bouyer <antoine.bouyer@nxp.com>
MMIOT-6-2 android: ion: Minor changes for readability

Signed-off-by: Alexandre Jutras <alexandre.jutras@nxp.com>
7 years agostaging/ion: fix unmapped heap conditional support
Etienne Carriere [Mon, 18 Sep 2017 09:54:27 +0000 (11:54 +0200)]
staging/ion: fix unmapped heap conditional support

Fixes: 7c7d9c446252 "staging/ion: CONFIG_ION_UNMAPPED_HEAP conditions unmapped heap"

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Acked-by: Joakim Bech <joakim.bech@linaro.org>
(cherry picked from commit bf829aa7c001c085a47c715e04cb3c347b1a38f8
 linaro repo https://github.com/linaro-swg/linux.git
 tag optee-v4.9-20171005)

7 years agostaging/ion: ARM64 supports ION_UNMAPPED_HEAP
Etienne Carriere [Mon, 18 Sep 2017 09:54:19 +0000 (11:54 +0200)]
staging/ion: ARM64 supports ION_UNMAPPED_HEAP

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Acked-by: Joakim Bech <joakim.bech@linaro.org>
(cherry picked from commit 916d9f36e107c37a88cb15924e0da8c5a572f90a
 linaro repo https://github.com/linaro-swg/linux.git
 tag optee-v4.9-20171005)

7 years agostaging/ion: CONFIG_ION_UNMAPPED_HEAP conditions unmapped heap
Etienne Carriere [Fri, 8 Sep 2017 11:56:26 +0000 (13:56 +0200)]
staging/ion: CONFIG_ION_UNMAPPED_HEAP conditions unmapped heap

Condition ION unmapped heap implementation to architectures that
currently support it. ARM is one of these.

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
(cherry picked from commit 7c7d9c446252829aa138c87c47a937e2a3b4fd26
 linaro repo https://github.com/linaro-swg/linux.git
 tag optee-v4.9-20171005)

7 years agoion: fix unmapped heap test settings **not for mainline**
Etienne Carriere [Thu, 24 Aug 2017 13:44:46 +0000 (15:44 +0200)]
ion: fix unmapped heap test settings **not for mainline**

If one enables ION_DUMMY_UNMAPPED_HEAP without providing the target
unmapped heap configuration settings (physical base address and size),
the kernel cannot build. This situation occurs in Linux test build
cases, i.e running the allmodconfig configuration.

This change overcomes the issue by providing default null settings for
both ION_DUMMY_UNMAPPED_BASE and ION_DUMMY_UNMAPPED_SIZE.

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Acked-by: Jens Wiklander <jens.wiklander@linaro.org>
(cherry picked from commit ac0c2c26b9819c5e95d56cb2d8937de0357eecaa
 linaro repo https://github.com/linaro-swg/linux.git
 tag optee-v4.9-20171005)

7 years agoion: unmapped heap support in ion dummy driver **not for mainline**
Etienne Carriere [Thu, 23 Mar 2017 13:03:05 +0000 (14:03 +0100)]
ion: unmapped heap support in ion dummy driver **not for mainline**

Add configuration ION_DUMMY_UNMAPPED_HEAP to enable optional definition
of a statically defined "unmapped" heap for test purpose: kernel config
must provide the memory pool base address and byte size.

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
(cherry picked from commit 961993fde60ebd06715d1433f8eb265471a0f38c
 linaro repo https://github.com/linaro-swg/linux.git
 tag optee-v4.9-20171005)

7 years agoion: "unmapped" heap for secure data path **not for mainline**
Etienne Carriere [Thu, 23 Mar 2017 13:02:44 +0000 (14:02 +0100)]
ion: "unmapped" heap for secure data path **not for mainline**

OP-TEE/SDP (Secure Data Path) memory pools are created through ION
secure type heap" from Allwinner. This change renames "secure" into
"unmapped" as, from Linux point of view, the heap constraint is
manipulating unmapped memory pools/buffers.

"Unmapped" heap support is integrated in ION UAPI (actually this was
the Allwinner initial proposal) and ION DT parsing support.

Based in work from Sunny <sunny@allwinnertech.com> for Allwinner.

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
(cherry picked from commit 4a95713514ddc3d55d5df213513aeec5a3717243
 linaro repo https://github.com/linaro-swg/linux.git
 tag optee-v4.9-20171005)

7 years agostaging/ion: add Allwinner ION "secure" heap **not for mainline**
Etienne Carriere [Thu, 23 Mar 2017 13:02:08 +0000 (14:02 +0100)]
staging/ion: add Allwinner ION "secure" heap **not for mainline**

Dumped from:
  https://github.com/loboris/OrangePI-Kernel/tree/master/linux-3.4
  0cc8d855adb
  Author: Sunny <sunny@allwinnertech.com> for Allwinner.

Changes made on original "secure heap" implementation:
- minor coding style: fix includes, empty lines and overlong lines,
  indentation, comment layout.
- Original path modified the ion uapi. We do not attempt to modify
  uapi/ion.h. "secure" (or "domain") heaps are under ID
  ION_HEAP_TYPE_CUSTOM + 1 (legacy 'secure heap type' value).

Signed-off-by: Etienne Carriere <etienne.carriere@linaro.org>
Reviewed-by: Joakim Bech <joakim.bech@linaro.org>
(cherry picked from commit e31dd54997b050b6a6965d7cfbc795492256847c
 linaro repo https://github.com/linaro-swg/linux.git
 tag optee-v4.9-20171005)

7 years agoMLK-17731 PCI: dwc: implement MSI-X support
Richard Zhu [Fri, 2 Mar 2018 09:24:05 +0000 (17:24 +0800)]
MLK-17731 PCI: dwc: implement MSI-X support

The DWC MSI controller does not support different MSI-X target addresses
and does not allow to route individual IRQs to different CPUs. Aside
from those shortcomings it is able to support MSI-X just fine.

Some devices like the Intel i210 network controller depend on MSI-X to
be available to enable all hardware features, so even a feature limited
implementation of MSI-X on the host side is useful.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-17544 PCI: imx: change the imx6 specific name
Richard Zhu [Tue, 27 Feb 2018 07:49:40 +0000 (15:49 +0800)]
MLK-17544 PCI: imx: change the imx6 specific name

Replace the specific name imx6_xxx by imx_xxx.
Since all imx6/7/8 PCIe use the same driver.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
7 years agoMLK-17732-2: SM store: Support iMX8QX and iMX8QM
Franck LENORMAND [Fri, 9 Mar 2018 17:05:49 +0000 (18:05 +0100)]
MLK-17732-2: SM store: Support iMX8QX and iMX8QM

The iMX8 QX and QM have SECO/SCU enabled and the access
to SM registers is different as long as the addresses of
the pages.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
7 years agoMLK-17732-1: defconfig: imx8m: Enable SM keystore and test
Franck LENORMAND [Thu, 8 Mar 2018 11:13:07 +0000 (12:13 +0100)]
MLK-17732-1: defconfig: imx8m: Enable SM keystore and test

We enable the SM keystore and its test by default to be
tested at the boot of the kernel.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
7 years agoMLK-17648-2: drm: imx: dcss: Load the HDR10 from header file
Laurentiu Palcu [Fri, 9 Mar 2018 12:12:58 +0000 (14:12 +0200)]
MLK-17648-2: drm: imx: dcss: Load the HDR10 from header file

This commit allows one to select if a firmware file is used, for loading
the HDR10 tables, or a header. By default, this will be header file.
This is until a proper way of passing the file from bootloader is found.

Also, fix a minor bug which made parsing the tables over the actual data
limit.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMLK-17648-1: drm: imx: dcss: add HDR10 module tables
Laurentiu Palcu [Fri, 9 Mar 2018 12:09:00 +0000 (14:09 +0200)]
MLK-17648-1: drm: imx: dcss: add HDR10 module tables

This commit adds HDR10 tables as a header. Using a FW file is
problematic since the tables need to be available immediately after
boot. After the rootfs is mounted, as is the case for loading a FW file,
it's already too late if some conversion tables are needed.

This usually happens if the output pipe is configured as YUV420.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMLK-17743 ASoC: codecs: ak4458: Fix mute gpio mixed with pdn gpio
Cosmin-Gabriel Samoila [Fri, 9 Mar 2018 09:49:58 +0000 (11:49 +0200)]
MLK-17743 ASoC: codecs: ak4458: Fix mute gpio mixed with pdn gpio

Fix bug when PDN gpio is requested instead of mute gpio.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-17580: ASoC: fsl: sai: check for pinctrl status
Viorel Suman [Fri, 9 Mar 2018 10:41:42 +0000 (12:41 +0200)]
MLK-17580: ASoC: fsl: sai: check for pinctrl status

For some cases (like AMIX) pinctrl may be null - this
breaks SAI functionality. Enforce pinctrl null pointer
checking prior calling any function which involves
pins state changes.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-17740 ARM: imx_v7_defconfig: enable wireless HOSTAP
Fugang Duan [Thu, 8 Mar 2018 10:43:10 +0000 (18:43 +0800)]
MLK-17740 ARM: imx_v7_defconfig: enable wireless HOSTAP

Add wireless HOSTAP config enable for i.MX7ULP Murata 1PJ (Qca9377-3).

Reviewed-by: Gao Pan <pandy.gao@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17603 arm: dts: imx7d-sdb-epdc: enable enet1 for epdc extra dts file
Fugang Duan [Thu, 1 Mar 2018 01:48:05 +0000 (09:48 +0800)]
MLK-17603 arm: dts: imx7d-sdb-epdc: enable enet1 for epdc extra dts file

Enable enet1 for epdc extra dts file since only enet2 has pin conflict
with epdc.

Reviewed-by: Gao Pan <pandy.gao@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17739 tty: serial: imx: clear wakeup flag before enable wakeup interrupt
Fugang Duan [Tue, 6 Mar 2018 09:41:14 +0000 (17:41 +0800)]
MLK-17739 tty: serial: imx: clear wakeup flag before enable wakeup interrupt

It is better to clear wakeup flag in status register before enable
wakeup interrupt bits, which can avoid system suspend fail during
devices no irq suspend stage.

Reviewed-by: Gao Pan <pandy.gao@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17738 tty: serial: lpuart: restore console setting after power lost
Fugang Duan [Mon, 5 Mar 2018 10:45:51 +0000 (18:45 +0800)]
MLK-17738 tty: serial: lpuart: restore console setting after power lost

i.MX7ULP enter VLLS mode that lpuart module power off and registers
all lost no matter the port is wakeup source.

For console port, console baud rate setting lost and print messy
log when enable the console port as wakeup source. To avoid the
issue happen, user should not enable uart port as wakeup source
in VLLS mode, or restore console setting.

The patch is to add one fixup to restore console port register setting
for i.MX7ULP platform.

Reviewed-by: Gao Pan <pandy.gao@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17737 net: fec: fix the struct define issue
Fugang Duan [Fri, 23 Feb 2018 03:32:27 +0000 (11:32 +0800)]
MLK-17737 net: fec: fix the struct define issue

Fix the cherry pick and merge issue by below commit on kernel 4.9:
Fixes: 19b76fd012ce ("net: fec: add stop mode support for dts register set")

Reviewed-by: Gao Pan <pandy.gao@nxp.com>
Signed-off-by: Fugang Duan <B38611@freescale.com>
7 years agoMLK-17736-02 dts: imx7ulp-evk: add interrupt property for rpmsg io node
Fugang Duan [Fri, 9 Mar 2018 03:04:18 +0000 (11:04 +0800)]
MLK-17736-02 dts: imx7ulp-evk: add interrupt property for rpmsg io node

Add interrupt property for rpmsg io node.

Reviewed-by: Robin Gong<yibin.gong@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17736-01 gpio: imx-rpmsg: add gpio interrupt chip support
Fugang Duan [Thu, 1 Feb 2018 05:53:24 +0000 (13:53 +0800)]
MLK-17736-01 gpio: imx-rpmsg: add gpio interrupt chip support

Add gpio interrupt chip support that only support wakeup feature
by M4 core.

Reviewed-by: Robin Gong<yibin.gong@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17735 ARM: imx: pm-rpmsg: ensure the pm is late suspended and early resumed
Fugang Duan [Wed, 7 Mar 2018 10:41:21 +0000 (18:41 +0800)]
MLK-17735 ARM: imx: pm-rpmsg: ensure the pm is late suspended and early resumed

Since some drivers using rpmsg io as wakeup source enable the wakeup
in suspend stage, then it has to ensure pm rpmsg driver pm sleep is
late suspended and early resumed, otherwise M4 will wakeup A core
directly even if there has no wakeup signal.

Reviewed-by: Robin Gong<yibin.gong@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17580: ARM64: dts: support DSD512 for ak4497
Viorel Suman [Thu, 8 Mar 2018 12:46:07 +0000 (14:46 +0200)]
MLK-17580: ARM64: dts: support DSD512 for ak4497

Add a dedicated DSD512 pinmux group for DSD512 in order
to eliminate the noise caused by a hight MCLK rate.
With the new option the SAI1 BCLK is routed to codec MCLK pin.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com
7 years agoMLK-17580: ASoC: fsl: sai: Use DSD helper
Viorel Suman [Thu, 8 Mar 2018 12:43:34 +0000 (14:43 +0200)]
MLK-17580: ASoC: fsl: sai: Use DSD helper

Replace DSD related code with calls to DSD helper functions.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com
7 years agoMLK-17580: ASoC: fsl: dsd: Add DSD utilities helper
Viorel Suman [Thu, 8 Mar 2018 12:37:30 +0000 (14:37 +0200)]
MLK-17580: ASoC: fsl: dsd: Add DSD utilities helper

Add DSD utilities helper.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com
7 years agoMLK-17734-2: ASoC: fsl: ak5558: Remove support for 192KHz in TDM mode
Daniel Baluta [Thu, 8 Mar 2018 17:04:19 +0000 (19:04 +0200)]
MLK-17734-2: ASoC: fsl: ak5558: Remove support for 192KHz in TDM mode

Using TDM256 mode (our only supported mode) in order to
support 192KHz we would need a MCLK of 192000 * 512 = 98304000.

But maximum frequency supported by the Audio PLL is 4.91 MHz.

Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-17734-1: ASoC: fsl: imx-ak5558: Fix TDM mode for 8kHz / 16Khz
Daniel Baluta [Thu, 8 Mar 2018 16:55:32 +0000 (18:55 +0200)]
MLK-17734-1: ASoC: fsl: imx-ak5558: Fix TDM mode for 8kHz / 16Khz

In order for TDM to correctly work we need that MCLK and
BCLK to follow the values in Table 9.

Thus,
* TDM128: BCLK = 128fs, MCLK = 128-1024fs
* TDM256: BCLK = 256fs, MCLK = 256-1024fs
* TDM512: BCLK = 512fs, MCLK = 512-1024fs

We assume only support TDM256 for the moment.

Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-17647: drm: imx: dcss: fix the flip_done timed out problem
Laurentiu Palcu [Thu, 8 Mar 2018 09:47:05 +0000 (11:47 +0200)]
MLK-17647: drm: imx: dcss: fix the flip_done timed out problem

The commit:

44c45128 - MLK-17634-1: drm: imx: dcss: send vblank event from ISR

made some changes related to vblank handling. However, it looks like
they were not robust enough and, sometimes, the flip events are not
sent. This happens only when playing videos over Weston.

This patch, effectively, reverts those changes.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMGS-3724 increase the core clock rate for qxp B0 board.
Yuchou Gan [Fri, 9 Mar 2018 14:37:15 +0000 (22:37 +0800)]
MGS-3724 increase the core clock rate for qxp B0 board.

The qxp B0 board gpu core clock rate is 700MHz, increase to it.

Signed-off-by: Yuchou Gan<yuchou.gan@nxp.com>
7 years agoMLK-17689-3: arm64: dts: fsl-imx8mq-evk: Fix clocks for DCSS-RM67191
Robert Chiras [Thu, 8 Mar 2018 11:53:53 +0000 (13:53 +0200)]
MLK-17689-3: arm64: dts: fsl-imx8mq-evk: Fix clocks for DCSS-RM67191

Currently, the default clock configuration for DCSS configures the pixel
clock to be sourced from VIDEO_PLL2, but this source cannot be used by the
DSI PHY_REF clock.
So, in order to make DCSS working with DSI, we need to have them both
(DCSS and DSI PHY) use the same clock source: VIDEO_PLL1.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
7 years agoMLK-17692-4: imx hdp: Add pixel clock return check
Sandor Yu [Thu, 8 Mar 2018 08:14:36 +0000 (16:14 +0800)]
MLK-17692-4: imx hdp: Add pixel clock return check

Return 0 if pixel clock isn't supported by hdmi phy.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17692-3: imx hdp: Remove CDN vic table
Sandor Yu [Tue, 6 Mar 2018 09:17:35 +0000 (17:17 +0800)]
MLK-17692-3: imx hdp: Remove CDN vic table

Remove CDN vic table and replace with drm_display_mode.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17692-2: defconfig: Remove FB_MX8_HDMI
Sandor Yu [Tue, 6 Mar 2018 09:11:04 +0000 (17:11 +0800)]
MLK-17692-2: defconfig: Remove FB_MX8_HDMI

Remove FB_MX8_HDMI.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17692-1: fbdev: Remove imx8 hdmi fb driver
Sandor Yu [Tue, 6 Mar 2018 09:01:18 +0000 (17:01 +0800)]
MLK-17692-1: fbdev: Remove imx8 hdmi fb driver

imx8 hdmi fb driver is not maintain.
imx8 hdmi function have implemented with DRM framework
in driver/gpu/drm/imx folder.
So remove hdmi fb driver.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17730 rtc: rtc-imx-sc: only print once for read time error
Anson Huang [Thu, 8 Mar 2018 03:23:17 +0000 (11:23 +0800)]
MLK-17730 rtc: rtc-imx-sc: only print once for read time error

As RTC read time will be called periodically, to avoid
too many error messages when RTC is NOT ready in SCFW,
change the error print to only print once.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
7 years agoMLK-17698-6 ARM64: dts: freescale: imx8qm: enable mek board pmic thermal zone
Anson Huang [Wed, 7 Mar 2018 06:01:39 +0000 (14:01 +0800)]
MLK-17698-6 ARM64: dts: freescale: imx8qm: enable mek board pmic thermal zone

Enable i.MX8QM MEK board PMIC thermal zone.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
7 years agoMLK-17698-5 thermal: imx_sc: add PMIC thermal sensor for i.MX8QM
Anson Huang [Tue, 6 Mar 2018 08:33:09 +0000 (16:33 +0800)]
MLK-17698-5 thermal: imx_sc: add PMIC thermal sensor for i.MX8QM

Remove unused thermal sensors and add PMIC thermal sensors
for i.MX8QM.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
7 years agoMLK-17698-4 ARM64: dts: freescale: imx8qxp: enable mek board pmic thermal zone
Anson Huang [Wed, 7 Mar 2018 05:53:40 +0000 (13:53 +0800)]
MLK-17698-4 ARM64: dts: freescale: imx8qxp: enable mek board pmic thermal zone

Enable i.MX8QXP MEK board PMIC thermal zone.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
7 years agoMLK-17698-3 thermal: imx_sc: add PMIC thermal sensors for i.MX8QXP
Anson Huang [Tue, 6 Mar 2018 07:39:46 +0000 (15:39 +0800)]
MLK-17698-3 thermal: imx_sc: add PMIC thermal sensors for i.MX8QXP

Add PMIC thermal sensors for i.MX8QXP.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
7 years agoMLK-17698-2 ARM64: dts: freescale: imx8qxp: update thermal zone info
Anson Huang [Tue, 6 Mar 2018 07:37:25 +0000 (15:37 +0800)]
MLK-17698-2 ARM64: dts: freescale: imx8qxp: update thermal zone info

Update thermal zone number, including CPU thermal
zone and DRC thermal zone.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
7 years agoMLK-17698-1 thermal: imx_sc: use system controller thermal sensor for A35 CPU
Anson Huang [Tue, 6 Mar 2018 07:37:10 +0000 (15:37 +0800)]
MLK-17698-1 thermal: imx_sc: use system controller thermal sensor for A35 CPU

Now that SCFW (0d43db9 SCF-22: Move SCU controls to SYSTEM.
Allows AP to use SCU temp sensor.) exposes SCU's temp sensor
for AP, and it is placed more close to i.MX8QXP A35 core, so
it should be used as A35's CPU thermal sensor, add this change
and move DRC temp sensor to a new thermal zone.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
7 years agoMLK-17729: ARM64: dts: Add power domains for display resources
Oliver Brown [Wed, 7 Mar 2018 19:27:47 +0000 (13:27 -0600)]
MLK-17729: ARM64: dts: Add power domains for display resources

Some resources are being enabled without the associated resource being
powered up.

Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
7 years agoMLK-17672 lpspi: fix clock polarity issue and DBT issue
Gao Pan [Tue, 6 Mar 2018 01:25:10 +0000 (09:25 +0800)]
MLK-17672 lpspi: fix clock polarity issue and DBT issue

1. Fix code error of changing lpspi clock polarity.

2. Set one SPI clock period for DBT parameter.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Han Xu <han.xu@nxp.com>
7 years agoMLK-17701 swiotlb-xen: implement xen_swiotlb_get_sgtable callback
Andrii Anisov [Tue, 7 Feb 2017 17:58:03 +0000 (19:58 +0200)]
MLK-17701 swiotlb-xen: implement xen_swiotlb_get_sgtable callback

Signed-off-by: Andrii Anisov <andrii_anisov@epam.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Konrad Rzeszutek Wilk <konrad@kernel.org>
(cherry picked from commit 69369f52d28a34c84acb6f2a8a585e743441566a)

on 8QM A0, video play use ion to allocate buffer and mmap buffer,
there is a call dma_get_sgtable, but xen arm not implement that.
when playing video, GPU driver will use sg dma address, but because
of xen_swiotlb_get_sgtable not implemented, sg->amd_address is not
exactly the address that ion allocated. This patch fixes the issue.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Leonard Crestez <leonard.crestez@nxp.com>