[PATCH v2 2/2] riscv: dts: spacemit: mark K1 board boot devices bootph-pre-ram
Hung-Chun Tseng
alan.tseng.cs at gmail.com
Wed Oct 21 03:59:59 PDT 2026
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?
[1] board/spacemit/k1/spl.c in U-Boot, ddr_early_init() -> read_ddr_info()
Thanks,
Hung-Chun
More information about the linux-riscv
mailing list