Commit Graph

721625 Commits

Author SHA1 Message Date
eda4286844 MLK-18578: hdmi_rx: wait longer time for audio info frame
The wait time is short that cause recording failed sometimes

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Sandor.yu <sandor.yu@nxp.com>
2019-02-12 10:32:11 +08:00
7c1827f556 MLK-18578: hdmi arc: fix noise issue with 96kHz/192kHz.
After enable the boost circuit of tx_ana_ctrl_reg_5, the noise
issue with ARC is gone.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Sandor.yu <sandor.yu@nxp.com>
2019-02-12 10:32:10 +08:00
7a9810af7f MLK-18578: hdmi_rx: fix issue that ARC can't work in 4k.
After changing the deemphasis to 0dB in TX_DIG_CTRL_REG_1
the issue that ARC can't work with 4k resolution is fixed

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Sandor.yu <sandor.yu@nxp.com>
2019-02-12 10:32:10 +08:00
2702323d92 MLK-18574: ARM64: dts: remove inapplicable compatible string
remove inapplicable compatible string for spdif

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
2019-02-12 10:32:10 +08:00
bfae9cfe49 MLK-18574: ASoC: fsl_spdif: specify the spdif in imx8mm
specify the spdif in imx8mm for the ipg clock is higher that
it can support 192kHz

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
2019-02-12 10:32:10 +08:00
8b43702a18 MLK-18574: ASoC: fsl_spdif: support 192kHz for rx in imx8
The ipg clock is higher enough to support 192kHz in imx8

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
2019-02-12 10:32:10 +08:00
0532c45794 MLK-18562 sound: asoc: remove micfil unsupported rates and formats
This block implements the required digital interface to provide a
16-bit audio signal from a PDM microphone bitstream in a
configurable output sampling rate 11025kHz - 48000kHz.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2019-02-12 10:32:10 +08:00
f1d0c89ec4 MLK-18560 drm/imx: lcdif: refine bus format sanity check for plane
Add an function to get the LCDIF controller supported bus
formats according to the pixel format bpp. And change the
bus format sanity check in the plane's atomic check to see
if the bus format required by the peripheral attached to
LCDIF can be supported by LCDIF.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2019-02-12 10:32:10 +08:00
c284d5755e MLK-18319-3 usb: cdns3: gadget: Typo cleanup
Typo cleanup.

Reviewed-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2019-02-12 10:32:10 +08:00
e5a1abc937 MLK-18319-2 usb: cdns3: gadget: delete the unless code
Confirmed from CDNS, this code is from bare metal, and not needed
for Linux. Below are their response:

This is alternative deferred interrupt.
This is intended to be used in Bare Metal to not block system in
interrupt.
This was not fully checked in Linux, so we do not recommend to use it
there.

Reviewed-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2019-02-12 10:32:09 +08:00
648aa52282 MLK-18319-1 usb: cdns3: gadget: improvement the handling for non-aligned buffer
If the user buffer is not 8-byte aligned, it needs to use debounce
buffer for DMA transfer, and in this commit, we do below two
improvements:
- Copy back the request buffer when the transfer has completed
- Using Macro for default debounce buffer size

Reviewed-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
2019-02-12 10:32:09 +08:00
bb17afd519 MLK-18541 media: mipi_csi: fix capture failure for 2592x1944 at 15fps
There's probability there's no interrupt from CSI for the resolution
of 2592x1944 at 15 fps due to timing problem.
Need refine hs_settle value to fix this.

Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
2019-02-12 10:32:09 +08:00
f1d42505a6 MLK-18531 staging: typec: don't do vbus source disable for dead battery
In PTN5110 design, DisableSourceVBUS command also disables the sink
enable signal because the EN_SNK can be used to source higher voltage,
and, there is only one TCPC command to disable sourcing voltage without
telling whether to disable 5V or the high voltage, and to keep the
design simple they designed the PTN5110 to disable both. with this
fact, we use the flag drive_vbus to check if the source vbus enable was
issued, if yes we then do vbus source disable, in dead battery case,
we never did vbus source enable, so will not issue vbus source disable
command.

Acked-by: Peter Chen <peter.chen@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
2019-02-12 10:32:09 +08:00
0074b54ca4 MLK-18544 media: camera: correct ov5640 setting for 2592x1944 at 15fps
set scale divider for mipi in reg 0x3035 to 0x11 to achieve 15fps

Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
2019-02-12 10:32:09 +08:00
86ff2008b5 MLK-18552-2 media: mipi_csi: enable disp_axi and disp_apb before the access
On i.MX8MM, IC design uses registers from CSI to do MIPI PHY reset. Need enable
disp_axi and disp_apb before the access, otherwise meet hang issue.

Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
2019-02-12 10:32:08 +08:00
d31dd61a47 MLK-18552-1 ARM64: dts: add clock disp_axi and disp_apb for CSI and MIPI CSI
Add nodes for clock disp_axi and disp_apb for access to avoid hang issue.
On i.MX8MM, use the register in CSI to do MIPI PHY reset, so add these
clocks for MIPI CSI driver as well.

Signed-off-by: Robby Cai <robby.cai@nxp.com>
Reviewed-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
2019-02-12 10:32:08 +08:00
8fd3e64804 MLK-16784 sound: asoc: mark micfil stat register volatile
Mark micfil stat register as volatile since status
flags should not be read from cache.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2019-02-12 10:32:07 +08:00
885d9e56be MLK-16784 sound: asoc: change micfil dma_maxburst
MICFIL is using multi-fifo dma and maxburst must
be set proportional to number of channels.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2019-02-12 10:32:07 +08:00
2699bd5767 MLK-16784 arm64:dts: change micfil default clock rate
Change the micfil clock rate to 196MHz. With lower
clock rate, performance is poor when recording more
than two channels.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2019-02-12 10:32:07 +08:00
9b7da13e67 MLK-18528 sound: asoc: add amixer control widged for micfil
Add channels output gain and quality select controls.

Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2019-02-12 10:32:07 +08:00
e84e499993 MGS-3940-3 gpu: imx: dpu-blit: fix the confusable logic
Simplify the code to sync command sequncer in conditions:
1. tile work with dprc/prg (baddr)
2. switch tile to linear (!start)

revert 686c717fef
MLK-18398 gpu: imx: imx8_dprc: dpu-blit: Wait the dprc idle before
disable it

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
2019-02-12 10:32:07 +08:00
a409471117 MGS-3940-2 gpu: imx: dpu-blit: fix event trigger
the previous programming does not flush command sequence,
that cause the obvious flicker when run glmark2 in full-screen,
also the wrong logic cause wayland hang in strict conditions.

need program event trigger to sync command sequencer properly.
also revert workaround: 4767f9aaad
MLK-18283-3 gpu: imx: dpu-blit: sync for cmd sequence finished

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
2019-02-12 10:32:07 +08:00
335458cf90 MGS-3940-1 gpu: imx: dpu-blit: fix first frame handler
chrome browser hang is reproduced with mouse connected,
the first frame handler trigger the problem in below scenario:
tile (dprc-enable) --> linear (dprc->disable) --> tile (handle first frame wrongly).

need_handle_start is set following dprc_enable, need reset it with dprc_disable.

Signed-off-by: Xianzhong <xianzhong.li@nxp.com>
2019-02-12 10:32:06 +08:00
fd855d4e52 MLK-18535-13 dt-bindings: display: bridge: add sec-dsim bindings
Add the device-tree bindings for the display bridge
Samsung MIPI DSIM on i.MX platforms.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2019-02-12 10:32:06 +08:00
b5bbc0b7aa MLK-18535-12 dt-bindings: display: imx: add eLCDIF device node
Add the device-tree bindings for the display node eLCDIF
on i.MX platforms.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2019-02-12 10:32:06 +08:00
22d779fed8 MLK-18535-11 ARM64: dts: imx8mm-evk: enable 'lcdif', 'mipi_dsi' and 'adv7535'
Enable the whole display pipeline 'LCDIF --> MIPI DSI --> ADV7535'
on IMX8MM EVK board.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2019-02-12 10:32:06 +08:00
0ad9839e59 MLK-18535-10 drm/imx: lcdif: limit the maximum resolution to '1920x1080'
For now, the higher resolution than '1920x1080' is not supported
yet. So limit the 'max_width' and 'max_height' of mode_config
to be 1920 and 1080.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2019-02-12 10:32:06 +08:00
3a1bb280c4 MLK-18535-9 ARM64: defconfig: enable 'IMX_SEC_DSIM' config
Enable the 'IMX_SEC_DSIM' config by default in ARM64
defconfig.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2019-02-12 10:32:06 +08:00
941ef8c5fc MLK-18535-8 drm/imx: sec_mipi_dsim-imx: add DSIM host driver
The Samsung DSIM host driver mainly focuses on the config
related with soc platforms. And the controller itself config
has been moved to the sec-dsim bridge driver.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2019-02-12 10:32:06 +08:00
beb9d163c7 MLK-18535-7 drm/bridge: sec-dsim: add bridge driver support
This is the abstracted bridge driver for Samsung MIPI DSIM
controller. This driver only foucses on the DSIM controller
itself configurations and never care about any config about
the platforms. So it can be shared by different platforms
without any modifications.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2019-02-12 10:32:06 +08:00
dae914b351 MLK-18535-6 drm/imx: core: add LCDIF support
Allows the LCDIF to be one of the supported client
components. And set the 'legacyfb_depth' of LCDIF
to be 32.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2019-02-12 10:32:06 +08:00
a104e928da MLK-18535-5 drm/imx: add LCDIF DRM/KMS driver
This is a new DRM/KMS driver for LCDIF which conforms
to the IMX DRM Core framework. It provides support for
CRTCs, Planes and mode config of KMS.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2019-02-12 10:32:05 +08:00
09f1d56396 MLK-18535-4 ARM64: defconfig: enable 'IMX_LCDIF_CORE' config
Enable the 'IMX_LCDIF_CORE' config by default in ARM64
defconfig.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2019-02-12 10:32:05 +08:00
ca168846dc MLK-18535-3 gpu: imx: add LCDIF core driver
The LCDIF core driver is responsible to provide controller
registers configuration and create the platform devices for
the child port nodes. And the platform devices later will
attach to the corresponding DRM/KMS drivers via name match.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2019-02-12 10:32:05 +08:00
4635ce0a82 MLK-18535-2 clk: imx8mm: set video_pll1 rate to 594MHz
The 'video_pll1' PLL will be used as LCDIF pixel clock
source, and also used as MIPI DSI PHY reference clock
source. And 594MHz clock rate is better to derive the
27MHz PHY reference clock and the LCDIF pixel clocks
requied for most popular display modes.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2019-02-12 10:32:05 +08:00
538a1400e1 MLK-18535-1 ARM64: dts: imx8mm: re-organize display nodes for DRM/KMS
The display pipeline provided by IMX8MM soc is: LCDIF --> MIPI DSI.
This patch re-organize the LCDIF and MIPI DSI device nodes to be
suitable for DRM/KMS drivers. Besides, a new device node 'dispmix_gpr'
which is required by LCDIF and MIPI DSI is added.

Signed-off-by: Fancy Fang <chen.fang@nxp.com>
2019-02-12 10:32:05 +08:00
b9876e09ab MLK-18545: [Linux_8QXP_MEK]Video:Video disappeared after long time loop
play the test clip, 100%

fix it by comment out resolution change event in vpu decoder driver

Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2019-02-12 10:32:05 +08:00
cd5ba6cd88 MLK-18559 PCI: imx: fix crash when request reserved region
Fix the crash when pcie request the reserved memory region
after the -EPROBE_DEFER in the probe.
The pointer of the resource parameter would be invalided
in the second probe. Use one structure varible to replace
it.
Put node after done with it, after call of_parse_phandle.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
2019-02-12 10:32:05 +08:00
8ccea6f686 MLK-18515-2 PCI: imx: get reserved region for ep rc ddr test region
PCIe ep rc validation is one remote processors communications.
Remove the hard-coded ep rc ddr test region on imx8 platforms.
Get the reserved region for ep rc ddr test region.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
2019-02-12 10:32:05 +08:00
21049a5bd8 MLK-18515-1 ARM64: dts: imx: add the reserved region in pcie node
PCIe ep rc validation system is one remote processors
communications.
Add the reserved region in pcie node, and use this region as
ddr test region in pcie ep rc validation system.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
2019-02-12 10:32:04 +08:00
023b6deb97 MLK-17880 PCI: imx: fix the imx6q pcie resume hang
The perst signal shouldn't be asserted during imx6q/dl
pcie suspend.
Otherwise, the link would be down during resume,
and system would be hang.
Fix it by one return in imx6q switch case.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
2019-02-12 10:32:04 +08:00
087f213439 MLK-18089: Add support for DXP/DX
Add dtsi and board configurations for DXP/DX 8QXP derivatives.
Separate out the arm2 board individual details for transparency
of board and device specifics.

Signed-off-by: Teo Hall <teo.hall@nxp.com>
2019-02-12 10:32:04 +08:00
e3d4e9b706 MLK-18090: Add support for DM/QP
Add dtsi and ARM2 board configurations for QP/DM 8QM derivatives.
Separate out ARM2 specific details from device details.

Signed-off-by: Teo Hall <teo.hall@nxp.com>
2019-02-12 10:32:04 +08:00
3f5c474563 MLK-18516: ARM64: dts: imx8mm: add audio tdm dts
Add a distinct DTS in order to showcase AK4458/AK5558 TDM mode.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
2019-02-12 10:32:04 +08:00
a774eb41dd MLK-18534-2: ARM64: dts: mx8mm-evk: ak4497: use 1:1 bclk:mclk ratio for DSD512
Since IP version 3.01 (845s) SAI has support for 1:1 bclk:mclk ratio.
Given this the specific DSD512 pinctrl option can be removed and SAI mclk
frequency decreased.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
2019-02-12 10:32:04 +08:00
9ac1f13585 MLK-18534-1: ASoC: fsl: sai: introduce 1:1 bclk:mclk ratio support
Since IP version 3.01 (845s) SAI has support for 1:1
bclk:mclk ratio.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
2019-02-12 10:32:04 +08:00
19c3cd19b3 MLK-18530: ASoC: wm8524: support S32_LE
support S32_LE

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2019-02-12 10:32:03 +08:00
ca98e77d34 MLK-18533: clk: imx8mm: reparent audio_ahb_src clk
Reparent audio_ahb_src clock as it is on imx8mq.

Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
2019-02-12 10:32:03 +08:00
a6b0d37061 MLK-18532: [i.MX8MM/Hantro]: h1 encoder doesn't work when running with decoder simultaneously
Remove legacy function 'hantrodec_choose_core()'

Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
2019-02-12 10:32:03 +08:00
7a9ffad308 MLK-17305 [MX8QXP-MEK] VPU: "couldn't set vpu_dec_clk clk rate to
600000000 (-22)" and "clk: couldn't set vpu_enc_clk clk rate to
600000000 (-22), current rate: 0" when boot up. 100%

vpu clock is not settable, remove the assigned-clock-rates from the dts

Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2019-02-12 10:32:03 +08:00