Commit Graph

718214 Commits

Author SHA1 Message Date
349da8b231 MLK-18245: ARM64: dts: Fix asrc clock source
Fixes: 7e05dcf668 ("MLK-16839-2: ARM64: dts: add clock source for asrc")

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
2018-08-10 10:51:59 +08:00
497465562a MLK-18259 arm64: dts: imx8qm: Fix mu2 interrupt in xen dts
This was always wrong but causes failures recently after dom0 switched
to using mu1 and claiming it's interrupt

Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
2018-08-10 10:51:58 +08:00
2feca10e9c MLK-18265-4 ARM64: dts: freescale: imx8qm: correct jpeg power domain
Correct JPEG power domain tree to make sure kernel can
boot up successfully with XRDC enforcement enabled.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
Tested-by: Peng Fan <peng.fan@nxp.com>
2018-08-10 10:51:58 +08:00
de84deb693 MLK-18265-3 ARM64: dts: freescale: imx8qm: correct usb power domain
Correct USB power domain tree to make sure kernel can
boot up successfully with XRDC enforcement enabled.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
Tested-by: Peng Fan <peng.fan@nxp.com>
2018-08-10 10:51:58 +08:00
ccc3965fa5 MLK-18265-2 clk: imx8qm: remove GPIO clocks definition
Remove all GPIOs LPCG clock definition to make sure they
are always ON by SCFW default setting.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
Tested-by: Peng Fan <peng.fan@nxp.com>
2018-08-10 10:51:58 +08:00
d5ca67de7f MLK-18265-1 ARM64: dts: freescale: imx8qm: remove GPIO clocks
All GPIOs clock will be kept ON in SCFW by default, here
remove all GPIOs management to make sure they are always
ON.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
Tested-by: Peng Fan <peng.fan@nxp.com>
2018-08-10 10:51:58 +08:00
1711aaa6e2 MLK-18248: dma: fsl-edma-v3: avoid touch unused edma channel
Avoid touch unused edma channel register in susped/resume, otherwise,
kernel crash if XRDC enabled in scfw.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Acked-by: Fugang Duan <fugang.duan@nxp.com>
2018-08-10 10:51:58 +08:00
48858cad30 MLK-18261 irqchip: imx-irqsteer: fix idx calculation for mask callback
Fixes: a2e6a78334 (MLK-16136-9 irqchip: imx-irqsteer: adjust irq config
via 'endian')

This patch fixes mask register offset calculation, when endian is not
default value 0 (i.e imx8mq).

Signed-off-by: Antoine Bouyer <antoine.bouyer@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
2018-08-10 10:51:58 +08:00
bf021da408 MLK-18254 clk: imx: intpll: correct the programming flow
According to SPEC, when change the pll frequency and needs pll reset,
the t3 - t2 need to be greater than 1us and 1/FREF, respectively.
FREF is FIN / Prediv, the prediv is [1, 63], so choose
3us for safe.

The pll1443x does not have lock sel bit mask, so remove it.

Remove the bypass setting before changing frequency.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-08-10 10:51:58 +08:00
49bfc28e1c MLK-18220-6 clk:imx8qxp: Remove all references to GPIO IPG clocks from the clock tree.
Removing all references to GPIO IPG clocks, this will leave all LPCG
clocks controlling GPIOs in an always ON state similar to earlier iMX
processors. By registering these clocks, unused GPIO clocks were disabled
at boot, causing issues during system suspend/resume as there is no easy
way to enable the clocks because the power domain associated with these
GPIOs are also disabled.

Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
2018-08-10 10:51:57 +08:00
c6628eddbf MLK-18220-5 dts:imx8qxp Remove all clock references from GPIO device entries.
Controlling GPIO clocks in iMX8 is dependent on power domain,
and an unused GPIO's power domain is disabled during startup.
This makes it difficult for the GPIO driver to manage clocks for such
GPIOs. This causes failures during system suspend/resume when
GPIO registers are saved/restored.
These LPCG clocks will be always be in an enabled state, similar
to earlier iMX processors.

Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
2018-08-10 10:51:57 +08:00
a60f9f81d9 MLK-18250 VPU: Add MU for vpu encoder and decoder power in dts for
scfw xrdc enforcing, and add sync for v4l2 driver and firmware

Add MU for vpu encoder and decoder power in dts for scfw xrdc enforcing,
and add sync for v4l2 driver and firmware

Signed-off-by: Huang Chaofan <chaofan.huang@nxp.com>
2018-08-10 10:51:57 +08:00
9f364f03f0 MLK-18245-2: ARM64: dts: refine the power domain tree for audio devices
In the latest scfw design, the power domain of device should be explicit
enabled in kernel, otherwise there will be kernel dump.
For example, when using audio device to playback, the DMA channel's power
domain should be eanbled, but to avoid to call scfw API in driver, we need
to refine the tree of power domain, define the DMA channel's power domain
as audio device's parent.

And same requirement for DSP, the MU and DSP_RAM is required by DSP driver.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-08-10 10:51:57 +08:00
cbd61548b5 MLK-18245-1: ASoC: fsl_dsp: remove the explicit power enablement
The driver don't need to explicit enable the power domain, which
can be done by runtime power management, when the power domain tree
defined in device tree.
in this case, the MU initialization can be moved to runtime pm function.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
2018-08-10 10:51:57 +08:00
7815aa99d3 MLK-18247 clk: imx: add more pll frequency setting in clock rate table
Add 1GHz, 800MHz, 700MHz, 600MHz pll clock rate setting in the pll
clock calculation table of imx8mm. These frequency point are needed
by VPU and GPU driver.

Signed-off-by: Bai Ping <ping.bai@nxp.com>
Reviewed-by: Anson Huang <Anson.Huang@nxp.com>
2018-08-10 10:51:57 +08:00
05aa127219 MLK-18241-3: ARM64: dts: freescale: imx8qm: add edma channel power domain for LPUART
Add edma channel power domain for LPUART to make sure the specific
edma channel power up in dma mode.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
2018-08-10 10:51:57 +08:00
403b2eb810 MLK-18241-2: ARM64: dts: freescale: imx8qxp: add edma channel power domain for LPUART
Add edma channel power domain for LPUART to make sure the specific
edma channel power up in dma mode.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
2018-08-10 10:51:56 +08:00
4927e385f6 MLK-18241-1 ARM64: dts: freescale: imx8qxp: correct edma index
Correct edma index for imx8qxp to mach the right rsrc id of scfw.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
2018-08-10 10:51:56 +08:00
37547da9bb MLK-18229-4 gpu: imx: dpu: fetchwarp: Cosmetic changes on fw_ops entries
This patch contains cosmetic changes on fw_ops entries to make the
entries be more readable.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-08-10 10:51:56 +08:00
ab6e63e075 MLK-18229-3 gpu: imx: dpu: fetchdlayer: Cosmetic changes on fl_ops entries
This patch contains cosmetic changes on fl_ops entries to make the
entries be more readable.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-08-10 10:51:56 +08:00
c0f233ac51 MLK-18229-2 gpu: imx: dpu: fetcheco: Cosmetic changes on fe_ops entries
This patch contains cosmetic changes on fe_ops entries to make the
entries be more readable.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-08-10 10:51:56 +08:00
e7f9e27dfb MLK-18229-1 gpu: imx: dpu: fetchdecode: Cosmetic changes on fd_ops entries
This patch contains cosmetic changes on fd_ops entries to make the
entries be more readable.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-08-10 10:51:56 +08:00
bab4236884 MLK-18207 gpu: imx: framegen: Remove redundant pll and display clk rate get
We get pll and display clock rates twice in framegen_cfg_videomode().
This patch removes the redundant code so that the rates are got once.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-08-10 10:51:56 +08:00
70e26962a5 MLK-18211 gpu: imx: layerblend: Zero sec alpha when sec input is from scaler
It turns out that local alpha value of the secondary input is set to
0xFF by the hardware if the secondary input is from scaler(hscaler or
vscaler).  This makes the layer on this secondary input accidentally
cover the layer with higher z-order(if it exists), even though the
layer with lower z-order doesn't supply local alpha.  This patch zeros
the secondary local alpha value to prevent the issue from happening.
Users are unlikely to expect local alpha to be correctly scaled, so
it looks fine to simply zero the alpha.  If we find the unlikely case,
the KMS driver may later explicitly do atomic check to invalidate the case.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
2018-08-10 10:51:56 +08:00
540bbd0580 MLK-18240: arm64: dts: change the i.MX8QXPB0 NAND iomux settings
Set the corrrect NAND IOMXU for i.MX8QXPB0.

Signed-off-by: Han Xu <han.xu@nxp.com>
2018-08-10 10:51:56 +08:00
079f08975f MLK-18238 ARM64: dts: imx8qm: add pd for rpmsg to avoid crash
Add pd for rpmsg to avoid crash, after enable
xrdc blocking.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
2018-08-10 10:51:55 +08:00
339febc462 MLK-18210 ARM64: dts: imx8qm: correct the pds of pcie
HSIO MSIC/GPIO are powered by the pd_hsio_gpio domain.
Use the pd_hsio_gpio as the parent pd of the imx8 hsio to
make sure that the pd_hsio_gpio domain would be tuend on
when enable HSIO module.
BTW, PHY calibration of the PHYX2_1/PHYX1 is relied on the
results of the PHYX2_0.
So, all the HSIO PDs should be turned on when use PCIe
or SATA.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
2018-08-10 10:51:55 +08:00
5223a2561a MLK-18237-3 XRDC: JPEG ENC/DEC fix crash missed power resource
[    5.184399] Unhandled fault: synchronous external abort (0x96000210) at 0xffff00000b000000
[    5.184824] (null): mxc_isi_capture_open, No remote pad found!
[    5.187470] (null): mxc_isi_capture_open, No remote pad found!
[    5.192734] (null): mxc_isi_capture_open, No remote pad found!
[    5.199931] (null): mxc_isi_capture_open, No remote pad found!
[    5.219447] Internal error: : 96000210 [#1] PREEMPT SMP
[    5.224681] Modules linked in:
[    5.227755] CPU: 2 PID: 3028 Comm: v4l_id Not tainted 4.9.88-04903-ga209cd8 #464
[    5.235162] Hardware name: Freescale i.MX8QXP MEK (DT)
[    5.240305] task: ffff80083411cb00 task.stack: ffff80083b7ac000
[    5.246254] PC is at clk_gate2_scu_enable+0x3c/0xa8

Signed-off-by: Frank Li <Frank.Li@nxp.com>
2018-08-10 10:51:55 +08:00
d7dcf6d9bc MLK-18237-2 XRDC: DSP: add mu power resource to avoid crash
[    2.300213] Unhandled fault: synchronous external abort (0x96000210) at 0xffff000014dd0000
[    2.308584] Internal error: : 96000210 [#1] PREEMPT SMP
[    2.313813] Modules linked in:
[    2.316875] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.88-04903-ga209cd8 #464
[    2.324271] Hardware name: Freescale i.MX8QXP MEK (DT)
[    2.329407] task: ffff80083a088000 task.stack: ffff80083a034000
[    2.335329] PC is at MU_Init+0x0/0x38
[    2.338994] LR is at dsp_mu_init+0xb8/0x140

Signed-off-by: Frank Li <Frank.Li@nxp.com>
2018-08-10 10:51:55 +08:00
cb564c0cdb MLK-18237 XRDC: rpmsg: add power domain to avoid crash
[    0.737561] Unhandled fault: synchronous external abort (0x96000210) at 0xffff00000c160000
[    0.745503] Internal error: : 96000210 [#1] PREEMPT SMP
[    0.750695] Modules linked in:
[    0.753739] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.9.88-04903-ga209cd8 #464
[    0.761118] Hardware name: Freescale i.MX8QXP MEK (DT)
[    0.766246] task: ffff80083a088000 task.stack: ffff80083a034000
[    0.772160] PC is at MU_Init+0x0/0x38
[    0.775805] LR is at imx_rpmsg_probe+0x22c/0x510

Signed-off-by: Frank Li <Frank.Li@nxp.com>
2018-08-10 10:51:55 +08:00
4038f64d81 MLK-17893 drm: imx: hdp: Adjust HDMI Vswing
The HDMI voltage swing needs to be increased for HDMI compliance.

Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
2018-08-10 10:51:55 +08:00
27df6cfc6f MLK-18195 gpu: imx: dpu: framegen: Correct PLL rate to get proper pclk rate
This patch corrects pixel clock PLL rate calculation.

Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
2018-08-10 10:51:55 +08:00
505f63a8d0 MLK-18222: CI_PI: fix CI_PI lost half of frame issue
As IC team recommended, it is better to set vsync pulse
width as 2 lines pixels, otherwise ISI will lost half
of frames.

Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
Reviewed-by: Sandor.Yu <sandor.yu@nxp.com>
2018-08-10 10:51:54 +08:00
cc33b5864e MLK-18224-2 ARM64: dts: freescale: imx8qxp: update MU IRQ number
MU IRQ number is incorrect, update it.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-08-10 10:51:54 +08:00
ae78cb26a6 MLK-18224-1 ARM64: dts: freescale: imx8qm: update MU IRQ number
MU IRQ number is incorrect, update it.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-08-10 10:51:54 +08:00
1a8de622e2 MLK-18205-16 ARM64: dts: freescale: imx8mm: add cpu-freq support
Add i.MX8MM OPP table to support cpu-freq.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-08-10 10:51:54 +08:00
3767d43b05 MLK-18205-15 soc: imx: enable cpu-freq for i.MX8MM
Enable cpu-freq driver for i.MX8MM.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-08-10 10:51:54 +08:00
095fae41f0 MLK-18205-14 cpufreq: imx8mq: add pmic voltage scaling support
i.MX8MM shares same cpu-freq driver with i.MX8MQ, but
its EVK board has a PMIC which can scale VDD_ARM voltage
according to voltage defined in dtb, add support for it.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-08-10 10:51:54 +08:00
0b192252bd MLK-18205-13 ARM64: dts: freescale: imx8mm-evk: add ROHM BD71837 PMIC support
Add ROHM BD71837 PMIC support for i.MX8MM EVK board.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-08-10 10:51:54 +08:00
06e7c6eb18 MLK-18205-12 ARM64: defconfig: enable i.MX8MM by default
Enable i.MX8MM SoC by default.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-08-10 10:51:54 +08:00
8d6b8aeabf MLK-18205-11 arm64: Kconfig: add i.MX8MM support
Add i.MX8MM SoC support.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-08-10 10:51:54 +08:00
da389b9c54 MLK-18205-10 ARM64: defconfig: select BD71837 PMIC by default
Enable BD71837 PMIC by default.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-08-10 10:51:54 +08:00
64e10753e2 MLK-18205-9 Support BD71837 PMIC chip on i.MX platforms
Signed-off-by: Haoran.Wang <elven.wang@nxp.com>
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
(cherry picked from commit 37f67d291e74a3428310cb5c98f556411042f810)
2018-08-10 10:51:53 +08:00
b73d52f9df MLK-18205-8 ARM64: dts: freescale: imx8mm: add cpu-idle support
Add i.MX8MM cpu-idle support, level #1 is wfi,
level #2 is ARM power gated.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-08-10 10:51:53 +08:00
f5cfa8bb0c MLK-18205-7 soc: imx: add i.MX8MM SoC driver support
Add i.MX8MM SoC ID driver support.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-08-10 10:51:53 +08:00
bf043216d9 MLK-18205-6 soc: imx: add i.MX8MM support
Add i.MX8MM SoC support.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-08-10 10:51:53 +08:00
cd90411939 MLK-18205-5 clk: imx: add i.MX8MM clock driver support
Add i.MX8MM clock driver support.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-08-10 10:51:53 +08:00
a909077b8f MLK-18205-4 pinctrl: freescale: add i.MX8MM pinctrl driver support
Add i.MX8MM pinctrl driver support.

Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-08-10 10:51:53 +08:00
543708663d MLK-18205-3 ARM64: dts: freescale: add i.MX8MM dtb
Add i.MX8MM dtsi and evk dtb support.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
Signed-off-by: Viorel Suman <viorel.suman@nxp.com>
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Fancy Fang <chen.fang@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Signed-off-by: Li Jun <jun.li@nxp.com>
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-08-10 10:51:52 +08:00
078efc71d7 MLK-18205-2 dt-bindings: clock: add i.MX8MM clock header
Add i.MX8MM clock definition.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Bai Ping <ping.bai@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
2018-08-10 10:51:52 +08:00