AML LCD debuged
阅读原文时间:2023年07月15日阅读:2

root@k101:/ # cat /sys/class/lcd/debug                                         

Usage:

    echo basic > debug ; write lcd basic config

    echo type > debug ; write lcd type & bits

    echo clock <lcd_cl

k> > debug ; write lcd clk (Hz)

    echo sync > debug ; write lcd sync timing

    echo valid > debug ; enable lcd sync signals

data format:

    : 0=mipi, 1=lvds, 2=edp, 3=ttl

    : 6=6bit(RGB18bit), 8=8bit(RGB24bit)

    : lcd clock spread spectrum level (0~6), 0 for disable

      : 0=negative, 1=positive

    : 0=disable, 1=enable

    echo ttl > debug ; write ttl RGB swap config

    echo lvds > debug ; write lvds config

    echo mdsi > debug ; write mipi-dsi config

    echo edp > debug ; write edp config

data format:

         : 0=normal, 1=swap

    : lvds support level 0~4 (Default=1); edp support level 0~3 (default=0)

     : 0=JEIDA mode, 1=VESA mode

         : 0=normal, 1=swap lvds p/n channels

    : unit in MHz

       : 0=1.62G, 1=2.7G

    echo offset > debug ; write ttl display offset

    echo dither > debug ; write user dither ctrl config

    echo vadj > debug ; write video adjust config

data format:

        : 0=positive, 1=negative

    : 0=disable user control, 1=enable user control

    : dither ctrl in Hex, such as 0x400 or 0x600

     : negative 0x1ff~0x101, positive 0x0~0xff, signed value in Hex, default is 0x0

       : 0x0~0xff, unsigned value in Hex, default is 0x80

     : 0x0~0x1ff, unsigned value in Hex, default is 0x100

    echo write > debug ; update lcd driver

    echo reset > debug ; reset lcd config & driver

    echo read > debug ; read current lcd config

    echo test > debug ; bist pattern test, 0=pattern off, 1~7=different pattern

    echo 0/1 > status ; 0=disable lcd; 1=enable lcd

    cat status ; read current lcd status

Usage:

    echo basic > debug ; write lcd basic config

    echo type > debug ; write lcd type & bits

    echo clock > debug ; write lcd clk (Hz)

    echo sync > debug ; write lcd sync timing

    echo valid > debug ; enable lcd sync signals

data format:

    : 0=mipi, 1=lvds, 2=edp, 3=ttl

    : 6=6bit(RGB18bit), 8=8bit(RGB24bit)

    : lcd clock spread spectrum level (0~6), 0 for disable

      : 0=negative, 1=po

sitive

    : 0=disable, 1=enable

    echo ttl > debug ; write ttl RGB swap config    #echo ttl <0> <0> > debug 

    echo lvds > debug ; write lvds config

    echo mdsi > debug ; write mipi-dsi config

    echo edp > debug ; write edp config

data format:

         : 0=normal, 1=swap

    : lvds support level 0~4 (Default=1); edp support level 0~3 (default=0)

     : 0=JEIDA mode, 1=VESA mode

         : 0=normal, 1=swap lvds p/n channels

    : unit in MHz

       : 0=1.62G, 1=2.7G

    echo offset > debug ; write ttl display offset

    echo dither > debug ; write user dither ctrl config

    echo vadj > debug ; write video adjust config

data format:

        : 0=positive, 1=negative

    : 0=disable user control, 1=enable user control

    : dither ctrl in Hex, such as 0x400 or 0x600

     : negative 0x1ff~0x101, positive 0x0~0xff, signed value in Hex, default is 0x0

       : 0x0~0xff, unsigned value in Hex, default is 0x80

     : 0x0~0x1ff, unsigned value in Hex, default is 0x100

    echo write > debug ; update lcd driver

    echo reset > debug ; reset lcd config & driver

    echo read > debug ; read current lcd config

    echo test > debug ; bist pattern test, 0=pattern off, 1~7=different pattern

    echo 0/1 > status ; 0=disable lcd; 1=enable lcd

    cat status ; read current lcd status

root@k101:/sys/class/lcd # echo read > debug

[ 7258.061871@0] lcd driver version: 20140805c8

[ 7258.061871@0] 

[ 7258.062388@0] LCD mode: CLAP070NJ02, TTL 6bit, 1024x600@50.0Hz

[ 7258.062388@0] lcd_clk           42.699MHz

[ 7258.062388@0] ss_level          0

[ 7258.062388@0] clk_pol           0

[ 7258.062388@0] 

[ 7258.082124@0] h_period          1344

[ 7258.082124@0] v_period          635

[ 7258.082124@0] hs_width          10

[ 7258.082124@0] hs_backporch      160

[ 7258.082124@0] hs_pol            0

[ 7258.082124@0] vs_width          5

[ 7258.082124@0] vs_backporch      23

[ 7258.082124@0] vs_pol            0

[ 7258.082124@0] vs_h_phase        0

[ 7258.082124@0] hvsync_valid      1

[ 7258.082124@0] de_valid          1

[ 7258.082124@0] h_offset          0

[ 7258.082124@0] v_offset          0

[ 7258.082124@0] 

[ 7258.129269@0] rb_swap           0

[ 7258.129269@0] bit_swap          0

[ 7258.129269@0] 

[ 7258.134175@0] pll_ctrl          0x01000438

[ 7258.134175@0] div_ctrl          0x00018833

[ 7258.134175@0] clk_ctrl          0x8eee1002

[ 7258.134175@0] video_on_pixel    300

[ 7258.134175@0] video_on_line     35

[ 7258.134175@0] 

cd /sys/devices/platform/backlight/backlight/aml-bl/brightness

 echo sync > debug

echo sync 10 160 0 5 23 0 > debug

手机扫一扫

移动阅读更方便

阿里云服务器
腾讯云服务器
七牛云服务器

你可能感兴趣的文章