代码如下添加参数,只要是使用的是同款屏幕,那就可以直接使用里面所有参数,在相关的DTS文件进行修改
- lvds_panel: lvds-panel {
- status = "okay";
- compatible = "simple-panel";
- backlight = <&backlight1>;
- reset-delay-ms = <20>;
- enable-delay-ms = <20>;
- prepare-delay-ms = <20>;
- unprepare-delay-ms = <20>;
- disable-delay-ms = <20>;
- bus-format =
; -
- pinctrl-names = "default";
- pinctrl-0 = <&lvds_panel_enable>;
- enable-gpios = <&gpio3 RK_PC3 GPIO_ACTIVE_HIGH>;
-
- width-mm = <210>;
- height-mm = <157>;
-
- lvds_disp_timings0: display-timings {
- native-mode = <&lvds_timing0>;
- lvds_timing0: lvds-timing0 {
- clock-frequency = <51200000>;
- hactive = <1024>;
- vactive = <600>;
- hback-porch = <160>;
- hfront-porch