IMX415 VFLIP, HFLIP auto

I think this may interest someone.

If you don’t want to issue a V4L2_CID_VFLIP or V4L2_CID_HFLIP control in your program logic to flip the camera image, a H/V flip property is added to DTS so you just set the value there, and let the engine works as usual.

How it looks like (see the camera cable):

Setting the property:

&i2c3 {
	status = "okay";

	imx415: imx415@1a {
		status = "okay";
		compatible = "sony,imx415";
                .
                .
		rockchip,camera-hdr-mode = <0>;
		rockchip,camera-vflip = <1>;
		rockchip,camera-hflip = <1>;
	};
};

patch:
imx415_flip-property.patch.zip (816 Bytes)

It can also be set with overlay, but you have to create the overlay (i don’t use overlay).