Skip to content

media: csi2-sam: Fix the gasket debug register information#46

Open
MrOneTwo wants to merge 1 commit into
nxp-imx:lf-6.12.yfrom
MrOneTwo:fix-mipi-csi2-gasket-debug-prints
Open

media: csi2-sam: Fix the gasket debug register information#46
MrOneTwo wants to merge 1 commit into
nxp-imx:lf-6.12.yfrom
MrOneTwo:fix-mipi-csi2-gasket-debug-prints

Conversation

@MrOneTwo

Copy link
Copy Markdown

The regmap_read uses the base address of the gasket dts node. Those addresses start at the control registers of its respective gasket, not at the media block address.

Example from imx8mp.dtsi:

mediamix_gasket0: gasket@32ec0060 {
compatible = "fsl,imx8mp-iomuxc-gpr", "syscon";
reg = <0x32ec0060 0x28>;
};

mediamix_gasket1: gasket@32ec0090 {
compatible = "fsl,imx8mp-iomuxc-gpr", "syscon";
reg = <0x32ec0090 0x28>;
};

The regmap_read uses the base address of the gasket dts node. Those
addresses start at the control registers of its respective gasket, not
at the media block address.

Example from imx8mp.dtsi:

mediamix_gasket0: gasket@32ec0060 {
	compatible = "fsl,imx8mp-iomuxc-gpr", "syscon";
	reg = <0x32ec0060 0x28>;
};

mediamix_gasket1: gasket@32ec0090 {
	compatible = "fsl,imx8mp-iomuxc-gpr", "syscon";
	reg = <0x32ec0090 0x28>;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant