Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ODROID-COMMON: video/drm: fix to initiate DRM with upstream kernel
Upstream kernel does not have resouce for 'host' in device tree that is defined like this in 5.10 kernel. video_phy0: phy@fe850000 { compatible = "rockchip,rk3568-dsi-dphy", "rockchip,rk3568-video-phy"; reg = <0x0 0xfe850000 0x0 0x10000>, <0x0 0xfe060000 0x0 0x10000>; reg-names = "phy", "host"; clocks = <&pmucru CLK_MIPIDSIPHY0_REF>, '0xfe060000' is the address of 'dsi0', so instead of adding 'host' resouce/reg, this patch will travers the device tree pool in order to find out the node by phandle and use its resource/reg. Also 5.10 kernel have two compatible strings for 'video_phy0' while upstream kernel only have 'rockchip,rk3568-dsi-phy'. So adding ' rockchip,rk3568-video-dphy' will trick to initiate the DSI phy with upstream kernel. Change-Id: I83c0e7b0c56f5cfe6e802bb34b9b9dfdcb509a66 Signed-off-by: Dongjin Kim <[email protected]>
- Loading branch information