Files
linux-nv-oot/drivers
Prafull Suryawanshi 819e83a8e3 video: bridge: max_gmsl: add superframe support
This change adds symmetric superframe support to maxim
gmsl dp serializer driver. This includes below -

1. Read device tree properties associated with superframe feature.
2. Calculate values for register from timings parameter.
3. Hardcode few values for 1080p mode as formula to calculate those
   not yet available.
4. Sanity check as only X-Y or Z-U dual view possible with current support.

Device tree settings which needs to enable

1. Superframe structure in display-timings structure like below

superframe-info {
    pipe_x_view: view-0 {
            x = <0>;
            y = <0>;
            width = <1920>;
            height = <1080>;
            hfront-porch = <24>;
            hback-porch = <40>;
            hsync-len = <16>;
            vfront-porch = <3>;
            vback-porch = <18>;
            vsync-len = <10>;
        };

    pipe_y_view: view-1 {
            x = <1920>;
            y = <0>;
            width = <1920>;
            height = <1080>;
            hfront-porch = <24>;
            hback-porch = <40>;
            hsync-len = <16>;
            vfront-porch = <3>;
            vback-porch = <18>;
            vsync-len = <10>;
        };
    };
};

2. Superframe video timings in maxim serializer node as below

superframe-video-timings {
	pipe-x {
		superframe-group = <0>;
		timings-phandle = <&pipe_x_view>;
	};

	pipe-y {
		superframe-group = <0>;
		timings-phandle = <&pipe_y_view>;
	};

	pipe-z {
		superframe-group = <1>;
		timings-phandle = <&pipe_z_view>;
	};

	pipe-u {
		superframe-group = <1>;
		timings-phandle = <&pipe_u_view>;
	};
};

Signed-off-by: Prafull Suryawanshi <prafulls@nvidia.com>
Change-Id: I80b345f093c21a6e68ee75014eb337ecb579c85b
2023-04-11 04:35:05 +00:00
..
2023-04-06 00:42:04 -07:00
2023-03-18 16:19:11 -07:00
2023-04-03 13:27:53 +00:00
2023-04-06 10:16:08 -07:00
2023-04-04 21:54:45 -07:00
2022-09-10 23:43:31 -07:00
2022-05-01 09:26:37 -07:00
2023-03-21 02:35:48 -07:00
2023-03-18 16:19:11 -07:00
2023-04-07 00:12:26 -07:00