[Email protected]:/# Cat/sys/class/lcd/debug
Usage:
Echo Basic echo Type <lcd_type> <lcd_bits> > debug; Write LCD type & Bits
echo Clock <LCD_CL
k> <ss_level> <clk_pol> > debug; Write LCD CLK (Hz)
echo Sync echo valid Data format:
<lcd_type>: 0=mipi, 1=lvds, 2=EDP, 3=ttl
<lcd_bits>: 6=6bit (Rgb18bit), 8=8bit (Rgb24bit)
<ss_level>: LCD Clock spread spectrum level (0~6), 0 for disable
<xx_pol>: 0=negative, 1=positive
<xx_valid>: 0=disable, 1=enable
echo ttl <rb_swap> <bit_swap> > debug; Write TTL RGB swap config
echo LVDS <vswing_level> <lvds_repack> <pn_swap> > debug; Write LVDS config
echo mdsi <bit_rate_min> <bit_rate_max> <factor> > debug; Write Mipi-dsi config
echo EDP <link_rate> <lane_count> <vswing_level> > debug; Write EDP Config
Data format:
<xx_swap>: 0=normal, 1=swap
<vswing_level>: LVDS support Level 0~4 (default=1); EDP Support Level 0~3 (default=0)
<lvds_repack>: 0=jeida mode, 1=vesa mode
<pn_swap>: 0=normal, 1=swap LVDS p/N Channels
<bit_rate_xxx>: Unit in MHz
<link_rate>: 0=1.62g, 1=2.7g
echo offset echo dither <dither_user> <dither_ctrl> > debug; Write user dither Ctrl config
echo Vadj <brightness> <contrast> <saturation> > debug; Write Video adjust Config
Data format:
<xx_sign>: 0=positive, 1=negative
<dither_user>: 0=disable user Control, 1=enable user control
<dither_ctrl>: Dither Ctrl in Hex, such as 0x400 or 0x600
<brightness>: Negative 0x1ff~0x101, positive 0x0~0xff, signed value in Hex, default is 0x0
<contrast>: 0x0~0xff, unsigned value in Hex, default is 0x80
<saturation>: 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 <num> > 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 echo Type <lcd_type> <lcd_bits> > debug; Write LCD type & Bits
echo Clock <lcd_clk> <ss_level> <clk_pol> > debug; Write LCD CLK (Hz)
echo Sync echo valid Data format:
<lcd_type>: 0=mipi, 1=lvds, 2=EDP, 3=ttl
<lcd_bits>: 6=6bit (Rgb18bit), 8=8bit (Rgb24bit)
<ss_level>: LCD Clock spread spectrum level (0~6), 0 for disable
<xx_pol>: 0=negative, 1=po
Sitive
<xx_valid>: 0=disable, 1=enable
echo ttl <rb_swap> <bit_swap> > debug; Write TTL RGB swap config #echo ttl <0> <0> > Debug
echo LVDS <vswing_level> <lvds_repack> <pn_swap> > debug; Write LVDS config
echo mdsi <bit_rate_min> <bit_rate_max> <factor> > debug; Write Mipi-dsi config
echo EDP <link_rate> <lane_count> <vswing_level> > debug; Write EDP Config
Data format:
<xx_swap>: 0=normal, 1=swap
<vswing_level>: LVDS support Level 0~4 (default=1); EDP Support Level 0~3 (default=0)
<lvds_repack>: 0=jeida mode, 1=vesa mode
<pn_swap>: 0=normal, 1=swap LVDS p/N Channels
<bit_rate_xxx>: Unit in MHz
<link_rate>: 0=1.62g, 1=2.7g
echo offset echo dither <dither_user> <dither_ctrl> > debug; Write user dither Ctrl config
echo Vadj <brightness> <contrast> <saturation> > debug; Write Video adjust Config
Data format:
<xx_sign>: 0=positive, 1=negative
<dither_user>: 0=disable user Control, 1=enable user control
<dither_ctrl>: Dither Ctrl in Hex, such as 0x400 or 0x600
<brightness>: Negative 0x1ff~0x101, positive 0x0~0xff, signed value in Hex, default is 0x0
<contrast>: 0x0~0xff, unsigned value in Hex, default is 0x80
<saturation>: 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 <num> > 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
[Email PROTECTED]:/SYS/CLASS/LCD # echo Read > Debug
[[email protected]] LCD driver VERSION:20140805C8
[[email protected]]
[[email protected]] LCD mode:clap070nj02, TTL 6bit, [email protected]
[[email protected]] LCD_CLK 42.699MHz
[[email protected]] Ss_level 0
[[email protected]] Clk_pol 0
[[email protected]]
[[email protected]] H_period 1344
[[email protected]] V_period 635
[[email protected]] Hs_width 10
[[email protected]] Hs_backporch 160
[[email protected]] Hs_pol 0
[[email protected]] Vs_width 5
[[email protected]] Vs_backporch 23
[[email protected]] Vs_pol 0
[[email protected]] Vs_h_phase 0
[[email protected]] Hvsync_valid 1
[[email protected]] De_valid 1
[[email protected]] H_offset 0
[[email protected]] V_offset 0
[[email protected]]
[[email protected]] Rb_swap 0
[[email protected]] Bit_swap 0
[[email protected]]
[[email protected]] Pll_ctrl 0x01000438
[[email protected]] Div_ctrl 0x00018833
[[email protected]] Clk_ctrl 0x8eee1002
[[email protected]] Video_on_pixel 300
[[email protected]] Video_on_line 35
[[email protected]]
Cd/sys/devices/platform/backlight/backlight/aml-bl/brightness
echo Sync
echo Sync 0 5 0 > Debug
AML LCD debuged