Navigation

    全志在线开发者论坛

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

    小麻雀直接驱动树莓派的DSI屏

    D1系列-RISC-V
    5
    15
    1865
    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.
    • mangogeek
      mangogeek LV 8 last edited by

      续前贴:https://bbs.aw-ol.com/topic/311/
      当时使用D1开发板驱动了,因D1的mipi是30pin,需要转接才能接树莓DSI屏。
      麻雀设计的时候考虑到这点,直接板载的15Pin,所以直接接上就好。

      效果:
      QQ图片20211217210404.jpg

      代码:(board.dts 和uboot-board.dts都替换下边的)

      &lcd0 {
      	lcd_used            = <1>;
      
      	lcd_driver_name     = "tft08006";
      	lcd_backlight       = <100>;
      	lcd_if              = <4>;
      
      	lcd_x               = <800>;
      	lcd_y               = <480>;
      	lcd_width           = <52>;
      	lcd_height          = <52>;
      	lcd_dclk_freq       = <33>;
      
      	lcd_pwm_used        = <1>;
      	lcd_pwm_ch          = <2>;
      	lcd_pwm_freq        = <1000>;
      	lcd_pwm_pol         = <0>;
      	lcd_pwm_max_limit   = <255>;
      /*
      	lcd_hbp             = <32>;
      	lcd_ht              = <868>;
      	lcd_hspw            = <4>;
      	lcd_vbp             = <12>;
      	lcd_vt              = <500>;
      	lcd_vspw            = <4>;
      */
              lcd_hbp             = <32>;
              lcd_ht              = <868>;
              lcd_hspw            = <4>;
              lcd_vbp             = <10>;
              lcd_vt              = <520>;
              lcd_vspw            = <4>;
      
      	lcd_dsi_if          = <0>;
      	lcd_dsi_lane        = <1>;
      	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 PG 13 GPIO_ACTIVE_HIGH>;*/
      	pinctrl-0 = <&dsi4lane_pins_a>;
      	pinctrl-1 = <&dsi4lane_pins_b>;
      };
      
      D W 2 Replies Last reply Reply Quote Share 1
      • Referenced by  q1215200171 q1215200171 
      • Referenced by  q1215200171 q1215200171 
      • D
        daMing123 LV 5 @mangogeek last edited by

        This post is deleted!
        E 1 Reply Last reply Reply Quote Share 0
        • E
          efancier LV 5 @daMing123 last edited by

          @daming123 ,有没有disable LCD RGB 接口?

          D 1 Reply Last reply Reply Quote Share 0
          • D
            daMing123 LV 5 @efancier last edited by

            This post is deleted!
            YuzukiTsuru 1 Reply Last reply Reply Quote Share 0
            • YuzukiTsuru
              柚木 鉉 LV 9 @daMing123 last edited by

              @daming123 brandy-2.0/u-boot-2018/configs/sun20iw1p1_defconfig 注释掉 #CONFIG_DISP2_SUNXI=y,使用kernel初始化屏幕测试

              D 3 Replies Last reply Reply Quote Share 1
              • D
                daMing123 LV 5 @YuzukiTsuru last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote Share 0
                • D
                  daMing123 LV 5 @YuzukiTsuru last edited by

                  This post is deleted!
                  1 Reply Last reply Reply Quote Share 0
                  • D
                    daMing123 LV 5 @YuzukiTsuru last edited by

                    This post is deleted!
                    YuzukiTsuru 1 Reply Last reply Reply Quote Share 0
                    • YuzukiTsuru
                      柚木 鉉 LV 9 @daMing123 last edited by

                      @daming123 ?????可还行

                      D 1 Reply Last reply Reply Quote Share 0
                      • D
                        daMing123 LV 5 @YuzukiTsuru last edited by

                        This post is deleted!
                        YuzukiTsuru 1 Reply Last reply Reply Quote Share 0
                        • YuzukiTsuru
                          柚木 鉉 LV 9 @daMing123 last edited by

                          @daming123 我这里没有这个屏幕,也不清楚是什么问题

                          D 1 Reply Last reply Reply Quote Share 0
                          • D
                            daMing123 LV 5 @YuzukiTsuru last edited by

                            This post is deleted!
                            YuzukiTsuru 1 Reply Last reply Reply Quote Share 0
                            • YuzukiTsuru
                              柚木 鉉 LV 9 @daMing123 last edited by

                              @daming123 我这里没有这个屏幕,也不清楚是什么问题

                              1 Reply Last reply Reply Quote Share 0
                              • Referenced by  W whycan 
                              • Referenced by  W whycan 
                              • Referenced by  aozima aozima 
                              • Referenced by  H huanian 
                              • W
                                wjp2547532 LV 5 @mangogeek last edited by

                                @mangogeek 你好,大佬,这个屏接到小麻雀上只需要修改dts就可以么,不需要别的设置?

                                W 1 Reply Last reply Reply Quote Share 0
                                • W
                                  wjp2547532 LV 5 @wjp2547532 last edited by

                                  @wjp2547532 使用这个屏,“tft08006”这个驱动需要修改么

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

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

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