u-boot/drivers/video/rockchip
Jagan Teki e67243f1a3 video: rockchip: Fix vop modes for rk3399
VOP display endpoint pipeline configuration differs
between rk3288 vs rk3399.

These VOP pipeline configuration depends on how the
different display interfaces connected in sequence to
IN and OUT ports like for,

RK3288:

vopb_out: port {
	#address-cells = <1>;
	#size-cells = <0>;
	vopb_out_edp: endpoint@0 {
		reg = <0>;
		remote-endpoint = <&edp_in_vopb>;
	};
	vopb_out_hdmi: endpoint@1 {
		reg = <1>;
                remote-endpoint = <&hdmi_in_vopb>;
        };
        vopb_out_lvds: endpoint@2 {
                reg = <2>;
                remote-endpoint = <&lvds_in_vopb>;
        };
        vopb_out_mipi: endpoint@3 {
                reg = <3>;
                remote-endpoint = <&mipi_in_vopb>;
        };
};

RK3399:

vopb_out: port {
         #address-cells = <1>;
         #size-cells = <0>;
         vopb_out_edp: endpoint@0 {
                reg = <0>;
                remote-endpoint = <&edp_in_vopb>;
         };
         vopb_out_mipi: endpoint@1 {
                reg = <1>;
                remote-endpoint = <&mipi_in_vopb>;
         };
         vopb_out_hdmi: endpoint@2 {
                reg = <2>;
                remote-endpoint = <&hdmi_in_vopb>;
         };
         vopb_out_mipi1: endpoint@3 {
                reg = <3>;
                remote-endpoint = <&mipi1_in_vopb>;
         };
         vopb_out_dp: endpoint@4 {
                reg = <4>;
                remote-endpoint = <&dp_in_vopb>;
         };
};

here, HDMI interface has endpoint 1 in rk3288 and 2 in rk3399.

The rockchip vop driver often depends on this determined endpoint
number and stored in vop_mode. So based on this vop_mode the bpp
and pin polarity would configure on detected display interface.

Since, the existing driver using rk3288 vop mode settings enabling
the same will result wrong display interface configuration for rk3399.

Add the patch for fixing these vop modes for rk3399.

Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
2020-04-02 15:47:35 +02:00
..
Kconfig video: Kconfig: spelling fixes 2019-01-18 09:16:15 -05:00
Makefile SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk3288_hdmi.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
rk3288_mipi.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
rk3288_vop.c rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
rk3399_hdmi.c rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
rk3399_mipi.c dm: core: Require users of devres to include the header 2020-02-05 19:33:46 -07:00
rk3399_vop.c video: rockchip: Fix vop modes for rk3399 2020-04-02 15:47:35 +02:00
rk_edp.c dm: core: Create a new header file for 'compat' features 2020-02-05 19:33:46 -07:00
rk_hdmi.c video: dw_hdmi: Add support for ddc-i2c-bus property 2019-07-29 00:32:59 +02:00
rk_hdmi.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk_lvds.c rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
rk_mipi.c arm: rockchip: Add common cru.h 2020-01-30 11:44:01 +08:00
rk_mipi.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
rk_vop.c video: rockchip: Fix vop modes for rk3399 2020-04-02 15:47:35 +02:00
rk_vop.h rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00