[PATCH v2 2/2] riscv: dts: spacemit: mark K1 board boot devices bootph-pre-ram
E Shattow
e at freeshell.de
Wed Oct 21 04:07:34 PDT 2026
On 10/21/26 03:59, Hung-Chun Tseng wrote:
> Hi Yixun,
>
> Yixun Lan wrote:
>> but for bootph-pre-ram, isn't it about the DT nodes which needed before DDR
>> initialization in SPL stage, and should have nothing to do with BootROM?
>
> Thanks for checking with the vendor. I agree, the schema defines it as
> "the phase that sets up SDRAM".
>
> I also need to correct what I said earlier: the EEPROM is not only
> used to tell the boards apart. It also holds the board's DRAM
> configuration (number of chip selects, data rate and DDR type), which
> has to be read before DRAM can be trained [1].
>
> So in v3 I'd like to keep the i2c2 and EEPROM tags, and also tag the
> EEPROM on the OrangePi RV2 and R2S, which I missed in v2.
>
> E, does that address your concern?
Yes, as based on published documentation and confirmed by vendor, that
sounds good to me.
>
> [1] board/spacemit/k1/spl.c in U-Boot, ddr_early_init() -> read_ddr_info()
>
> Thanks,
> Hung-Chun
Thank you Hung-Chun and Yixun,
-E
More information about the linux-riscv
mailing list