[PATCH v2 0/8] PinePhone automatic device tree selection

Samuel Holland samuel at sholland.org
Sat Oct 24 17:21:48 CEST 2020


This patch series implements a feature to automatically choose the
right PinePhone device tree by probing the hardware. It then extends
the functionality to pass the chosen DTB name to the boot command.
Finally, I add device trees and a defconfig for the PinePhone.

Changes from v1 to v2:
  - Removed unnecessary "else"s in DT selection logic
  - Updated DT tag reference from v5.9-rc3 to v5.9 (no code change)
  - Regenerated defconfig with `make savedefconfig`
  - Added Acked-by and Reviewed-by tags

Samuel Holland (8):
  sunxi: board: Use a more descriptive variable name
  sunxi: board: Add a helper to get the SPL DT name
  sunxi: board: Simplify Pine A64 DT selection logic
  sunxi: board: Add PinePhone DT selection logic
  sunxi: board: Save the chosen DT name in the SPL header
  sunxi: board: Set fdtfile to match the DT chosen by SPL
  sunxi: DT: A64: update device tree files
  sunxi: a64: Add a defconfig for the PinePhone

 arch/arm/dts/Makefile                         |   4 +
 arch/arm/dts/axp803.dtsi                      |  82 +--
 arch/arm/dts/sun50i-a64-amarula-relic.dts     | 109 +++-
 arch/arm/dts/sun50i-a64-bananapi-m64.dts      | 118 ++--
 arch/arm/dts/sun50i-a64-cpu-opp.dtsi          |  75 +++
 arch/arm/dts/sun50i-a64-nanopi-a64.dts        |  70 +--
 .../dts/sun50i-a64-oceanic-5205-5inmfd.dts    |  31 +-
 arch/arm/dts/sun50i-a64-olinuxino-emmc.dts    |  12 +-
 arch/arm/dts/sun50i-a64-olinuxino.dts         | 113 ++--
 arch/arm/dts/sun50i-a64-orangepi-win.dts      | 127 +++--
 arch/arm/dts/sun50i-a64-pine64-lts.dts        |   7 +-
 arch/arm/dts/sun50i-a64-pine64-plus.dts       |  52 +-
 arch/arm/dts/sun50i-a64-pine64.dts            |  97 ++--
 arch/arm/dts/sun50i-a64-pinebook-u-boot.dtsi  |  17 -
 arch/arm/dts/sun50i-a64-pinebook.dts          | 237 ++++++--
 arch/arm/dts/sun50i-a64-pinephone-1.0.dts     |  11 +
 arch/arm/dts/sun50i-a64-pinephone-1.1.dts     |  30 +
 arch/arm/dts/sun50i-a64-pinephone-1.2.dts     |  40 ++
 arch/arm/dts/sun50i-a64-pinephone.dtsi        | 429 ++++++++++++++
 arch/arm/dts/sun50i-a64-pinetab.dts           | 460 +++++++++++++++
 arch/arm/dts/sun50i-a64-sopine-baseboard.dts  | 113 ++--
 arch/arm/dts/sun50i-a64-sopine.dtsi           |  69 +--
 arch/arm/dts/sun50i-a64-teres-i-u-boot.dtsi   |  41 --
 arch/arm/dts/sun50i-a64-teres-i.dts           | 138 ++++-
 arch/arm/dts/sun50i-a64.dtsi                  | 532 ++++++++++++++----
 arch/arm/mach-sunxi/Kconfig                   |   7 +
 board/sunxi/board.c                           |  97 +++-
 configs/pinephone_defconfig                   |  12 +
 include/dt-bindings/clock/sun50i-a64-ccu.h    |   4 +-
 include/dt-bindings/clock/sun8i-de2.h         |   3 +
 include/dt-bindings/reset/sun8i-de2.h         |   1 +
 31 files changed, 2488 insertions(+), 650 deletions(-)
 create mode 100644 arch/arm/dts/sun50i-a64-cpu-opp.dtsi
 delete mode 100644 arch/arm/dts/sun50i-a64-pinebook-u-boot.dtsi
 create mode 100644 arch/arm/dts/sun50i-a64-pinephone-1.0.dts
 create mode 100644 arch/arm/dts/sun50i-a64-pinephone-1.1.dts
 create mode 100644 arch/arm/dts/sun50i-a64-pinephone-1.2.dts
 create mode 100644 arch/arm/dts/sun50i-a64-pinephone.dtsi
 create mode 100644 arch/arm/dts/sun50i-a64-pinetab.dts
 delete mode 100644 arch/arm/dts/sun50i-a64-teres-i-u-boot.dtsi
 create mode 100644 configs/pinephone_defconfig

-- 
2.26.2



More information about the U-Boot mailing list