如题,我把spi1复用到了 “PD11”, “PD12”, “PD13”, “PD14”, “PD15”;
但在uboot启动阶段,这组引脚会输出大量信号,导致连接在spi1上的设备彻底废掉。
查看dts,发现这组引脚跟lcd0有冲突,猜测是lcd信号。
我尝试在设备数中关闭lcd,结果uboot直接无法启动,日志如下
U-Boot 2018.05 (Aug 04 2022 - 08:50:22 +0000) Allwinner Technology
[00.315]CPU: Allwinner Family
[00.318]Model: sun8iw20
[00.320]DRAM: 128 MiB
[00.323]Relocation Offset is: 04ebd000
[00.351]secure enable bit: 0
[00.353]smc_tee_inform_fdt failed with: -65526[00.357]CPU=1008 MHz,PLL6=600 Mhz,AHB=200 Mhz, APB1=100Mhz MBus=300Mhz
[00.363]gic: sec monitor mode
[00.366]line:703 init_clocks
[00.369]drv_disp_init
[00.378]drv_disp_init finish
[00.380]boot_gui_init:start
[00.383]set disp.dev2_output_type fail. using defval=0
drv_lcd_open_callback lcd open flow is NULL! LCD enable fail!
bad fb0_cfg[w=0,h=0,bpp=32,format=0]
[00.397]boot_gui_init:finish
fb_lock: fb_id(0), lock=0
cv=00000000, base= 00000000
[00.412]boot_gui_init:start
[00.415]set disp.dev2_output_type fail. using defval=0
drv_lcd_open_callback lcd open flow is NULL! LCD enable fail!
bad fb0_cfg[w=0,h=0,bpp=32,format=0]
[00.428]boot_gui_init:finish
undefined instruction
pc : [<e92d5ffc>] lr : [<47f05609>]
reloc pc : [<e4418ffc>] lr : [<43048609>]
sp : 448594b8 ip : 448594f0 fp : 448595a8
r10: 47f6619e r9 : 4489ce70 r8 : 47f8d4a4
r7 : 00000000 r6 : 47f6a0f0 r5 : 47f96568 r4 : 47fb0e44
r3 : e92d5fff r2 : 47f96568 r1 : 47f96568 r0 : 00000000
Flags: nZCv IRQs on FIQs off Mode SVC_32
怎么正确关闭uboot阶段的lcd功能呢?