Commit Graph

1318669 Commits

Author SHA1 Message Date
Laurentiu Palcu
e082d97a59 LF-14601-11 arm64: dts: imx943-evk: add DT overlay for IT6263
IT6263 is a LVDS to HDMI adapter. Add a DT overlay for it.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Acked-by: Liu Ying <victor.liu@nxp.com>
2025-02-25 12:27:59 +02:00
Laurentiu Palcu
09c5e4129f LF-14601-10 arm64: dts: imx943-evk: add support for DCIF and LVDS
Add DT nodes for DCIF and LVDS in imx943.dtsi.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Acked-by: Liu Ying <victor.liu@nxp.com>
2025-02-25 12:27:59 +02:00
Sandor Yu
d5c9cab6d2 LF-14601-9 gpu: drm: imx: add support for i.MX943 DCIF
This patch adds support for the i.MX943 Display Control Interface.

Signed-off-by: Sandor Yu <sandor.yu@nxp.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Acked-by: Liu Ying <victor.liu@nxp.com>
2025-02-25 12:27:59 +02:00
Laurentiu Palcu
fb5e7c6caa LF-14601-8 drm/bridge: fsl-ldb: Add support for i.MX94
Since i.MX94 series LDB controller is compatible, add support for it.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Acked-by: Liu Ying <victor.liu@nxp.com>
2025-02-25 12:27:59 +02:00
Liu Ying
be6ae6ebc0 LF-14601-7 drm/bridge: fsl-ldb: Get the next non-panel bridge
The next bridge in bridge chain could be a panel bridge or a non-panel
bridge.  Use devm_drm_of_get_bridge() to replace the combination
function calls of of_drm_find_panel() and devm_drm_panel_bridge_add()
to get either a panel bridge or a non-panel bridge, instead of getting
a panel bridge only.

Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Reviewed-by: Liu Ying <victor.liu@nxp.com>
2025-02-25 12:27:59 +02:00
Laurentiu Palcu
2fcca1f53c LF-14601-6 dt-bindings: display: fsl,ldb: Add binding for i.MX94
i.MX94 LDB controller is compatible with i.MX93.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
Reviewed-by: Liu Ying <victor.liu@nxp.com>
2025-02-25 12:27:59 +02:00
Laurentiu Palcu
a9263740c0 LF-14601-5 dt-bindings: display: imx: add bindings for i.MX943 DCIF
DCIF is the i.MX943 Display Controller Interface which is used to
drive a TFT LCD panel or connects to a display interface depending
on the chip configuration.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
Reviewed-by: Liu Ying <victor.liu@nxp.com>
2025-02-25 12:27:59 +02:00
Sandor Yu
c00facd1ea LF-14601-4 clk: imx95-blk-ctrl: Add clock for i.MX94 BLK CTL display CSR
i.MX94 BLK CTL display CSR's DISPLAY_ENGINES_CLOCK_CONTROL register
controls the selection of the clock feeding the display engine. Add the
clock gate support.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
2025-02-25 12:27:59 +02:00
Sandor Yu
2d7e57a2f5 LF-14601-3 clk: imx95-blk-ctrl: Add clock for i.MX94 BLK CTL LVDS CSR
i.MX94 BLK CTL LVDS CSR's LVDS_PHY_CLOCK_CONTRL register controls the
clock gating logic of LVDS units. Add the clock gate support.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
2025-02-25 12:27:58 +02:00
Laurentiu Palcu
3e4a5f8ecc LF-14601-2 dt-bindings: clocks: Add i.MX94 bindings
Add i.MX94 bindings for BLK CTL display and LVDS CSRs.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
2025-02-25 12:27:58 +02:00
Sandor Yu
1b9137d79b LF-14601-1 clk: imx95-blk-ctrl: rename lvds and displaymix csr blk
Rename imx95 lvds and displaymix csr blk variables in order to add
support for imx943.

Signed-off-by: Sandor Yu <Sandor.yu@nxp.com>
Signed-off-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
2025-02-25 12:27:58 +02:00
Jacky Bai
4092be6453 LF-14737 clk: scmi: skip duty cycle ops for imx9
No duty cycle support for clocks of i.MX94, too many
warning log print about duty cycle. Skip registering
the duty cycle ops if config_oem_get return err.

Signed-off-by: Jacky Bai <ping.bai@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
2025-02-25 17:12:47 +08:00
Clark Wang
30d209586e LF-14570-3 arm64: dts: imx94: add nvmem nodes for enetc ports
Add nvmem nodes for 4 enetc ports to support fuse read when no mac
address provided from uboot.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Alice Guo <alice.guo@nxp.com>
2025-02-25 16:15:58 +08:00
Clark Wang
19a261a772 LF-14570-2 nvmem: imx94: handle the case when the fuse is empty
If the mac base address read from the fuse is empty, it is necessary to
return empty address directly.
In this way, the subsequent processing in the net driver can use a
random mac address instead of adding pf_mac_offset to the empty address.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Alice Guo <alice.guo@nxp.com>
2025-02-25 16:15:58 +08:00
Clark Wang
07091a4bbe LF-14570-1 nvmem: imx94: add the support to return the mac addr of PFs
i.MX94 uses 11 mac addresses, but only saves one mac base address in
fuse. The others PF mac addresses need to be calculated through offsets.

According to the ocotp framework, adding the PF offset to bits 15~12 of
offset.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Alice Guo <alice.guo@nxp.com>
2025-02-25 16:15:58 +08:00
Joy Zou
c5eccb458a LF-14557 dmaengine: fsl-edma: modify the channel parameter config method
For example, the audio micfil uses AHB edma channel6 on imx95. In order to
find the channel6 matched, need to traverse channel0-5. In this process,
the channel0-5 parameter are modified if the channel0-5 isn't requested.
If test memcpy on channel0-5 using dmatest, it can fail. Because the
channel parameter config is wrong.

This issue only impact edma memcpy test when the channel is fixed.

This patch configs the request channel only if have found the channel.

Signed-off-by: Joy Zou <joy.zou@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
2025-02-25 16:00:15 +08:00
alice.guo
73fe1d4ef6 LF-14387-2 arm64: dts: imx94: add fuse device node
This patch is used to add fuse device node to imx94.dtsi.

Signed-off-by: Alice Guo <alice.guo@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
2025-02-25 15:11:39 +08:00
alice.guo
bd3cf44108 LF-14387-1 nvmem: imx94: add the ocotp fuse box driver for i.MX94
This patch is used to add the support of the ocotp fuse box driver for
i.MX94. Reading the fuse 59 and Writing fuses use baseline commands
supported by EdgeLock Secure Enclave.

Signed-off-by: Alice Guo <alice.guo@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
2025-02-25 15:10:39 +08:00
Pankaj Gupta
2ef14a8f60 LF-14326: driver: firmware: imx: fix v2x suspend resume
Fix to restart the V2X IP successfully, post Linux suspend-resume.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
2025-02-25 06:02:42 +01:00
Pankaj Gupta
ae383ac1b9 LF-14326: driver: firmware: imx: fix se fw dbg dump
Secure enclave debug FW dumps are fixed on ELE and V2X:
- Different start log buffer with pre-pending different fixed
  buffer between ELE-FW-dumps and V2X-FW-dumps.
- Enable ELE FW dumps.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
2025-02-25 06:02:42 +01:00
Meenakshi Aggarwal
d50c2960ae drivers: mailbox: imx: Add support for i.MX943
Add support for i.MX943 mailbox

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2025-02-25 06:02:42 +01:00
Meenakshi Aggarwal
4c871c3106 firmware: imx: Add support for i.MX943
Add support for i.MX943

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2025-02-25 06:02:42 +01:00
Meenakshi Aggarwal
9f1bb7efea arm64: dts: imx943: Enable support of ELE and V2X MUs
Enable support of ELE and V2X MUs

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
2025-02-25 06:02:42 +01:00
Meenakshi Aggarwal
a94081fa62 drivers: firmware: imx: Update get info API
Update GET INFO API as per latest changes.

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2025-02-25 06:02:41 +01:00
Shengjiu Wang
d7252aa5a1 LF-14589-6: arm64: dts: imx943: add imx943-evk-rpmsg dts for LPA
Add a DT to support low power audio on i.MX943.

EDMA1 is used by M core, disable related devices.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Reviewed-by: Chancel Liu <chancel.liu@nxp.com>
2025-02-20 18:40:07 +08:00
Wei Fang
517ac22790 LF-14653 net: enetc: correct the return value of enetc_ppm_get_reglen()
enetc_ppm_get_reglen() should return len instead of 0, so fix this
error.

Fixes: ec1531aa40 ("LF-14261-4 net: enetc: add basic support for Pseudo MAC ENETC")
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Clark Wang <xiaoning.wang@nxp.com>
2025-02-20 17:05:44 +08:00
Wei Fang
95b9daf176 LF-14652-4 net: enetc: remove unused msg in enetc_msg_pf_flush_vf_vlan_entries()
The variable msg set but unused in enetc_msg_pf_flush_vf_vlan_entries(),
so remove it.

Fixes: 93eab37d25 ("LF-11845-1 net: enetc: convert mailbox messages to new formats")
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Clark Wang <xiaoning.wang@nxp.com>
2025-02-20 17:05:41 +08:00
Wei Fang
59f9d37f81 LF-14652-3 net: enetc: fix incorrect type in assignment
The Sparse reports some warnings about incorrect type in assignment are
as follows.

netc_tc_lib.c:455:40: sparse: warning: incorrect type in assignment (different base types)
netc_tc_lib.c:455:40: sparse:    expected restricted __le32 [usertype] admin_sgcl_eid
netc_tc_lib.c:455:40: sparse:    got unsigned int

netc_debugfs_lib.c:85:20: sparse: warning: cast to restricted __le32
netc_debugfs_lib.c:85:20: sparse: warning: restricted __le32 degrades to integer
netc_debugfs_lib.c:85:20: sparse: warning: restricted __le32 degrades to integer
netc_debugfs_lib.c:86:20: sparse: warning: cast to restricted __le32
netc_debugfs_lib.c:86:20: sparse: warning: restricted __le32 degrades to integer
netc_debugfs_lib.c:86:20: sparse: warning: restricted __le32 degrades to integer
netc_debugfs_lib.c:148:37: sparse: warning: cast to restricted __le32
netc_debugfs_lib.c:148:37: sparse: warning: cast from restricted __le16

So fix these warnings.

Fixes: d7cf1818fa ("LF-14261-12 net: enetc: refine NTMP driver for upstream")
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Clark Wang <xiaoning.wang@nxp.com>
2025-02-20 17:05:37 +08:00
Wei Fang
aae692858e LF-14652-2 net: enetc: fix the warning Initializer entry defined twice
The Sparse reports the following warning:

netc_blk_ctrl.c:744:10: sparse: warning: Initializer entry defined twice
netc_blk_ctrl.c:750:10: sparse:   also defined here

So fix this warning.

Fixes: 58fd162d40 ("LF-11880-2 net: enetc: Add power off suspend/resume and WOL supports")
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Clark Wang <xiaoning.wang@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
2025-02-20 17:05:34 +08:00
Wei Fang
88a75b9621 LF-14652-1 net: enetc: remove unused pf variable
The pf wasn't used in enetc4_pf_suspend() and enetc4_pf_resume(), so
remove it from these two functions.

Fixes: 58fd162d40 ("LF-11880-2 net: enetc: Add power off suspend/resume and WOL supports")
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Clark Wang <xiaoning.wang@nxp.com>
2025-02-20 17:05:30 +08:00
Joy Zou
29bb7b4216 LF-14636-2 dmaengine: fsl-edma: add the ACP edma support
The ACP edma can improve the data transmission performance. At present,
it only support memory to memory on imx94 and imx95.

The ACP supports 16/64-byte INCR read/write transaction according to
the Arm DynamIQ Shared Unit document.

Signed-off-by: Joy Zou <joy.zou@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
2025-02-19 10:48:42 +08:00
Joy Zou
b19ac48f0a LF-14636-1 arm64: dts: imx94: add dma-coherent property for the ACP edma
Add dma-coherent property and enable the ACP edma.

Signed-off-by: Joy Zou <joy.zou@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
2025-02-19 10:48:21 +08:00
Joy Zou
ed0c72a32b LF-14635 arm64: dts: imx94: add thermal support
Add A55 thermal support.

Signed-off-by: Joy Zou <joy.zou@nxp.com>
Reviewed-by: Jacky Bai <ping.bai@nxp.com>
2025-02-18 17:09:35 +08:00
Sherry Sun
5baee4821d LF-14651-2 arm64: dts: imx943-evk-sdwifi: add a new dts to support SDIW612 WiFi
Add a new imx943-evk-sdwifi.dts to support SDIW612 WiFi chip on
imx943-evk board, the default imx943-evk.dtb is used to support PCIE
WiFi.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
2025-02-18 15:45:43 +08:00
Sherry Sun
9cb5679f44 LF-14651-1 arm64: dts: imx943-evk: enable lpuart6 for Bluetooth
Enable lpuart6 for Bluetooth support.

Signed-off-by: Sherry Sun <sherry.sun@nxp.com>
Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
2025-02-18 15:45:38 +08:00
Richard Zhu
7f1b546390 LF-14603-6 PCI: imx6: Add external reference clock mode support
Some i.MX PCIes might work in the external reference clock mode.
Add this mode support.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
2025-02-18 10:08:48 +08:00
Richard Zhu
b49832ba4e LF-14603-5 arm64: dts: Add i.MX943 PCIe1 EP mode support on EVK board
Add i.MX943 PCIe1 EP mode support on EVK board.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
2025-02-18 10:08:43 +08:00
Richard Zhu
f4044a2901 LF-14603-4 arm64: dts: imx943-evk: Add pcie[0,1] and pcie1_ep supports
Add pcie[0,1], pcie1_ep and all dependent nodes on i.MX943-evk board.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
2025-02-18 10:08:38 +08:00
Richard Zhu
5dc2c23fef LF-14603-3 arm64: dts: imx943: Add pcie1 and pcie1-ep supports
Add pcie1 and pcie1-ep supports on i.MX943.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
2025-02-18 10:08:34 +08:00
Richard Zhu
74dd91d95b LF-14603-2 arm64: dts: imx94: Add pcie0 and pcie0-ep supports
Add pcie0 and pcie0-ep supports on i.MX94.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
2025-02-18 10:08:29 +08:00
Richard Zhu
be6fe51dca LF-14603-1 dt-binding: pci-imx6: Add external ref clock support
On i.MX9, the PCIe reference clock might come from either internal
system PLL or external clock source.
Add the external reference clock source for ref clock.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Frank Li <frank.li@nxp.com>
2025-02-18 10:08:06 +08:00
Guoniu Zhou
8703944296 LF-14587-12: MAINTAINERS.NXP: Update since new binding doc added for PXP
Update MAINTAINERS.NXP file since new binding doc added for PXP.

Signed-off-by: Guoniu Zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
2025-02-17 18:30:32 +08:00
Guoniu Zhou
9c4403f1b8 LF-14587-11: dt-bindings: dma: Add binding doc for Freescale Pixel Processing Pipeline
Add binding doc for Freescale Pipeline Processing Processing (PXP).

Signed-off-by: Guoniu Zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
2025-02-17 18:30:32 +08:00
Guoniu Zhou
2fc6b2b594 LF-14587-10: dma: pxp_dma_v3: Remove code about parsing pxp,gpr property
Remove code about parsing pxp,gpr property since unused.

Signed-off-by: Guoniu Zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
2025-02-17 18:30:32 +08:00
Guoniu Zhou
983f974bf8 LF-14587-09: arm64: imx93.dtsi: Remove pxp,gpr property in i.MX93 PXP node
Remove pxp,gpr property in i.MX93 PXP node since unused.

Signed-off-by: Guoniu Zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
2025-02-17 18:30:32 +08:00
Guoniu Zhou
e04325b02c LF-14587-08: dma: pxp_dma_v3: Improve PXP performance for secondary path
When i.MX94 PXP secondary path work in block mode, it can support
32x32 block size. If work in scan mode, it can support 128 bytes
burst length. After enable these functions, blit operation work
in scan mode can improve 250 percent.

Signed-off-by: Guoniu Zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
2025-02-17 18:30:32 +08:00
Guoniu Zhou
9958abe585 LF-14587-07: dma: pxp_dma_v3: Enable block size 32x32 for primary path
Enable block size 32x32 added in i.MX94 PXP version for primary
path. After enabling the feature, PXP performance will improve
about 62 percent.

Signed-off-by: Guoniu Zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
2025-02-17 18:30:32 +08:00
Guoniu Zhou
f79d8fc6b6 LF-14587-06: dma: pxp_dma_v3: Add new formats for i.MX94 PXP
The new formats are added in i.MX94 PXP primary path.

Signed-off-by: Guoniu Zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
2025-02-17 18:30:32 +08:00
Guoniu Zhou
a981bbbce6 LF-14587-05: dma: pxp_dma_v3: Refine format organization for primary path
With this change, PS/AS/OUT engine will share the same format
info and can fix incompatible issue with legacy PXP platform
since new RGB with alpha component formats are added in i.MX94
PXP version.

Signed-off-by: Guoniu Zhou <guoniu.zhou@nxp.com>
Reviewed-by: Robby Cai <robby.cai@nxp.com>
2025-02-17 18:30:32 +08:00
Guoniu Zhou
e2d000ec40 LF-14587-04: dma: pxp_dma_v3: Dump more PXP registers
Dump more PXP registers according to PXP version.

Signed-off-by: Guoniu Zhou <guoniu.zhou@nxp.com>
2025-02-17 18:30:32 +08:00