Navigation

    全志在线开发者论坛

    • Register
    • Login
    • Search
    • Categories
    • Tags
    • 在线文档
    • 社区主页

    V853适配MIPI屏背光不亮

    V853系列-AI视觉
    3
    11
    360
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      NULL037 LV 5 last edited by

      使用官方提供的V853的V853开发板工厂测试固件20220630 MIPI屏背光可以亮,
      但是使用我直接使用open-tina-v853 修改生成的固件就会导致MIPI屏不亮,但是通过查看启动信息,PWM9已结启动了。我尝试完全关闭uboot中的pwm和disp初始化,在内核下使能pwm9和disp依旧无任何反应。
      e0ab6dd2-b537-4a3d-9701-df96b4259e58-image.png
      目前认为是uboot在初始化pwm这部分可能有问题。
      我们暂时无法找到具体的原因在哪。已经尝试过tina-v853的NDA版本也是不行。
      已经确定MIPI屏幕硬件部分可以在D1和T113上是正常使用的。
      请问有没有遇到过相关问题的大佬 求解答

      W 1 Reply Last reply Reply Quote Share 1
      • W
        whycan晕哥 LV 9 @NULL037 last edited by whycan

        @null037 在 V853适配MIPI屏背光不亮 中说:

        直接使用open-tina-v853 修改

        什么是 直接使用open-tina-v853 修改 ?

        N 1 Reply Last reply Reply Quote Share 0
        • N
          NULL037 LV 5 @whycan last edited by

          @whycan 是开放下载的tina-v853版本,现在通过cat可以发现发现PWM被申请了,但是没有使能。

          root@TinaLinux:/# cat /sys/kernel/debug/pwm
          platform/2000c00.pwm, 12 PWM devices
           pwm-0   ((null)              ): period: 0 ns duty: 0 ns polarity: inverse
           pwm-1   ((null)              ): period: 0 ns duty: 0 ns polarity: inverse
           pwm-2   ((null)              ): period: 0 ns duty: 0 ns polarity: inverse
           pwm-3   ((null)              ): period: 0 ns duty: 0 ns polarity: inverse
           pwm-4   ((null)              ): period: 0 ns duty: 0 ns polarity: inverse
           pwm-5   ((null)              ): period: 0 ns duty: 0 ns polarity: inverse
           pwm-6   ((null)              ): period: 0 ns duty: 0 ns polarity: inverse
           pwm-7   ((null)              ): period: 0 ns duty: 0 ns polarity: inverse
           pwm-8   ((null)              ): period: 0 ns duty: 0 ns polarity: inverse
           pwm-9   (lcd                 ): requested period: 1000000 ns duty: 390625 ns polarity: inverse
           pwm-10  ((null)              ): period: 0 ns duty: 0 ns polarity: inverse
           pwm-11  ((null)              ): period: 0 ns duty: 0 ns polarity: inverse
          
          
          N 1 Reply Last reply Reply Quote Share 0
          • N
            NULL037 LV 5 @NULL037 last edited by

            @null037 通过对比发现,uboot里使能PWM9时背光可以亮,但是关闭uboot中的CONFIG_DISP2_SUNXI后,PWM9不能使能

            W 1 Reply Last reply Reply Quote Share 0
            • W
              whycan晕哥 LV 9 @NULL037 last edited by

              @null037
              你修改了什么呢?

              N 1 Reply Last reply Reply Quote Share 0
              • N
                NULL037 LV 5 @whycan last edited by

                @whycan
                1.增加了屏驱动,屏驱动这部分已经验证过没有问题
                2.修改设备树

                &lcd0 {
                        base_config_start   = <1>;
                        lcd_used            = <1>;
                
                        lcd_driver_name     = "ili9806e";
                        lcd_backlight       = <100>;
                        lcd_if              = <4>;
                
                        lcd_x               = <480>;
                        lcd_y               = <800>;
                        lcd_width           = <52>;
                        lcd_height          = <52>;
                        lcd_dclk_freq       = <25>;
                
                        lcd_pwm_used        = <1>;
                        lcd_pwm_ch          = <9>;
                        lcd_pwm_freq        = <1000>;
                        lcd_pwm_pol         = <0>;
                        lcd_pwm_max_limit   = <255>;
                
                        lcd_hbp             = <10>;
                        lcd_ht              = <515>;
                        lcd_hspw            = <5>;
                
                        lcd_vbp             = <20>;
                        lcd_vt              = <830>;
                        lcd_vspw            = <5>;
                
                        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_dsi_te          = <0>;
                        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 PG 13 GPIO_ACTIVE_HIGH>;
                        pinctrl-0 = <&dsi4lane_pins_a>;
                        pinctrl-1 = <&dsi4lane_pins_b>;
                
                        base_config_end     = <1>;
                };
                     
                

                3.内核配置中选中驱动
                4.注释uboot下初始化DISP

                N 1 Reply Last reply Reply Quote Share 0
                • N
                  NULL037 LV 5 @NULL037 last edited by

                  @null037
                  默认设备树已经对PD22进行复用

                  pwm9_pin_a: pwm9@0 {
                                  pins = "PD22";
                                  function = "pwm9";
                                  muxsel = <2>;
                                  drive-strength = <10>;
                                  bias-pull-up;
                          };
                  
                          pwm9_pin_b: pwm9@1 {
                                  pins = "PD22";
                                  function = "gpio_in";
                                  muxsel = <0>;
                          };
                  
                  
                  &pwm9 {
                          pinctrl-names = "active", "sleep";
                          pinctrl-0 = <&pwm9_pin_a>;
                          pinctrl-1 = <&pwm9_pin_b>;
                          status = "okay";
                  };
                  
                  
                  W 1 Reply Last reply Reply Quote Share 0
                  • W
                    whycan晕哥 LV 9 @NULL037 last edited by

                    @null037
                    不要一次改这么多,逐项修改编译烧录试一试.

                    N 1 Reply Last reply Reply Quote Share 0
                    • N
                      NULL037 LV 5 @whycan last edited by

                      @whycan 之前是一步一步调试来的,后面才发现kernel里面使能不了PWM9,请问这是设备树的问题还是内核配置缺少了什么?

                      YuzukiTsuru 1 Reply Last reply Reply Quote Share 0
                      • YuzukiTsuru
                        柚木 鉉 LV 9 @NULL037 last edited by YuzukiTsuru

                        @null037
                        是不是开了动态背光但是没配置背光亮度?

                        	lcd_bl_0_percent    = <0>;
                        	lcd_bl_40_percent   = <23>;
                        	lcd_bl_100_percent  = <100>;
                        	lcd_backlight       = <150>;
                        

                        或者直接写死试试

                        lcd_bl_en = <&pio PD 22 1 0 3 1>
                        
                        N 1 Reply Last reply Reply Quote Share 0
                        • N
                          NULL037 LV 5 @YuzukiTsuru last edited by

                          @yuzukitsuru 是我的问题,排线的接口被我弄坏了,导致信号发不到屏幕上。希望大家以后注意

                          1 Reply Last reply Reply Quote Share 1
                          • 1 / 1
                          • First post
                            Last post

                          Copyright © 2022 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                          行为准则 | 用户协议 | 隐私权政策