hc
2023-02-14 0cc9b7c44253c93447ddf73e206fbdbb3d9f16b1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
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
Device-Tree bindings for Rockchip framebuffer.
 
Required properties:
- compatible: value should be "rockchip,rk-fb".
- rockchip,disp-mode: DUAL :for dual lcdc and dual display;
                     ONE_DUAL : for one lcdc and dual display.
 
Example:
 
DT entry:
   fb: fb{
       compatible = "rockchip,rk-fb";
       rockchip,disp-mode = <DUAL>;
   };
 
Device-Tree bindings for RockChip screen driver
 
Required properties:
- compatible: value should be "rockchip,screen"
- display-timings: value should be disp_timings, which defined in
       lcd-xxx.dtsi file,the file should include by your board dts
 
Example:
   creen: rk_screen{
                        compatible = "rockchip,screen";
           display-timings = <&disp_timings>;
        };
 
/*
 * RockChip. LCD_B101ew05 lcd-b101ew05.dtsi
 *
 */
 
/ {
 
                disp_timings: display-timings {
                        native-mode = <&timing0>;
                        timing0: timing0 {
                                screen-type = <SCREEN_LVDS>;
                                lvds-format = <LVDS_8BIT_2>;
                                out-face    = <OUT_D888_P666>;
                                clock-frequency = <71000000>;
                                hactive = <1280>;
                                vactive = <800>;
                                hback-porch = <100>;
                                hfront-porch = <18>;
                                vback-porch = <8>;
                                vfront-porch = <6>;
                                hsync-len = <10>;
                                vsync-len = <2>;
                                hsync-active = <0>;
                                vsync-active = <0>;
                                de-active = <0>;
                                pixelclk-active = <0>;
                                swap-rb = <0>;
                                swap-rg = <0>;
                                swap-gb = <0>;
                        };
               };
};
 
 
 
 
note: reference for display-timing.txt for display-timing bindings