video: rockchip: rk_vop: add rk3288-dp compare string
authorJohan Jonker <jbx6244@gmail.com>
Wed, 15 Mar 2023 18:33:38 +0000 (19:33 +0100)
committerKever Yang <kever.yang@rock-chips.com>
Fri, 21 Apr 2023 07:16:00 +0000 (15:16 +0800)
In the current rk3288.dtsi file the compatible string for
the DisplayPort(DP) node ends with "edp". The string in the
binding ends with "dp" which conflicts with "cdn-dp" as a
search term. Add "rk3288-dp" as compare string to select
vop_id.

Signed-off-by: Johan Jonker <jbx6244@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org> # chromebook-jerry
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
drivers/video/rockchip/rk_vop.c

index bc98ab6..e21ac7e 100644 (file)
@@ -307,7 +307,8 @@ static int rk_display_init(struct udevice *dev, ulong fbbase, ofnode ep_node)
                      __func__, dev_read_name(dev));
                return -EINVAL;
        }
-       if (strstr(compat, "edp")) {
+       if (strstr(compat, "edp") ||
+           strstr(compat, "rk3288-dp")) {
                vop_id = VOP_MODE_EDP;
        } else if (strstr(compat, "mipi")) {
                vop_id = VOP_MODE_MIPI;