您尚未登录。

楼主 # 2021-12-17 21:20:49

mango
会员
所在地: 芒果派1
注册时间: 2017-12-02
已发帖子: 780
积分: 726

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

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

效果:
QQ图片20211217210404.jpg

固件:
tina_d1s_mipi_rpi_uart0.img

代码:只涉及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>;
};





歪朵拉开源硬件: https://widora.cn
淘宝:  https://widora.taobao.com/

离线

楼主 #1 2021-12-18 11:50:13

mango
会员
所在地: 芒果派1
注册时间: 2017-12-02
已发帖子: 780
积分: 726

Re: 使用小麻雀直接驱动树莓派的DSI屏

  装一起的效果视频






歪朵拉开源硬件: https://widora.cn
淘宝:  https://widora.taobao.com/

离线

#2 2022-01-20 17:57:53

rstg00po54
会员
注册时间: 2022-01-20
已发帖子: 3
积分: 3

Re: 使用小麻雀直接驱动树莓派的DSI屏

我烧了你的镜像文件显示不正常
_20220120175702.jpg

离线

#3 2024-04-28 15:04:35

GenaSPB
会员
注册时间: 2023-07-15
已发帖子: 19
积分: 1

Re: 使用小麻雀直接驱动树莓派的DSI屏

Run unmodified tina_d1s_mipi_rpi_uart0.img - uart shown this:

[00.395]line:714 init_clocks
__clk_init: clk pll_periph0x2 already initialized
register fix_factor clk error
[00.406]drv_disp_init
request pwm success, pwm2:pwm2:0x2000c00.
[00.422]drv_disp_init finish
[00.425]boot_gui_init:start
[00.428]set disp.dev2_output_type fail. using defval=0
[00.620]boot_gui_init:finish
partno erro : can't find partition bootloader
54 bytes read in 1 ms (52.7 KiB/s)
[00.989]bmp_name=bootlogo.bmp size 307254
307254 bytes read in 28 ms (10.5 MiB/s)
[01.031]LCD open finish

Why disp.dev2_output_type fail ?
Display not shown anything. Backlight turned on by hardware.

最近编辑记录 GenaSPB (2024-04-28 15:14:47)

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn