Skip to content

imx: vybrid: Update BK4 and PCM052 boards to only use DM/DTS

Lukasz Majewski u-boot 6 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest22 patches 0 repliesNew
  2. v322 patches 0 repliesSuperseded
  3. v2 posting 3/30 of 21 patches 0 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v2 posting 2/30 of 21 patches0 repliesSuperseded
v2 posting 1/321 patches0 repliesSuperseded
v121 patches0 repliesSuperseded

Changes in v4 from the cover letter

- Fix maming of DDRBYTE0 -> DDRBYTE2 (as it is in the documentation)
- Update DDRBYTE0 -> DDRBYTE2 as in VF610 user manual

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22net: FEC: Add compatible for vybrid (vf610) to reuse fec_mxc.c driverdrivers/net/fec_mxc.c+1 -01 reply
2/22net: Kconfig: FEC: Add dependency on VF610drivers/net/Kconfig+1 -11 reply
3/22vybrid: ddr: Extend vf610-pinfunc.h with DDR pads definitionsarch/arm/dts/vf610-pinfunc.h+50 -01 reply
4/22vybrid: clock: Provide enable_i2c_clk() function for Vybridarch/arm/cpu/armv7/vf610/generic.c arch/arm/include/asm/arch-vf610/clock.h+25 -01 reply
5/22pcm052: board: Do not enable I2C2 code in the board fileboard/phytec/pcm052/pcm052.c+1 -11 reply
6/22vybrid: Define the imx_get_mac_from_fuse() as a __weak functionarch/arm/cpu/armv7/vf610/generic.c+1 -11 reply
7/22pcm052: board: Remove "m4go" command as it is superseded by "bootaux"board/phytec/pcm052/pcm052.c+0 -381 reply
8/22pcm052: board: vybrid: Update the board name for BK4 deviceboard/phytec/pcm052/pcm052.c+4 -11 reply
9/22ARM: DTS: vybrid: Update vf.dtsi file to descibe more vf610 hardwarearch/arm/dts/vf.dtsi+62 -01 reply
10/22pcm052: board: cosmetic: Add copyright notice to pcm052.cboard/phytec/pcm052/pcm052.c+3 -01 reply
11/22ARM: DTS: Update pcm052 based dts files (bk4r1/pcm052)arch/arm/dts/Makefile arch/arm/dts/bk4r1.dts arch/arm/dts/vf610-bk4r1.dts +4 more+361 -561 reply
12/22ARM: DTS: Provide vf610-bk4r1-u-boot.dtsi for U-Boot specific propertiesarch/arm/dts/vf610-bk4r1-u-boot.dtsi+27 -01 reply
13/22defconfig: bk4/pcm052: Update bk4r1|pcm052_defconfig to support DM/DTconfigs/bk4r1_defconfig configs/pcm052_defconfig include/configs/pcm052.h+74 -411 reply
14/22config: pcm052: Use SZ_X{MK} from linux/sizes.h for include/configs/pcm052.hinclude/configs/pcm052.h+9 -81 reply
15/22config: bk4: Update include/configs/bk4r1.h fileinclude/configs/bk4r1.h+206 -81 reply
16/22pcm052: board: Remove in-board setup code (it is now replaced by DM setup)board/phytec/pcm052/pcm052.c+0 -2671 reply
17/22config: bk4: Update u-boot script to support recovery via SD cardinclude/configs/bk4r1.h+31 -01 reply
18/22config: bk4: Update u-boot envs to support NOR memories initial setupinclude/configs/bk4r1.h+18 -01 reply
19/22pcm052: bk4: sdcard: Add support for SD card booting/recoveryarch/arm/cpu/armv7/vf610/Kconfig arch/arm/include/asm/arch-vf610/imx-regs.h board/phytec/pcm052/pcm052.c+35 -01 reply
20/22pcm052: board: Add code to setup LED default statesboard/phytec/pcm052/pcm052.c+4 -01 reply
21/22pcm052: mac: Provide board specific imx_get_mac_from_fuse() functionboard/phytec/pcm052/pcm052.c+41 -01 reply
22/22pcm052: bk4: Add board_phy_config() for BK4 to setup ksz8081 phyboard/phytec/pcm052/pcm052.c+16 -02 replies
22/22pcm052: bk4: Add board_phy_config() for BK4 to setup ksz8081 phy+0 -00 replies

Reviews trailers per patch

8 of 23 patches have a Reviewed-by or Acked-by.

PatchStefan AgnerMarcel ZiswilerTom RiniJoe Hershberger
1/22R-b
2/22R-b
3/22R-b
4/22T-b
5/22T-b
6/22
7/22
8/22
9/22R-b T-b
10/22
11/22
12/22R-b
13/22
14/22R-b
15/22
16/22
17/22
18/22
19/22
20/22
21/22
22/22A-b
22/22A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v4 thread

Cover letter [U-Boot] [PATCH v4 00/22] imx: vybrid: Update BK4 and PCM052 boards to only use DM/DTS

This patch series converts PCM052 and BK4 to use Driver Model and Device Tree.

Some notable changes:
- The way how MAC address is read from fuses can now be adjusted
- DTS improvement/sync with kernel (also extract u-boot specific properties)
- Using generic code instead of one from board

The output of u-boot boot:
U-Boot 2019.01-rc3-00076-gc149229be0 (Jan 14 2019 - 08:38:48 +0100)

CPU: Freescale Vybrid VF610 at 396 MHz
Reset cause: POWER ON RESET
Model: Liebherr (LVF) BK4 Vybrid Board
Board: BK4r1 (L333)
DRAM:  512 MiB
NAND:  1024 MiB
MMC:   FSL_SDHC: 0
Loading Environment from NAND... OK
In:    serial at 40028000
Out:   serial at 40028000
Err:   serial at 40028000
Net:   eth0: fec at 400d0000, eth1: fec at 400d1000

Enter passphrase to stop autoboot, booting in 3 seconds

Buildman CI:
./tools/buildman/buildman.py --branch=HEAD vf610 mx6 vybrid --detail --verbose --show_errors --force-build --count=22 --output-dir=../BUILD/

Travis-CI:
https://travis-ci.org/lmajewski/u-boot-dfu/builds/492731495

U-boot master branch: SHA1: b1b1bab7f92b838a252ab977f56d9c3584c14fb7

Changes in v4:
- Fix maming of DDRBYTE0 -> DDRBYTE2 (as it is in the documentation)
- Update DDRBYTE0 -> DDRBYTE2 as in VF610 user manual

Changes in v3:
- Add code to enable I2C0 code as suggested by Stefan (so the code can be reused by other boards without regressions)
- Exclude the pcm052.c related code to a separate patch
- New patch (separate board code patch)

Changes in v2:
- Rename pcm052.dts to vf610-pcm052.dts
- Rename bk4r1.dts to vf610-bk4r1.dts
- Extract 'u-boot,dm-pre-reloc;' property to separate file (to facilitate sync with Linux kernel dts files)
- New patch
- Disable EFI related support and commands (as we do not plan to use EFI on this setup)

Lukasz Majewski (22):
net: FEC: Add compatible for vybrid (vf610) to reuse fec_mxc.c driver
net: Kconfig: FEC: Add dependency on VF610
vybrid: ddr: Extend vf610-pinfunc.h with DDR pads definitions
vybrid: clock: Provide enable_i2c_clk() function for Vybrid
pcm052: board: Do not enable I2C2 code in the board file
vybrid: Define the imx_get_mac_from_fuse() as a __weak function
pcm052: board: Remove "m4go" command as it is superseded by "bootaux"
pcm052: board: vybrid: Update the board name for BK4 device
ARM: DTS: vybrid: Update vf.dtsi file to descibe more vf610 hardware
pcm052: board: cosmetic: Add copyright notice to pcm052.c
ARM: DTS: Update pcm052 based dts files (bk4r1/pcm052)
ARM: DTS: Provide vf610-bk4r1-u-boot.dtsi for U-Boot specific
properties
defconfig: bk4/pcm052: Update bk4r1|pcm052_defconfig to support DM/DT
config: pcm052: Use SZ_X{MK} from linux/sizes.h for
include/configs/pcm052.h
config: bk4: Update include/configs/bk4r1.h file
pcm052: board: Remove in-board setup code (it is now replaced by DM
setup)
config: bk4: Update u-boot script to support recovery via SD card
config: bk4: Update u-boot envs to support NOR memories initial setup
pcm052: bk4: sdcard: Add support for SD card booting/recovery
pcm052: board: Add code to setup LED default states
pcm052: mac: Provide board specific imx_get_mac_from_fuse() function
pcm052: bk4: Add board_phy_config() for BK4 to setup ksz8081 phy

 arch/arm/cpu/armv7/vf610/Kconfig              |   1 +
 arch/arm/cpu/armv7/vf610/generic.c            |  24 +-
 arch/arm/dts/Makefile                         |   4 +-
 arch/arm/dts/bk4r1.dts                        |  47 ----
 arch/arm/dts/vf.dtsi                          |  62 +++++
 arch/arm/dts/vf610-bk4r1-u-boot.dtsi          |  27 ++
 arch/arm/dts/vf610-bk4r1.dts                  |  97 +++++++
 arch/arm/dts/{pcm052.dts => vf610-pcm052.dts} |   6 +-
 arch/arm/dts/vf610-pcm052.dtsi                | 259 +++++++++++++++++
 arch/arm/dts/vf610-pinfunc.h                  |  50 ++++
 arch/arm/include/asm/arch-vf610/clock.h       |   3 +
 arch/arm/include/asm/arch-vf610/imx-regs.h    |   2 +
 board/phytec/pcm052/pcm052.c                  | 386 ++++++--------------------
 configs/bk4r1_defconfig                       |  49 +++-
 configs/pcm052_defconfig                      |  36 ++-
 drivers/net/Kconfig                           |   2 +-
 drivers/net/fec_mxc.c                         |   1 +
 include/configs/bk4r1.h                       | 263 +++++++++++++++++-
 include/configs/pcm052.h                      |  51 +---
 19 files changed, 959 insertions(+), 411 deletions(-)
 delete mode 100644 arch/arm/dts/bk4r1.dts
 create mode 100644 arch/arm/dts/vf610-bk4r1-u-boot.dtsi
 create mode 100644 arch/arm/dts/vf610-bk4r1.dts
 rename arch/arm/dts/{pcm052.dts => vf610-pcm052.dts} (81%)
 create mode 100644 arch/arm/dts/vf610-pcm052.dtsi
Signature · 1 line
2.11.0