Synchronise LS1088A/Ten64 device tree with Linux
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest18 patches 23 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/18 | armv8: fsl-layerscape: check for crypto node first in fdt_fixup_remove_jrarch/ | +4 | 1 reply | |
| 2/18 | configs: ten64: enable DM_SERIALconfigs/ | +3 | 2 replies | |
| 3/18 | arm: dts: fsl-ls1088a: move u-boot bootph tags into u-boot only filesarch/ arch/ arch/ +2 more | +25 | 1 reply | |
| 4/18 | arm: dts: fsl-ls1088a: move memory node into U-Boot specific filearch/ arch/ | +8 | 1 reply | |
| 5/18 | pci: layerscape: add support for kernel/official fsl, ls1088a-pcie bindingdrivers/ | +1 | 1 reply | |
| 6/18 | arm: dts: fsl-ls1088a: import and sync full SMMU nodes with Linuxarch/ | +106 | 1 reply | |
| 7/18 | arm: dts: fsl-ls1088a: sync PCIe controller definition with Linuxarch/ | +106 | 1 reply | |
| 8/18 | arm: dts: fsl-ls1088a: match Linux FDT by disabling PCIe by defaultarch/ arch/ | +16 | 1 reply | |
| 9/18 | arm: dts: fsl-ls1088a: import CPU definition from Linux kernelarch/ | +87 | 1 reply | |
| 10/18 | arm: dts: fsl-ls1088a: move GPIO controller under "soc" per Linuxarch/ | +44 | 1 reply | |
| 11/18 | arm: dts: fsl-ls1088a: move I2C nodes under "soc" and syncronize with Linuxarch/ | +44 | 1 reply | |
| 12/18 | arm: dts: fsl-ls1088a: sync usb controller nodes with Linuxarch/ arch/ | +30 | 2 replies | |
| 13/18 | arm: dts: fsl-ls1088a: syncronise MDIO+PCS U-Boot definitions with Linuxarch/ arch/ | +112 | 1 reply | |
| 14/18 | arm: dts: fsl-ls1088a: syncronise fsl-mc definition with Linuxarch/ arch/ | +85 | 1 reply | |
| 15/18 | arm: dts: fsl-ls1088a: move and sync existing bindings to be under /socarch/ | +104 | 1 reply | |
| 16/18 | arm: dts: fsl-ls1088a: copy all missing bindings from Linuxarch/ | +304 | 3 replies | |
| 17/18 | arm: dts: ten64: syncronise device tree with Linuxarch/ arch/ | +45 | 1 reply | |
| 18/18 | arm: dts: ten64: fix header typo and update copyrightarch/ | +3 | 1 reply |
Reviews trailers per patch
All 18 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Peng Fan | Ioana Ciornei |
|---|---|---|
| Series | R-b T-b | |
| 1/18 | R-b | |
| 2/18 | R-b | R-b |
| 3/18 | R-b | |
| 4/18 | R-b | |
| 5/18 | R-b | |
| 6/18 | R-b | |
| 7/18 | R-b | |
| 8/18 | R-b | |
| 9/18 | R-b | |
| 10/18 | R-b | |
| 11/18 | R-b | |
| 12/18 | R-b R-b | |
| 13/18 | R-b | |
| 14/18 | R-b | |
| 15/18 | R-b | |
| 16/18 | R-b | |
| 17/18 | R-b | |
| 18/18 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 00/18] Synchronise LS1088A/Ten64 device tree with Linux
I am intensively working on updating the current "production" Ten64 (NXP LS1088A) firmware from v2020.07 to the latest U-Boot, with the hope of taking advantage of bootstd/bootflow and other improvements.
One desire I have is to have U-Boot "supply" the device tree which is used for EFI boot, rather than our current method of reading the DTB from a flash partition with commands (sf read etc.) and plugging that into the distroboot process.
Indeed, once we syncronise the U-Boot FDT with the Linux one, the bootflow method "Just Works" with the control FDT, without us having to plug an external FDT into the process.
(Note: the bootstd conversion for Ten64 will be coming in a later commit. The DTS on it's own is only one part of the puzzle)
The flow of this series is:
- Fix a crash I found in the U-Boot FDT fixup for Layerscape
The previous U-Boot copy of the fsl-ls1088a.dts did not have direct alias to the "crypto" node, triggering a crash when FDT fixup tried to operate on it.
- Enable DM_SERIAL for Ten64 (mirrors how it was enabled for LS1088A-RDB and LS1088A-QDS recently)
- Move all U-Boot "tweaks" into a -u-boot.dtsi file. Each board will have it's own <boardname>-u-boot.dtsi, which includs the SoC-specific fsl-ls1088a-u-boot.dtsi.
- For all hardware that was in U-Boot's fsl-ls1088a.dtsi, and not in the "correct" place (under /soc), move them into /soc and adopt the Linux kernel definition.
PCIe needed special treatment as it's U-Boot binding was slightly different, as well as different compatible strings (match a different U-Boot driver) for MDIO, USB and fsl-mc among others.
At this point, Linux is able to boot on the Ten64 using U-Boot's FDT (passed to it via EFI) with major hardware (Ethernet, USB, PCIe) functional.
- Finally, copy over the U-Boot fsl-ls1088a.dtsi with the Linux kernel version.
They are now bit-for-bit identical, with the U-Boot tweaks contained externally.
- Similarly for the Ten64 DTS - fsl-ls1088a-ten64.dts is now identical to the kernel version.
This builds upon the recent conversion of the LS1088A
to DM_SERIAL[1]. I used a similar syncronisation for the LS1028A[2] as a guide.
[1] - "Convert LS1088A and LX2160 to DM_SERIAL" patch series
https://patchwork.ozlabs.org/project/uboot/list/?series=346392&state=%2A&archive=both
[2] - "arm: dts: ls1028a: sync device tree with linux" patch series
https://patchwork.ozlabs.org/project/uboot/list/?series=265457&state=%2A&archive=both
Mathew McBride (18):
armv8: fsl-layerscape: check for crypto node first in
fdt_fixup_remove_jr
configs: ten64: enable DM_SERIAL
arm: dts: fsl-ls1088a: move u-boot bootph tags into u-boot only files
arm: dts: fsl-ls1088a: move memory node into U-Boot specific file
pci: layerscape: add support for kernel/official fsl,ls1088a-pcie
binding
arm: dts: fsl-ls1088a: import and sync full SMMU nodes with Linux
arm: dts: fsl-ls1088a: sync PCIe controller definition with Linux
arm: dts: fsl-ls1088a: match Linux FDT by disabling PCIe by default
arm: dts: fsl-ls1088a: import CPU definition from Linux kernel
arm: dts: fsl-ls1088a: move GPIO controller under "soc" per Linux
arm: dts: fsl-ls1088a: move I2C nodes under "soc" and syncronize with
Linux
arm: dts: fsl-ls1088a: sync usb controller nodes with Linux
arm: dts: fsl-ls1088a: syncronise MDIO+PCS U-Boot definitions with
Linux
arm: dts: fsl-ls1088a: syncronise fsl-mc definition with Linux
arm: dts: fsl-ls1088a: move and sync existing bindings to be under
/soc
arm: dts: fsl-ls1088a: copy all missing bindings from Linux
arm: dts: ten64: syncronise device tree with Linux
arm: dts: ten64: fix header typo and update copyright
arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 4 + arch/arm/dts/fsl-ls1088a-qds-u-boot.dtsi | 5 + arch/arm/dts/fsl-ls1088a-rdb-u-boot.dtsi | 5 + arch/arm/dts/fsl-ls1088a-ten64-u-boot.dtsi | 18 + arch/arm/dts/fsl-ls1088a-ten64.dts | 61 +- arch/arm/dts/fsl-ls1088a-u-boot.dtsi | 63 + arch/arm/dts/fsl-ls1088a.dtsi | 1216 +++++++++++++++----- configs/ten64_tfa_defconfig | 4 +- drivers/pci/pcie_layerscape_rc.c | 1 + 9 files changed, 1067 insertions(+), 310 deletions(-) create mode 100644 arch/arm/dts/fsl-ls1088a-qds-u-boot.dtsi create mode 100644 arch/arm/dts/fsl-ls1088a-rdb-u-boot.dtsi create mode 100644 arch/arm/dts/fsl-ls1088a-ten64-u-boot.dtsi create mode 100644 arch/arm/dts/fsl-ls1088a-u-boot.dtsi
Signature · 1 line
2.30.1