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

Usage:

    echo basic <h_active> <v_active> <h_period> <v_period> > debug ; write lcd basic config

    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 <hs_width> <hs_backporch> <hs_pol> <vs_width> <vs_backporch> <vs_pol> > debug ; write lcd sync timing

    echo valid <hvsync_valid> <de_valid> > debug ; enable lcd sync signals

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 <h_sign> <h_offset> <v_sign> <v_offset> > debug ; write ttl display 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 <h_active> <v_active> <h_period> <v_period> > debug ; write lcd basic config

    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 <hs_width> <hs_backporch> <hs_pol> <vs_width> <vs_backporch> <vs_pol> > debug ; write lcd sync timing

    echo valid <hvsync_valid> <de_valid> > debug ; enable lcd sync signals

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 <h_sign> <h_offset> <v_sign> <v_offset> > debug ; write ttl display 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





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 <hs_width> <hs_backporch> <hs_pol> <vs_width> <vs_backporch> <vs_pol> > debug





echo sync 10 160 0 5 23 0 > debug

AML LCD debuged的更多相关文章

  1. STM32F429 LCD程序移植

    STM32F429自带LCD驱动器,这一具有功能给我等纠结于屏幕驱动的程序员带来了很大的福音.有经验的读者一定有过这样的经历,用FSMC驱动带由控制器的屏幕时候,一旦驱动芯片更换,则需要重新针对此驱动 ...

  2. 分页型Memory LCD显存管理与emWin移植

    上一篇随笔整理了一下逐行扫描型Memory LCD的显存管理与emWin移植,这篇就整理一下分页型Memory LCD显存管理与emWin移植. //此处以SSD1306作为实例 //OLED的显存/ ...

  3. 逐行扫描型Memory LCD显存管理与emWin移植

    因为Memory LCD 的特性,不能设置像素坐标,只能用缓存整体刷新. 所以对于Memory LCD来说,emWin移植仅与打点函数有关,这里用Sharp Memory LCD(ls013b7dh0 ...

  4. Sharp Memory LCD (ls013b7dh03)驱动

    网上找不到什么靠谱的资料,甚至我调好了夏普原厂和代理商还来找我要demo,  哎,苦逼的码农. lcd_main.c #include "ls013b7dh03.h" #inclu ...

  5. AM335x kernel4.4.12 LCD 时钟翻转设置记录

    TI AM335x kernel 4.4.12 LCD display 时钟翻转记录 因为公司硬件上已经确定LCD 转LVDS 转换芯片上确认以上升沿时钟为基准,所以只能在软件上调整相关东西. 入口在 ...

  6. Arduino下LCD1602综合探究(上)——1602的两种驱动方式,如何使LCD的控制编程变得更简单

    一.前言: LCD ( Liquid Crystal Display 的简称)液晶显示器,已经逐渐替代CRT成为主流的显示设备之一,因此也成为了单片机发烧友绕不过的话题之一:而LCD1602更是很多单 ...

  7. jquery模拟LCD 时钟

    查看效果网址:http://keleyi.com/keleyi/phtml/jqtexiao/24.htm 以下是HTML文件源代码: <!DOCTYPE html PUBLIC "- ...

  8. 嵌入式Linux驱动学习之路(十八)LCD驱动

    驱动代码: /************************************************************************* > File Name: lcd ...

  9. LCD接口(转载)

    LCD接口分类 1.   I8080接口,我觉得应该就是所谓的8080,通常会用在12864屏上面,且有内部sdram,不需要实时的刷新图片,速度有限制, 支持的数据宽度有8/9/16/18bit,接 ...

随机推荐

  1. How To Configure VMware fencing using fence

    本文主要简单介绍一下如何在RHEL 7 Pacemaker中配置一个fence_vmware_soap类型的STONITH设备(仅供测试学习). STONITH是Shoot-The-Other-Nod ...

  2. 用Go编写的本地文件服务器

    本文来自网易云社区,转载务必请注明出处. 一.前言 一切问题的起源就是来自一个问题"为什么我打的jar包没有注解?",带着这个疑问查了一圈资料,原来问题主要是在没有将源码中的注释进 ...

  3. C/C++复杂类型声明

    曾经碰到过让你迷惑不解.类似于int * (* (*fp1) (int) ) [10];这样的变量声明吗?本文将由易到难,一步一步教会你如何理解这种复杂的C/C++声明.   我们将从每天都能碰到的较 ...

  4. jenkins之Tomcat7+jdk1.7+jenkins

    目的 在开发中,需要经常频繁的对测试服务器进行部署,而且在多人协同中开发经常遇到的问题就是别人更新了他的代码,而你去更新你的代码时并没有更新到别人的代码,导致测试环境的代码不是最新,当然这个问题也好解 ...

  5. 【bzoj4826】[Hnoi2017]影魔 单调栈+可持久化线段树

    题目描述 影魔,奈文摩尔,据说有着一个诗人的灵魂.事实上,他吞噬的诗人灵魂早已成千上万.千百年来,他收集了各式各样的灵魂,包括诗人.牧师.帝王.乞丐.奴隶.罪人,当然,还有英雄.每一个灵魂,都有着自己 ...

  6. BZOJ-1507 文本编辑器(Editor)

    一道极其相似的题...http://hi.baidu.com/8361101/item/5b149103cbf4007cbee97e5f 就多了个区间查找,少了个翻转... 少了翻转的话貌似可以不用S ...

  7. BZOJ 2190 [SDOI2008]仪仗队 ——Dirichlet积

    [题目分析] 考虑斜率为0和斜率不存在的两条线上只能看到3人. 其余的人能被看见,当且仅当gcd(x,y)=1 ,然后拿卷积算一算 发现就是欧拉函数的前缀和的二倍. 注意2的情况要特判. [代码] # ...

  8. 【SPOJ687&POJ3693】Maximum repetition substring(后缀数组)

    题意: n<=1e5 思路: From http://hzwer.com/6152.html 往后匹配多远 r 用ST表求lcp即可...往前 l 就把串反过来再做一下.. 但是有可能求出来的最 ...

  9. BZOJ 4810 [Ynoi2017]由乃的玉米田 (莫队 + bitset)

    题目链接  BZOJ 4810 首先对询问离线, 莫队算法处理. 首先我们可以用bitset维护处当前区间中是否存在某个数. 对于询问1, 我们可以用 ((f >> q[i].x) &am ...

  10. 在C#中使用Json.Net进行序列化和反序列化及定制化

    序列化(Serialize)是将对象转换成字节流,并将其用于存储或传输的过程,主要用途是保存对象的状态,以便在需要时重新创建该对象:反序列化(Deserialize)则是将上面的字节流转换为相应对象的 ...