Commit ab38cd1
committed
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]>1 parent 9094cea commit ab38cd1
1 file changed
+27
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
899 | 900 | | |
900 | 901 | | |
901 | 902 | | |
902 | | - | |
903 | | - | |
| 903 | + | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
904 | 923 | | |
905 | 924 | | |
906 | 925 | | |
| |||
966 | 985 | | |
967 | 986 | | |
968 | 987 | | |
| 988 | + | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
969 | 994 | | |
970 | 995 | | |
971 | 996 | | |
| |||
0 commit comments