Firefly开源社区

打印 上一主题 下一主题

[技术讨论] 3568 lvds屏幕

44

积分

0

威望

0

贡献

技术小白

积分
44
QQ
发表于 2022-12-19 20:16:26      楼主
这是我之前点亮单lvds的dts,你可以参考一下:
/ {
        model = "Rockchip RK3568 EVB2 LP4X V10 Board";
        compatible = "rockchip,rk3568-evb2-lp4x-v10", "rockchip,rk3568";

        backlight1: backlight1 {
                compatible = "pwm-backlight";
                pwms = <&pwm13 0 25000 0>;
                enable-gpios = <&gpio3 RK_PA1 GPIO_ACTIVE_HIGH>;
                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>;
        };

        panel {
                compatible = "simple-panel";
                backlight = <&backlight1>;
                power-supply = <&vcc3v3_lcd0_n>;
                enable-delay-ms = <20>;
                prepare-delay-ms = <20>;
                unprepare-delay-ms = <20>;
                disable-delay-ms = <20>;
                bus-format = <MEDIA_BUS_FMT_RBG888_1X24>;
                width-mm = <217>;
                height-mm = <136>;

                display-timings {
                        native-mode = <&timing1>;

                        timing0: timing0 {
                                clock-frequency = <51200000>;
                                hactive = <1024>;
                                vactive = <600>;

                                hfront-porch = <160>;
                                hsync-len = <2>;
                                hback-porch = <158>;

                                vfront-porch = <10>;
                                vsync-len = <2>;
                                vback-porch = <23>;

                                hsync-active = <1>;
                                vsync-active = <0>;
                                de-active = <0>;
                                pixelclk-active = <0>;
                        };

                        timing1: timing1 {
                                clock-frequency = <71000000>;
                                hactive = <1280>;
                                vactive = <800>;

                                hfront-porch = <48>;
                                hsync-len = <32>;
                                hback-porch = <80>;

                                vfront-porch = <3>;
                                vsync-len = <6>;
                                vback-porch = <14>;

                                hsync-active = <0>;
                                vsync-active = <0>;
                                de-active = <0>;
                                pixelclk-active = <0>;
                        };
                };

                ports {
                        #address-cells = <1>;
                        #size-cells = <0>;

                        port@0 {
                                reg = <0>;

                                panel_in_lvds: endpoint {
                                        remote-endpoint = <&lvds_out_panel>;
                                };
                        };
                };
        };
};

&pwm13{
        pinctrl-0 = <&pwm13m1_pins>;
        status = "okay";
};

&vcc3v3_lcd0_n {
        gpio = <&gpio3 RK_PA2 GPIO_ACTIVE_HIGH>;
        status = "okay";
};

&lvds {
        status = "okay";

        ports {
                port@1 {
                        reg = <1>;

                        lvds_out_panel: endpoint {
                                remote-endpoint = <&panel_in_lvds>;
                        };
                };
        };
};

&lvds_in_vp1 {
        status = "okay";
};

&lvds_in_vp2 {
        status = "disabled";
};

&route_lvds {
        status = "okay";
        connect = <&vp1_out_lvds>;
};
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表