Age | Commit message (Collapse) | Author |
|
With cpu-idle enabled, we observe that DSI panel display is NOT
working on i.MX8QXP MEK board, still under debugging, since cpu-idle
ONLY saves ~15mA in runtime, it is NOT valuable enough compare to
whole system, so disable it for now until everything is stable enough.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Nitin Garg <nitin.garg@nxp.com>
|
|
This patch adds cpu-idle support for i.MX8QXP, since different
platforms have different cpu-idle latency value, so move the
cpu-idle node to platform dtsi.
Add GPT as platform broadcast timer, its clock and power are
managed in TF-A.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Acked-by: Leonard Crestez <leonard.crestez@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
|
|
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>
|
|
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>
|
|
Add enet sleep mode support for imx8qm/qxp platforms.
Reviewed-by: Richard Zhu <hongxing.zhu@nxp.com>
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
|
|
imx8qxp contain one adc, so add adc0 node for imx8qxp.
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
|
|
The reserved memory for dsp is defined in dts file, however, the dsp
driver has also defined the address and size of this reserved memory,
which is repeated and inflexible.
So by cancelling the definition in dsp driver and use system API to
get the information of reserved memory from dts dynamically to fix
this problem.
Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com>
|
|
In order to enlarge the CMA easily, change the rpmsg
reserved memory region from 0xb800_0000 to 0x9000_0000.
And refine the layout of the reserved memory.
- RPMSG buffers are allocated from CMA dynamically, and have to
be accessed by M4 side. But M4 can only access the 1.5Gbytes
DDR memory from 0x8000_0000. So, the finial reserved memory
layout is just like the one below.
Thus, the largest size of the DDR memory left for CMA, is about
1212Mbytes in theory, since 32Mbytes alignment is required by
CMA allocation.
reserved-memory layout
0x8000_0000 ~ 0x83FF_FFFF A core + Linux Kernel(64M)
0x8400_0000 ~ 0x85FF_FFFF VPU encoder boot(32M)
0x8600_0000 ~ 0x87FF_FFFF VPU decoder boot(32M)
0x8800_0000 ~ 0x8FFF_FFFF M4 + RTOS(128M)
0x9000_0000 ~ 0x903F_FFFF RPMSG Vring(4M)
0x9040_0000 ~ 0x913F_FFFF VPU decoder rpc(16M)
0x9140_0000 ~ 0x923F_FFFF VPU encoder rpc(16M)
0x9240_0000 ~ 0x943F_FFFF DSP(32M)
0x9440_0000 ~ 0xDFFF_FFFF(MAX) CMA(1212M)(MAX)
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
|
|
Fixes: 7e05dcf668fc ("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>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
Correct edma index for imx8qxp to mach the right rsrc id of scfw.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
|
|
[ 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>
|
|
[ 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>
|
|
[ 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>
|
|
MU IRQ number is incorrect, update it.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
|
|
Ensure that every resource is associated with a power domain
and clocks required.
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
|
|
Add power domain information to GPIO nodes for correct power
up sequence.
Signed-off-by: Teo Hall <teo.hall@nxp.com>
|
|
Use correct MU for SCFW API calls to comply with boot
container intended usage.
Signed-off-by: Teo Hall <teo.hall@nxp.com>
|
|
In order to avoid the name problem going forward with
integration with Qcom, Qcom has their own dsp and hifi
is competitor, so the hifi name should not be used in
our code.
So use the name of dsp instead of hifi to fix this
problem.
Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com>
|
|
On QXP B0 board, prg1 can alternative connect to
dpr_channel1 and channel2. And if enable PRG0_SEL:BLIT0,
prg1 will connect to channel2, so it could
support 2-plane format tile to linear convert.
Signed-off-by: yuchou gan <yuchou.gan@nxp.com>
|
|
8QXP B0 chip already fix the PLL0 unstable issue, so change back
the usdhc clock parent to PLL0.
To track the history, refer to commit 7834eee6dfa8 ("MLK-17188-2
ARM64: dts: imx8qxp: assign usdhc clock parent").
Signed-off-by: Haibo Chen <haibo.chen@nxp.com>
|
|
The workaround is using dma general interrupt for gpt for
gpt own interrupt share same interrupt number with dma interrupt.
Remove the workaround, then correct this setting.
Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Viorel Suman <viorel.suman@nxp.com>
|
|
Change compatible name for B0 encoder and decoder in fsl-imx8qxp.dtsi
Signed-off-by: nxa13443 <chaofan.huang@nxp.com>
|
|
Add vpu decoder and encoder for imx8qxp b0 board,
decoder can support H265 H264 MPEG2 MPEG4 H263 etc
encoder can support H264
Signed-off-by: nxa13443 <chaofan.huang@nxp.com>
|
|
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)
|
|
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)
|
|
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>
|
|
The qxp B0 board gpu core clock rate is 700MHz, increase to it.
Signed-off-by: Yuchou Gan<yuchou.gan@nxp.com>
|
|
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>
|
|
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>
|
|
Some resources are being enabled without the associated resource being
powered up.
Signed-off-by: Oliver Brown <oliver.brown@nxp.com>
|
|
commit 97b8a6eed4eee19ec8a60dedfffc2f5f3d8933c5
Author: Chuck Cannon <chuck.cannon@freescale.com>
Date: Tue Feb 6 08:54:16 2018 -0600
Add unique ID API call. Required to get info needed for SECO fuse
programming. Added info command to DM.
Signed-off-by: Ranjani Vaidyanathan <Ranjani.Vaidyanathan@nxp.com>
|
|
Add the dma int for the the imx pcie ep mode for
the controllers that has the dma capability.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
|
|
Update mipi csi i2c power domain name.
Acked-by: Fugang Duan <fugang.duan@nxp.com>
Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
|
|
GPIO in MIPI CSI SS also has its related ipg clock and power
domain, add them.
Signed-off-by: Fugang Duan <fugang.duan@nxp.com>
Tested-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
|
|
Assign i.MX8QXP uSDHC clocks parent to from PLL1.
This is a workaround for i.MX8QXP usdhc, PLL0 of CONN SS is not
stable sometimes, root cause is still under investigation in
design team. Now change to source from PLL1. Due to PLL1 is
1000MHz, so EMMC HS400ES mode can only work at 166MHz, compare
to the former 198MHz, the performance has small drop, read
performance drop about 10%, write performance drop about 6%.
SD do not has this side effect.
When PLL0 unstable issue is fixed, will change back to use PLL0.
Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
Reviewed-by: Bai Ping <ping.bai@nxp.com>
Tested-by: Haibo Chen <haibo.chen@nxp.com>
|
|
The changes include: compatible, performance tuning parameters,
and delete the property which is dedicated to imx7d.
Acked-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
|
|
Because there is a level shifter between mipi csi controller
and max9286 camera sensor bridge. We need configure RESET_B
and ENABLE pins as GPIO, otherwise the bridge will not work
normally.
Reviewed-by: Sandor.Yu <sandor.yu@nxp.com>
Signed-off-by: Guoniu.Zhou <guoniu.zhou@nxp.com>
|
|
This patch adds DPR and PRG support.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
|
|
The Display Prefetch Resolve(DPR) engine is the prefetch engine of DPU.
This patch adds the DPR0/1's irq resources for DPU.
Signed-off-by: Liu Ying <victor.liu@nxp.com>
|
|
Let PM code know USB has wake system up capability.
BuildInfo:
- SCFW 245582b, IMX-MKIMAGE 0ad6069a, ATF 6bd98a3
- U-Boot 2017.03-imx_v2017.03+gfa65b0a
Acked-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
|
|
Add OTG register regions for Cadence USB3.
BuildInfo:
- SCFW 245582b, IMX-MKIMAGE 0ad6069a, ATF 6bd98a3
- U-Boot 2017.03-imx_v2017.03+gfa65b0a
Acked-by: Jun Li <jun.li@nxp.com>
Signed-off-by: Peter Chen <peter.chen@nxp.com>
|
|
Assign the clock rate for GPMI NAND on i.MX8QXP ARM2 device tree.
To keep the same clock rate after system suspend/resume, we need to set
assign a clock rate for GPMI NAND, otherwise the timing register won't
match with the clock setting.
The code change also a workaround for SCU clock rate setting. NAND use a
very low clock freq (22Mhz) and safe timing to identify which chips were
connected. This low freq divide from high freq parent clock(1Ghz) caused
the SCU clock divider go beyond the limit (31)
SCU need to implement the clk_round_rate to found this issue and return
error value to upper layer. Right now assign 50Mhz for GPMI initial
clock as a workaround.
Signed-off-by: Han Xu <han.xu@nxp.com>
|
|
Enable MU as wakeup source in dts.
Signed-off-by: Robin Gong <yibin.gong@nxp.com>
|
|
- Add the clk_req property for imx8 pcie, make sure that
the clk_req would be active.
- Correct the spell mistake of pcie pinctrl on imx8qxp.
- Fix the potential conflication with the usage of SC MU,
remove the useless "fsl,imx8-mu" of rpmsg.
Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
|
|
Now, the NWL MIPI-DSI driver is implemented as a real bridge and uses
the "nwl,mipi-dsi" compatible.
This patch updates the mipi-dsi nodes to comply with the new design of
NWL and NWL_IMX drivers.
Signed-off-by: Robert Chiras <robert.chiras@nxp.com>
|
|
- 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>
|