Commit Graph

1234691 Commits

Author SHA1 Message Date
Guangliu Ding
6ed0fd23b8 LF-13727 [#ccc] fix Bytes alignment issue of gpu video memory node
Meet split failure of video memory node when running gfxbench gles for
a long time on 8QXP, leading to GPU dump.
Move Bytes alignment to ensure to find a video memory node with
sufficient memory to avoid split failure.

Signed-off-by: Guangliu Ding <guangliu.ding@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-10-17 15:08:39 +08:00
Luke Wang
8555a7698a LF-15511: arm64: dts: imx8mq: set NAND_USDHC_BUS_CLK_ROOT source clock to SYSTEM_PLL1_DIV6
When do system suspend/resume test, uSDHC may meet timeout during eMMC
initialization. This is caused by the uSDHC AHB_BUS and IPG_CLK being
out of sync.

ERR011232 requires that uSDHC AHB_BUS and IPG_CLK must be synchronized.
Need to ensure uSDHC AHB_BUS and IPG_CLK come form same clock source to
maintain clock sync.

Signed-off-by: Luke Wang <ziniu.wang_1@nxp.com>
Reviewed-by: Haibo Chen <haibo.chen@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-10-13 17:44:50 +08:00
Liu Ying
c1943c45a4 drm/bridge: lontium-lt8912b: Validate mode in drm_bridge_funcs::mode_valid()
If the bridge is attached with the DRM_BRIDGE_ATTACH_NO_CONNECTOR flag set,
this driver won't initialize a connector and hence display mode won't be
validated in drm_connector_helper_funcs::mode_valid().  So, move the mode
validation from drm_connector_helper_funcs::mode_valid() to
drm_bridge_funcs::mode_valid(), because the mode validation is always done
for the bridge.

Fixes: 30e2ae943c ("drm/bridge: Introduce LT8912B DSI to HDMI bridge")
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Reviewed-by: Robert Foss <rfoss@kernel.org>
Signed-off-by: Robert Foss <rfoss@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20240813091637.1054586-1-victor.liu@nxp.com
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-09-30 10:44:28 +08:00
Oliver F. Brown
fd990e4c79 LF-14666-2: drm/bridge: synopsys: dw-mipi-dsi: Implement fixup for 720p60
The Synopsys driver needs a mode fixup to support 720p60 for some bridges.
This patch add support to honor the MIPI_DSI_MODE_VIDEO_NO_HFP and
MIPI_DSI_MODE_VIDEO_NO_HBP MIPI DSI mode flags for MIPI sync events mode.
The default behavior for MIPI DSI low power mode with sync pulses is
unchanged.

Also, a timing fixup is implemented to force low power mode for the
horizontal front porch (HFP) for 720p60 with 4 lanes at 24 bit per pixel.
In this mode, the MIPI line has to be rounded up by 2 bytes. This
rounding causes timing errors and corrupts the video for 720p60. By
reducing the horizontal back porch (HBP) by 32 pixels, the Synopsys MIPI
DSI controller will use low power mode for the HFP. By using low power mode
in the HFP the DSI host controller will resynchronize the line timing to
the DPI interface.

Signed-off-by: Oliver F. Brown <oliver.brown@oss.nxp.com>
Acked-by: Liu Ying <victor.liu@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-09-30 10:44:27 +08:00
Oliver F. Brown
5db3522142 LF-14666-1: drm/bridge: lontium-lt8912b: Add mode flag for MIPI_DSI_MODE_NO_HFP
The Lontium 8912b needs the MIPI_DSI_MODE_NO_HFP flag set to work for
720p60. When 720p60 is transmitted over 4 lanes with 24 bit per pixel,
the MIPI line has to be rounded up by 2 bytes. This rounding will cause
timing errors and corrupt the video for 720p60. By using low power mode
in the horizontal front porch the DSI host controller will resynchronize
the line timing to the DPI interface.

Signed-off-by: Oliver F. Brown <oliver.brown@oss.nxp.com>
Acked-by: Liu Ying <victor.liu@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-09-30 10:44:27 +08:00
Zhou Peng
90192c5d29 LF-15731: mxc: vpu: wave6: no copyright in one header file
Add copyright for file 'drivers/mxc/vpu/wave6/wave6-trace.h'

Signed-off-by: Zhou Peng <eagle.zhou@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-07-08 20:00:06 +08:00
Pankaj Gupta
1ed1a4c7d1 LF-15735: drivers: crypto: caam: fix mx8ulp caam probe
Fixes a bug in the CAAM probe on i.MX8ULP.

Due to the change of device-tree node name of secure-enclave,
was not updated in CAAM driver.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2025-07-01 22:01:29 +05:30
Richard Zhu
4ca54a8f6c LF-15136 PCI: imx6: Force CLKREQ override active low for i.MX95 PCIe
Force CLKREQ# override active low for i.MX95 B0 PCIe if the supports-clkreq
is not present.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-06-27 15:57:13 +08:00
Richard Zhu
2a072ac6cd LF-14084 arm64: dts: imx95-15x15-evk: Keep m2 regulator always on
To avoid the mis-trigger from the wakeup sources on M.2 port when
system enters into suspend mode and M.2 regulator is gated off.
Let M.2 regulator always on.

Signed-off-by: Richard Zhu <hongxing.zhu@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-06-25 15:35:01 +08:00
Pankaj Gupta
051c87ef3c LF-14933: drivers: tee: crypto: remove limitation in buf sz
Removes the limitation for input buffer size greater than 4096.

For the input buffer is divided in to chunks of 4096 bytes, the performance
with buffer size greater than 4096, tends to remain flat or lower.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2025-06-20 11:11:51 +02:00
Rahul Kumar Yadav
d415b45bdc LF-15637: drivers: firmware: imx: se: fix ELE Get FW version API
Fix ELE Get FW version API, to get invoked only for ELE platforms.

Signed-off-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
2025-06-20 08:11:02 +02:00
Chingling Wang
91e187c982 MGS-7915 gpu: Add shader and tiler utilization
Add shader and tiler time in debugfs dvfs_utilization
so that gputop can add shader and tiler utilization in page 4.

Signed-off-by: Chingling Wang <chingling.wang@nxp.com>
Reviewed-by: Jiyu Yang <jiyu.yang@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-06-20 11:26:54 +08:00
Chingling Wang
6a6a1513df MGS-7869 gpu: use u64 for dvfs_utilization output
gputop issue u32 type will make busy_time and idle_time overflow,
which resulting crazy output in kernle debugfs dvfs_utilization output data

Signed-off-by: Chingling Wang <chingling.wang@nxp.com>
Reviewed-by: Jiyu Yang <jiyu.yang@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-06-20 11:26:54 +08:00
Jiyu Yang
451966cce4 MGS-8128 gpu: fix page-isolation/page-free race
Signed-off-by: Jiyu Yang <jiyu.yang@nxp.com>
(cherry picked from commit 425d9bee92e304ec53f53279103223915ac15bc5)
Reviewed-by: Wujian sun <wujian.sun_1@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-06-20 11:26:53 +08:00
Jiyu Yang
810d42edf3 MGS-8080 gpu: keep flushing MMU addr util no user
Change-Id: I20d207ce5125c2733f6bb6202e916e6e16904ade
Signed-off-by: Jiyu Yang <jiyu.yang@nxp.com>
(cherry picked from commit 71024e54b222ae9f08658c40f32cd84b879e2333)
Reviewed-by: Wujian sun <wujian.sun_1@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-06-20 11:26:53 +08:00
Jiyu Yang
1b7dfb97b1 MGS-8080 gpu: Unmap the USER_IO pages
Change-Id: I5b1888024550a20800359d86bfb64e5531a2aef2
(cherry picked from commit 2c8e299fef2444c9ef045094434e185113e511ff)
Signed-off-by: Jiyu Yang <jiyu.yang@nxp.com>

Reviewed-by: Wujian sun <wujian.sun_1@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-06-20 11:26:53 +08:00
Jiyu Yang
227a52dc69 MGS-8080 gpu: Unmap the USER_IO pages
Change-Id: I5016937b6ed0b266cee1e66788e8ec0a38309eb9
(cherry picked from commit 91553b26b17cd22c4537e9d0a870fd7d42b75b4a)

Signed-off-by: Jiyu Yang <jiyu.yang@nxp.com>
Reviewed-by: Wujian sun <wujian.sun_1@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-06-20 11:26:52 +08:00
Jiyu Yang
b1d8a6dd8b LF-4656-1 gpu: disable systrace by default
this was introduced in MGS-6394 imx-2620, to support trace-cmd

Signed-off-by: Jiyu Yang <jiyu.yang@nxp.com>
(cherry picked from commit 05c19f3b781dc0101275a3f5707492f66f4ee8e8)

Change-Id: Ibd70ff1c8d8efad998ca21b5c88df2fc54ed4c16
Reviewed-by: jiajia Qian <jiajia.qian@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-06-20 11:26:52 +08:00
Jiyu Yang
a3040a1a76 MGS-7751 gpu: Remove UAF during ctx termination
Remove UAF during ctx termination
Change-Id: I9fb60cae7b576c0836196dc0c64771bd0be229f9
Signed-off-by: Jiyu Yang <jiyu.yang@nxp.com>
Signed-off-by: Jessie Hao <juan.hao@nxp.com>
Reviewed-by: Xianzhong Li <xianzhong.li@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-06-20 11:26:52 +08:00
Meenakshi Aggarwal
7fcf608527 LF-14837: Unregister ELE TRNG
Issue: ELE TRNG register with hwrng and open a kthread
which remains running after suspend also and results in
random interrupts from ELE.

Fix: unregister hwrng in suspend and re-register in resume

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2025-06-11 08:05:04 +02:00
Meenakshi Aggarwal
296c64f096 LF-15348: firmware: imx: Add ioctl flag
Add ioctl flag to reset the shared memory position.

Signed-off-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Reviewed-by: Pankaj Gupta <pankaj.gupta@nxp.com>
2025-06-11 08:04:56 +02:00
Wei Fang
19ce6042dd net: phy: clear phydev->devlink when the link is deleted
There is a potential crash issue when disabling and re-enabling the
network port. When disabling the network port, phy_detach() calls
device_link_del() to remove the device link, but it does not clear
phydev->devlink, so phydev->devlink is not a NULL pointer. Then the
network port is re-enabled, but if phy_attach_direct() fails before
calling device_link_add(), the code jumps to the "error" label and
calls phy_detach(). Since phydev->devlink retains the old value from
the previous attach/detach cycle, device_link_del() uses the old value,
which accesses a NULL pointer and causes a crash. The simplified crash
log is as follows.

[   24.702421] Call trace:
[   24.704856]  device_link_put_kref+0x20/0x120
[   24.709124]  device_link_del+0x30/0x48
[   24.712864]  phy_detach+0x24/0x168
[   24.716261]  phy_attach_direct+0x168/0x3a4
[   24.720352]  phylink_fwnode_phy_connect+0xc8/0x14c
[   24.725140]  phylink_of_phy_connect+0x1c/0x34

Therefore, phydev->devlink needs to be cleared when the device link is
deleted.

Fixes: bc66fa87d4 ("net: phy: Add link between phy dev and mac dev")
Signed-off-by: Wei Fang <wei.fang@nxp.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Reviewed-by: Florian Fainelli <florian.fainelli@broadcom.com>
Link: https://patch.msgid.link/20250523083759.3741168-1-wei.fang@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-29 15:21:22 +08:00
Pankaj Gupta
51b1d708b1 LF-15144-4: dts: mx95: updated node properties
Updated node properties like:
- node-name
- compatible string.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:40:58 +08:00
Pankaj Gupta
2df35457d9 LF-15144-3: dts: mx93: updated node properties
Updated node properties like:
- node-name
- compatible string.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:40:54 +08:00
Pankaj Gupta
7c0da21907 LF-15144-2: dts: mx91: updated node properties
Updated node properties like:
- node-name
- compatible string.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:40:46 +08:00
Pankaj Gupta
c2d9443609 LF-15144-1: dts: mx8ulp: updated node properties
Updated node properties like:
- node-name
- compatible string.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:40:39 +08:00
Pankaj Gupta
a811eadb22 LF-15144: dts: i.MX8DXL, QXP: updated node properties
Updated node properties like:
- node-name
- compatible string.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:40:34 +08:00
Pankaj Gupta
be13b6c87d drivers: nvmem: imx: ports ocotp driver to updated se kernel driver.
ports ocotp driver to updated se kernel driver.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:40:30 +08:00
Pankaj Gupta
1cb1ded9c9 i.MX93: drivers: soc: imx: lpm: ports to updated se kernel driver
ports to the updated se kernel driver.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:40:22 +08:00
Pankaj Gupta
89391c3b3d LF-14885-2: drivers: firmware: imx: se: enable dual FW support
Enables dual FW support for i.MX95
- loading of runtime fw from rootfs.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:40:15 +08:00
Pankaj Gupta
8406270373 LF-14885: drivers: firmware: imx: se: add ele-get-fw-version
Adds a new API ELE_GET_FW_VERSION, to fetch the FW version and other
misc. details.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:40:10 +08:00
Pankaj Gupta
934c85903f LF-15060: drivers: firmware: imx: se: Enables support of i.MX95 rev B0
Enables the support for V2X-SG#0 & V2X-SG#1 on i.MX95 B0.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:40:06 +08:00
Pankaj Gupta
9d86c4874b LF-14029-1: drivers: firmware: imx: new api v2x debug dump
New API support is added for dumping v2x debug logs.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Reviewed-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:40:02 +08:00
Pankaj Gupta
d97abaf3e7 LF-14029: drivers: firmware: imx: v2x suspend resume
As part linux suspend resume, v2x-fw is requested to:
- power-down as part of suspend.
- power-up as part of resume.

Squash: 8fd2c1e95e24a ("TBS: drivers: firmware: imx: replace the hardcoded debugging address.")
 4a6e34427205b TBS: LF-14638: driver: firmware: imx: v2x suspend-resume snd-rcv error checking

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Reviewed-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:39:56 +08:00
Pankaj Gupta
af7dddaced LF-14060-1: drivers: firmware: imx: msg-seq flow applied
imx: Enforcing the msg-seq flow feature is applied
to change voltage API(s).

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Tested-by: Ye Li <ye.li@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:39:49 +08:00
Pankaj Gupta
9773681cdd LF-14060: drivers: firmware: imx: enforce msg-seq flow
New kernel feature to enforce the msg-seq flow:
- Once started before the first API,
- will continue for all the intermediate participating API(s),
- will halt after the last API successfully exchanged.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Tested-by: Ye Li <ye.li@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:39:39 +08:00
Pankaj Gupta
88996dad6b LF-13910-9: drivers: firmware: imx: add IOCTL for performance benchmarking
add IOCTL for performance benchmarking

Squash: 1937148af0929 ("TBS: drivers: firmware: imx: ioctl: includes header file")
Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Signed-off-by: Nikhil Singla <nikhil.singla@nxp.com>
Acked-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Acked-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Acked-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:39:31 +08:00
Pankaj Gupta
4faa6aeb8b LF-13910-8: drivers: firmware: imx: add support for i.MX8DXL/QXP/QM
add support for i.MX8DXL/QXP/QM

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Acked-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Acked-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:39:24 +08:00
Pankaj Gupta
9e7d5cc9f6 LF-13910-7: drivers: firmware: imx: add support for i.MX95 soc
add support for i.MX95 soc

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Acked-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Acked-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:39:18 +08:00
Pankaj Gupta
b47a70ecb1 LF-13910-6: drivers: firmware: imx: export se-api(s) in se_api.h
export se-api(s) in se_api.h:
- for reading/writing fuses
- for voltage control interface.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Acked-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Acked-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:39:11 +08:00
Pankaj Gupta
c44540c6a8 LF-13910-5: drivers: firmware: imx: add support for imx93 soc
Add support for imx93 soc and its platforms.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Acked-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Acked-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:39:03 +08:00
Pankaj Gupta
2c2034c656 LF-13910-4: drivers: firmware: imx: se debug dump log file
Debugging feature to enable time synchronised logging of:
- the Message exchange over MU with FW.
- IOCTL(s)
- any user articulated debug messages.

The logs are saved to a file in the linux filesystem.

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Acked-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Acked-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:38:55 +08:00
Pankaj Gupta
ad497d1c5b LF-13910-3: firmware: imx: additional changes to the upstream driver.
additional changes to the upstream driver.
- construct se_name from se_type_id and instance id
- move soc_register to info_list
- move fetch soc info function pointer to info_list
- ele soc fetch generalization
- ele debug dump

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Acked-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Acked-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:38:49 +08:00
Pankaj Gupta
9dfd27b6b2 LF-13910-2: firmware: imx: add miscdev
Add the driver for communication interface to secure-enclave,
for exchanging messages with NXP secure enclave HW IP(s) like
EdgeLock Enclave from:
- User-Space Applications via character driver.

ABI documentation for the NXP secure-enclave driver.

User-space library using this driver:
- i.MX Secure Enclave library:
  -- URL: https://github.com/nxp-imx/imx-secure-enclave.git,
- i.MX Secure Middle-Ware:
  -- URL: https://github.com/nxp-imx/imx-smw.git

Squash: <8e91220ab110> ("drivers: fw: imx: increased wait-timeout value")
Squash: <a0c004d35ef4> ("firmware:imx: Fix cleanup of SE driver")
Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Acked-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Acked-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:38:41 +08:00
Pankaj Gupta
a21e6e64e3 LF-13910-1: firmware: imx: add driver for NXP EdgeLock Enclave
NXP hardware IP(s) for secure-enclaves like Edgelock Enclave(ELE),
are embedded in the SoC to support the features like HSM, SHE & V2X,
using message based communication interface.

The secure enclave FW communicates on a dedicated messaging unit(MU)
based interface(s) with application core, where kernel is running.
It exists on specific i.MX processors. e.g. i.MX8ULP, i.MX93.

This patch adds the driver for communication interface to secure-enclave,
for exchanging messages with NXP secure enclave HW IP(s) like EdgeLock
Enclave (ELE) from Kernel-space, used by kernel management layers like
- DM-Crypt.

squash e7d2fac2d1ceb TBS: LF-14067: drivers: firmware: imx: se suspend-resume
squash c4c9b2f7cf710 TBS: drivers: firmware: imx: correct macro ELE_DEBUG_DUMP_RSP_SZ value

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Rahul Kumar Yadav <rahulkumar.yadav@nxp.com>
Acked-by: Vabhav Sharma <vabhav.sharma@nxp.com>
Acked-by: Meenakshi Aggarwal <meenakshi.aggarwal@nxp.com>
Reviewed-by: Gaurav Jain <gaurav.jain@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:38:08 +08:00
Pankaj Gupta
bdeff7cd56 LF-13910: remove base driver for secure-enclave
remove base driver for secure-enclave

Signed-off-by: Pankaj Gupta <pankaj.gupta@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-28 10:37:55 +08:00
Jason Liu
ab72b4936f Revert "LF-14286-2: mxc: vpu: wave6: remove the second parameter in __assign_str()"
This reverts commit 55c1e61714.

This commit breaks the build and no need for 6.6 kernel

Signed-off-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-20 11:01:15 +08:00
Alice Guo
f7e7a3f151 LF-15138-2 nvmem: imx-ocotp-fsb-s400: fix the bug caused by not getting the se-fw2 device
When not getting the se-fw2 device, calling read_common_fuse() or
ele_write_fuse() will result in segmentation fault because fuse->se_dev
is a NULL pointer. Check fuse->se_dev to avoid this error.

Signed-off-by: Alice Guo <alice.guo@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-12 11:27:06 +08:00
Alice Guo
41adc16f98 LF-15138-1 nvmem: imx95: update imx-ocotp-fsb-s400.c for i.MX95
This update is according to i.MX95_Fusemap_v1.13_documentation.

Signed-off-by: Alice Guo <alice.guo@nxp.com>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-12 11:27:05 +08:00
Liu Ying
d6b4952355 LF-15259 drm/imx: dpu95: Fix maximum FrameGen display clock frequency
Design team says that the frequency limitation mentioned at controller
specification is just a general guideline for the IP. The maximum frequency
depends on the process technology and SoC architecture requirement of the
SoC.  Specifically for i.MX95, the frequency of dspx_clk is signed off at
350MHz at UD/NM/OD mode.  So 350MHz is the limit of the chip, not 300MHz.

So, change maximum FrameGen display clock frequency from 300MHz to 350MHz.

Reported-by: Qiang Li <qiang.li@nxp.com>
Reviewed-by: Laurentiu Palcu <laurentiu.palcu@oss.nxp.com>
Signed-off-by: Liu Ying <victor.liu@nxp.com>
Acked-by: Jason Liu <jason.hui.liu@nxp.com>
2025-05-08 17:35:10 +08:00