linux.git
7 years agoMLK-17462-2: ASoC: ak5558: support SND_SOC_DAIFMT_DSP_B format for TDM
Shengjiu Wang [Fri, 26 Jan 2018 02:53:08 +0000 (10:53 +0800)]
MLK-17462-2: ASoC: ak5558: support SND_SOC_DAIFMT_DSP_B format for TDM

Add set_tdm_slot function for TDM mode, and support
SND_SOC_DAIFMT_DSP_B format

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17462-1: ASoC: AK5558: revert the fix for 8k and 16kHz.
Shengjiu Wang [Thu, 25 Jan 2018 02:35:49 +0000 (10:35 +0800)]
MLK-17462-1: ASoC: AK5558: revert the fix for 8k and 16kHz.

Revert commit 38078b6549c7 ("MLK-17428-4: ASoC: AK5558: fix
issue for 8k and 16kHz")

With this patch, there will be issue with PDM mode, cause the codec can't
work sometimes, the phenomenon is the register read failed.

So we revert this patch, and we will enable the pm_runtime function, which
should also fix the 8k and 16khz can't work issue in normal mode.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17470: ASoC: ak4497: automatically select dsdsel in driver
Shengjiu Wang [Fri, 26 Jan 2018 08:44:08 +0000 (16:44 +0800)]
MLK-17470: ASoC: ak4497: automatically select dsdsel in driver

automatically select dsdsel in driver according to the frequency

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17467: ASoC: fsl_sai: fix typo for fsl_sai
Shengjiu Wang [Fri, 26 Jan 2018 08:44:19 +0000 (16:44 +0800)]
MLK-17467: ASoC: fsl_sai: fix typo for fsl_sai

Fix build warning

sound/soc/fsl/fsl_sai.c: In function ‘fsl_sai_trigger’:
sound/soc/fsl/fsl_sai.c:736:3: warning: this ‘while’ clause does not guard... [-Wmisleading-indentation]
   while (tx && i < channels)
   ^~~~~
sound/soc/fsl/fsl_sai.c:742:4: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘while’
    j++;
    ^
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17445: ASoC: ak4497: let codec start/stop properly
Viorel Suman [Mon, 29 Jan 2018 10:35:09 +0000 (12:35 +0200)]
MLK-17445: ASoC: ak4497: let codec start/stop properly

Let the codec start/stop properly before syncing
regmap with codec registers.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17389: drm/panel: rm67191: Fix power on/off logic
Robert Chiras [Mon, 22 Jan 2018 08:16:03 +0000 (10:16 +0200)]
MLK-17389: drm/panel: rm67191: Fix power on/off logic

On remove, the panel driver was only calling rad_panel_disable, which
only updates the brightness. During a reboot, the panel may remain
powered which will cause the whole screen to be bright white (sometimes
flashing).
This patch also calls the rad_panel_unprepare, which puts the panel to
sleep and also sets the DSI_EN gpio to LOW (which is the proper power
off sequence).
While powering on the sleeps are too high, so reduce them according to
the sample driver received from vendor.
Also, fixed the reading of display-timings property: this property is
optional, but will dump some error messages into the console log by
directly calling of_get_videomode() when this property is missing. To
avoid the error messages, first check if we really have this property
first.

Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
7 years agoMLK-17468-2: hdp: Enable imx8qm hdmi/dp 4kp30 support
Sandor Yu [Mon, 29 Jan 2018 08:43:16 +0000 (16:43 +0800)]
MLK-17468-2: hdp: Enable imx8qm hdmi/dp 4kp30 support

Add link rate select function.
Change max support pixel clock rate to 297MHz(4kp30).

Because edid read function is not enabled.
For such TV that max support 1080p60 or 720p60,
the followed cmdline mode should be added to kernel boot args:
video=HDMI-A-1:1920x1080-32@60 or
video=HDMI-A-1:1280x720-32@60

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17468-1: dptx: remove CDN_API_Get_PIXEL_FREQ_KHZ_ClosetVal
Sandor Yu [Mon, 29 Jan 2018 08:41:21 +0000 (16:41 +0800)]
MLK-17468-1: dptx: remove CDN_API_Get_PIXEL_FREQ_KHZ_ClosetVal

Remove CDN_API_Get_PIXEL_FREQ_KHZ_ClosetVal function,
replace with vic_table.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17469 ARM: dts: imx7ulp-evk: add USB support for RevB board
Peter Chen [Fri, 15 Sep 2017 01:42:41 +0000 (09:42 +0800)]
MLK-17469 ARM: dts: imx7ulp-evk: add USB support for RevB board

There are Type-C chip PTN5150 and connector are on it, and dual-role
mode are supported.

Acked-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
7 years agoMLK-17463: ASoC: codecs: ak5558: Add runtime PM support
Daniel Baluta [Thu, 25 Jan 2018 17:10:55 +0000 (19:10 +0200)]
MLK-17463: ASoC: codecs: ak5558: Add runtime PM support

Based on latest power management design in MLK-17074,
every driver need to enter runtime suspend state before
entering system suspend, so the driver should call the
pm_runtime_force_suspend in suspend.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMGS-3622 [#imx-905] fix gpu gc_hal_kernel_platform_imx.c license error
Yuchou Gan [Mon, 29 Jan 2018 11:22:06 +0000 (19:22 +0800)]
MGS-3622 [#imx-905] fix gpu gc_hal_kernel_platform_imx.c license error

The GPU kernel driver file gc_hal_kernel_platform_imx.c license is incorrect,
Need fix it with GPL and MIT license statement.

Date: Jan 29, 2017
Signed-off-by: Yuchou Gan yuchou.gan@nxp.com
7 years agoMLK-17461-4: dts: reparent dpu/hdmi pixel clock from av_pll_bypass
Sandor Yu [Thu, 25 Jan 2018 08:23:25 +0000 (16:23 +0800)]
MLK-17461-4: dts: reparent dpu/hdmi pixel clock from av_pll_bypass

Reparent dpu and hdmi pixel clock from av_pll_bypass.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
7 years agoMLK-17461-3: hdp: Remove pixel clock root setting
Sandor Yu [Thu, 25 Jan 2018 08:27:54 +0000 (16:27 +0800)]
MLK-17461-3: hdp: Remove pixel clock root setting

HDMI pixel clock reparent function have implemented in dts,
remove clock root set function from hdp driver.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
7 years agoMLK-17461-2: clk: create imx8qm hdmi_pixel_select clocks
Sandor Yu [Thu, 25 Jan 2018 08:18:31 +0000 (16:18 +0800)]
MLK-17461-2: clk: create imx8qm hdmi_pixel_select clocks

Add hdmi_pxl_sel clocks.
Add av_pll_bypass clock.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
7 years agoMLK-17461-1: clk: define hdmi pixel select clock
Sandor Yu [Thu, 25 Jan 2018 08:21:52 +0000 (16:21 +0800)]
MLK-17461-1: clk: define hdmi pixel select clock

Define hdmi pixel select clocks.
Define av_pll_bypass clock.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
7 years agoMGS-3617 [#ccc] Disable the depth compression for imx8 board
Yuchou Gan [Fri, 26 Jan 2018 15:44:02 +0000 (23:44 +0800)]
MGS-3617 [#ccc] Disable the depth compression for imx8 board

This is the requirement for MGS-2914, but will cause cts failure and be reverted later.
New gpu driver 6.2.4.p1.pre2 has fixed the cts failure issue so we disable it again.

Date: Jan 26, 2017
Signed-off-by: Yuchou Gan yuchou.gan@nxp.com
7 years agoMGS-3616 [#ccc] Integrate 6.2.4.p1.pre2 hal driver to linux kernel
Yuchou Gan [Fri, 26 Jan 2018 14:34:54 +0000 (22:34 +0800)]
MGS-3616 [#ccc] Integrate 6.2.4.p1.pre2 hal driver to linux kernel

Update the gpu kernel to 6.2.4.p1.pre2

Date: Jan 26, 2017
Signed-off-by: Yuchou Gan yuchou.gan@nxp.com
7 years agoMLK-15033: ASoC: ak4458: add pm_runtime support
Cosmin-Gabriel Samoila [Thu, 25 Jan 2018 12:36:55 +0000 (14:36 +0200)]
MLK-15033: ASoC: ak4458: add pm_runtime support

Add pm_runtime support for AK4458 codec. Based on latest power
management design in MLK-17074, every driver need to enter
runtime suspend state before entering system suspend, so the
driver should call the pm_runtime_force_suspend in suspend.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-17445: ASoC: ak4497: add pm_runtime support
Viorel Suman [Tue, 23 Jan 2018 12:18:05 +0000 (14:18 +0200)]
MLK-17445: ASoC: ak4497: add pm_runtime support

Add pm_runtime support fo AK4497 codec. Based on latest power
management design in MLK-17074, every driver need to enter
runtime suspend state before entering system suspend, so the
driver should call the pm_runtime_force_suspend in suspend.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17456-2: hdmi: Remove debug log
Sandor Yu [Wed, 24 Jan 2018 11:23:04 +0000 (19:23 +0800)]
MLK-17456-2: hdmi: Remove debug log

Remove debug log

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17456-1: hdp: Enable EDID read function for imx8mq hdmi
Sandor Yu [Wed, 24 Jan 2018 11:18:16 +0000 (19:18 +0800)]
MLK-17456-1: hdp: Enable EDID read function for imx8mq hdmi

-Enable EDID read function for imx8mq hdmi.
-Add video mode check.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
7 years agoMLK-17457: arm64: dts: enable usb otg for imx8mq ddr4 arm2
Han Xu [Wed, 24 Jan 2018 21:58:12 +0000 (15:58 -0600)]
MLK-17457: arm64: dts: enable usb otg for imx8mq ddr4 arm2

enable the usb otg for mfgtool download on imx8mq ddr4 arm2 board.

Signed-off-by: Han Xu <han.xu@nxp.com>
7 years agoMLK-15071: ASoC: codecs: AK5558: Remove unsuported rates and channels
Cosmin-Gabriel Samoila [Wed, 24 Jan 2018 08:39:22 +0000 (10:39 +0200)]
MLK-15071: ASoC: codecs: AK5558: Remove unsuported rates and channels

Support only even number of channels greater than 2 and
rates multiple of 8000.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-17453 arm64: dts: increase i2c pad drive strength
Gao Pan [Wed, 24 Jan 2018 06:00:02 +0000 (14:00 +0800)]
MLK-17453 arm64: dts: increase i2c pad drive strength

Too many i2c slaves are conencted to imx8qm i2c0 and
imx8qxp lpi2c1. So i2c pad drive strength should be
increased. Otherwise, there will be i2c probe error.

Reported-by: Andy Tian <yang.tian@nxp.com>
Tested-by: Andy Tian <yang.tian@nxp.com>
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17449 ARM: imx_v7_defconfig: disabled the config CONFIG_CFG80211_INTERNAL_REGDB
Fugang Duan [Wed, 24 Jan 2018 03:43:07 +0000 (11:43 +0800)]
MLK-17449 ARM: imx_v7_defconfig: disabled the config CONFIG_CFG80211_INTERNAL_REGDB

Enable config "CONFIG_CFG80211_INTERNAL_REGDB" break i.MX7D bcmdhd driver
for Murata TypeZP module. Now disable it.
fixes:[336e66bee4a5] "MLK-17362-03 ARM: imx_v7_defconfig: enable configs for QCA9377-3"

Reported-by: Abel Vesa <abel.vesa@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17452 clk: imx: imx7ulp: update nic1_divbus clock for B0
Anson Huang [Wed, 24 Jan 2018 14:45:49 +0000 (22:45 +0800)]
MLK-17452 clk: imx: imx7ulp: update nic1_divbus clock for B0

On i.MX7ULP B0 chip, nic1_divbus's parent is changed to
from nic0_div directly, update it accordingly.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
7 years agoMLK-17450 - [i.MX8MQ/Hantro]: Support voltage adjustment
Zhou Peng-B04994 [Wed, 24 Jan 2018 06:40:35 +0000 (14:40 +0800)]
MLK-17450 - [i.MX8MQ/Hantro]: Support voltage adjustment

Update vpu voltage to 1.0v for 600M+ clock
Otherwise, keep 0.9v voltage

Signed-off-by: Zhou Peng-B04994 <eagle.zhou@nxp.com>
7 years agoMLK-17447 drivers: soc: imx: Fix busfreq mutex unlock twice on imx8mq
Bai Ping [Mon, 8 Jan 2018 08:06:55 +0000 (16:06 +0800)]
MLK-17447 drivers: soc: imx: Fix busfreq mutex unlock twice on imx8mq

A 'return' statement is missed before, So the mutex will be unlocked
twice, in some corner case, one core will unlock the mutex that locked
by anohter core wrongly. Then lead to concurrent access to the DVFS
at the same time.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
7 years agoMLK-16224-8: ARM64: dts: support DSD for ak4497
Shengjiu Wang [Tue, 23 Jan 2018 09:16:10 +0000 (17:16 +0800)]
MLK-16224-8: ARM64: dts: support DSD for ak4497

For most DSD sample rate is mulitply of 44k, so specify PLL2
for DSD usage. for pinmux is different for DSD mode compare with
PCM mode, define a new pinmux group for DSD.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-16224-7: ASoC: imx-ak4497: support dsd format
Shengjiu Wang [Tue, 23 Jan 2018 05:28:55 +0000 (13:28 +0800)]
MLK-16224-7: ASoC: imx-ak4497: support dsd format

for dsd, specify the slot number is 1, SND_SOC_DAIFMT_PDM is
used for DSD, and add constraint for sample rate.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-16224-6: ASoC: ak4497: support dsd format
Shengjiu Wang [Tue, 23 Jan 2018 05:28:24 +0000 (13:28 +0800)]
MLK-16224-6: ASoC: ak4497: support dsd format

Add DSD_U8, DSD_U16_LE, DSD_U32_LE in support list. and
SND_SOC_DAIFMT_PDM is used for DSD format

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-16224-5: dma: imx-sdma: support mulit fifo script
Shengjiu Wang [Tue, 23 Jan 2018 05:28:05 +0000 (13:28 +0800)]
MLK-16224-5: dma: imx-sdma: support mulit fifo script

The type IMX_DMATYPE_MULTI_SAI is used for SAI multi-fifo mode,
in this mode, the fifo num parameter is configured through
dma_slave_config

The watermark definition is:
bit0~7: wartermark level
bit8~11: fifo number
bit16~19: fifo offset
bit27~24: sw done selector
bit23: sw done enabled

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Robin Gong<yibin.gong@nxp.com>
7 years agoMLK-16224-4: ASoC: fsl_sai: support multi fifo and DSD
Shengjiu Wang [Tue, 23 Jan 2018 05:26:37 +0000 (13:26 +0800)]
MLK-16224-4: ASoC: fsl_sai: support multi fifo and DSD

The codec always mux the LRCLK pin to DSD data line, so when
we want to support DSD, the pinmux is different. For two channel
DSD, the DSDL is mapped to TX0, but the DSDR is mapped to TX4,
there is address offset for the fifo address of TX0 and TX4, TX4's
fifo is not adjacent to TX0's.

Usually, if mapping is TX0 and TX1, that will be easy for SAI
and SDMA to handle, that SAI can use the FIFO combine mode, SDMA
can use the normal script.

so for DSD:
1. The SDMA should use the multi-fifo script, and SAI can't
use the FIFO combine mode.
2. driver should to check the dts configuration(fsl,dataline) for
which dataline is used corrently
3. maxburst is the multiply of datalines
4. each channel of DSD occupy one data lane
5. according to data lane, set TRCE bits

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-16224-3: ASoC: imx-pcm-dma-v2: fifo_num is used by dma slave config
Shengjiu Wang [Tue, 23 Jan 2018 05:29:19 +0000 (13:29 +0800)]
MLK-16224-3: ASoC: imx-pcm-dma-v2:  fifo_num is used by dma slave config

fifo_num is a new added parameter for dma slave config

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
7 years agoMLK-16224-2: ASoC: dmaengine_pcm: add fifo_num to snd_dmaengine_dai_dma_data
Shengjiu Wang [Tue, 23 Jan 2018 05:27:10 +0000 (13:27 +0800)]
MLK-16224-2: ASoC: dmaengine_pcm: add fifo_num to snd_dmaengine_dai_dma_data

In order to support multi-fifo sdma script, the audio driver need to send
the fifo number to dma driver through dma_slave_config, and the cpu_dai
driver should config fifo_num for the audio platform driver, then platform
driver can config fifo_num to dma.
So add new variable fifo_num for struct snd_dmaengine_dai_dma_data.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Robin Gong<yibin.gong@nxp.com>
7 years agoMLK-16224-1: dmaengine: add src_fifo_num and dst_fifo_num in dma_slave_config
Shengjiu Wang [Tue, 23 Jan 2018 05:27:39 +0000 (13:27 +0800)]
MLK-16224-1: dmaengine: add src_fifo_num and dst_fifo_num in dma_slave_config

In order to support multi-fifo sdma script, the audio driver need to send
the fifo number to dma driver through dma_slave_config, so add src_fifo_num
and dst_fifo_num two new variable for struct dma_slave_config.

src_fifo_num: bit 0-7 is the fifo number, bit:8-11 is the fifo offset;
dst_fifo_num: same as src_fifo_num

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Robin Gong<yibin.gong@nxp.com>
7 years agoMLK-15033: ASoC: codecs: AK4458: Remove unsupported rates and channels
Cosmin-Gabriel Samoila [Tue, 23 Jan 2018 08:58:32 +0000 (10:58 +0200)]
MLK-15033: ASoC: codecs: AK4458: Remove unsupported rates and channels

Support only even number of channels greater than 2 and
rates multiple of 8000.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-17442: ASoC: fsl: fix wrong usage of filter_data
Shengjiu Wang [Tue, 23 Jan 2018 05:25:40 +0000 (13:25 +0800)]
MLK-17442: ASoC: fsl: fix wrong usage of filter_data

The filter_data should be used for dma_filter_fn function,
but we used the filter_data wrongly for dma channel name.
This patch is to fix the issue.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviwed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-17412-02: Add support of secvio driver for imx8mq
Franck LENORMAND [Fri, 19 Jan 2018 14:52:42 +0000 (15:52 +0100)]
MLK-17412-02: Add support of secvio driver for imx8mq

This patch:
 - Adds compilation of the secvio driver for all arm64 targets
 - Adds the secvio driver to fsl-imx8mq.dtsi

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
7 years agoMLK-17412-01: Fix secvio driver to have same driver name as DTS
Franck LENORMAND [Thu, 18 Jan 2018 15:35:45 +0000 (16:35 +0100)]
MLK-17412-01: Fix secvio driver to have same driver name as DTS

The name of the driver was "snvs-secvio" which doesn't corresponds
to its use in the differents dts files.

This patch change the driver name to "caam-snvs" to corresponds
to the dts files.

Signed-off-by: Franck LENORMAND <franck.lenormand@nxp.com>
7 years agoMLK-17410: ASoC: fsl_asrc: fix kernel panic in suspend resume
Shengjiu Wang [Mon, 22 Jan 2018 07:23:25 +0000 (15:23 +0800)]
MLK-17410: ASoC: fsl_asrc: fix kernel panic in suspend resume

After ASRC convert, there will be kernel panic

[   54.365777] [<ffff000008636528>] regmap_mmio_read32le+0x8/0x18
[   54.371615] [<ffff00000862f004>] _regmap_bus_reg_read+0x14/0x20
[   54.377538] [<ffff000008630830>] _regmap_read+0x60/0xe8
[   54.382769] [<ffff000008630c30>] _regmap_update_bits+0xa0/0xf0
[   54.388606] [<ffff000008631be8>] regmap_update_bits_base+0x60/0x90
[   54.394794] [<ffff000008a275c4>] fsl_asrc_resume+0x74/0xa8
[   54.400287] [<ffff0000086226a8>] dpm_run_callback.isra.6+0x30/0x98
[   54.406468] [<ffff000008622b20>] device_resume+0x100/0x188
[   54.411958] [<ffff0000086239c8>] dpm_resume+0x100/0x218
[   54.417188] [<ffff000008623c9c>] dpm_resume_end+0x14/0x28
[   54.422594] [<ffff0000080fd990>] suspend_devices_and_enter+0x138/0x500
[   54.429124] [<ffff0000080fdfc0>] pm_suspend+0x268/0x2d8
[   54.434348] [<ffff0000080fcabc>] state_store+0x84/0xf8
[   54.439491] [<ffff0000083dfcac>] kobj_attr_store+0x14/0x28
[   54.444982] [<ffff000008254e58>] sysfs_kf_write+0x48/0x58
[   54.450383] [<ffff0000082541c8>] kernfs_fop_write+0xb0/0x1f8
[   54.456050] [<ffff0000081dc5c4>] __vfs_write+0x1c/0x100
[   54.461277] [<ffff0000081dd3cc>] vfs_write+0x9c/0x1b0
[   54.466332] [<ffff0000081de814>] SyS_write+0x44/0xa0
[   54.471295] [<ffff000008082f4c>] __sys_trace_return+0x0/0x4

The reason is that the power of subsystem is disabled in suspend
the register can't be accessed. so we need to call pm_runtime_force_suspend
and pm_runtime_force_resume in suspend and resume state.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17443 wireless: bcmdhd: fix build warning
Gao Pan [Tue, 23 Jan 2018 06:15:37 +0000 (14:15 +0800)]
MLK-17443 wireless: bcmdhd: fix build warning

case1: statement "if (bustype != BUSTYPE(bustype))"
equals "if (bustype != bustype)" when BCMBUSTYPE is
not defined. Some compilers treat it as a build warning.

case2: fix misleadingly indented of dhd_os_sdunlock(dhdp)

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Tested-by: Peng Fan <peng.fan@nxp.com>
7 years agoMLK-17441 ARM64: defconfig enable OP-TEE
Peng Fan [Tue, 23 Jan 2018 05:05:53 +0000 (13:05 +0800)]
MLK-17441 ARM64: defconfig enable OP-TEE

Enable OP-TEE by default. With OP-TEE, we could leverage
security features exposed by OP-TEE os.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
7 years agooptee: fix invalid of_node_put() in optee_driver_init()
Jens Wiklander [Mon, 9 Oct 2017 09:11:49 +0000 (11:11 +0200)]
optee: fix invalid of_node_put() in optee_driver_init()

The first node supplied to of_find_matching_node() has its reference
counter decreased as part of call to that function. In optee_driver_init()
after calling of_find_matching_node() it's invalid to call of_node_put() on
the supplied node again.

So remove the invalid call to of_node_put().

Reported-by: Alex Shi <alex.shi@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
(cherry picked from commit f044113113dd95ba73916bde10e804d3cdfa2662)

7 years agoarm64: defconfig: Fixed reordering
Abel Vesa [Mon, 22 Jan 2018 12:00:46 +0000 (14:00 +0200)]
arm64: defconfig: Fixed reordering

Introduced by commits:
542070530eb0 MLK-15070-4: ARM64: defconfig: build in sound card for audio board of mscale
8f97c51d8318 MLK-17400-03 arm64: defconfig: add max732x enable

This is due to manual editing the config instead of using Kconfig to
generate it.

Signed-off-by: Abel Vesa <abel.vesa@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-17401: drm: imx: dcss: fix scaling issue
Laurentiu Palcu [Fri, 19 Jan 2018 07:49:07 +0000 (09:49 +0200)]
MLK-17401: drm: imx: dcss: fix scaling issue

Under certain circumstances (corner cases) the scaling fractions were
not set properly. This patch fixes this.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMLK-17440 ARM: dts: imx7ulp-evk-qspi: update cpu opp table
Anson Huang [Mon, 22 Jan 2018 15:14:46 +0000 (23:14 +0800)]
MLK-17440 ARM: dts: imx7ulp-evk-qspi: update cpu opp table

i.MX7ULP B0 has different CPU opp table, update it accordingly.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Tested-by: Haibo Chen <haibo.chen@nxp.com>
7 years agoMLK-17428-9: ARM64: dts: change the clock frequency to support 768kHz
Shengjiu Wang [Fri, 19 Jan 2018 07:48:21 +0000 (15:48 +0800)]
MLK-17428-9: ARM64: dts: change the clock frequency to support 768kHz

The bit clock for 786KHz, 16bit, 2 channel is 24.576MHz, and the default
divider of SAI is at least 2, so the minimum master clock should be 49MHz.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-17428-8: ASoC: fsl_sai: support 768KHz sample rate
Shengjiu Wang [Fri, 19 Jan 2018 07:45:21 +0000 (15:45 +0800)]
MLK-17428-8: ASoC: fsl_sai: support 768KHz sample rate

support 768Hz sample rate and 2.8MHz for DSD

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17428-7: ASoC: imx-ak5558: support 768KHz sample rate
Shengjiu Wang [Fri, 19 Jan 2018 09:44:00 +0000 (17:44 +0800)]
MLK-17428-7: ASoC: imx-ak5558: support 768KHz sample rate

For 768kHz sample rate, the codec can't support 64fs mclk, only
can support 32fs mclk, so we can't fix the slot_width to 32, which
is for S32_LE, use params_physical_width(params) to instead of
hard code.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17428-6: ASoC: imx-ak4497: support 768KHz sample rate
Shengjiu Wang [Fri, 19 Jan 2018 07:45:06 +0000 (15:45 +0800)]
MLK-17428-6: ASoC: imx-ak4497: support 768KHz sample rate

For 768kHz sample rate, the codec can't support 64fs mclk, only
can support 32fs mclk, so we can't fix the slot_width to 32, which
is for S32_LE, use params_physical_width(params) to instead of
hard code.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17428-5: ASoC: imx-ak4458: support 768KHz sample rate
Shengjiu Wang [Fri, 19 Jan 2018 07:44:40 +0000 (15:44 +0800)]
MLK-17428-5: ASoC: imx-ak4458: support 768KHz sample rate

For 768kHz sample rate, the codec can't support 64fs mclk, only
can support 32fs mclk, so we can't fix the slot_width to 32, which
is for S32_LE, use params_physical_width(params) to instead of
hard code.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17428-4: ASoC: AK5558: fix issue for 8k and 16kHz
Shengjiu Wang [Mon, 22 Jan 2018 03:17:34 +0000 (11:17 +0800)]
MLK-17428-4: ASoC: AK5558: fix issue for 8k and 16kHz

The first time recording for 8k and 16k is ok after boot up,
but there is no data recorded for second time recording, so
re-init the registers when BIAS_OFF to fix the issue.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17428-3: ASoC: AK5558: support 384kHz and 768kHz for ak5558
Shengjiu Wang [Fri, 19 Jan 2018 07:44:13 +0000 (15:44 +0800)]
MLK-17428-3: ASoC: AK5558: support 384kHz and 768kHz for ak5558

The default definition in ALSA for sample rate is in range 8kHz to
192kHz, but some codec support very high sample rate, so we need
to use the SNDRV_PCM_RATE_KNOT and add constraint list for sample
rate to support 384kHz and 768Hz.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17428-2: ASoC: AK4497: support 384kHz and 768kHz for ak4497
Shengjiu Wang [Fri, 19 Jan 2018 07:43:52 +0000 (15:43 +0800)]
MLK-17428-2: ASoC: AK4497: support 384kHz and 768kHz for ak4497

The default definition in ALSA for sample rate is in range 8kHz to
192kHz, but some codec support very high sample rate, so we need
to use the SNDRV_PCM_RATE_KNOT and add constraint list for sample
rate to support 384kHz and 768Hz.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17428-1: ASoC: AK4458: support 384kHz and 768kHz for ak4458
Shengjiu Wang [Fri, 19 Jan 2018 07:43:08 +0000 (15:43 +0800)]
MLK-17428-1: ASoC: AK4458: support 384kHz and 768kHz for ak4458

The default definition in ALSA for sample rate is in range 8kHz to
192kHz, but some codec support very high sample rate, so we need
to use the SNDRV_PCM_RATE_KNOT and add constraint list for sample
rate to support 384kHz and 768Hz.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
7 years agoMLK-17438 arm64: dts: add emvsim0 device node in register address order
Gao Pan [Mon, 22 Jan 2018 02:09:59 +0000 (10:09 +0800)]
MLK-17438 arm64: dts: add emvsim0 device node in register address order

Add emvsim0 device node in register address order

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
7 years agodrm: rename u32 in __u32 in uapi
Lionel Landwerlin [Thu, 24 Aug 2017 15:08:14 +0000 (16:08 +0100)]
drm: rename u32 in __u32 in uapi

All other fields use __

Cc: Ben Widawsky <ben@bwidawsk.net>
Fixes: db1689aa61b ("drm: Create a format/modifier blob")
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Daniel Stone <daniels@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20170824150814.5878-1-lionel.g.landwerlin@intel.com
7 years agoMLK-17430 Added firmware-6 support for Murata 1CQ mission mode
Jameel kareem [Fri, 19 Jan 2018 06:40:47 +0000 (14:40 +0800)]
MLK-17430 Added firmware-6 support for Murata 1CQ mission mode

Add support to load firmware-6.bin for Murata 1CQ mission mode.
Modify the warning log to debug log for unknown eventid message
when loading firmware-6 file.

Signed-off-by: Jameel kareem <jameel.kareem@murata.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Gao Pan <pandy.gao@nxp.com>
7 years agoMLK-17400-06 arm64: dts: 8qxp: add enet2 phy regulator for arm2 board
Fugang Duan [Wed, 17 Jan 2018 07:40:32 +0000 (15:40 +0800)]
MLK-17400-06 arm64: dts: 8qxp: add enet2 phy regulator for arm2 board

Add enet2 phy regulator for arm2 board to set IO voltage to 1.8v.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Gao Pan <pandy.gao@nxp.com>
7 years agoMLK-17400-05 arm64: dts: 8qm/8qxp: add enet2 phy regulator for MEK board
Fugang Duan [Tue, 2 Jan 2018 10:32:19 +0000 (18:32 +0800)]
MLK-17400-05 arm64: dts: 8qm/8qxp: add enet2 phy regulator for MEK board

Add enet2 phy regulator to fix IO voltage 1.8v for MEK board.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Gao Pan <pandy.gao@nxp.com>
7 years agoMLK-17400-04 arm64: dts: 8qxp: increase pin drive strength for i2c1
Fugang Duan [Wed, 17 Jan 2018 09:01:32 +0000 (17:01 +0800)]
MLK-17400-04 arm64: dts: 8qxp: increase pin drive strength for i2c1

LPI2C1 bus mount many slave devices, the current drive strength is
weak and device probe failed. Then increase the pin drive strength
for LPI2C1 lines.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Gao Pan <pandy.gao@nxp.com>
7 years agoMLK-17400-03 arm64: defconfig: add max732x enable
Fugang Duan [Tue, 2 Jan 2018 10:33:59 +0000 (18:33 +0800)]
MLK-17400-03 arm64: defconfig: add max732x enable

Add max732x config enable.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Gao Pan <pandy.gao@nxp.com>
7 years agoMLK-17400-02 gpio: max732x: add device reset support
Fugang Duan [Wed, 17 Jan 2018 07:36:39 +0000 (15:36 +0800)]
MLK-17400-02 gpio: max732x: add device reset support

Add device reset for max732x driver.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Gao Pan <pandy.gao@nxp.com>
7 years agoMLK-17400-01 net: fec: defer probe if regulator is not ready
Fugang Duan [Tue, 2 Jan 2018 10:29:16 +0000 (18:29 +0800)]
MLK-17400-01 net: fec: defer probe if regulator is not ready

Defer probe if regulator is not ready. E.g. some regulator is fixed
regulator controlled by i2c expander gpio, the i2c device may be probed
after the driver, then it should handle the case of defer probe error.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Acked-by: Gao Pan <pandy.gao@nxp.com>
7 years agoMLK-17426 imx: lpi2c: add debug message when i2c peripheral clk doesn't work
Gao Pan [Fri, 19 Jan 2018 06:30:36 +0000 (14:30 +0800)]
MLK-17426 imx: lpi2c: add debug message when i2c peripheral clk doesn't work

add debug message when i2c peripheral clk rate is 0, then
directly return -EINVAL.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
7 years agoMLK-17427 arm64: dts: add ecspi device node for imx8mq
Gao Pan [Wed, 13 Dec 2017 06:28:22 +0000 (14:28 +0800)]
MLK-17427 arm64: dts: add ecspi device node for imx8mq

add ecspi device node for imx8mq

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
7 years agoMLK-17429-2 Documentation: add doc for EMVSIM
Gao Pan [Fri, 19 Jan 2018 07:50:51 +0000 (15:50 +0800)]
MLK-17429-2 Documentation: add doc for EMVSIM

add devicetree binding doc for add for EMVSIM

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
7 years agoMLK-17429-1 Documentation: add doc for SIMv2
Gao Pan [Fri, 19 Jan 2018 07:38:39 +0000 (15:38 +0800)]
MLK-17429-1 Documentation: add doc for SIMv2

add devicetree binding doc for SIMv2

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
7 years agoMLK-17416 imx8: sim: add usleep_range() before reading SPDP Bit
Gao Pan [Fri, 19 Jan 2018 03:12:15 +0000 (11:12 +0800)]
MLK-17416 imx8: sim: add usleep_range() before reading SPDP Bit

Card Presence Detect Status Bit SPDP in EMV_SIM_PCSR is
synchronized by two posedge of low_ref_clk which is 32KHz.

So there should be 1.5 low_ref_clk cycles(about 90us) before
reading SPDP Bit.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17362-04 bcmdhd: fix build warning for .reg_notifier callback
Fugang Duan [Thu, 11 Jan 2018 09:08:54 +0000 (17:08 +0800)]
MLK-17362-04 bcmdhd: fix build warning for .reg_notifier callback

drivers/net/wireless/bcmdhd/wl_cfg80211.c: In function 'wl_setup_wiphy':
drivers/net/wireless/bcmdhd/wl_cfg80211.c:8253:28: warning: assignment from incompatible pointer type
  wdev->wiphy->reg_notifier = wl_cfg80211_reg_notifier;

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17362-03 ARM: imx_v7_defconfig: enable configs for QCA9377-3
Fugang Duan [Fri, 3 Nov 2017 09:01:45 +0000 (17:01 +0800)]
MLK-17362-03 ARM: imx_v7_defconfig: enable configs for QCA9377-3

Add some necessary configs for qualcomm wifi QCA9377-3.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17362-02 arm: dts: imx7ulp-evk: add qualcomm Qca9377-3 bt wifi support
Fugang Duan [Fri, 3 Nov 2017 05:40:18 +0000 (13:40 +0800)]
MLK-17362-02 arm: dts: imx7ulp-evk: add qualcomm Qca9377-3 bt wifi support

Add qualcomm Qca9377-3 bt wifi support for i.MX7ULP B0 chip
EVK RevA3 board.

Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-17362-01 Changes for wireless and cfg80211 for v4.9.11 support
Nakul Kachhwaha [Tue, 28 Feb 2017 06:17:01 +0000 (11:47 +0530)]
MLK-17362-01 Changes for wireless and cfg80211 for v4.9.11 support

[Patch] Pulling the following commits and some general changes
from custom v3.10 kernel for supporting qcacld2.0 on kernel v4.9.11.
1. cfg80211: Using new wiphy flag WIPHY_FLAG_DFS_OFFLOAD
When flag WIPHY_FLAG_DFS_OFFLOAD is defined, the driver would handle
all the DFS related operations. Therefore the kernel needs to ignore
the DFS state that it uses to block the userspace calls to the driver
through cfg80211 APIs. Also it should treat the userspace calls to
start radar detection as a no-op.

Please note that changes in util.c is not picked up explicitly.
Kernel v4.9.11 uses wrapper cfg80211_get_chans_dfs_required which takes
care of this change.

Change-Id: I9dd2076945581ca67e54dfc96dd3dbc526c6f0a2
IRs-Fixed: 202686

2. New db.txt from git/sforshee/wireless-regdb.git
CONFIG_CFG80211_INTERNAL_REGDB is enabled in build. This causes
kernel warn messages as db.txt is empty. A new db.txt is added
from:
git://git.kernel.org/pub/scm/linux/kernel/git/sforshee/wireless-regdb.git

IRs-Fixed: 202686

3. Picked up the declaration and definition of the function
cfg80211_is_gratuitous_arp_unsolicited_na

Change-Id: I1e4083a2327c121073226aa6b75bb6b5b97cec00
CRs-fixed: 1079453

Signed-off-by: Nakul Kachhwaha <nkachh@codeaurora.org>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
7 years agoMLK-15070-4: ARM64: defconfig: build in sound card for audio board of mscale
Shengjiu Wang [Thu, 18 Jan 2018 05:00:48 +0000 (13:00 +0800)]
MLK-15070-4: ARM64: defconfig: build in sound card for audio board of mscale

build in AK4458, AK5558, AK4497

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-15070-3: ARM64: dts: enable audio codec on the audio board of mscale
Shengjiu Wang [Thu, 18 Jan 2018 04:55:42 +0000 (12:55 +0800)]
MLK-15070-3: ARM64: dts: enable audio codec on the audio board of mscale

Enable the AK4458, AK5558, and AK4497 with mode 0. For ak4497 use
same SAI interface with AK4458, so move ak4497 device node to
a separate dts.

The AK4458 support maximum 16 channels, the AK5558 support maximum 8
channels, AK4497 is for stereo.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-15070-2: ASoC: fsl: Add machine driver for AK4497
Daniel Baluta [Mon, 31 Jul 2017 10:57:43 +0000 (13:57 +0300)]
MLK-15070-2: ASoC: fsl: Add machine driver for AK4497

This glues SAI interface with AK4497 DAC codec on i.MX boards.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-15070-1: ASoC: codecs: Add support for AK4497 DAC
Daniel Baluta [Mon, 31 Jul 2017 10:56:30 +0000 (13:56 +0300)]
MLK-15070-1: ASoC: codecs: Add support for AK4497 DAC

AK4497 is a 32-bit 2ch DAC, supporting up to 6 types
of digital filters and accepts up to 768kHz PCM data
and 22.4MHz DSD data.

This is based on original code received from Asahi Kasei
with the following modifications:

* there is now a .component_driver inside snd_soc_codec_driver holding
  the controls, dapm_widgets and dap_routes.
* Remove akdbgprt
* Use module_i2c_driver
* Add NXP copyright
* Use symbolic names for registers
* Fix coding style issues
* fix function parameters indentation
* remove multiple empty newlines
* convert C++ style comments to C style comments
* fix spaces and tabs at the end of the line.
* remove braces {} for single block statements
* Make pointers const
* Fix lines over 80 chars
* Don't initialize statics to 0
* Use usleep_range instead of msleep
* Fx vendor prefix
* Add DT bindings documentation for ak4497 codec
* Remove regmap default functions
* Use devm_kzalloc
* Fix MAX_REGISTERS value
* Add $self as module author
* Remove .owner field
* Make ak4497_init_reg return void

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-15071-2: ASoC: fsl: Add machine driver for AK5558
Shengjiu Wang [Wed, 27 Dec 2017 06:54:52 +0000 (14:54 +0800)]
MLK-15071-2: ASoC: fsl: Add machine driver for AK5558

Add machine driver for i.MX boards that have AK5558 ADC attached to SAI.

Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-15071-1: ASoC: codecs: Add AK5558 ADC driver
Mihai Serban [Tue, 13 Jun 2017 11:52:28 +0000 (14:52 +0300)]
MLK-15071-1: ASoC: codecs: Add AK5558 ADC driver

The AK555x series is a 32-bit, 768 kHz sampling, differential input A/D
converter for digital audio systems. The datasheet is available here:
https://www.akm.com/akm/en/file/datasheet/AK5558VN.pdf

Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-15033-2: ASoC: fsl: Add machine driver for AK4458
Mihai Serban [Tue, 11 Jul 2017 15:24:52 +0000 (18:24 +0300)]
MLK-15033-2: ASoC: fsl: Add machine driver for AK4458

Add machine driver for i.MX boards that have AK4458 DAC attached to SAI.

Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-15033-1: ASoC: codecs: Add support for AK4458 DAC
Mihai Serban [Tue, 6 Jun 2017 09:12:08 +0000 (12:12 +0300)]
MLK-15033-1: ASoC: codecs: Add support for AK4458 DAC

The AK4458 is a 32-bit 8ch Premium DAC, its datasheet is available here:
https://www.akm.com/akm/en/file/datasheet/AK4458VN.pdf

Signed-off-by: Mihai Serban <mihai.serban@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
7 years agoMLK-17352 defconfig: imx_v7_defconfig: enable SIMv2 in defconfig
Gao Pan [Mon, 8 Jan 2018 09:11:20 +0000 (17:11 +0800)]
MLK-17352 defconfig: imx_v7_defconfig: enable SIMv2 in defconfig

To enable SIMv2 for imx6ul/imx7d, both CONFIG_MXC_SIMv2
and CONFIG_ARCH_MXC have to be enabled.

This patch enables these two config in imx_v7_defconfig for
SIMv2 support.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
7 years agoMLK-17319-3 defconfig: enable EMVSIM in defconfig
Gao Pan [Thu, 21 Dec 2017 06:54:53 +0000 (14:54 +0800)]
MLK-17319-3 defconfig: enable EMVSIM in defconfig

enable EMVSIM in defconfig

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
7 years agoMLK-17319-2 arm64: dts: add emvsim0 device node for imx8qm-mek
Gao Pan [Mon, 8 Jan 2018 08:59:04 +0000 (16:59 +0800)]
MLK-17319-2 arm64: dts: add emvsim0 device node for imx8qm-mek

add emvsim0 device node for imx8qm-mek to support EMVSIM

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
7 years agoMLK-17319-1 imx8: sim: add driver to support EMVSIM module
Gao Pan [Mon, 8 Jan 2018 09:10:31 +0000 (17:10 +0800)]
MLK-17319-1 imx8: sim: add driver to support EMVSIM module

The EMVSIM module is designed to facilitate communication to
Smart Cards compatible to the EMV ver4.3 standard and compatible
with ISO/IEC 7816-3 Standard.

This patch adds driver to support EMVSIM module for imx8.

Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Reviewed-by: Andy Duan <fugang.duan@nxp.com>
7 years agoMLK-17366-2 usb: cdns3: decrease autosuspend timeout
Peter Chen [Fri, 12 Jan 2018 07:26:12 +0000 (15:26 +0800)]
MLK-17366-2 usb: cdns3: decrease autosuspend timeout

Cadence3 low power sequence doesn't allow too much time gap
between xhci bus suspend and controller suspend,
otherwise, the disconnection will be seen between them.

Acked-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
7 years agoMLK-17366-1 usb: cdns3: improve USB PHY operation
Peter Chen [Fri, 12 Jan 2018 07:23:44 +0000 (15:23 +0800)]
MLK-17366-1 usb: cdns3: improve USB PHY operation

Improve USB PHY operation, and keep 32K clock for RX detection
all the time, it can fix SS connection can't be recognition
from U3.

Acked-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
7 years agousb: dwc3: Don't reinitialize core during host bus-suspend/resume
Manu Gautam [Wed, 27 Sep 2017 11:19:20 +0000 (16:49 +0530)]
usb: dwc3: Don't reinitialize core during host bus-suspend/resume

Driver powers-off PHYs and reinitializes DWC3 core and gadget on
resume. While this works fine for gadget mode but in host
mode there is not re-initialization of host stack. Also, resetting
bus as part of bus_suspend/resume is not correct which could affect
(or disconnect) connected devices.
Fix this by not reinitializing core on suspend/resume in host mode
for HOST only and OTG/drd configurations.

Signed-off-by: Manu Gautam <mgautam@codeaurora.org>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
(cherry picked from commit 689bf72c6e0dc97493ba14d82f6762456f8f244a)

7 years agoMLK-17399 ARM64: dts: imx8mq: enable usb3 link PM
Jun Li [Wed, 17 Jan 2018 16:16:57 +0000 (00:16 +0800)]
MLK-17399 ARM64: dts: imx8mq: enable usb3 link PM

Enable USB3 hardware link power management, so the link can enter
U1 and U2 if there is no data transfer if the deivce can support
them.

Signed-off-by: Li Jun <jun.li@nxp.com>
7 years agoMLK-17385: dma: imx-sdma: update sdma script for multi fifo on SAI
Robin Gong [Tue, 16 Jan 2018 09:52:49 +0000 (17:52 +0800)]
MLK-17385: dma: imx-sdma: update sdma script for multi fifo on SAI

update sdma script for multi fifo SAI on i.mx8MQ.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
7 years agoMLK-17368-4: drm: imx: dcss: add modifier checks
Laurentiu Palcu [Fri, 12 Jan 2018 13:23:38 +0000 (15:23 +0200)]
MLK-17368-4: drm: imx: dcss: add modifier checks

This patch activates modifiers in CRTC and adds checks in the
atomic_check() callback so that only the allowed modifiers are accepted.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMLK-17368-3: drm: imx: dcss: Add support for tiled formats
Laurentiu Palcu [Fri, 12 Jan 2018 13:18:51 +0000 (15:18 +0200)]
MLK-17368-3: drm: imx: dcss: Add support for tiled formats

This patch effectively enables DTRC module in DCSS to decode tiled
formats from VPU:
 * uncompressed G1;
 * uncompressed G2;
 * compressed G2;

Compressed G2 formats need to pass on the decompression table offsets,
by using the 'dtrc_dec_ofs' property. This is a 64 bit value like below:

64--------48----------32---------16---------0
|<- chroma table ofs ->|<- luma table ofs ->|

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMLK-17368-2: drm: imx: dcss: split dcss_ctxld_write
Laurentiu Palcu [Fri, 12 Jan 2018 11:56:58 +0000 (13:56 +0200)]
MLK-17368-2: drm: imx: dcss: split dcss_ctxld_write

In order for DTRC to work properly, we need to be able to write the DCTL
registers (to switch banks), just before activating CTXLD. However,
__dcss_ctxld_enable() function is usually called from irq context, or
whn the mutex is taken. Hence, create a function the can be called from
irq context.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMLK-17368-1: drm: add fourcc codes for Verisilicon tiled formats
Bing Song [Fri, 5 Jan 2018 06:33:51 +0000 (08:33 +0200)]
MLK-17368-1: drm: add fourcc codes for Verisilicon tiled formats

These formats will be used by VPU and DCSS.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
7 years agoMA-11120 Fix screen mess with colorful grids issue on mx6dl ard board
Richard Liu [Mon, 15 Jan 2018 17:22:43 +0000 (01:22 +0800)]
MA-11120 Fix screen mess with colorful grids issue on mx6dl ard board

The issue is reported on mx6dl ard board after add ion cacheable memory
support in patch "MA-10928 Add system contiguous heap to ion", root cause
is GPU will enable MMU when physical address large than 0x80000000.
ARD board has 2GB memory if not set base address GPU MMU will be enabled
and when GPU mapped address pass to 2D there will have problem. Fix the
issue by set phys_baseaddr=256M in mx6dl board dts, mx6q board already
set phys_baseaddr.

Change-Id: I11935900801ffe811a2c12f37ecbac13a34245f6
Signed-off-by: Richard Liu <xuegang.liu@nxp.com>
7 years agoMLK-17370 video: fbdev: mxc_edid: change '640x480' mode clock
Fancy Fang [Mon, 15 Jan 2018 07:34:13 +0000 (15:34 +0800)]
MLK-17370 video: fbdev: mxc_edid: change '640x480' mode clock

For the '640x480' cea mode, change the 'pixclock' from
39722 ps to 39683 ps to satisfy the imx7ulp hdmi display
requirement.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
7 years agoMLK-17371 gpu: imx: dpu: framegen: Use better timeout value to wait for ENSTS
Liu Ying [Fri, 12 Jan 2018 09:42:21 +0000 (17:42 +0800)]
MLK-17371 gpu: imx: dpu: framegen: Use better timeout value to wait for ENSTS

The DPU spec tells us that we need to wait for all pending frames to
be completed when a display stream is disabled.  It turns out
that the hardcoded 60-microsecond timeout value is not enough for
some low refresh rate video modes, e.g., 1920x1080@24, which makes
the display stream be disabled incorrectly(leave the hardware an
incorrect machine status).  The SoC design indicates that there are
two pending frames to complete in the worst case.  This patch waits
for at most three frame duration(which is enough for sure) so that
the hardware may flush out all the pending frames.  In case the clock
subsystem provides us a pixel clock with wrong rate and causes the
timeout value be unreasonably long, we truncate it to wait for at
most three seconds.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
7 years agoMLK-17369: soc:imx8qm/qxp: Add controls for display controller resets
Oliver Brown [Fri, 12 Jan 2018 16:56:11 +0000 (10:56 -0600)]
MLK-17369: soc:imx8qm/qxp: Add controls for display controller resets

"
commit cfdb9821531da523fd1f01536eb67c8b8451477f
Author: Oliver Brown <oliver.brown@nxp.com>
Date:   Tue Jan 2 07:46:06 2018 -0600

    dc: Add controls for display controller resets.
"

Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
7 years agoMLK-17367 imx8: pm-domains: fix restore parent for clk_stat_may_lost case
Dong Aisheng [Fri, 12 Jan 2018 10:38:09 +0000 (18:38 +0800)]
MLK-17367 imx8: pm-domains: fix restore parent for clk_stat_may_lost case

imx8_rsrc_clk->parent may be cleared during last probe failure.
So we need explicitly call CLK APIs clk_get_parent to get the cached
parent for the later restore. Otherwise, it may reparent to NULL parent
which results in 0 clk rate.

Fixes: 05caa1390f88cb (" MLK-17363-1 imx8: pm-domain: fix clock parent restore issue after suspend/resume")
Reviewed-by: Anson Huang <anson.huang@nxp.com>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>