Skip to contentSkip to conversation

Convert Pico-Pi i.MX7D to DM

U-Boot Joris Offouga 2 participants 3 messages Jan 18, 2019 – Jan 20, 2019 1 message not in the archive

lore
Share & tools
lore
#1 lore raw

Hi Joris,

Quoted 8 lines · Joris Offouga

Hi all,

I try to convert Pico-Pi i.MX7D to DM but I'm having some trouble with pmic and ethernet.
you can see the log lower

Do you have an idea to solve this?

Maybe you could take a look at Byan's patch that converted imx7s-warp to use PMIC DM:
https://patches.linaro.org/patch/156034/

You also need to convert I2C first.

Bryan's complete series can be found here:
https://patches.linaro.org/project/u-boot/list/

Hope this helps and looking forward to your patches :-)

Regards,

Fabio Estevam

A message that is not in the archive (sent off-list or not yet received): [email protected]

#3 lore raw

Hi Joris,

[Please keep the list on Cc]

Quoted 27 lines · Joris Offouga

I convert I2C first , it work but pmic function return wrong error :

read error from device: 9df65458 register: 0x3!
PMIC: PFUZE3000 DEV_ID=0x18764000 REV_ID=0xfffffffb read error from device: 9df65458 register: 0x69! write error to device: 9df65458 register: 0x23! write error to device: 9df65458 register: 0x31! write error to device: 9df65458 register: 0x21! write error to device: 9df65458 register: 0x2f! read error from device: 9df65458 register: 0x2e! write error to device: 9df65458 register: 0x2e!

When DM_USB is enable, I use dfu 0 mmc 0 for update spl and u-boot. SPL update normally but u-boot.img is causing an error :

#Deferred dfu_flush() failed!=>

For the moment here is the result of the conversion :

U-Boot SPL 2019.01-rc3-dirty (Jan 20 2019 - 18:17:05 +0100) Trying to boot from USB SDP
SDP: initialize...
SDP: handle requests...
Downloading file of size 553025 to 0x877fffc0... done Jumping to header at 0x877fffc0
Header Tag is not an IMX image

Quoted 1 line

U-Boot 2019.01-rc3-dirty (Jan 20 2019 - 18:17:05 +0100)

Could you please use a more recent U-Boot? 2019.01 has been released already.

Quoted 14 lines
CPU:   Freescale i.MX7D rev1.2 1000 MHz (running at 792 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 48C
Reset cause: POR
Model: TechNexion PICO-IMX7D Board and PI baseboard
Board: i.MX7D PICOSOM
DRAM:  512 MiB
read error from device: 9df65458 register: 0x3!
PMIC:  PFUZE3000 DEV_ID=0x18764000 REV_ID=0xfffffffb
read error from device: 9df65458 register: 0x69!
write error to device: 9df65458 register: 0x23!
write error to device: 9df65458 register: 0x31!
write error to device: 9df65458 register: 0x21!
write error to device: 9df65458 register: 0x2f!
read error from device: 9df65458 register: 0x2e!
Quoted 8 lines
write error to device: 9df65458 register: 0x2e!
MMC:   FSL_SDHC: 2, FSL_SDHC: 1, FSL_SDHC: 0
Loading Environment from MMC... OK
In:    serial at 30a70000
Out:   serial at 30a70000
Err:   serial at 30a70000
Net:   eth0: ethernet at 30be0000
Hit any key to stop autoboot:  0

At least the Ethernet GPIO error is gone :-)

Could you please post your patch as RFC to the list so that we can try to understand what is going wrong?

Thanks