]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
arm64: dts: renesas: white-hawk-csi-dsi: Define CSI-2 data line orders
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Mon, 6 Jan 2025 10:44:58 +0000 (11:44 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 6 Jan 2025 15:26:29 +0000 (16:26 +0100)
The second CSI-2 C-PHY data-lanes have different line orders (BCA) than
the two other data-lanes (ABC) for both connected CSI-2 receivers,
describe this in the device tree.

This has worked in the past as the R-Car CSI-2 driver did not have
documentation for the line order configuration, hence magic values were
written to the registers for this specific setup.  Now the registers
involved are documented, the hardware description as well as the driver
needs to be updated.

Note that the numerical values will be replaced by symbolic values
later.

Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be>
Link: https://lore.kernel.org/20250106104458.3596109-1-niklas.soderlund+renesas@ragnatech.se
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
arch/arm64/boot/dts/renesas/white-hawk-csi-dsi.dtsi

index 3006b0a64f41e625dd2467808526b18c4ab5cb96..9017c4475a7c7c306a484181610adfea0b90ae90 100644 (file)
@@ -21,6 +21,7 @@
                                bus-type = <MEDIA_BUS_TYPE_CSI2_CPHY>;
                                clock-lanes = <0>;
                                data-lanes = <1 2 3>;
+                               line-orders = <0 3 0>;
                                remote-endpoint = <&max96712_out0>;
                        };
                };
@@ -41,6 +42,7 @@
                                bus-type = <MEDIA_BUS_TYPE_CSI2_CPHY>;
                                clock-lanes = <0>;
                                data-lanes = <1 2 3>;
+                               line-orders = <0 3 0>;
                                remote-endpoint = <&max96712_out1>;
                        };
                };