From: Randolph Sapp <[email protected]> Add initial board support for the PocketBeagle 2 from BeagleBoard.org. This is based on the current official series from Robert Nelson [1] and work from Bryan Brattlof [2] with some light modifications to protect against certain configurations changes.
This borrows a lot from Phytec's current DDR fixup logic, as that seems to be the most complete implementation of a dynamic DDR correction for K3 in tree currently. Thanks Wadim Egorov and Dominik Haller for setting that up. I've run coccinelle, checkpatch, and qconfig. That being said, this is my first contribution to U-Boot so feel free to yell if something looks off. (I may look into getting qconfig to respect that defconfig include logic in the future, as I don't like it's suggestions currently. Let me know if it is intended behavior to flatten that include into a single file.) [1] https://github.com/beagleboard/u-boot/tree/v2026.01-am62-pocketbeagle2 [2] https://github.com/bryanbrattlof/beagleboot/tree/b4/pb2i Bryan Brattlof (1): arm: mach-k3: am62: add &main_uart6 to clock and pwr tree Randolph Sapp (2): k3-am62-pocketbeagle2: add initial board support k3-am62-pocketbeagle2: add support for 1GB variant ...> k3-am62-pocketbeagle2-ddr4-1600MTs.dtsi} | 92 +++--- ...dtsi => k3-am62-pocketbeagle2-u-boot.dtsi} | 154 ++++++---- arch/arm/dts/k3-am62-r5-pocketbeagle2.dts | 35 +++ arch/arm/mach-k3/am62x/Kconfig | 1 + arch/arm/mach-k3/r5/am62x/clk-data.c | 19 +- arch/arm/mach-k3/r5/am62x/dev-data.c | 5 +- board/beagle/pocketbeagle2/Kconfig | 86 ++++++ board/beagle/pocketbeagle2/MAINTAINERS | 10 + board/beagle/pocketbeagle2/Makefile | 11 + .../board-cfg.yaml | 0 .../{beagleplay => pocketbeagle2}/pm-cfg.yaml | 0 board/beagle/pocketbeagle2/pocketbeagle2.c | 147 ++++++++++ .../pocketbeagle2/pocketbeagle2.env} | 21 +- .../beagle/pocketbeagle2/pocketbeagle2_ddr.h | 50 ++++ .../pocketbeagle2}/rm-cfg.yaml | 0 .../sec-cfg.yaml | 0 ...onfig => am62_pocketbeagle2_a53_defconfig} | 16 +- ...config => am62_pocketbeagle2_r5_defconfig} | 12 +- doc/board/beagle/am62_pocketbeagle2.rst | 277 ++++++++++++++++++ doc/board/beagle/index.rst | 1 + .../src/arm64/ti/k3-am62-pocketbeagle2.dts | 43 +++ .../configs/{beagley_ai.h => pocketbeagle2.h} | 8 +- 22 files changed, 854 insertions(+), 134 deletions(-) copy arch/arm/dts/{k3-am62x-sk-ddr4-1600MTs.dtsi => k3-am62-pocketbeagle2-ddr4-1600MTs.dtsi} (97%) copy arch/arm/dts/{k3-am67a-beagley-ai-u-boot.dtsi => k3-am62-pocketbeagle2-u-boot.dtsi} (53%) create mode 100644 arch/arm/dts/k3-am62-r5-pocketbeagle2.dts create mode 100644 board/beagle/pocketbeagle2/Kconfig create mode 100644 board/beagle/pocketbeagle2/MAINTAINERS create mode 100644 board/beagle/pocketbeagle2/Makefile copy board/beagle/{beagleplay => pocketbeagle2}/board-cfg.yaml (100%) copy board/beagle/{beagleplay => pocketbeagle2}/pm-cfg.yaml (100%) create mode 100644 board/beagle/pocketbeagle2/pocketbeagle2.c copy board/{ti/am62x/am62x.env => beagle/pocketbeagle2/pocketbeagle2.env} (59%) create mode 100644 board/beagle/pocketbeagle2/pocketbeagle2_ddr.h copy board/{phytec/phycore_am62x => beagle/pocketbeagle2}/rm-cfg.yaml (100%) copy board/beagle/{beagleplay => pocketbeagle2}/sec-cfg.yaml (100%) copy configs/{am62x_beagleplay_a53_defconfig => am62_pocketbeagle2_a53_defconfig} (91%) copy configs/{am62x_beagleplay_r5_defconfig => am62_pocketbeagle2_r5_defconfig} (90%) create mode 100644 doc/board/beagle/am62_pocketbeagle2.rst copy include/configs/{beagley_ai.h => pocketbeagle2.h} (57%) -- 2.53.0

