|
|
Line 1: |
Line 1: |
| 编辑uboot dts 文件:''linux-actions-bsp/u-boot-actions/arch/arm/dts/lemaker_guitar.dts''。设置refresh = <60>, xres = <1024>, yres = <600>。 | | 编辑uboot dts 文件:''linux-actions-bsp/u-boot-actions/arch/arm/dts/lemaker_guitar.dts''。设置refresh = <60>, xres = <1024>, yres = <600>。 |
− | <source lang="bash">
| |
− | lcd0: lcd0@b02a0000 {
| |
− | pinctrl-names = "default";
| |
− | pinctrl-0 = <&lvds_state_default>;
| |
− | lcd_power_gpios = <&gpio 36 0>; /*GPIOB4*/
| |
− | lcd_reset_gpios = <&gpio 49 0>; /*GPIOB17*/
| |
− | port_type = "lvds";
| |
− | data_width = <0>; /* 0:24bit ,1:18bit */
| |
− | videomode-0 = <&lcd_mode0>;
| |
− | vsync_inversion = <0>;
| |
− | hsync_inversion = <0>;
| |
− | dclk_inversion = <0>;
| |
− | lde_inversion = <0>;
| |
− | lvds_ctl = <0x000a9523>; /* last two bit: 3:8bit ,1:6bit */
| |
− | lvds_alg_ctl0 = <0xc141a030>;
| |
− | lightness = <128>;
| |
− | saturation = <7>;
| |
− | contrast = <5>;
| |
− | lcd_mode0:mode@1024x600p60 {
| |
− | refresh = <60>; /* 刷新频率*/
| |
− | xres = <1024>; /* 宽度 */
| |
− | yres = <600>; /* 高度*/
| |
− | /*in pico second, 0.000 000 000 001s*/
| |
− | pixclock = <20000>;
| |
− | left_margin = <56>;
| |
− | right_margin = <60>;
| |
− | upper_margin = <13>;
| |
− | lower_margin = <18>;
| |
− | hsync_len = <4>;
| |
− | vsync_len = <4>;
| |
− | /*0: FB_VMODE_NONINTERLACED, 1:FB_VMODE_INTERLACED*/
| |
− | vmode = <0>;
| |
− | };
| |
− | };
| |
− | </source>
| |
Latest revision as of 17:52, 15 June 2016
编辑uboot dts 文件:linux-actions-bsp/u-boot-actions/arch/arm/dts/lemaker_guitar.dts。设置refresh = <60>, xres = <1024>, yres = <600>。