Unable to set DDR clock
Hello,
I am having a hard time setting the DDR clock at pll2 for an stm32mp157.
The clock has been configured to 528MHz using CubeMX. I checked cfg for pll2 in the DeviceTree against the Datasheet / Referance Manual and all settings seem correct.
Yet /sys/kernel/debug/clk/clk_summary returns 533MHz for pll2_r.
PLL2 gets 24MHz from HSE. My current configuration for tf-a:
&rcc {
...
pll2:st,pll@1 {
compatible = "st,stm32mp1-pll";
reg = <1>;
cfg = < 2 65 1 1 0 PQR(1,0,1) >;
frac = < 0x1400 >;
};
...PLL2 gets configured in the dts-file for tf-a only. For kernel and u-boot there are only empty rcc-nodes:
&rcc{
u-boot,dm-pre-reloc;
status = "okay";
/* USER CODE BEGIN rcc */
/* USER CODE END rcc */
};Any ideas?
