Skip to content

Commit

Permalink
arm64: dts: rockchip: adjust rk3568 pll clocks
Browse files Browse the repository at this point in the history
The rk3568 gpll should run at 1200mhz and the ppll should run at 200mhz.
These are set incorrectly by the bootloader, so fix them here.

gpll boots at 1188mhz, but to get most accurate dividers for all
gpll_dividers it needs to run at 1200mhz, otherwise everyone downstream
isn't quite right.

ppll feeds the combophys, which has a divide by 2 clock, so 200mhz is
required to reach a 100mhz clock input for them.

The vendor-kernel also makes this fix.

Signed-off-by: Peter Geis <pgwipeout@gmail.com>
[pulled deeper explanation from discussion into commit message]
Link: https://lore.kernel.org/r/20210728180034.717953-7-pgwipeout@gmail.com
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
  • Loading branch information
Peter Geis authored and Heiko Stuebner committed Sep 15, 2021
1 parent 0dcec57 commit f7c5b9c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm64/boot/dts/rockchip/rk356x.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@
reg = <0x0 0xfdd20000 0x0 0x1000>;
#clock-cells = <1>;
#reset-cells = <1>;
assigned-clocks = <&cru PLL_GPLL>, <&pmucru PLL_PPLL>;
assigned-clock-rates = <1200000000>, <200000000>;
};

i2c0: i2c@fdd40000 {
Expand Down

0 comments on commit f7c5b9c

Please sign in to comment.