MLK-16922-1: drm: dcss: Add DCSS core power management support
This patch support for suspend/resume and runtime PM in DCSS driver
core.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
MLK-16923-2: drm: imx: dcss: Add possibility to debug BLKCTL registers
When debugging it's useful to be able to see the DCSS registers. BLKCTL
was not added to the list of modules supporting this feature. This patch
adds it.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
MLK-16923-1: drm: imx: dcss: dont't use static vars in blkctl
If, in the future, a platform will have two DCSS controllers, having
static variables holding various settings will not work out. Add a
private structure instead.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
MLK-16896 tty: serial: lpuart: flush transmit/receive fifo/buffer
Although .startup() alreadly do transmit/receive fifo/buffer flush,
but switch the baud rate may introduce dirty data on fifo, in such
case, user will call tcflush() to clean up buffer and fifo. So driver
also ensure HW fifo is cleaned up.
The patch add hw fifo/buffer flush in .flush_buffer() callback.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
MLK-16920 ARM64: dts: imx8mq: Remove disp and hdmi power domains
Remove the disp and hdmi power domain, these two power domain can
NOT used for domain power management.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
Tested-by: Jian Li <jian.li@nxp.com>
MLK-16885-2: ASoC: imx-pcm-dma-v2: query the caps of dma
query the caps of dma, then update the hw parameters according
the caps. for EDMA can't support 24bit sample, but we didn't
add any constraint, that cause issues.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
MLK-16885-1: DMA: imx-sdma: update the buswidth that is supported
update buswidth that is supported by sdma.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
dmaengine: imx-sdma: Correct src_addr_widths and directions
The driver already supports DMA_DEV_TO_DEV in sdma_config(),
DMA_SLAVE_BUSWIDTH_2_BYTES and DMA_SLAVE_BUSWIDTH_1_BYTE in
sdma_prep_slave_sg(). So this patch adds them to the lists.
Signed-off-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
(cherry-picked from commit f9d4a398f121b00f581da1428bff9b93d955452d)
MLK-16818-2 PCI: imx: enable the pcie ep rc for imx8
Enable the PCIE EP RC for iMX8
RC access memory of EP:
- EP:
write the <ddr_region_address> to the bar0 of ep.
- RC:
access the <mem_base_address>, and this address
would be mapped to the <ddr_region_address> of ep.
Note:
ddr_region_address mem_base_addr bar0_addr
imx8mq 0xb820_0000 0x2000_0000 0x33c0_0010
imx8qxp 0xb820_0000 0x6000_0000 0x5f00_0010
imx8qm 0xb820_0000 0x7000_0000 ...
MLK-16818-1 ARM64: dts: imx8: modify the dts to enable ep rc support
- Correct the comments of iMX8QM PCIEB
- Enlarge the CFG space of iMX8QXP PCIEB.
- PCIE port maybe hard-wired in the hardware design.
Use the hard-wired property to specify it on iMX8MQ.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
MLK-16738: ARM64: dts: qxp-lpddr4-arm2: amix: move SAIs MCLKs to AUD_PLL1
Move AMIX SAIs MCLKs to AUD_PLL1 and double the frequency
in order to support 64k rate.
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
MLK-16738: ARM64: dts: qm-lpddr4-arm2: amix: move SAIs MCLKs to AUD_PLL1
Move AMIX SAIs MCLKs to AUD_PLL1 and double the frequency
in order to support 64k rate.
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
MLK-16911: drm: imx: dcss: do not advertise modifiers
Since support for tiled formats has not been added to DCSS DRM driver,
do not allow usage of FB modifiers by userspace.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
MLK-16906: drm: imx: core: add possiblity to detect if chip has DCSS
The Mscale Display Controller Subsystem does not support RGB565.
However, the default legacy FB pixel depth is 16. Hence, the users would
have to add a kernel cmdline option to set it to 32bpp:
imxdrm.legacyfb_depth=32
This patch changes imx-drm-core to detect if platform has DCSS and, if
it does, set the FB pixel depth to 32, so that user does not have to.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
MLK-16908-2: hdp: Support video modeset
Add HDMI PHY configurated function to mode set.
Add 720p60, 2160p30 and 2160p60 video mode to default video modes.
Rewrite mode valid function.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
MLK-16909 irqchip: imx-irqsteer: restore registers after power off
Once irqsteer controller is power off during suspend, the registers
are lost, it should restore the registers after resume back.
BuildInfo:
- SCFW a479ff78, IMX-MKIMAGE ff9860c5, ATF 923651a
- U-Boot 2017.03-00691-g96cf020
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Tested-by: Pandy.gao <pandy.gao@nxp.com>
Acked-by: Pandy.gao <pandy.gao@nxp.com>
MLK-16902 ARM64: dts: Update the default critical temp setting on imx8mq
i.MX8MQ silicon only has consumer and industrial part, for consumer part,
the operating temperature range is 0C ~ 95C, so update the thermal driver
critical temp to 95C. This is only a reference setting based on consumer
part, if the silicon is for industrial use, please update the temperature
according to the industrial part datasheet.
Signed-off-by: Bai Ping <ping.bai@nxp.com>
MLK-16898: arm64: dts: add the power domain for flexspi0
add the power domain for flexspi0 for iMX8QM/QXP in device tree.
Signed-off-by: Han Xu <han.xu@nxp.com>
MLK-16839-3: ASoC: fsl_esai: remove rate constrain for FE-BE case
In FE-BE case, the constraint in BE cpu dai will propagate to FE.
and the rate constaint is set by .be_hw_params_fixup in dai_link for BE.
So rate constraint in BE cpu dai is not needed in FE-BE case.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
MLK-16839-2: ARM64: dts: add clock source for asrc
add IMX8QM_ACM_AUD_CLK0_SEL and IMX8QM_ACM_AUD_CLK1_SEL for
asrc clock source. There is no clock gate for them, only
clock mux.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
MLK-16839-1: ASoC: fsl_asrc: selec a proper clock source from the clock list
In internal ratio mode, when the clock rate can't be divided with no
remainder, The final convert ratio is not as expected, there is distortion
in output data.
So need to select a proper clock source for this mode, if can't find a good
clock source, then swith to ideal ratio mode.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
MLK-16837: ARM64: dts: fix the noise isse with mono stream
When play the mono stream, there is no data in right channel,
but if config the pin IO in pull up or pull down state, the codec
can get no zero data in right channel, then user can hear noise.
config the pin in no pull state to fix the noise issue.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
MLK-16887-2: ARM64: dts: enable spdif2 and add sound card for hdmi arc
enable spdif2 and add sound card for hdmi arc for mscale
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
MLK-16887-1: drm: imx: hdp: add aux config for HDMI ARC
Add aux config for HDMI ARC, the config is from the HDMI usr
guide
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
MLK-16886: hdp: Disable EDID function
Disable EDID function temporary
because edid read is unstable on some boards.
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
MLK-16814-2: arm64: dts: imx8mq-evk: Make drm DTS default
Since video fbdev drivers will not be used anymore, make DRM dts
default.
This patch just renames the drm dts to fsl-imx8mq-evk.dts and updates
the include lines in various dts files to point to the fbdev dts.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
MLK-16814-1: arm64: dts: imx8mq-evk: copy default dts and add fbdev suffix
Default dts will use DRM, hence this one will not be used anymore.
However, other people may find fbdev drivers useful. So, instead of
deleting it, copy it and add fbdev suffix to the dts name.
This patch preceeds another patch that will make drm dts default.
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
MLK-16841-2: ARM64: dts: freescale: fsl-imx8mq: add 'fsl,ratio-1-1'
Add fsl,ratio-1-1 into mscale B0 chip. Please remove this property if you
want to run A0 chip.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
MLK-16841-1: dma: imx-sdma: add clock ration 1:1 check
On i.mx8 mscale B0 chip, AHB/SDMA clock ratio 2:1 can't be supportted,
since SDMA clock ration has to be increased to 250Mhz, AHB can't reach
to 500Mhz, so use 1:1 instead.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
MLK-16842 drm/imx: core: Add 32bit ioctrls support for 64bit processors
Since we have 64bit processors running imx-drm, we should support
32bit ioctrls for them.
Reported-by: Ivan Liu <xiaowen.liu@nxp.com>
Tested-by: Ivan Liu <xiaowen.liu@nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
MLK-16836 PCI: imx: add the bus freq sysfile interface
To support the bus freq power saving mode, add the
sysfile interface.
request bus high: echo 1 > /sys/devices/platform/xxxxxxxx.pcie/bus_freq
release bus high: echo 1 > /sys/devices/platform/xxxxxxxx.pcie/bus_freq
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
MLK-16838 tty: serial: imx: add busfreq support for DMA mode
Add busfreq support for DMA mode.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Reviewed-by: Robin Gong <yibin.gong@nxp.com>
MLK-16765-4 input: keyboard: imx_sc_pwrkey: add powerkey driver on i.mx8QM/QXP
This powerkey driver is a virtual driver based on scfw which control
SNVS ON/OFF in SCU side. The key interrupt triggered by MU notfication
BuildInfo:
- SCFW e7d95e1e, IMX-MKIMAGE 05d3d4a7, ATF 93dd1cc
- U-Boot 2017.03-00684-g28c5243
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
MLK-16765-3 rtc: rtc-imx-sc: check group interrupt type
Check group interrupt type and irq status type supported, return directlly
if it's not the right group and interrupt status.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>