[U-Boot] [PATCH v2 0/8] Device tree support for Powerpc in u-boot

Jagdish Gediya jagdish.gediya at nxp.com
Tue Aug 28 14:49:35 UTC 2018


In current implementation, Powerpc does not support device tree in u-boot.
This patch enables device tree support for PowerPC platform .

T2080AQDS board used as first platform.
  
Dtb is embedded in the u-boot following below steps using binmam tool.
  
1. Remove bootpg and resetvec section if required
2. Append dtb using binman
3. Append bootpg and resetvec section back if removed in 1st step.
  
To enable binman tool, 'binman' node  has been added in the device tree.

Jagdish Gediya (8):
  powerpc/dts: Define '_end' symbol in mpc85xx u-boot lds files
  powerpc/dts: Makefile changes to clean and build dts
  binman: Add a new "skip-at-start" property in Section class
  binman: Add support for Powerpc mpc85xx 'bootpg + resetvec' entry
  powerpc: mpc85xx: Select BINMAN by default
  powerpc: mpc85xx: Use binman to embed dtb inside u-boot
  powerpc: dts: Add u-boot.dtsi to use binman for MPC85xx boards
  powerpc: dts: Enable device tree support for T2080QDS

 Makefile                                           | 23 +++++++-
 arch/powerpc/Kconfig                               |  1 +
 arch/powerpc/cpu/mpc85xx/Kconfig                   |  4 ++
 arch/powerpc/cpu/mpc85xx/u-boot-nand.lds           |  1 +
 arch/powerpc/cpu/mpc85xx/u-boot.lds                |  1 +
 arch/powerpc/dts/Makefile                          | 14 +++++
 arch/powerpc/dts/e6500_power_isa.dtsi              | 39 ++++++++++++++
 arch/powerpc/dts/t2080.dtsi                        | 62 ++++++++++++++++++++++
 arch/powerpc/dts/t2080qds.dts                      | 17 ++++++
 arch/powerpc/dts/u-boot.dtsi                       | 32 +++++++++++
 board/freescale/t208xqds/README                    | 19 +++++++
 configs/T2080QDS_NAND_defconfig                    |  3 +-
 configs/T2080QDS_SDCARD_defconfig                  |  3 +-
 configs/T2080QDS_SPIFLASH_defconfig                |  3 +-
 configs/T2080QDS_defconfig                         |  4 +-
 dts/Makefile                                       |  2 +-
 tools/binman/README                                |  9 ++++
 tools/binman/README.entries                        | 14 ++++-
 tools/binman/bsection.py                           |  1 +
 .../etype/powerpc_mpc85xx_bootpg_resetvec.py       | 25 +++++++++
 tools/binman/ftest.py                              |  8 +++
 .../test/80_powerpc_mpc85xx_bootpg_resetvec.dts    | 16 ++++++
 22 files changed, 294 insertions(+), 7 deletions(-)
 create mode 100644 arch/powerpc/dts/Makefile
 create mode 100644 arch/powerpc/dts/e6500_power_isa.dtsi
 create mode 100644 arch/powerpc/dts/t2080.dtsi
 create mode 100644 arch/powerpc/dts/t2080qds.dts
 create mode 100644 arch/powerpc/dts/u-boot.dtsi
 create mode 100644 tools/binman/etype/powerpc_mpc85xx_bootpg_resetvec.py
 create mode 100644 tools/binman/test/80_powerpc_mpc85xx_bootpg_resetvec.dts

-- 
2.7.4



More information about the U-Boot mailing list