Skip to content

RFC Convert Pico-Pi i.MX7D to DM

Joris Offouga u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest0 of 9 patches 0 repliesNew

Patches in v1 No applies recorded yet

None of the 9 patches the cover letter announces are in this archive.

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [U-Boot] [RFC 0/9] Convert Pico-Pi i.MX7D to DM

Le 22/01/2019 à 10:47, Lukasz Majewski a écrit :

Quoted 43 lines
Quoted 40 lines · On Sun, 20 Jan 2019 23:38:32 +0100 Joris Offouga <[email protected]> wrote:

Hi all,

Pinctrl, GPIO, I2C, MMC, ETH are converted.

Convert PMIC is the same of warp7 but i have a some erros, si this log : U-Boot SPL 2019.01-00197-ga524e5d-dirty (Jan 20 2019 - 21:09:49 +0100) Trying to boot from USB SDP
SDP: initialize...
SDP: handle requests...
Downloading file of size 556397 to 0x877fffc0... done Jumping to header at 0x877fffc0
Header Tag is not an IMX image

U-Boot 2019.01-00197-ga524e5d-dirty (Jan 20 2019 - 21:09:49 +0100)

CPU:   Freescale i.MX7D rev1.2 1000 MHz (running at 792 MHz)
CPU:   Commercial temperature grade (0C to 95C) at 43C
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=0x0 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!
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:
Warning: ethernet at 30be0000 using MAC address from ROM
eth0: ethernet at 30be0000
Hit any key to stop autoboot: 0

Quoted 5 lines
Quoted 5 lines

USB is convert but update u-boot with dfu log a error :

=> dfu 0 mmc 0
Request would exceed designated area!
#Deferred dfu_flush() failed!=>

Hi Lukasz,

Quoted 2 lines

Please check if malloc pool size (in Kconfig) is large enough to handle DFU requests.

The dfu request is smaller than the size of malloc pool size

Quoted 3 lines

Otherwise, please #define DEBUG in ./drivers/dfu.c and dfu_mmc.c and share output.

This is a log when dfu failed :

blk_find_device: if_type=6, devnum=0: usdhc at 30b40000.blk, 6, 2
blk_find_device: if_type=6, devnum=0: usdhc at 30b50000.blk, 6, 1
blk_find_device: if_type=6, devnum=0: usdhc at 30b60000.blk, 6, 0 Request would exceed designated area!
dfu_write_buffer_drain: Write error!
#Deferred dfu_flush() failed!reset_config:
unbind function 'dfu'/9ef6e678
g_dnl_unbind: calling usb_gadget_disconnect for controller 'ci_udc'

Best Regards,

Joris Offouga

Quoted 41 lines
Quoted 25 lines

Thanks a advance for your help.

Best Regards,

Joris Offouga

Joris Offouga (9):
Arm: dts: imx7d-pico: Import Linux pico-pi dts
Arm: imx7d-pico: Add DT file hooks
pico-pi-imx7d: defconfig Enable DM gpio pinctrl and pinctrl_imx7
arm: imx7d-pico-pi: Convert to DM MMC initialization
pico-pi-imx7d: defconfig: Switch to DM for I2C
pico-imx7d-pico: defconfig: Switch to DM for UART
pico-imx7d: Convert to DM PMIC
arm: pico-pi-imx7d: Convert to DM USB
pico-imx7d: Convert to DM Ethernet

  arch/arm/dts/Makefile                    |   3 +-
  arch/arm/dts/imx7d-pico-pi.dts           | 102 ++++++
  arch/arm/dts/imx7d-pico.dtsi             | 588
+++++++++++++++++++++++++++++++
board/technexion/pico-imx7d/pico-imx7d.c | 105 +-----
configs/pico-pi-imx7d_defconfig          |  17 +-
include/configs/pico-imx7d.h             |  11 - 6 files changed, 726
Quoted 4 lines

insertions(+), 100 deletions(-) create mode 100644 arch/arm/dts/imx7d-pico-pi.dts create mode 100644 arch/arm/dts/imx7d-pico.dtsi

Best regards,

Lukasz Majewski

--

DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-59 Fax: (+49)-8142-66989-80 Email: lukma at denx.de