
On 09:04-20231005, reidt wrote: [...]
- clk_200mhz: dummy_clock_200mhz {
compatible = "fixed-clock";
#clock-cells = <0>;
clock-frequency = <200000000>;
bootph-pre-ram;
bootph-all;
Here and else where in the r5 file: why switch from pre-ram to bootph-all ? dont we need these prior to ddr initialization?
Due to the change in how booth-pre-ram works [0], bootph-pre-ram alone no longer works. U-boot docs Pre-Relocation Support section says some-ram can be used for u-boot prior to reloc, but not spl. So like Massimo mentioned in the linked discussion, some-ram + pre-ram can work, as well as -all. Outside of affecting the TPL phase, I'm not sure I know of a difference in regards to how it affects pre-ddr.
Also see: https://github.com/u-boot/u-boot/commit/0cb6515cdab483ce8b30680803cbed0a6304... https://github.com/u-boot/u-boot/commit/7e5b6f1cff846218b824a4d906e2831c1586... https://lore.kernel.org/all/3376a0eb-57f4-416a-b4b8-86cee769d6eb@siemens.com... etc..
as a rule of thumb: u-boot.dtsi uses bootph-all; r5-xyz.dts uses booth-pre-ram
Where this failed completely is when A53 started using booth-pre-ram in which case the u-boot stages failed on A53 side.
The rule of thumb I explained works across silicon (bar other issues).