导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页
    1. 主页
    2. fantasya
    3. 帖子
    F
    • 资料
    • 关注 0
    • 粉丝 0
    • 我的积分 756
    • 主题 4
    • 帖子 19
    • 最佳 0
    • 群组 0

    fantasya 发布的帖子

    • 回复: Ubuntu 22.04 Server SDK下载报错

      @awwwwa
      使用python3的话repo会直接报错无法执行,使用python2的话可以执行但是结果和上面一样的

      fantasy@fantasy:~/tina-d1-h$ git --version
      git version 2.34.1
      fantasy@fantasy:~/tina-d1-h$ python2 --version
      Python 2.7.18
      
      发布在 MR Series
      F
      fantasya
    • 回复: Ubuntu 22.04 Server SDK下载报错

      @awwwwa 有git的,我还clone了其他仓库的,保存验证命令也是能执行使用的,但是验证过不去

      发布在 MR Series
      F
      fantasya
    • Ubuntu 22.04 Server SDK下载报错

      国内镜像源安装的repo,在输入账号和密码后报错,无法通过验证

      fantasy@fantasy:~/tina-d1-h$ repo init -u https://sdk.aw-ol.com/git_repo/D1_Tina_Open/manifest.git -b master -m tina-d1-h.xml
      repo: reusing existing repo client checkout in /home/fantasy/tina-d1-h
      Username for 'https://sdk.aw-ol.com': fantasya
      Password for 'https://fantasya@sdk.aw-ol.com':
      
      Traceback (most recent call last):
        File "/home/fantasy/tina-d1-h/.repo/repo/main.py", line 896, in <module>
          _Main(sys.argv[1:])
        File "/home/fantasy/tina-d1-h/.repo/repo/main.py", line 861, in _Main
          result = repo._Run(name, gopts, argv) or 0
        File "/home/fantasy/tina-d1-h/.repo/repo/main.py", line 293, in _Run
          result = run()
        File "/home/fantasy/tina-d1-h/.repo/repo/main.py", line 276, in <lambda>
          run = lambda: self._RunLong(name, gopts, argv) or 0
        File "/home/fantasy/tina-d1-h/.repo/repo/main.py", line 450, in _RunLong
          execute_command()
        File "/home/fantasy/tina-d1-h/.repo/repo/main.py", line 416, in execute_command
          execute_command_helper()
        File "/home/fantasy/tina-d1-h/.repo/repo/main.py", line 382, in execute_command_helper
          result = cmd.Execute(copts, cargs)
        File "/home/fantasy/tina-d1-h/.repo/repo/subcmds/init.py", line 393, in Execute
          self._ConfigureUser(opt)
        File "/home/fantasy/tina-d1-h/.repo/repo/subcmds/init.py", line 210, in _ConfigureUser
          name = self._Prompt("Your Name", mp.UserName)
        File "/home/fantasy/tina-d1-h/.repo/repo/project.py", line 756, in UserName
          self._LoadUserIdentity()
        File "/home/fantasy/tina-d1-h/.repo/repo/project.py", line 769, in _LoadUserIdentity
          u = self.bare_git.var("GIT_COMMITTER_IDENT")
        File "/home/fantasy/tina-d1-h/.repo/repo/project.py", line 3701, in runner
          p.Wait()
        File "/home/fantasy/tina-d1-h/.repo/repo/git_command.py", line 402, in Wait
          raise GitCommandError(
      git_command.GitCommandError: GitCommandError: git command failure
          Project: manifests
          Args: var GIT_COMMITTER_IDENT
          Stdout:
      None
          Stderr:
      Committer identity unknown
      
      fantasy@fantasy:~/tina-d1-h$ python --version
      Python 3.10.12
      
      发布在 MR Series
      F
      fantasya
    • 回复: t113 buildroot现在以修改串口输出了吗

      @whycanservice 这个主线的驱动列表可以在哪找到啊

      发布在 其它全志芯片讨论区
      F
      fantasya
    • 回复: t113 buildroot现在以修改串口输出了吗

      @efancier 声卡驱动有包含吗,目前用不上eth,准备复用为普通io,目前编译启动后系统里面alsa找不到声卡

      发布在 其它全志芯片讨论区
      F
      fantasya
    • t113 buildroot现在以修改串口输出了吗

      回复: t113-s3 buildroot构建修改串口输
      https://github.com/YuzukiHD/Buildroot-YuzukiSBC
      看最近更新了主线内核和新的uboot

      发布在 其它全志芯片讨论区
      F
      fantasya
    • 回复: T113 尝试驱动MIPI屏幕遇到问题,启动卡在SD卡阶段

      @whycanservice2 mipi屏幕换成pd20了,目前按上面所说修改时序后可以进入系统,但是无法显示,dma分配内存报错,需要进一步排除屏幕链接问题,目前使用杜邦线可能会有问题,在等pcb

      发布在 其它全志芯片讨论区
      F
      fantasya
    • 回复: T113 尝试驱动MIPI屏幕遇到问题,启动卡在SD卡阶段

      @whycanservice2 会啊,并不会有变化

      发布在 其它全志芯片讨论区
      F
      fantasya
    • 回复: T113 尝试驱动MIPI屏幕遇到问题,启动卡在SD卡阶段

      @whycanservice2
      我把initcall输出打开了,这边可以看见有一个地方申请内存失败了

      [    3.356991] initcall mbus_pmu_init+0x0/0x38 returned 0 after 7039 usecs
      [    3.363625] calling  disp_module_init+0x0/0x120 @ 1
      [    3.368524] [DISP]disp_module_init
      [    3.372410] disp 5000000.disp: Adding to iommu group 0
      [    3.378104] [DISP] parser_disp_init_para,line:1326:
      [    3.378108] of_property_read screen1_output_type fail
      [    3.404294] display_fb_request,fb_id:0
      [    3.408094] [DISP] __disp_ion_alloc_coherent,line:1545:
      [    3.408100] __disp_ion_alloc_coherent: ion_alloc failed, size=0 dmabuf=0xffffffea
      [    3.420837] [DISP] disp_ion_malloc,line:1615:
      [    3.420840] fail to alloc ion, ret=-2
      [    3.428875] [DISP] fb_map_video_memory,line:127:
      [    3.428877] disp_malloc fail!
      [    3.436811] disp_al_manager_apply ouput_type:0
      [    3.441766] probe of 5000000.disp returned 1 after 69427 usecs
      [    3.447663] [DISP] lcd_clk_config,line:774:
      [    3.447673] disp 0, clk: pll(408000000),clk(408000000),dclk(34000000) dsi_rate(34000000)
      [    3.447673]      clk real:pll(408000000),clk(408000000),dclk(102000000) dsi_rate(150000000)
      [    3.468515] [DISP]disp_module_init finish
      [    3.472557] initcall disp_module_init+0x0/0x120 returned 0 after 101584 usecs
      [    3.479750] calling  of_fixed_factor_clk_driver_init+0x0/0x10 @ 1
      [    3.486028] initcall of_fixed_factor_clk_driver_init+0x0/0x10 returned 0 after 175 usecs
      [    3.494166] [DISP] disp_lcd_enable,line:2148:
      [    3.494169] disp_lcd_enable: lcd_clk_enable ret:
      [    3.498560] calling  of_fixed_clk_driver_init+0x0/0x10 @ 1
      [    3.508877] initcall of_fixed_clk_driver_init+0x0/0x10 returned 0 after 137 usecs
      [    3.516368] calling  gpio_clk_driver_init+0x0/0x10 @ 1
      [    3.521682] initcall gpio_clk_driver_init+0x0/0x10 returned 0 after 143 usecs
      
      
      发布在 其它全志芯片讨论区
      F
      fantasya
    • 回复: T113 尝试驱动MIPI屏幕遇到问题,启动卡在SD卡阶段

      @whycanservice2 后面修改成PD20也是一样,SPI全部都被禁用掉了,uboot和内核设备树全是disable,我是用TF卡进行启动的

      发布在 其它全志芯片讨论区
      F
      fantasya
    • 回复: T113 尝试驱动MIPI屏幕遇到问题,启动卡在SD卡阶段

      并且DCLK永远分不出来设备树里面填写的值,24M,34M,68M,72M,100M都尝试过

      发布在 其它全志芯片讨论区
      F
      fantasya
    • 回复: T113 尝试驱动MIPI屏幕遇到问题,启动卡在SD卡阶段

      @whycanservice2 大部分功能都被我设置成disable了,试了直接复制tft08006里面的设备树也并不能启动,卡在同一个地方,st7701s的也是一样,无论设置成4lane还是2lane都会卡主

      发布在 其它全志芯片讨论区
      F
      fantasya
    • 回复: T113 尝试驱动MIPI屏幕遇到问题,启动卡在SD卡阶段

      @whycanservice2 mipi 2lane屏幕使用的引脚还是和rgb的一样啊,rst引脚改成了pd20,使用rgb的时候是vsync,并没有重定义

      发布在 其它全志芯片讨论区
      F
      fantasya
    • 回复: T113 尝试驱动MIPI屏幕遇到问题,启动卡在SD卡阶段

      这是移植的驱动源码,基于ST7701s驱动进行修改的
      源文件

      /*
       * drivers/video/fbdev/sunxi/disp2/disp/lcd/d300t9307v0.c
       *
       * Copyright (c) 2007-2018 Allwinnertech Co., Ltd.
       * Author: zhengxiaobin <zhengxiaobin@allwinnertech.com>
       *         zhangyuanjings <zhangyuanjings@allwinnertech.com>
       *
       * This software is licensed under the terms of the GNU General Public
       * License version 2, as published by the Free Software Foundation, and
       * may be copied, distributed, and modified under those terms.
       *
       * This program is distributed in the hope that it will be useful,
       * but WITHOUT ANY WARRANTY; without even the implied warranty of
       * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
       * GNU General Public License for more details.
       *
       &lcd0 {
      	lcd_used            = <1>;
      
      	lcd_driver_name     = "d300t9307v0";
      	lcd_backlight       = <150>;
      	lcd_if              = <4>;
      
      	lcd_x           	= <480>;
      	lcd_y           	= <854>;
      	lcd_width           = <37>;
      	lcd_height          = <65>;
          lcd_dclk_freq       = <24>;
      
      	lcd_pwm_used        = <1>;
      	lcd_pwm_ch          = <7>;
      	lcd_pwm_freq        = <50000>;
      	lcd_pwm_pol         = <0>;
      	lcd_pwm_max_limit   = <255>;
      
      	lcd_hbp             = <43>;
      	lcd_ht              = <533>;
      	lcd_hspw            = <2>;
      	lcd_vbp             = <42>;
      	lcd_vt              = <910>;
      	lcd_vspw            = <10>;
      
      	lcd_dsi_if          = <0>;
      	lcd_dsi_lane        = <2>;
      	lcd_dsi_te          = <0>;
      	lcd_dsi_eotp        = <0>;
      
      	lcd_frm             = <0>;
      	lcd_io_phase        = <0x0000>;
      	lcd_hv_clk_phase    = <0>;
      	lcd_hv_sync_polarity= <0>;
      	lcd_gamma_en        = <0>;
      	lcd_bright_curve_en = <0>;
      	lcd_cmap_en         = <0>;
      
      	deu_mode            = <0>;
      	lcdgamma4iep        = <22>;
      	smart_color         = <90>;
      
      	lcd_gpio_0 =  <&pio PC 2 GPIO_ACTIVE_HIGH>;
      	pinctrl-0 = <&dsi2lane_pins_a>;
      	pinctrl-1 = <&dsi2lane_pins_b>;
      };
      */
      
      #include "d300t9307v0.h"
      
      #define panel_reset(sel, val) sunxi_lcd_gpio_set_value(sel, 0, val)
      
      static void LCD_power_on(u32 sel);
      static void LCD_power_off(u32 sel);
      static void LCD_bl_open(u32 sel);
      static void LCD_bl_close(u32 sel);
      
      static void LCD_panel_init(u32 sel);
      static void LCD_panel_exit(u32 sel);
      
      static void LCD_cfg_panel_info(struct panel_extend_para *info)
      {
      	u32 i = 0, j = 0;
      	u32 items;
      	u8 lcd_gamma_tbl[][2] = {
      	    {0, 0},     {15, 15},   {30, 30},   {45, 45},   {60, 60},
      	    {75, 75},   {90, 90},   {105, 105}, {120, 120}, {135, 135},
      	    {150, 150}, {165, 165}, {180, 180}, {195, 195}, {210, 210},
      	    {225, 225}, {240, 240}, {255, 255},
      	};
      
      	u32 lcd_cmap_tbl[2][3][4] = {
      	    {
      		{LCD_CMAP_G0, LCD_CMAP_B1, LCD_CMAP_G2, LCD_CMAP_B3},
      		{LCD_CMAP_B0, LCD_CMAP_R1, LCD_CMAP_B2, LCD_CMAP_R3},
      		{LCD_CMAP_R0, LCD_CMAP_G1, LCD_CMAP_R2, LCD_CMAP_G3},
      	    },
      	    {
      		{LCD_CMAP_B3, LCD_CMAP_G2, LCD_CMAP_B1, LCD_CMAP_G0},
      		{LCD_CMAP_R3, LCD_CMAP_B2, LCD_CMAP_R1, LCD_CMAP_B0},
      		{LCD_CMAP_G3, LCD_CMAP_R2, LCD_CMAP_G1, LCD_CMAP_R0},
      	    },
      	};
      
      	items = sizeof(lcd_gamma_tbl) / 2;
      	for (i = 0; i < items - 1; i++) {
      		u32 num = lcd_gamma_tbl[i + 1][0] - lcd_gamma_tbl[i][0];
      
      		for (j = 0; j < num; j++) {
      			u32 value = 0;
      
      			value =
      			    lcd_gamma_tbl[i][1] +
      			    ((lcd_gamma_tbl[i + 1][1] - lcd_gamma_tbl[i][1]) *
      			     j) /
      				num;
      			info->lcd_gamma_tbl[lcd_gamma_tbl[i][0] + j] =
      			    (value << 16) + (value << 8) + value;
      		}
      	}
      	info->lcd_gamma_tbl[255] = (lcd_gamma_tbl[items - 1][1] << 16) +
      				   (lcd_gamma_tbl[items - 1][1] << 8) +
      				   lcd_gamma_tbl[items - 1][1];
      
      	memcpy(info->lcd_cmap_tbl, lcd_cmap_tbl, sizeof(lcd_cmap_tbl));
      }
      
      static s32 LCD_open_flow(u32 sel)
      {
      	/* open lcd power, and delay 50ms */
      	printk(KERN_INFO,"[INFO]d300t9307v0 pw on \n");
      	LCD_OPEN_FUNC(sel, LCD_power_on, 50);
      	/* open lcd power, than delay 200ms */
      	printk(KERN_INFO,"[INFO]d300t9307v0 panel init \n");
      	LCD_OPEN_FUNC(sel, LCD_panel_init, 120);
      	/* open lcd controller, and delay 100ms */
      	printk(KERN_INFO,"[INFO]d300t9307v0 tcon on \n");
      	LCD_OPEN_FUNC(sel, sunxi_lcd_tcon_enable, 120);
      	/* open lcd backlight, and delay 0ms */
      	printk(KERN_INFO,"[INFO]d300t9307v0 bl on \n");
      	LCD_OPEN_FUNC(sel, LCD_bl_open, 0);
      
      	return 0;
      }
      
      static s32 LCD_close_flow(u32 sel)
      {
      	/* close lcd backlight, and delay 0ms */
      	LCD_CLOSE_FUNC(sel, LCD_bl_close, 0);
      	/* close lcd controller, and delay 0ms */
      	LCD_CLOSE_FUNC(sel, sunxi_lcd_tcon_disable, 0);
      	/* open lcd power, than delay 200ms */
      	LCD_CLOSE_FUNC(sel, LCD_panel_exit, 200);
      	/* close lcd power, and delay 500ms */
      	LCD_CLOSE_FUNC(sel, LCD_power_off, 500);
      
      	return 0;
      }
      
      static void LCD_power_on(u32 sel)
      {
      	sunxi_lcd_pin_cfg(sel, 1);
          sunxi_lcd_delay_ms(50);
      }
      
      static void LCD_bl_open(u32 sel)
      {
      	sunxi_lcd_pwm_enable(sel);
      	/* config lcd_bl_en pin to open lcd backlight */
      	sunxi_lcd_backlight_enable(sel);
      }
      
      static void LCD_bl_close(u32 sel)
      {
      	/* config lcd_bl_en pin to close lcd backlight */
      	sunxi_lcd_backlight_disable(sel);
      	sunxi_lcd_pwm_disable(sel);
      }
      
      static void LCD_power_off(u32 sel)
      {
      	sunxi_lcd_pin_cfg(sel, 0);
      	sunxi_lcd_delay_ms(1);
      	panel_reset(sel, 0);
      	sunxi_lcd_delay_ms(1);
      }
      
      #define REGFLAG_DELAY         0XFE
      #define REGFLAG_END_OF_TABLE  0xFC   /* END OF REGISTERS MARKER */
      
      struct LCM_setting_table {
      	u8 cmd;
      	u32 count;
      	u8 para_list[18];
      };
      
      static struct LCM_setting_table lcm_d300t9307v0_setting[] = {
          {0xFF, 5,{0x77, 0x01, 0x00, 0x00, 0x13}},
          {0xEF, 1, {0x08}},
          {0xFF, 5, {0x77, 0x01, 0x00, 0x00, 0x10}},
          {0xC0, 2, {0xE9, 0x03}},
          {0xC1, 2, {0x10, 0x0C}},
          {0xC2, 1, {0x20, 0x0A}},
          {0xCC, 1, {0x10}},
          {0xB0, 16, {0x00, 0x23, 0x2A, 0x0A, 0x0E, 0x03, 0x12, 0x06, 0x06, 0x2A, 0x00, 0x10, 0x0F, 0x2D, 0x34, 0x1F}},
          {0xB1, 16, {0x00, 0x24, 0x2B, 0x0F, 0x12, 0x07, 0x15, 0x0A, 0x0A, 0x2B, 0x08, 0x13, 0x10, 0x2D, 0x33, 0x1F}},
          {0xFF, 5, {0x77, 0x01, 0x00, 0x00, 0x11}},
          {0xB0, 1, {0x4D}},
          {0xB1, 1, {0x48}},
          {0xB2, 1, {0x84}},
          {0xB3, 1, {0x80}},
          {0xB5, 1, {0x45}},
          {0xB7, 1, {0x85}},
          {0xB8, 1, {0x33}},
          {0xC1, 1, {0x78}},
          {0xC2, 1, {0x78}},
          {0xD0, 1, {0x88}},
          {0xE0, 3, {0x00, 0x00, 0x02}},
          {0xE1, 11, {0x06, 0xA0, 0x08, 0xA0, 0x05, 0xA0, 0x07, 0xA0, 0x00, 0x44, 0x44}},
          {0xE2, 12, {0x30, 0x30, 0x44, 0x44, 0x6E, 0xA0, 0x00, 0x00, 0x6E, 0xA0, 0x00, 0x00}},
          {0xE3, 4, {0x00, 0x00, 0x33, 0x33}},
          {0xE4, 2, {0x44, 0x44}},
          {0xE5, 16, {0x0D, 0x69, 0x0A, 0xA0, 0x0F, 0x6B, 0x0A, 0xA0, 0x09, 0x65, 0x0A, 0xA0, 0x0B, 0x67, 0x0A, 0xA0}},
          {0xE6, 4, {0x00, 0x00, 0x33, 0x33}},
          {0xE7, 2, {0x44, 0x44}},
          {0xE8, 16, {0x0C, 0x68, 0x0A, 0xA0, 0x0E, 0x6A, 0x0A, 0xA0, 0x08, 0x64, 0x0A, 0xA0, 0x0A, 0x66, 0x0A, 0xA0}},
          {0xE9, 2, {0x36, 0x00}},
          {0xEB, 7, {0x00, 0x01, 0xE4, 0xE4, 0x44, 0x88, 0x40}},
          {0xED, 16, {0xFF, 0x45, 0x67, 0xFA, 0x01, 0x2B, 0xCF, 0xFF, 0xFF, 0xFC, 0xB2, 0x10, 0xAF, 0x76, 0x54, 0xFF}},
          {0xEF, 6, {0x10, 0x0D, 0x04, 0x08, 0x3F, 0x1F}},
          {0x11 ,0, {}},
          {REGFLAG_DELAY, REGFLAG_DELAY, {120} },
          // {0x3A, 1 , {0x55}},//RGB565
          // {0x3A, 1 , {0x70}},//RGB888 Default
          {0x29 ,1, {0x00}},
          {REGFLAG_END_OF_TABLE, REGFLAG_END_OF_TABLE, {} }
      };
      
      static void LCD_panel_init(u32 sel)
      {
      	/* reset lcd by gpio */
      	panel_reset(sel, 1);
      	sunxi_lcd_delay_ms(1);
      	panel_reset(sel, 0);
      	sunxi_lcd_delay_ms(10);
      	panel_reset(sel, 1);
      	sunxi_lcd_delay_ms(150);
      
      	printk(KERN_INFO,"[INFO]d300t9307v0 panel init start\n");
      
      	// sunxi_lcd_dsi_clk_enable(sel);
      	// sunxi_lcd_delay_ms(10);
      	// u32 i;
      	// for (i = 0;; i++) {
      	// 	if (lcm_d300t9307v0_setting[i].cmd == REGFLAG_END_OF_TABLE)
      	// 		break;
      	// 	else if (lcm_d300t9307v0_setting[i].cmd == REGFLAG_DELAY)
      	// 		sunxi_lcd_delay_ms(lcm_d300t9307v0_setting[i].count);
      	// 	else {
      	// 		if(lcm_d300t9307v0_setting[i].count > 0) {
      	// 				dsi_dcs_wr(sel, lcm_d300t9307v0_setting[i].cmd,
      	// 			   lcm_d300t9307v0_setting[i].para_list,
      	// 			   lcm_d300t9307v0_setting[i].count);
      	// 		}else{
      	// 			sunxi_lcd_dsi_dcs_write_0para(sel, lcm_d300t9307v0_setting[i].cmd);
      	// 		}
      	// 	}
      	// }
      	printk(KERN_INFO,"[INFO]d300t9307v0 panel init finsih\n");
      }
      
      static void LCD_panel_exit(u32 sel)
      {
      	sunxi_lcd_dsi_dcs_write_0para(sel, 0x28);
      	sunxi_lcd_delay_ms(10);
      	sunxi_lcd_dsi_dcs_write_0para(sel, 0x10);
      	sunxi_lcd_delay_ms(10);
      }
      
      /* sel: 0:lcd0; 1:lcd1 */
      static s32 LCD_user_defined_func(u32 sel, u32 para1, u32 para2, u32 para3)
      {
      	return 0;
      }
      
      struct __lcd_panel d300t9307v0_panel = {
      	/* panel driver name, must mach the name of lcd_drv_name in sys_config.fex */
      	.name = "d300t9307v0",
      	.func = {
      		.cfg_panel_info = LCD_cfg_panel_info,
      		.cfg_open_flow = LCD_open_flow,
      		.cfg_close_flow = LCD_close_flow,
      		.lcd_user_defined_func = LCD_user_defined_func,
      	},
      };
      

      头文件

      /* drivers/video/sunxi/disp2/disp/lcd/d300t9307v0.h
       *
       * d300t9307v0 panel driver
       *
      */
      #ifndef _D300T9307V0_H
      #define _D300T9307V0_H
      
      #include "panels.h"
      
      extern struct __lcd_panel d300t9307v0_panel;
      
      extern s32 bsp_disp_get_panel_info(u32 screen_id, struct disp_panel_para *info);
      
      #endif /*End of file*/
      
      发布在 其它全志芯片讨论区
      F
      fantasya
    • 回复: T113 尝试驱动MIPI屏幕遇到问题,启动卡在SD卡阶段

      @whycan 对比过了,但是没有看出哪里有啥问题,但是我都在驱动里面加了printk输出,但是只有rgb的会被输出出来,mipi的并没有输出出来,但是可以确定驱动是进了编译了

      发布在 其它全志芯片讨论区
      F
      fantasya
    • 回复: T113 尝试驱动MIPI屏幕遇到问题,启动卡在SD卡阶段

      这是将设备树改成rgb屏幕后启动的日志,只修改了设备树,内核驱动里面开了两个屏幕的驱动,修改设备树后可以正常进入系统,修改成mipi的则不能进入系统会卡在tf卡那边
      修改后的设备树

      	lcd_used            = <1>;
      	lcd_driver_name     = "nt35510";
      
      	lcd_bl_0_percent    = <0>;
      	lcd_bl_40_percent   = <23>;
      	lcd_bl_100_percent  = <100>;
      	lcd_backlight       = <150>;
      
      	lcd_if              = <0>;
      	lcd_x               = <480>;
      	lcd_y               = <800>;
      	lcd_width           = <0>;
      	lcd_height          = <0>;
      	lcd_dclk_freq       = <24>;
      
      	lcd_pwm_used        = <0>;
      	lcd_pwm_ch          = <7>;
      	lcd_pwm_freq        = <50000>;
      	lcd_pwm_pol         = <0>;
      	lcd_pwm_max_limit   = <255>;
      
      	lcd_hbp             = <20>;
      	lcd_ht              = <520>;
      	lcd_hspw            = <4>;
      	lcd_vbp             = <20>;
      	lcd_vt              = <840>;
      	lcd_vspw            = <4>;
      
      	// lcd_hbp             = <5>;
      	// lcd_ht              = <487>;
      	// lcd_hspw            = <0>;
      	// lcd_vbp             = <5>;
      	// lcd_vt              = <807>;
      	// lcd_vspw            = <0>;
      
      	lcd_frm             = <0>;
      	lcd_io_phase        = <0x0000>;
      	lcd_hv_clk_phase    = <0>;
      	lcd_hv_sync_polarity= <0>;
      	lcd_gamma_en        = <0>;
      	lcd_bright_curve_en = <0>;
      	lcd_cmap_en         = <0>;
      
      	deu_mode            = <0>;
      	lcdgamma4iep        = <22>;
      	smart_color         = <90>;
      
      	lcd_gpio_0 = <&pio PC 2 GPIO_ACTIVE_HIGH>;   // RST
      	lcd_gpio_1 = <&pio PC 3 GPIO_ACTIVE_HIGH>;   // SCLK
      	lcd_gpio_2 = <&pio PC 4 GPIO_ACTIVE_HIGH>;   // MISO
      	lcd_gpio_3 = <&pio PC 5 GPIO_ACTIVE_HIGH>;   // MOSI
      	lcd_gpio_4 = <&pio PE 3 GPIO_ACTIVE_HIGH>;   // CS
      
      	pinctrl-0 = <&rgb24_pins_a>;
      	pinctrl-1 = <&rgb24_pins_b>;
      
      [01.770][mmc]: mmc 2 not find, so not exit
      [    0.000000] Booting Linux on physical CPU 0x0
      [    0.000000] Linux version 5.4.61 (gm@gm) (arm-openwrt-linux-muslgnueabi-gcc.bin (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) 6.4.1, GNU ld (GNU Binutils) 2.27) #99 SMP PREEMPT Thu Jul 13 12:10:07 UTC 2023
      [    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
      [    0.000000] CPU: div instructions available: patching division code
      [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
      [    0.000000] OF: fdt: Machine model: sun8iw20
      [    0.000000] printk: bootconsole [earlycon0] enabled
      [    0.000000] Memory policy: Data cache writealloc
      [    0.000000] cma: Reserved 8 MiB at 0x47800000
      [    0.000000] On node 0 totalpages: 32768
      [    0.000000]   Normal zone: 256 pages used for memmap
      [    0.000000]   Normal zone: 0 pages reserved
      [    0.000000]   Normal zone: 32768 pages, LIFO batch:7
      [    0.000000] psci: probing for conduit method from DT.
      [    0.000000] psci: PSCIv1.0 detected in firmware.
      [    0.000000] psci: Using standard PSCI v0.2 function IDs
      [    0.000000] psci: MIGRATE_INFO_TYPE not supported.
      [    0.000000] psci: SMC Calling Convention v1.0
      [    0.000000] percpu: Embedded 15 pages/cpu s30348 r8192 d22900 u61440
      [    0.000000] pcpu-alloc: s30348 r8192 d22900 u61440 alloc=15*4096
      [    0.000000] pcpu-alloc: [0] 0 [0] 1
      [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
      [    0.000000] Kernel command line: earlyprintk=sunxi-uart,0x02500C00 clk_ignore_unused initcall_debug=0 console=ttyS3,115200 loglevel=8 root=/dev/mmcblk0p5 init=/pseudo_init partitions=boot-resource@mmcblk0p1:env@mmcblk0p2:env-redund@mmcblk0p3:boot@mmcblk0p4:rootfs@mmcblk0p5:private@mmcblk0p6:rootfs_data@mmcblk0p7:UDISK@mmcblk0p8 cma=8M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.mode=normal androidboot.hardware=sun8iw20p1 boot_type=1 androidboot.boot_type=1 gpt=1 uboot_message=2018.07-ge987def5-dirty(07/13/2023-12:07:30) androidboot.dramsize=128
      [    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
      [    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
      [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
      [    0.000000] Memory: 109636K/131072K available (6144K kernel code, 260K rwdata, 1456K rodata, 1024K init, 1168K bss, 13244K reserved, 8192K cma-reserved)
      [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
      [    0.000000] rcu: Preemptible hierarchical RCU implementation.
      [    0.000000]  Tasks RCU enabled.
      [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
      [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
      [    0.000000] random: get_random_bytes called from start_kernel+0x264/0x3e8 with crng_init=0
      [    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
      [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
      [    0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
      [    0.008016] Switching to timer-based delay loop, resolution 41ns
      [    0.014193] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
      [    0.023964] Console: colour dummy device 80x30
      [    0.028449] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
      [    0.038805] pid_max: default: 32768 minimum: 301
      [    0.043547] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.050879] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.059214] CPU: Testing write buffer coherency: ok
      [    0.064414] /cpus/cpu@0 missing clock-frequency property
      [    0.069730] /cpus/cpu@1 missing clock-frequency property
      [    0.075085] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
      [    0.081243] Setting up static identity map for 0x40100000 - 0x40100060
      [    0.087918] rcu: Hierarchical SRCU implementation.
      [    0.093108] smp: Bringing up secondary CPUs ...
      [    0.098725] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
      [    0.098845] smp: Brought up 1 node, 2 CPUs
      [    0.108648] SMP: Total of 2 processors activated (96.00 BogoMIPS).
      [    0.114826] CPU: All CPU(s) started in SVC mode.
      [    0.119900] devtmpfs: initialized
      [    0.134006] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
      [    0.142149] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
      [    0.152039] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
      [    0.159251] pinctrl core: initialized pinctrl subsystem
      [    0.165460] NET: Registered protocol family 16
      [    0.171323] DMA: preallocated 256 KiB pool for atomic coherent allocations
      [    0.203433] rtc_ccu: sunxi ccu init OK
      [    0.209470] ccu: sunxi ccu init OK
      [    0.213298] r_ccu: sunxi ccu init OK
      [    0.234374] sun6i-dma 3002000.dma-controller: sunxi dma probed
      [    0.241799] iommu: Default domain type: Translated
      [    0.246866] sunxi iommu: irq = 24
      [    0.251030] SCSI subsystem initialized
      [    0.254901] usbcore: registered new interface driver usbfs
      [    0.260472] usbcore: registered new interface driver hub
      [    0.265861] usbcore: registered new device driver usb
      [    0.271704] Advanced Linux Sound Architecture Driver Initialized.
      [    0.278325] Bluetooth: Core ver 2.22
      [    0.282170] NET: Registered protocol family 31
      [    0.286643] Bluetooth: HCI device and connection manager initialized
      [    0.293041] Bluetooth: HCI socket layer initialized
      [    0.297932] Bluetooth: L2CAP socket layer initialized
      [    0.303008] Bluetooth: SCO socket layer initialized
      [    0.308172] pwm module init!
      [    0.312217] g2d 5410000.g2d: Adding to iommu group 0
      [    0.317527] G2D: rcq version initialized.major:252
      [    0.323034] clocksource: Switched to clocksource arch_sys_counter
      [    0.337429] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
      [    0.353986] NET: Registered protocol family 2
      [    0.358899] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
      [    0.367342] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.375038] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
      [    0.382106] TCP: Hash tables configured (established 1024 bind 1024)
      [    0.388604] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
      [    0.395193] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
      [    0.402362] NET: Registered protocol family 1
      [    0.408509] workingset: timestamp_bits=30 max_order=15 bucket_order=0
      [    0.419906] squashfs: version 4.0 (2009/01/31) Phillip Lougher
      [    0.425932] ntfs: driver 2.1.32 [Flags: R/W].
      [    0.458404] io scheduler mq-deadline registered
      [    0.462930] io scheduler kyber registered
      [    0.467963] [DISP]disp_module_init
      [    0.471849] disp 5000000.disp: Adding to iommu group 0
      [    0.477588] [DISP] parser_disp_init_para,line:1430:
      [    0.477593] of_property_read fb0_width fail
      [    0.502966] display_fb_request,fb_id:0
      [    0.508046] [DISP] Fb_copy_boot_fb,line:1445:
      [    0.508050] no boot_fb0
      [    0.515292] disp_al_manager_apply ouput_type:0
      [    0.520271] [DISP]disp_module_init finish
      [    0.525070] [DISP] lcd_clk_config,line:774:
      [    0.525082] disp 0, clk: pll(144000000),clk(144000000),dclk(24000000) dsi_rate(144000000)
      [    0.525082]      clk real:pll(288000000),clk(288000000),dclk(24000000) dsi_rate(0)
      [    0.525340] sunxi_sid_init()783 - insmod ok
      [    0.529284] [DISP] disp_sys_pwm_config,line:509:
      [    0.529286] disp_sys_pwm_Config, handle is NULL!
      [    0.546052] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
      [    0.549226] [DISP] disp_sys_pwm_set_polarity,line:528:
      [    0.549230] disp_sys_pwm_Set_Polarity, handle is NULL!
      [    0.554287] uart uart3: uart3 supply uart not found, using dummy regulator
      [    0.558524] [INFO]nt35510 pw on
      [    0.568664] uart3: ttyS3 at MMIO 0x2500c00 (irq = 34, base_baud = 1500000) is a SUNXI
      [    0.573532] [INFO]nt35510 panel init
      [    0.578674] sw_console_setup()1807 - console setup baud 115200 parity n bits 8, flow n
      [    0.585535] [INFO]nt35510 bl on
      ▒[    0.611479] printk: console [ttyS3] enabled
      [    0.611479] printk: console [ttyS3] enabled
      [    0.620408] printk: bootconsole [earlycon0] disabled
      [    0.620408] printk: bootconsole [earlycon0] disabled
      [    0.631658] misc dump reg init
      [    0.636143] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
      [    0.647280] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
      [    0.654483] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
      [    0.661755] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
      [    0.669131] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
      [    0.675631] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
      [    0.682520] sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1)
      [    0.690202] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=1
      [    0.698012] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
      [    0.706080] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
      [    0.713651] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
      [    0.720347] sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1)
      [    0.727847] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=141 assert=0
      [    0.735316] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
      [    0.746919] [ADDR_MGT] addr_mgt_probe: module version: v1.0.11
      [    0.754051] [ADDR_MGT] addr_mgt_probe: success.
      [    0.754077] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pb not found, using dummy regulator
      [    0.759405] dma-buf: Running sanitycheck
      [    0.770249] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pd not found, using dummy regulator
      [    0.774477] dma-buf: Running dma_fence
      [    0.789550] sizeof(dma_fence)=48
      [    0.793285] dma-buf: Running dma_fence/sanitycheck
      [    0.798626] dma-buf: Running dma_fence/test_signaling
      [    0.804262] dma-buf: Running dma_fence/test_add_callback
      [    0.810173] dma-buf: Running dma_fence/test_late_add_callback
      [    0.816572] dma-buf: Running dma_fence/test_rm_callback
      [    0.822386] dma-buf: Running dma_fence/test_late_rm_callback
      [    0.828686] dma-buf: Running dma_fence/test_status
      [    0.834026] dma-buf: Running dma_fence/test_error
      [    0.839255] dma-buf: Running dma_fence/test_wait
      [    0.844403] dma-buf: Running dma_fence/test_wait_timeout
      [    0.883043] dma-buf: Running dma_fence/test_stub
      [    0.888198] dma-buf: Running dma_fence/race_signal_callback
      [    0.963040] thread_signal_callback[0] completed 36166 passes, 42 misses
      [    0.970434] thread_signal_callback[1] completed 36157 passes, 33 misses
      [    1.043040] thread_signal_callback[0] completed 39927 passes, 39927 misses
      [    1.050719] thread_signal_callback[1] completed 39939 passes, 39939 misses
      [    1.058648] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
      [    1.065981] sunxi-ehci: EHCI SUNXI driver
      [    1.070827] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
      [    1.077766] sunxi-ohci: OHCI SUNXI driver
      [    1.082621] i2c /dev entries driver
      [    1.086601] sunxi cedar version 1.1
      [    1.090622] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
      [    1.096906] VE: sunxi_cedar_probe power-domain init!!!
      [    1.102623] VE: install start!!!
      [    1.102623]
      [    1.108107] VE: cedar-ve the get irq is 39
      [    1.108107]
      [    1.114510] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
      [    1.114510]
      [    1.123763] VE: install end!!!
      [    1.123763]
      [    1.128799] VE: sunxi_cedar_probe
      [    1.132697] Bluetooth: HCI UART driver ver 2.3
      [    1.137669] Bluetooth: HCI UART protocol H4 registered
      [    1.143408] Bluetooth: HCI UART protocol BCSP registered
      [    1.149580] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
      [    1.156733] [XR_BT_LPM] bluesleep_probe: bt_wake polarity: 1
      [    1.163096] [XR_BT_LPM] bluesleep_probe: host_wake polarity: 1
      [    1.169599] [XR_BT_LPM] bluesleep_probe: wakeup source is disabled!
      [    1.169599]
      [    1.178303] [XR_BT_LPM] bluesleep_probe: uart_index(1)
      [    1.185933] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.25 2022-6-21 13:40)
      [    1.195792] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
      [    1.201978] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
      [    1.208338] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
      [    1.214799] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
      [    1.221232] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
      [    1.227775] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
      [    1.234315] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
      [    1.240846] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
      [    1.300275] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.311382] sunxi-mmc 4020000.sdmmc: no vqmmc,Check if there is regulator
      [    1.331482] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.355639] sunxi-mmc 4020000.sdmmc: detmode:alway in(non removable)
      [    1.362724] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.374731] sunxi-mmc 4021000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.25 2022-6-21 13:40)
      [    1.384519] sunxi-mmc 4021000.sdmmc: ***ctl-spec-caps*** 8
      [    1.390667] sunxi-mmc 4021000.sdmmc: No vmmc regulator found
      [    1.397079] sunxi-mmc 4021000.sdmmc: No vqmmc regulator found
      [    1.403532] sunxi-mmc 4021000.sdmmc: No vdmmc regulator found
      [    1.409959] sunxi-mmc 4021000.sdmmc: No vd33sw regulator found
      [    1.416480] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.423290] sunxi-mmc 4021000.sdmmc: No vd18sw regulator found
      [    1.430293] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.434485] sunxi-mmc 4021000.sdmmc: No vq33sw regulator found
      [    1.434492] sunxi-mmc 4021000.sdmmc: No vq18sw regulator found
      [    1.448987] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.452520] sunxi-mmc 4021000.sdmmc: Cann't get pin bias hs pinstate,check if needed
      [    1.479889] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.481239] mmc0: host does not support reading read-only switch, assuming write-enable
      [    1.490970] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
      [    1.502356] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
      [    1.518945] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
      [    1.519964] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.530691] sunxi-mmc 4020000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
      [    1.553762] mmc0: new high speed SDHC card at address 5048
      [    1.554667] sunxi-mmc 4021000.sdmmc: detmode:manually by software
      [    1.560795] mmcblk0: mmc0:5048 SD32G 29.7 GiB
      [    1.567551] exFAT: Version 1.3.0
      [    1.571639] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
      [    1.577025] [AUDIOCODEC][sunxi_codec_parse_params][2437]:digital_vol:0, lineout_vol:26, mic1gain:31, mic2gain:31 pa_msleep:120, pa_level:1, pa_pwr_level:1
      [    1.577025]
      [    1.586028]  mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8
      [    1.599123] [AUDIOCODEC][sunxi_codec_parse_params][2473]:adcdrc_cfg:0, adchpf_cfg:1, dacdrc_cfg:0, dachpf:0
      [    1.603921] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 52, RTO !!
      [    1.615208] [AUDIOCODEC][sunxi_internal_codec_probe][2634]:codec probe finished
      [    1.629712] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.633971] debugfs: Directory '203034c.dummy_cpudai' with parent 'audiocodec' already present!
      [    1.651019] [SNDCODEC][sunxi_card_init][583]:card init finished
      [    1.652230] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    1.669697] sunxi-codec-machine 2030340.sound: 2030000.codec <-> 203034c.dummy_cpudai mapping ok
      [    1.679514] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [    1.686242] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [    1.692941] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [    1.699641] sunxi-mmc 4021000.sdmmc: smc 1 p1 err, cmd 5, RTO !!
      [    1.699667] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm OFF vdd 0 width 1 timing LEGACY(SDR12) dt B
      [    1.707366] input: audiocodec sunxi Audio Jack as /devices/platform/soc@3000000/2030340.sound/sound/card0/input0
      [    1.729264] [SNDCODEC][sunxi_card_dev_probe][836]:register card finished
      [    1.737559] NET: Registered protocol family 10
      [    1.743071] [SNDCODEC][sunxi_hs_init_work][259]:resume-->report switch
      [    1.750741] Segment Routing with IPv6
      [    1.754919] NET: Registered protocol family 17
      [    1.760004] Bluetooth: RFCOMM TTY layer initialized
      [    1.765469] Bluetooth: RFCOMM socket layer initialized
      [    1.771212] Bluetooth: RFCOMM ver 1.11
      [    1.775929] Registering SWP/SWPB emulation handler
      [    1.797632] get ehci0-controller wakeup-source is fail.
      [    1.803494] sunxi ehci0-controller is no enable
      [    1.808542] sunxi-ehci 4101000.ehci0-controller: init_sunxi_hci is fail
      [    1.815947] sunxi-ehci: probe of 4101000.ehci0-controller failed with error -1
      [    1.824285] get ohci0-controller wakeup-source is fail.
      [    1.830100] sunxi ohci0-controller is no enable
      [    1.835169] sunxi-ohci 4101400.ohci0-controller: init_sunxi_hci is fail
      [    1.842546] sunxi-ohci: probe of 4101400.ohci0-controller failed with error -1
      [    1.852866] platform regulatory.0: Direct firmware load for regulatory.db failed with error -2
      [    1.862508] clk: Not disabling unused clocks
      [    1.867290] ALSA device list:
      [    1.870591]   #0: audiocodec
      [    1.873821] cfg80211: failed to load regulatory.db
      [    1.873847] alloc_fd: slot 0 not NULL!
      [    1.892327] VFS: Mounted root (squashfs filesystem) readonly on device 179:5.
      [    1.904068] devtmpfs: mounted
      [    1.909267] Freeing unused kernel memory: 1024K
      [    1.933187] Run /pseudo_init as init process
      mount: mounting none on /dev failed: Resource busy
      [    2.193098] [DISP] disp_lcd_pwm_enable,line:1271:
      [    2.193105] pwm device hdl is NULL
      [    2.202123] [DISP] disp_device_attached_and_enable,line:233:
      [    2.202128] attached ok, mgr0<-->dev0
      [    2.212552] [DISP] disp_device_attached_and_enable,line:236:
      [    2.212561] type:1,mode:0,fmt:rgb,bits:8bits,eotf:4,cs:0 dvi_hdmi:2, range:2 scan:0 ratio:8
      [    2.255312] EXT4-fs: Warning: mounting with data=journal disables delayed allocation and O_DIRECT support!
      [    2.270329] EXT4-fs (mmcblk0p7): mounted filesystem with journalled data mode. Opts: data=journal
      can't run '/etc/preinit': No such file or directory
      mount: mounting proc on /proc failed: Resource busy
      mount: mounting tmpfs on /run failed: No such file or directory
      hostname: can't open '/etc/hostname': No such file or directory
      ------run rc.preboot file-----
      [    2.594015] random: fast init done
      [    2.614491] EXT4-fs (mmcblk0p8): mounted filesystem with ordered data mode. Opts: (null)
      ------run rc.modules file-----
      [    2.671376] sunxi_gpadc_init,2151, success
      [    2.676301] sunxi_gpadc_setup: get channel scan data failed
      [    2.682847] input: sunxi-gpadc0 as /devices/virtual/input/input1
      [    2.731142] ======== XRADIO WIFI OPEN ========
      [    2.736677] [XRADIO] Driver Label:XR_V02.16.85_P2P_HT40_01.31
      [    2.743456] [XRADIO] Allocated hw_priv @ (ptrval)
      [    2.749256] sunxi-rfkill soc@3000000:rfkill@0: bus_index: 1
      [    2.765522] sunxi-rfkill soc@3000000:rfkill@0: wlan power on success
      [    2.972641] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 0Hz bm PP pm UP vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    2.983696] [XRADIO] Detect SDIO card 1
      [    2.993124] sunxi-mmc 4021000.sdmmc: no vqmmc,Check if there is regulator
      [    3.013204] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    3.037970] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    3.052461] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing LEGACY(SDR12) dt B
      [    3.074559] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 400000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
      [    3.086063] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 1 timing SD-HS(SDR25) dt B
      [    3.097825] sunxi-mmc 4021000.sdmmc: sdc set ios:clk 50000000Hz bm PP pm ON vdd 21 width 4 timing SD-HS(SDR25) dt B
      [    3.110290] mmc1: new high speed SDIO card at address 0001
      [    3.116810] [SBUS] XRadio Device:sdio clk=50000000
      [    3.122624] [XRADIO] XRADIO_HW_REV 1.0 detected.
      [    3.183511] [XRADIO] xradio_update_dpllctrl: DPLL_CTRL Sync=0x00c00000.
      [    3.221796] [XRADIO] Bootloader complete
      [    3.309774] [XRADIO] Firmware completed.
      [    3.315837] [WSM] Firmware Label:XR_C09.08.52.73_DBG_02.122 2GHZ HT40 May 18 2021 13:36:09
      [    3.325176] [XRADIO] Firmware Startup Done.
      [    3.330124] [XRADIO_WRN] enable Multi-Rx!
      [    3.335293] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
      ------run rc.final file-----
      numid=30,iface=MIXER,name='Headphone Switch'
        ; type=BOOLEAN,access=rw------,values=1
        : values=on
      
      
      BusyBox v1.27.2 () built-in shell (ash)
      
      ------run profile file-----
       _____  _              __     _
      |_   _||_| ___  _ _   |  |   |_| ___  _ _  _ _
        | |   _ |   ||   |  |  |__ | ||   || | ||_'_|
        | |  | || | || _ |  |_____||_||_|_||___||_,_|
       [    3.489530] file system registered
       |_|  |_||_|_||_|_|  Tina is Based on OpenWrt!
       ----------------------------------------------
       Tina Linux (Neptune, 61CC0487)
       ----------------------------------------------
      Wed Jul  5 00:00:00 GMT 2023
      nodev   debugfs
      root@TinaLinux:/# sh: write error: No such device
      [    3.527081] read descriptors
      [    3.530301] read strings
      
      发布在 其它全志芯片讨论区
      F
      fantasya
    • T113 尝试驱动MIPI屏幕遇到问题,启动卡在SD卡阶段

      使用tina2.1的sdk,按照 https://www.gloomyghost.com/live/20220808.aspx 教程添加新的屏幕驱动,添加后编译下载后无法启动进入系统,尝试不修改其他的,添加一个rgb屏幕驱动并换成rgb屏幕设备树可以正常进入系统
      启动日志

      [    0.000000] Booting Linux on physical CPU 0x0
      [    0.000000] Linux version 5.4.61 (gm@gm) (arm-openwrt-linux-muslgnueabi-gcc.bin (OpenWrt/Linaro GCC 6.4-2017.11 2017-11) 6.4.1, GNU ld (GNU Binutils) 2.27) #94 SMP PREEMPT Thu Jul 13 11:27:08 UTC 2023
      [    0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c5387d
      [    0.000000] CPU: div instructions available: patching division code
      [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
      [    0.000000] OF: fdt: Machine model: sun8iw20
      [    0.000000] printk: bootconsole [earlycon0] enabled
      [    0.000000] Memory policy: Data cache writealloc
      [    0.000000] cma: Reserved 8 MiB at 0x47800000
      [    0.000000] On node 0 totalpages: 32768
      [    0.000000]   Normal zone: 256 pages used for memmap
      [    0.000000]   Normal zone: 0 pages reserved
      [    0.000000]   Normal zone: 32768 pages, LIFO batch:7
      [    0.000000] psci: probing for conduit method from DT.
      [    0.000000] psci: PSCIv1.0 detected in firmware.
      [    0.000000] psci: Using standard PSCI v0.2 function IDs
      [    0.000000] psci: MIGRATE_INFO_TYPE not supported.
      [    0.000000] psci: SMC Calling Convention v1.0
      [    0.000000] percpu: Embedded 15 pages/cpu s30348 r8192 d22900 u61440
      [    0.000000] pcpu-alloc: s30348 r8192 d22900 u61440 alloc=15*4096
      [    0.000000] pcpu-alloc: [0] 0 [0] 1
      [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
      [    0.000000] Kernel command line: earlyprintk=sunxi-uart,0x02500C00 clk_ignore_unused initcall_debug=0 console=ttyS3,115200 loglevel=8 root=/dev/mmcblk0p5 init=/pseudo_init partitions=boot-resource@mmcblk0p1:env@mmcblk0p2:env-redund@mmcblk0p3:boot@mmcblk0p4:rootfs@mmcblk0p5:private@mmcblk0p6:rootfs_data@mmcblk0p7:UDISK@mmcblk0p8 cma=8M snum= mac_addr= wifi_mac= bt_mac= specialstr= gpt=1 androidboot.mode=normal androidboot.hardware=sun8iw20p1 boot_type=1 androidboot.boot_type=1 gpt=1 uboot_message=2018.07-ge987def5-dirty(07/13/2023-07:23:09) androidboot.dramsize=128
      [    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
      [    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
      [    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
      [    0.000000] Memory: 109636K/131072K available (6144K kernel code, 260K rwdata, 1456K rodata, 1024K init, 1168K bss, 13244K reserved, 8192K cma-reserved)
      [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
      [    0.000000] rcu: Preemptible hierarchical RCU implementation.
      [    0.000000]  Tasks RCU enabled.
      [    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
      [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
      [    0.000000] random: get_random_bytes called from start_kernel+0x264/0x3e8 with crng_init=0
      [    0.000000] arch_timer: cp15 timer(s) running at 24.00MHz (phys).
      [    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
      [    0.000005] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
      [    0.008025] Switching to timer-based delay loop, resolution 41ns
      [    0.014191] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
      [    0.023939] Console: colour dummy device 80x30
      [    0.028431] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
      [    0.038796] pid_max: default: 32768 minimum: 301
      [    0.043535] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.050858] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.059162] CPU: Testing write buffer coherency: ok
      [    0.064368] /cpus/cpu@0 missing clock-frequency property
      [    0.069684] /cpus/cpu@1 missing clock-frequency property
      [    0.075017] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
      [    0.081164] Setting up static identity map for 0x40100000 - 0x40100060
      [    0.087815] rcu: Hierarchical SRCU implementation.
      [    0.093031] smp: Bringing up secondary CPUs ...
      [    0.098650] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
      [    0.098767] smp: Brought up 1 node, 2 CPUs
      [    0.108560] SMP: Total of 2 processors activated (96.00 BogoMIPS).
      [    0.114756] CPU: All CPU(s) started in SVC mode.
      [    0.119818] devtmpfs: initialized
      [    0.133938] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
      [    0.142062] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
      [    0.151934] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
      [    0.159165] pinctrl core: initialized pinctrl subsystem
      [    0.165362] NET: Registered protocol family 16
      [    0.171209] DMA: preallocated 256 KiB pool for atomic coherent allocations
      [    0.203333] rtc_ccu: sunxi ccu init OK
      [    0.209381] ccu: sunxi ccu init OK
      [    0.213199] r_ccu: sunxi ccu init OK
      [    0.234212] sun6i-dma 3002000.dma-controller: sunxi dma probed
      [    0.241643] iommu: Default domain type: Translated
      [    0.246711] sunxi iommu: irq = 24
      [    0.250849] SCSI subsystem initialized
      [    0.254738] usbcore: registered new interface driver usbfs
      [    0.260300] usbcore: registered new interface driver hub
      [    0.265694] usbcore: registered new device driver usb
      [    0.271528] Advanced Linux Sound Architecture Driver Initialized.
      [    0.278159] Bluetooth: Core ver 2.22
      [    0.282025] NET: Registered protocol family 31
      [    0.286472] Bluetooth: HCI device and connection manager initialized
      [    0.292872] Bluetooth: HCI socket layer initialized
      [    0.297762] Bluetooth: L2CAP socket layer initialized
      [    0.302873] Bluetooth: SCO socket layer initialized
      [    0.308002] pwm module init!
      [    0.312023] g2d 5410000.g2d: Adding to iommu group 0
      [    0.317337] G2D: rcq version initialized.major:252
      [    0.322816] clocksource: Switched to clocksource arch_sys_counter
      [    0.337177] sun8iw20-pinctrl 2000000.pinctrl: initialized sunXi PIO driver
      [    0.353789] NET: Registered protocol family 2
      [    0.358715] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
      [    0.367168] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
      [    0.374865] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
      [    0.381941] TCP: Hash tables configured (established 1024 bind 1024)
      [    0.388413] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
      [    0.394987] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
      [    0.402137] NET: Registered protocol family 1
      [    0.408281] workingset: timestamp_bits=30 max_order=15 bucket_order=0
      [    0.419647] squashfs: version 4.0 (2009/01/31) Phillip Lougher
      [    0.425661] ntfs: driver 2.1.32 [Flags: R/W].
      [    0.458776] io scheduler mq-deadline registered
      [    0.463339] io scheduler kyber registered
      [    0.468330] [DISP]disp_module_init
      [    0.472226] disp 5000000.disp: Adding to iommu group 0
      [    0.477944] [DISP] parser_disp_init_para,line:1430:
      [    0.477948] of_property_read fb0_width fail
      [    0.503338] display_fb_request,fb_id:0
      [    0.508441] [DISP] Fb_copy_boot_fb,line:1445:
      [    0.508445] no boot_fb0
      [    0.515738] disp_al_manager_apply ouput_type:0
      [    0.520546] [DISP] lcd_clk_config,line:774:
      [    0.520557] disp 0, clk: pll(840000000),clk(840000000),dclk(70000000) dsi_rate(70000000)
      [    0.520557]      clk real:pll(840000000),clk(840000000),dclk(210000000) dsi_rate(150000000)
      [    0.523090] [DISP]disp_module_init finish
      [    0.546178] sunxi_sid_init()783 - insmod ok
      [    0.551376] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pc not found, using dummy regulator
      [    0.561703] uart uart3: uart3 supply uart not found, using dummy regulator
      [    0.568838] uart3: ttyS3 at MMIO 0x2500c00 (irq = 34, base_baud = 1500000) is a SUNXI
      [    0.576719] sw_console_setup()1807 - console setup baud 115200 parity n bits 8, flow n
      ▒[    0.584717] printk: console [ttyS3] enabled
      [    0.584717] printk: console [ttyS3] enabled
      [    0.593666] printk: bootconsole [earlycon0] disabled
      [    0.593666] printk: bootconsole [earlycon0] disabled
      [    0.604964] misc dump reg init
      [    0.609433] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pg not found, using dummy regulator
      [    0.620644] sunxi-rfkill soc@3000000:rfkill@0: module version: v1.0.9
      [    0.627906] sunxi-rfkill soc@3000000:rfkill@0: get gpio chip_en failed
      [    0.635248] sunxi-rfkill soc@3000000:rfkill@0: get gpio power_en failed
      [    0.642675] sunxi-rfkill soc@3000000:rfkill@0: wlan_busnum (1)
      [    0.649230] sunxi-rfkill soc@3000000:rfkill@0: Missing wlan_power.
      [    0.656186] sunxi-rfkill soc@3000000:rfkill@0: wlan clock[0] (32k-fanout1)
      [    0.663930] sunxi-rfkill soc@3000000:rfkill@0: wlan_regon gpio=204 assert=1
      [    0.671792] sunxi-rfkill soc@3000000:rfkill@0: wlan_hostwake gpio=202 assert=1
      [    0.679925] sunxi-rfkill soc@3000000:rfkill@0: wakeup source is enabled
      [    0.687549] sunxi-rfkill soc@3000000:rfkill@0: Missing bt_power.
      [    0.694332] sunxi-rfkill soc@3000000:rfkill@0: bt clock[0] (32k-fanout1)
      [    0.701865] sunxi-rfkill soc@3000000:rfkill@0: bt_rst gpio=141 assert=0
      [    0.709397] sun8iw20-pinctrl 2000000.pinctrl: 2000000.pinctrl supply vcc-pe not found, using dummy regulator
      [    0.721084] [ADDR_MGT] addr_mgt_probe: module version: v1.0.11
      [    0.728274] [ADDR_MGT] addr_mgt_probe: success.
      [    0.733681] dma-buf: Running sanitycheck
      [    0.738079] dma-buf: Running dma_fence
      [    0.742278] sizeof(dma_fence)=48
      [    0.746022] dma-buf: Running dma_fence/sanitycheck
      [    0.751406] dma-buf: Running dma_fence/test_signaling
      [    0.757121] dma-buf: Running dma_fence/test_add_callback
      [    0.763094] dma-buf: Running dma_fence/test_late_add_callback
      [    0.769538] dma-buf: Running dma_fence/test_rm_callback
      [    0.775409] dma-buf: Running dma_fence/test_late_rm_callback
      [    0.781756] dma-buf: Running dma_fence/test_status
      [    0.787139] dma-buf: Running dma_fence/test_error
      [    0.792413] dma-buf: Running dma_fence/test_wait
      [    0.797616] dma-buf: Running dma_fence/test_wait_timeout
      [    0.842827] dma-buf: Running dma_fence/test_stub
      [    0.848024] dma-buf: Running dma_fence/race_signal_callback
      [    0.952818] thread_signal_callback[0] completed 28494 passes, 7375 misses
      [    0.960498] thread_signal_callback[1] completed 28492 passes, 7373 misses
      [    1.052829] thread_signal_callback[0] completed 7272 passes, 7272 misses
      [    1.060367] thread_signal_callback[1] completed 28944 passes, 28941 misses
      [    1.068375] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
      [    1.075776] sunxi-ehci: EHCI SUNXI driver
      [    1.080607] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
      [    1.087585] sunxi-ohci: OHCI SUNXI driver
      [    1.092470] i2c /dev entries driver
      [    1.096475] sunxi cedar version 1.1
      [    1.100527] sunxi-cedar 1c0e000.ve: Adding to iommu group 0
      [    1.106858] VE: sunxi_cedar_probe power-domain init!!!
      [    1.112625] VE: install start!!!
      [    1.112625]
      [    1.118146] VE: cedar-ve the get irq is 39
      [    1.118146]
      [    1.124629] VE: ve_debug_proc_info:(ptrval), data:(ptrval), lock:(ptrval)
      [    1.124629]
      [    1.133986] VE: install end!!!
      [    1.133986]
      [    1.139063] VE: sunxi_cedar_probe
      [    1.143023] Bluetooth: HCI UART driver ver 2.3
      [    1.148008] Bluetooth: HCI UART protocol H4 registered
      [    1.153799] Bluetooth: HCI UART protocol BCSP registered
      [    1.160055] Bluetooth: XRadio Bluetooth LPM Mode Driver Ver 1.0.10
      [    1.167282] [XR_BT_LPM] bluesleep_probe: bt_wake polarity: 1
      [    1.173747] [XR_BT_LPM] bluesleep_probe: host_wake polarity: 1
      [    1.180301] [XR_BT_LPM] bluesleep_probe: wakeup source is disabled!
      [    1.180301]
      [    1.189013] [XR_BT_LPM] bluesleep_probe: uart_index(1)
      [    1.196623] sunxi-mmc 4020000.sdmmc: SD/MMC/SDIO Host Controller Driver(v4.25 2022-6-21 13:40)
      [    1.206496] sunxi-mmc 4020000.sdmmc: ***ctl-spec-caps*** 8
      [    1.212691] sunxi-mmc 4020000.sdmmc: No vmmc regulator found
      [    1.219080] sunxi-mmc 4020000.sdmmc: No vqmmc regulator found
      [    1.225535] sunxi-mmc 4020000.sdmmc: No vdmmc regulator found
      [    1.231979] sunxi-mmc 4020000.sdmmc: No vd33sw regulator found
      [    1.238529] sunxi-mmc 4020000.sdmmc: No vd18sw regulator found
      [    1.245078] sunxi-mmc 4020000.sdmmc: No vq33sw regulator found
      [    1.251619] sunxi-mmc 4020000.sdmmc: No vq18sw regulator found
      
      
      

      修改后的设备树

      &disp {
      	disp_init_enable         = <1>;
      	disp_mode                = <0>;
      
      	screen0_output_type      = <1>;
      	screen0_output_mode      = <4>;
      
      	screen1_output_type      = <3>;
      	screen1_output_mode      = <4>;
      	
      	screen1_output_format    = <0>;
      	screen1_output_bits      = <0>;
      	screen1_output_eotf      = <4>;
      	screen1_output_cs        = <257>;
      	screen1_output_dvi_hdmi  = <2>;
      	screen1_output_range     = <2>;
      	screen1_output_scan      = <0>;
      	screen1_output_aspect_ratio = <8>;
      	
      	dev0_output_type         = <1>;
      	dev0_output_mode         = <4>;
      	dev0_screen_id           = <0>;
      	dev0_do_hpd              = <0>;
      
      	dev1_output_type         = <4>;
      	dev1_output_mode         = <10>;
      	dev1_screen_id           = <1>;
      	dev1_do_hpd              = <1>;
      
      	def_output_dev           = <0>;
      	hdmi_mode_check          = <1>;
      	disp_rotation_used		 = <1>;
      	degree0					 = <0>;
      	fb0_format               = <0>;
      	fb0_buffer_num           = <1>;	
      	/*fb0_width                = <800>;*/
      	/*fb0_height               = <480>;*/  /*read from lcd*/
      	fb1_format               = <0>;
      	fb1_width                = <0>;
      	fb1_height               = <0>;
      	chn_cfg_mode             = <1>;
      
      	disp_para_zone           = <1>;
      };
      &lcd0 {
      	lcd_used            = <1>;
      
      	lcd_driver_name     = "d300t9307v0";
      	lcd_backlight       = <150>;
      	lcd_if              = <4>;
      
      	lcd_x           	= <480>;
      	lcd_y           	= <854>;
      	lcd_width           = <37>;
      	lcd_height          = <65>;
          lcd_dclk_freq       = <100>;
      
      	lcd_pwm_used        = <1>;
      	lcd_pwm_ch          = <7>;
      	lcd_pwm_freq        = <50000>;
      	lcd_pwm_pol         = <0>;
      	lcd_pwm_max_limit   = <255>;
      
      	lcd_hbp             = <43>;
      	lcd_ht              = <533>;
      	lcd_hspw            = <2>;
      	lcd_vbp             = <42>;
      	lcd_vt              = <910>;
      	lcd_vspw            = <10>;
      
          lcd_dsi_if          = <0>;
          lcd_dsi_lane        = <2>;
          lcd_lvds_if         = <0>;
          lcd_lvds_colordepth = <0>;
          lcd_lvds_mode       = <0>;
          lcd_frm             = <0>;
          lcd_hv_clk_phase    = <0>;
          lcd_hv_sync_polarity= <0>;
          lcd_io_phase        = <0x0000>;
          lcd_gamma_en        = <0>;
          lcd_bright_curve_en = <0>;
          lcd_cmap_en         = <0>;
          lcd_fsync_en        = <0>;
          lcd_fsync_act_time  = <1000>;
          lcd_fsync_dis_time  = <1000>;
          lcd_fsync_pol       = <0>;
      
          deu_mode            = <0>; 
          lcdgamma4iep        = <22>;
          smart_color         = <90>;
      
      	lcd_gpio_0 = <&pio PC 2 GPIO_ACTIVE_HIGH>;
      	pinctrl-0 = <&dsi2lane_pins_a>;
      	pinctrl-1 = <&dsi2lane_pins_b>;
      };
      
      发布在 其它全志芯片讨论区
      F
      fantasya
    • 回复: 尝试mq-r驱动mipi屏遇到问题

      请问楼主解决了吗,目前我也是遇到一样的问题

      发布在 MR Series
      F
      fantasya
    • T113 Tina 自带的LVGL8 G2D Test运行报错

      使用的是芒果提供的Tina系统,lv_example下所有的包全部勾选了,然后编译运行会报错
      已经修改资源的路径,加了一些printf查看config
      下面是运行日志

      root@TinaLinux:/# lv_g2d_test 0 0 0 0
      use double buffer
      use g2d
      use g2d rotate
      use lv g2d debug
      use lv g2d fill
      use lv g2d blit
      use lv g2d blend
      use lv g2d scale
      lv_g2d_test 0 5 0 1
      one num is rotate, range is 0~3
      tow num is gif, range is 0~11, 11 is no show gif
      three num is bmp, range is 0~2, 2 is no show bmp
      four num is png, range is 0~3, 3 is no show png
      wh=800x480, vwh=800x480, bpp=32, rotated=0
      Segmentation fault
      root@TinaLinux:/# ls /mnt/UDISK/lv_g2d_test/
      1280x720.gif   225x111.png    320x480.gif    658x494.gif    800x600.gif
      1280x800.gif   240x320.gif    409x409.gif    800x1280.gif
      1920x1080.gif  241x148.png    47x48.png      800x480.bmp
      200x300.png    313x235.gif    512x352.bmp    800x480.gif
      root@TinaLinux:/# ls /dev/
      bus              i2c-2            mmcblk0p6        sunxi-reg
      by-name          input            mmcblk0p7        sunxi-wlan
      cedar_dev        ion              mmcblk0p8        tty
      console          kmsg             null             ttyS3
      cpu_dma_latency  mmcblk0          ptmx             ubi_ctrl
      disp             mmcblk0p1        pts              udmabuf
      fb0              mmcblk0p2        random           urandom
      full             mmcblk0p3        rfkill           usb-ffs
      g2d              mmcblk0p4        shm              zero
      gpiochip0        mmcblk0p5        snd
      
      
      int main(int argc, char *argv[]) {
      #ifdef USE_SUNXIFB_DOUBLE_BUFFER
          printf("use double buffer\n");
      #endif
      #ifdef USE_SUNXIFB_G2D
          printf("use g2d\n");
      #endif
      #ifdef USE_SUNXIFB_G2D_ROTATE
          printf("use g2d rotate\n");
      #endif
      #ifdef LV_USE_SUNXIFB_DEBUG
          printf("use lv g2d debug\n");
      #endif
      #ifdef LV_USE_SUNXIFB_G2D_FILL
          printf("use lv g2d fill\n");
      #endif
      #ifdef LV_USE_SUNXIFB_G2D_BLIT
          printf("use lv g2d blit\n");
      #endif
      * 列表
      #ifdef LV_USE_SUNXIFB_G2D_BLEND
          printf("use lv g2d blend\n");
      #endif
      #ifdef LV_USE_SUNXIFB_G2D_SCALE
          printf("use lv g2d scale\n");
      #endif
          lv_disp_drv_t disp_drv;
          lv_disp_draw_buf_t disp_buf;
          lv_indev_drv_t indev_drv;
          uint32_t rotated = LV_DISP_ROT_NONE;
          uint32_t gif_index = 5, bmp_index = 0, png_index = 1;
          char *gif_path[] = { "A:/mnt/UDISK/lv_g2d_test/240x320.gif",
                  "A:/mnt/UDISK/lv_g2d_test/313x235.gif",
                  "A:/mnt/UDISK/lv_g2d_test/320x480.gif",
                  "A:/mnt/UDISK/lv_g2d_test/409x409.gif",
                  "A:/mnt/UDISK/lv_g2d_test/658x494.gif",
                  "A:/mnt/UDISK/lv_g2d_test/800x480.gif",
                  "A:/mnt/UDISK/lv_g2d_test/800x600.gif",
                  "A:/mnt/UDISK/lv_g2d_test/800x1280.gif",
                  "A:/mnt/UDISK/lv_g2d_test/1280x720.gif",
                  "A:/mnt/UDISK/lv_g2d_test/1280x800.gif",
                  "A:/mnt/UDISK/lv_g2d_test/1920x1080.gif",
                  "A:/mnt/UDISK/lv_g2d_test/no.gif" };
          char *bmp_path[] = { "A:/mnt/UDISK/lv_g2d_test/512x352.bmp",
                  "A:/mnt/UDISK/lv_g2d_test/800x480.bmp",
                  "A:/mnt/UDISK/lv_g2d_test/no.bmp" };
          char *png_path[] = { "A:/mnt/UDISK/lv_g2d_test/47x48.png",
                  "A:/mnt/UDISK/lv_g2d_test/225x111.png",
                  "A:/mnt/UDISK/lv_g2d_test/241x148.png",
                  "A:/mnt/UDISK/lv_g2d_test/no.png"};
      
      发布在 T Series
      F
      fantasya
    • 1 / 1