Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页
    1. Home
    2. ceoifung
    C
    • Profile
    • Following 0
    • Followers 0
    • my integral 688
    • Topics 4
    • Posts 15
    • Best 1
    • Groups 0

    ceoifungLV 4

    @ceoifung

    688
    integral
    1
    Reputation
    1
    Profile views
    15
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    ceoifung Unfollow Follow

    Best posts made by ceoifung

    • A133适配AMOLED屏幕,LCD时序参数过小导致无法进入U-Boot

      目前有一个LCD驱动,里面的LCD时序参数是:

      lcd_hbp             = <40>;
      lcd_ht              = <820>;
      lcd_hspw            = <20>;
      lcd_vbp             = <16>;
      lcd_vt              = <1320>;
      lcd_vspw            = <8>;
      

      然后能正常进入U-Boot,但是新屏幕,我修改了如下参数:

      lcd_hbp             = <20>;
      lcd_ht              = <654>;
      lcd_hspw            = <32>;
      lcd_vbp             = <12>;
      lcd_vt              = <828>;
      lcd_vspw            = <4>;
      

      然后就发现U-Boot进不去了,然后我适当增大了lcd_hbp、lcd_vbp的值,然后就能进入U-Boot了,修改后的参数是:

      lcd_hbp             = <40>;
      lcd_ht              = <684>;
      lcd_hspw            = <32>;
      lcd_vbp             = <16>;
      lcd_vt              = <888>;
      lcd_vspw            = <4>;
      

      所以我现在的疑问是LCD时序参数里面lcd_hbp与lcd_vbp是不是有一个最小值限制呀?另外屏厂给的推荐参数就是那个不能进入U-Boot的参数值,适当增大之后对屏幕驱动是不是有相关影响呀?求各位大佬帮帮忙

      posted in 其它全志芯片讨论区
      C
      ceoifung

    Latest posts made by ceoifung

    • Reply: A133 board.dts中触摸IC中twi配置i2c地址的问题

      @chengwei_peng kernel 4.9

      posted in 其它全志芯片讨论区
      C
      ceoifung
    • Reply: A133 board.dts中触摸IC中twi配置i2c地址的问题

      @chengwei_peng 触摸驱动需要在设备树上面注册reset-gpios,查看了一下Linux设备树的reset-gpios的参数,有三个,我看一般的写法是

      reset-gpios = <&pioD 22 GPIO_ACTIVE_LOW>;
      

      但是我看了pin-ctrl.dtsi,并没有&pioD这样的写法,都是&pio PD 22这样的写法,如果我要设置PD22为reset引脚,我这样写可以吗

      reset-gpios = <&pio PD 22 GPIO_ACTIVE_LOW>;
      
      posted in 其它全志芯片讨论区
      C
      ceoifung
    • Reply: A133适配AMOLED屏幕,LCD时序参数过小导致无法进入U-Boot

      @anruliu 请问一下:屏厂给的参数就是这样的,对方FAE说这个参数可能不适用于所有的平台,需要芯片厂家推荐一个合适的值,下面是厂商给的部分参数,A133这个平台LCD的时序与这个屏幕怎么个调整比较合适呢?大佬有什么解决方法吗?

      建议值:HSW=32,HBP=20,HFP=2, VSW=4,VBP=12,VFP=12
      分辨率:720*800
      Frame rate:60HZ
      
      posted in 其它全志芯片讨论区
      C
      ceoifung
    • Reply: A133 board.dts中触摸IC中twi配置i2c地址的问题

      @chengwei_peng 我看到A133默认支持了FTX5x系列驱动的支持,我的驱动芯片属于atm_mxt_ts的,移植的时候,也是在这里配置是吧,只不过是一些ctp的配置没有我删减掉就好了是吗

      posted in 其它全志芯片讨论区
      C
      ceoifung
    • 有谁用A133移植过atmel_mxt触摸驱动吗

      A133的kernel里面有atmel_mxt驱动文件,有谁移植过吗

      posted in 其它全志芯片讨论区
      C
      ceoifung
    • A133 board.dts中触摸IC中twi配置i2c地址的问题

      A133芯片移植触摸驱动芯片,有个twi配置

      ctp {
      	compatible = "allwinner,gt9xxnew_ts";
      	reg = <0x5d>;
      	device_type = "ctp";
      	status = "okay";
      	ctp_name = "gt9xxnew_ts";
      	ctp_twi_id = <0x1>;
      	ctp_twi_addr = <0x40>;
      	ctp_screen_max_x = <720>;
      	ctp_screen_max_y = <1280>;
      	ctp_revert_x_flag = <0>;
      	ctp_revert_y_flag = <0>;
      
      	ctp_exchange_x_y_flag = <0x0>;
      	ctp_int_port = <&pio PH 19 6 0xffffffff 0xffffffff 0>;
      	ctp_wakeup = <&pio PD 22 1 0xffffffff 0xffffffff 1>; 
      	ctp-supply;
      	ctp_power_ldo_vol = <3300>;
      };
      

      里面的reg和ctp_twi_addr是代表什么意思呀,我的触摸驱动IC的i2c地址应该填在reg还是ctp_twi_addr呀

      posted in 其它全志芯片讨论区
      C
      ceoifung
    • Reply: A133适配AMOLED屏幕,LCD时序参数过小导致无法进入U-Boot

      @anruliu 屏厂给的这个参数就是这么小的

      posted in 其它全志芯片讨论区
      C
      ceoifung
    • Reply: A133适配AMOLED屏幕,LCD时序参数过小导致无法进入U-Boot

      @anruliu

      lcd0: lcd0@01c0c000 {
      			lcd_used            = <1>;
      
      			lcd_driver_name     = "xiaor_amoled";
      			lcd_backlight       = <255>;
      			lcd_if              = <4>;
      
      			lcd_x               = <600>;
      			lcd_y               = <800>;
      			lcd_width           = <190>;
      			lcd_height          = <254>;
      			lcd_dclk_freq       = <55>;
      
      			lcd_pwm_used        = <0>;
      			lcd_pwm_ch          = <0>;
      			lcd_pwm_freq        = <5000>;
      			lcd_pwm_pol         = <1>;
      			lcd_pwm_max_limit   = <250>;
      
      			lcd_hbp             = <52>;
      			lcd_ht              = <654>;
      			lcd_hspw            = <32>;
      			lcd_vbp             = <16>;
      			lcd_vt              = <828>;
      			lcd_vspw            = <4>;
      
      			lcd_frm             = <0>;
      			lcd_io_phase		= <0>;
      			lcd_gamma_en        = <0>;
      			lcd_bright_curve_en = <0>;
      			lcd_cmap_en         = <0>;
      			
      			deu_mode            = <0>;
      			lcdgamma4iep        = <22>;
      			smart_color         = <90>;
      
      			lcd_dsi_if          = <0>;
      			lcd_dsi_lane        = <4>;
      			lcd_dsi_format      = <0>;
      			lcd_dsi_te          = <0>;
      			lcd_dsi_eotp        = <0>;
      
      			lcd_pin_power = "eldo1";
      			lcd_power = "dc1sw";
      			//lcd_bl_en = <&pio PG 9 1 0 3 1>;
      			lcd_gpio_0 = <&pio PB 6 1 1 3 1>;
      			lcd_gpio_1 = <&pio PB 2 1 1 3 1>;
      			lcd_gpio_2 = <&pio PD 20 1 1 3 1>;
      			pinctrl-0 = <&dsi4lane_pins_a>;
      			pinctrl-1 = <&dsi4lane_pins_b>;
      		};
      
      posted in 其它全志芯片讨论区
      C
      ceoifung
    • Reply: A133适配AMOLED屏幕,LCD时序参数过小导致无法进入U-Boot

      @anruliu 我这边重新计算了以下相关的值,还是进不去u-boot,我的屏幕13.3寸,这个和屏幕大小尺寸会有关系吗?以下是开机后,打印的内容

      [SCP] :sunxi-arisc driver begin startup 2
      [SCP] :0x1
      [SCP] :arisc version: []
      [SCP] :arisc startup ready
      [SCP] :arisc startup notify message feedback
      [SCP] :send hard sync feedback message: 0x900200
      [SCP] :sunxi-arisc driver v1.10 is starting
      [00.616]PMU: AXP803
      [00.618]PMU: AXP803
      bias_name:pc_bias        bias_vol:1800
      [00.688]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz  MBus=400Mhz
      [00.695]drv_disp_init
      [00.720]drv_disp_init finish
      [00.726]gic: sec monitor mode
      [00.728]flash init start
      [00.730]workmode = 0,storage type = 2
      [00.734][mmc]: mmc driver ver uboot2018:2020-5-25 9:26:00-202007011433
      [00.741][mmc]: get sdc_type fail and use default host:tm4.
      [00.753][mmc]: SUNXI SDMMC Controller Version:0x50300
      [00.781][mmc]: Best spd md: 4-HS400, freq: 3-100000000, Bus width: 8
      [00.787]sunxi flash init ok
      [00.791]Loading Environment from SUNXI_FLASH... OK
      [00.800]out of usb burn from boot: not need burn key
      [00.804]boot_gui_init:start
      [00.809]set disp.dev2_output_type fail. using defval=0
      
      

      串口输出到[00.809]set disp.dev2_output_type fail. using defval=0就没有内容了,然后测试发现初始化完LCD_cfg_panel_info这个函数之后,进不去LCD_power_on这个函数

      posted in 其它全志芯片讨论区
      C
      ceoifung
    • A133适配AMOLED屏幕,LCD时序参数过小导致无法进入U-Boot

      目前有一个LCD驱动,里面的LCD时序参数是:

      lcd_hbp             = <40>;
      lcd_ht              = <820>;
      lcd_hspw            = <20>;
      lcd_vbp             = <16>;
      lcd_vt              = <1320>;
      lcd_vspw            = <8>;
      

      然后能正常进入U-Boot,但是新屏幕,我修改了如下参数:

      lcd_hbp             = <20>;
      lcd_ht              = <654>;
      lcd_hspw            = <32>;
      lcd_vbp             = <12>;
      lcd_vt              = <828>;
      lcd_vspw            = <4>;
      

      然后就发现U-Boot进不去了,然后我适当增大了lcd_hbp、lcd_vbp的值,然后就能进入U-Boot了,修改后的参数是:

      lcd_hbp             = <40>;
      lcd_ht              = <684>;
      lcd_hspw            = <32>;
      lcd_vbp             = <16>;
      lcd_vt              = <888>;
      lcd_vspw            = <4>;
      

      所以我现在的疑问是LCD时序参数里面lcd_hbp与lcd_vbp是不是有一个最小值限制呀?另外屏厂给的推荐参数就是那个不能进入U-Boot的参数值,适当增大之后对屏幕驱动是不是有相关影响呀?求各位大佬帮帮忙

      posted in 其它全志芯片讨论区
      C
      ceoifung