회사일/USB PD2024. 12. 5. 14:08

개발보드 꺼내서 연결해보니 U-boot 레벨에서 20V 받아가는 것 확인.. -_-!

USB 규격 볼 바에는 이걸 보는게 빠를 듯..

[링크 : https://github.com/nxp-imx/uboot-imx/]

[링크 : https://community.nxp.com/t5/i-MX-Processors-Knowledge-Base/i-MX8MP-USB-PD-realized/ta-p/1531209]

 

아무생각없이 보고 있던 소스.. -_- mp를 봐야했나..?

[링크 : https://github.com/nxp-imx/uboot-imx/blob/lf_v2022.04/board/freescale/imx8mm_evk/imx8mm_evk.c]

 

소스를 보면 변경점이 꽤 많긴 하지만 큰 틀에서 ptn5110 쓰는건 동일해서 mm 으로 보는게 편할지도?

[링크 : https://github.com/nxp-imx/uboot-imx/blob/lf_v2022.04/board/freescale/imx8mp_evk/imx8mp_evk.c]

 

+

evk uboot 로그

U-Boot SPL 2023.04-lf_v2023.04+g49b102d988 (Nov 21 2023 - 07:28:53 +0000)
DDRINFO: start DRAM init
DDRINFO: DRAM rate 4000MTS
DDRINFO:ddrphy calibration done
DDRINFO: ddrmix config done
SEC0:  RNG instantiated
Normal Boot
Trying to boot from BOOTROM
Boot Stage: Primary boot
image offset 0x8000, pagesize 0x200, ivt offset 0x0
NOTICE:  Do not release JR0 to NS as it can be used by HAB
NOTICE:  BL31: v2.8(release):android-14.0.0_1.0.0-rc1-1-g08e9d4eef
NOTICE:  BL31: Built : 06:43:30, Nov 21 2023

                                                                                
U-Boot 2023.04-lf_v2023.04+g49b102d988 (Nov 21 2023 - 07:28:53 +0000)           
                                                                                
CPU:   i.MX8MP[8] rev1.1 1800 MHz (running at 1200 MHz)                         
CPU:   Commercial temperature grade (0C to 95C) at 25C                          
Reset cause: POR                                                                
Model: NXP i.MX8MPlus LPDDR4 EVK board                                          
DRAM:  6 GiB                                                                    
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C2 0x50]                
SNK.Power3.0 on CC1                                                             
PDO 0: type 0, 5000 mV, 3000 mA [E]                                             
PDO 1: type 0, 9000 mV, 3000 mA []                                              
PDO 2: type 0, 12000 mV, 3000 mA []                                             
PDO 3: type 0, 15000 mV, 3000 mA []                                             
PDO 4: type 0, 20000 mV, 3000 mA []                                             
PDO 5: type 3, undefined                                                        
Requesting PDO 4: 20000 mV, 2250 mA                                             
Source accept request                                                           
PD source ready!                                                                
tcpc_pd_receive_message: Polling ALERT register, TCPC_ALERT_RX_STATUS bit faile2
Power supply on USB2                                                            
TCPC:  Vendor ID [0x1fc9], Product ID [0x5110], Addr [I2C1 0x50]                
Core:  257 devices, 36 uclasses, devicetree: separate                           
MMC:   FSL_SDHC: 1, FSL_SDHC: 2                                                 
Loading Environment from MMC... *** Warning - bad CRC, using default environment
                                                                                
[*]-Video Link 0adv7535_mipi2hdmi adv7535@3d: Can't find cec device id=0x3c     
fail to probe panel device adv7535@3d                                           
fail to get display timings                                                     
probe video device failed, ret -19                                              
                                                                                
        [0] lcd-controller@32e80000, video                                      
        [1] mipi_dsi@32e60000, video_bridge                                     
        [2] adv7535@3d, panel                                                   
adv7535_mipi2hdmi adv7535@3d: Can't find cec device id=0x3c                     
fail to probe panel device adv7535@3d                                           
fail to get display timings                                                     
probe video device failed, ret -19                                              
In:    serial                                                                   
Out:   serial                                                                   
Err:   serial                                                                   
SEC0:  RNG instantiated                                                         
switch to partitions #0, OK                                                     
mmc1 is current device                                                          
flash target is MMC:1                                                           
Net:   eth0: ethernet@30be0000, eth1: ethernet@30bf0000 [PRIME]                 
Fastboot: Normal                                                                
Normal Boot                                                                     
Hit any key to stop autoboot:  0                                                
Working FDT set to 43000000                                                     
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND                              
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND                              
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND                              
libfdt fdt_path_offset() returned FDT_ERR_NOTFOUND                              
starting USB...                                                                 
Bus usb@38100000: Failed to initialize board for imx8m USB                      
probe failed, error -62                                                         
Bus usb@38200000: Register 2000140 NbrPorts 2                                   
Starting the controller                                                         
USB XHCI 1.10                                                                   
scanning bus usb@38200000 for devices... 1 USB Device(s) found                  
       scanning usb for storage devices... 0 Storage Device(s) found            
                                                                                
Device 0: unknown device                                                        
switch to partitions #0, OK                                                     
mmc1 is current device                                                          
Scanning mmc 1:1...                                                             
86911 bytes read in 14 ms (5.9 MiB/s)                                           
Working FDT set to 43000000                                                     
Unable to open OP-TEE session (err=-5)                                          
mm_communicate failed!                                                          
Error: Cannot initialize UEFI sub-system, r = 3                                 
switch to partitions #0, OK                                                     
mmc2(part 0) is current device                                                  
Scanning mmc 2:1...                                                             
64669 bytes read in 1 ms (61.7 MiB/s)                                           
Working FDT set to 43000000                                                     
Error: Cannot initialize UEFI sub-system, r = 3                                 
Running BSP bootcmd ...                                                         
switch to partitions #0, OK                                                     
mmc1 is current device                                                          
Failed to load 'boot.scr'                                                       
32856576 bytes read in 372 ms (84.2 MiB/s)                                      
Booting from mmc ...                                                            
86911 bytes read in 4 ms (20.7 MiB/s)                                           
## Flattened Device Tree blob at 43000000                                       
   Booting using the fdt blob at 0x43000000                                     
Working FDT set to 43000000                                                     
clk usb_phy_root_clk already disabled                                           
   Using Device Tree in place at 0000000043000000, end 000000004301837e         
Working FDT set to 43000000                                                     
adv7535_mipi2hdmi adv7535@3d: Can't find cec device id=0x3c                     
fail to probe panel device adv7535@3d                                           
fail to get display timings                                                     
probe video device failed, ret -19                                              
                                                                                
Starting kernel ...

 

'회사일 > USB PD' 카테고리의 다른 글

linux kernel USB PD 관련 검색  (0) 2024.12.04
USB PD 용어 정리중  (0) 2024.12.03
USB PD SOP*?  (0) 2024.12.03
USB-C PTN5110 케이블 방향에 따른 데이터 차이  (0) 2024.11.27
USB PD - DRP?  (0) 2024.11.25
Posted by 구차니