[PATCH 0/8] media: imx-mipi-csis: Cleanups and debugging improvements
Laurent Pinchart
laurent.pinchart at ideasonboard.com
Sun Jun 8 16:58:32 PDT 2025
Hello,
This patch series bring a few miscellaneous improvements to the
imx-mipi-csis driver, and in particular improves the debugging
infrastructure.
Patch 1/8 starts by aligning the code with the reference manual for
register field names, increasing readability of the driver when read
alongside the hardware documentation. Patch 2/8 then fixes a small
alignment issue in register dumps. Patch 3/8 logs per-lane start of
transmission error instead of supporting the first data lane only,
easing debugging of D-PHY issues.
The next two patches deprecate the clock-frequency DT property, which
shouldn't have been added in the first place. Patch 4/8 improves
handling of the clock frequency in the driver, and patch 5/8 deprecates
the property in the DT bindings. The driver still supports the property
to ensure backward compatibility.
The last three patches introduce support for multiple output channels
and wire it up in the debugging infrastructure. The CSIS IP core
supports up to 4 output channels, with the number of instantiated
channels being a property of the SoC integration. So far, only the
i.MX8MP is known to have multiple output channels. Patch 6/8 adds a
corresponding DT property, and patch 7/8 sets it in the i.MX8MP DT.
Patch 8/8 then adds initial support for that property in the driver, and
uses it to dump per-channel registers and event counters.
Laurent Pinchart (8):
media: imx-mipi-csis: Rename register macros to match reference manual
media: imx-mipi-csis: Fix field alignment in register dump
media: imx-mipi-csis: Log per-lane start of transmission errors
media: imx-mipi-csis: Only set clock rate when specified in DT
dt-bindings: media: nxp,imx-mipi-csi2: Mark clock-frequency as
deprecated
dt-bindings: media: nxp,imx-mipi-csi2: Add fsl,num-channels property
arm64: dts: imx8mp: Specify the number of channels for CSI-2 receivers
media: imx-mipi-csis: Initial support for multiple output channels
.../bindings/media/nxp,imx-mipi-csi2.yaml | 18 +-
arch/arm64/boot/dts/freescale/imx8mp.dtsi | 2 +
drivers/media/platform/nxp/imx-mipi-csis.c | 311 +++++++++++-------
3 files changed, 211 insertions(+), 120 deletions(-)
base-commit: 3c699df678515355e871141e142adae3bbf44216
prerequisite-patch-id: 7200af6e6d693b425b5cdb9ae6be1c55e23e2a45
--
Regards,
Laurent Pinchart
More information about the linux-arm-kernel
mailing list