完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
RK3568支持三屏显示,显示屏DTS配置划分为三部分:LCD参数配置、LCD引脚配置、VP通道配置
LCD参数配置 LVDS显示配置 &lvds_panel { status = "okay"; compatible = "simple-panel"; backlight = <&backlight4>; enable-delay-ms = <20>; prepare-delay-ms = <20>; unprepare-delay-ms = <20>; disable-delay-ms = <20>; bus-format = width-mm = <217>; height-mm = <136>; display-timings { native-mode = <&timing2>; timing2: timing2 { clock-frequency = <45000000>; hactive = <1024>; vactive = <600>; hback-porch = <160>; hfront-porch = <160>; vback-porch = <23>; vfront-porch = <12>; hsync-len = <20>; vsync-len = <3>; hsync-active = <0>; vsync-active = <0>; de-active = <0>; pixelclk-active = <0>; }; }; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; dual-lvds-even-pixels; panel_in_lvds: endpoint { }; }; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; dual-lvds-even-pixels; panel_in_lvds: endpoint { remote-endpoint = <&lvds_out_panel>; }; }; }; }; &lvds { status = "okay"; ports { port@1 { reg = <1>; lvds_out_panel: endpoint { remote-endpoint = <&panel_in_lvds>; }; }; }; }; &video_phy0 { status = "okay"; }; DSI0显示配置 &dsi0 { status = "okay"; rockchip,lane-rate = <480>; dsi0_panel: panel@0 { status = "okay"; compatible = "simple-panel-dsi"; reg = <0>; reset-delay-ms = <60>; enable-delay-ms = <60>; prepare-delay-ms = <60>; unprepare-delay-ms = <60>; disable-delay-ms = <60>; dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>; dsi,format = dsi,lanes = <4>; panel-init-sequence = [ 05 78 01 11 05 78 01 29 ]; panel-exit-sequence = [ 05 00 01 28 05 78 01 10 ]; disp_timings0: display-timings { native-mode = <&dsi0_timing0>; dsi0_timing0: timing0 { clock-frequency = <51000000>; hactive = <1024>; vactive = <600>; hback-porch = <160>; hfront-porch = <136>; vback-porch = <16>; vfront-porch = <16>; hsync-len = <4>; vsync-len = <2>; hsync-active = <0>; vsync-active = <0>; de-active = <0>; pixelclk-active = <1>; }; }; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; panel_in_dsi: endpoint { remote-endpoint = <&dsi_out_panel>; }; }; }; }; ports { #address-cells = <1>; #size-cells = <0>; port@1 { reg = <1>; dsi_out_panel: endpoint { remote-endpoint = <&panel_in_dsi>; }; }; }; }; &mipi_dphy0 { status = "disabled"; }; DSI1显示配置 &dsi1 { status = "okay"; //rockchip,lane-rate = <480>; dsi1_panel: panel@0 { status = "okay"; compatible = "simple-panel-dsi"; reg = <0>; backlight = <&backlight5>; reset-delay-ms = <60>; enable-delay-ms = <60>; prepare-delay-ms = <60>; unprepare-delay-ms = <60>; disable-delay-ms = <60>; dsi,flags = <(MIPI_DSI_MODE_VIDEO | MIPI_DSI_MODE_VIDEO_BURST | MIPI_DSI_MODE_LPM | MIPI_DSI_MODE_EOT_PACKET)>; dsi,format = dsi,lanes = <4>; panel-init-sequence = [ 05 78 01 11 05 78 01 29 ]; panel-exit-sequence = [ 05 00 01 28 05 78 01 10 ]; disp_timings1: display-timings { native-mode = <&dsi1_timing0>; dsi1_timing0: timing0 { clock-frequency = <35000000>; hactive = <1024>; vactive = <600>; hback-porch = <160>; hfront-porch = <136>; vback-porch = <16>; vfront-porch = <16>; hsync-len = <4>; vsync-len = <2>; hsync-active = <0>; vsync-active = <0>; de-active = <0>; pixelclk-active = <1>; }; }; ports { #address-cells = <1>; #size-cells = <0>; port@0 { reg = <0>; panel_in_dsi1: endpoint { remote-endpoint = <&dsi1_out_panel>; }; }; }; }; ports { #address-cells = <1>; #size-cells = <0>; port@1 { reg = <1>; dsi1_out_panel: endpoint { remote-endpoint = <&panel_in_dsi1>; }; }; }; }; &mipi_dphy1 { status = "okay"; }; EDP显示配置 &edp_panel { status = "okay"; compatible = "simple-panel"; //backlight = <&backlight5>; prepare-delay-ms = <20>; enable-delay-ms = <20>; disable-delay-ms = <20>; unprepare-delay-ms = <20>; display-timings { native-mode = <&timing1>; timing0: timing0 {//EDP 13.3 clock-frequency = <150000000>; hactive = <1920>; vactive = <1080>; hfront-porch = <12>; hsync-len = <16>; hback-porch = <48>; vfront-porch = <8>; vsync-len = <4>; vback-porch = <8>; hsync-active = <0>; vsync-active = <0>; de-active = <0>; pixelclk-active = <0>; }; timing1: timing1 {// EDP 15.6 LP156WF6 clock-frequency = <138000000>; hactive = <1920>; vactive = <1080>; hfront-porch = <48>; hsync-len = <32>; hback-porch = <80>; vfront-porch = <3>; vsync-len = <5>; vback-porch = <23>; hsync-active = <0>; vsync-active = <0>; de-active = <0>; pixelclk-active = <0>; }; }; ports { panel_in_edp: endpoint { remote-endpoint = <&edp_out_panel>; }; }; }; &edp { hpd-gpios = <&gpio0 RK_PC2 GPIO_ACTIVE_HIGH>; status = "okay"; force-hpd; ports { port@1 { reg = <1>; edp_out_panel: endpoint { remote-endpoint = <&panel_in_edp>; }; }; }; }; &edp_phy { status = "okay"; }; VP通道配置 RK3568支持VP0~2,每个VP通道只能配置单一显示屏,并且每个通道支持的显示屏格式不一致 可参考下表,任意搭配 [tr]VP通道支持显示格式[/tr]
LCD引脚配置 RST/PWR GPIO配置
// MIPI DSI0 &dsi0_panel { power-supply = <&vcc3v3_lcd_n>; reset-gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&lcd_rst_gpio>; backlight = <&backlight4>; }; // MIPI DSI1 &dsi1_panel { power-supply = <&vcc3v3_lcd_n>; reset-gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&lcd_rst_gpio>; backlight = <&backlight5>; }; // LVDS &lvds_panel { power-supply = <&vcc3v3_lcd_n>; reset-gpios = <&gpio4 RK_PD2 GPIO_ACTIVE_LOW>; pinctrl-names = "default"; pinctrl-0 = <&lcd_rst_gpio>; backlight = <&backlight4>; }; // EDP &edp_panel { power-supply = <&vcc3v3_lcd_n>; backlight = <&backlight5>; }; // POWER GPIO &vcc3v3_lcd_n { gpio = <&gpio0 RK_PC7 GPIO_ACTIVE_HIGH>; enable-active-high; }; &pinctrl { lcd1 { lcd_rst_gpio: lcd1-rst-gpio { rockchip,pins = <4 RK_PD2 RK_FUNC_GPIO &pcfg_pull_none>; }; }; }; PWM配置 DTS中同时使能PWM4、PWM5,根据原理图在对应的LCD中直接引用即可 / { backlight4: backlight4 { compatible = "pwm-backlight"; pwms = <&pwm4 0 25000 0>; brightness-levels = < 0 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 >; default-brightness-level = <200>; }; backlight5: backlight5 { compatible = "pwm-backlight"; pwms = <&pwm5 0 25000 0>; brightness-levels = < 0 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 >; default-brightness-level = <200>; }; }; &pwm4 { status = "okay"; }; &pwm5 { status = "okay"; }; |
|
|
|
你正在撰写答案
如果你是对答案或其他答案精选点评或询问,请使用“评论”功能。
597 浏览 0 评论
Onenet云网关方案应用--基于米尔瑞芯微RK3576开发板
1178 浏览 0 评论
【幸狐Omni3576边缘计算套件试用体验】Redis最新8.0.2版本源码安装及性能测试
1724 浏览 0 评论
2075 浏览 0 评论
RK3576 vs RK3588:为何越来越多的开发者转向RK3576?
7225 浏览 0 评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-7-8 00:57 , Processed in 0.484781 second(s), Total 38, Slave 32 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191