2
0

0039-riscv-dts-starfive-jh7110-Add-PLL-clock-node-and-mod.patch 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. From f0548ab9212ef35abe79f46e5f509f4fc9d78699 Mon Sep 17 00:00:00 2001
  2. From: Xingyu Wu <[email protected]>
  3. Date: Mon, 20 Feb 2023 14:33:33 +0800
  4. Subject: [PATCH 039/122] riscv: dts: starfive: jh7110: Add PLL clock node and
  5. modify syscrg node
  6. Add the PLL clock node for the Starfive JH7110 SoC and
  7. modify the SYSCRG node to add PLL clocks input.
  8. Signed-off-by: Xingyu Wu <[email protected]>
  9. ---
  10. arch/riscv/boot/dts/starfive/jh7110.dtsi | 14 ++++++++++++--
  11. 1 file changed, 12 insertions(+), 2 deletions(-)
  12. --- a/arch/riscv/boot/dts/starfive/jh7110.dtsi
  13. +++ b/arch/riscv/boot/dts/starfive/jh7110.dtsi
  14. @@ -452,12 +452,16 @@
  15. <&gmac1_rgmii_rxin>,
  16. <&i2stx_bclk_ext>, <&i2stx_lrck_ext>,
  17. <&i2srx_bclk_ext>, <&i2srx_lrck_ext>,
  18. - <&tdm_ext>, <&mclk_ext>;
  19. + <&tdm_ext>, <&mclk_ext>,
  20. + <&pllclk JH7110_CLK_PLL0_OUT>,
  21. + <&pllclk JH7110_CLK_PLL1_OUT>,
  22. + <&pllclk JH7110_CLK_PLL2_OUT>;
  23. clock-names = "osc", "gmac1_rmii_refin",
  24. "gmac1_rgmii_rxin",
  25. "i2stx_bclk_ext", "i2stx_lrck_ext",
  26. "i2srx_bclk_ext", "i2srx_lrck_ext",
  27. - "tdm_ext", "mclk_ext";
  28. + "tdm_ext", "mclk_ext",
  29. + "pll0_out", "pll1_out", "pll2_out";
  30. #clock-cells = <1>;
  31. #reset-cells = <1>;
  32. };
  33. @@ -465,6 +469,12 @@
  34. sys_syscon: syscon@13030000 {
  35. compatible = "starfive,jh7110-sys-syscon", "syscon", "simple-mfd";
  36. reg = <0x0 0x13030000 0x0 0x1000>;
  37. +
  38. + pllclk: clock-controller {
  39. + compatible = "starfive,jh7110-pll";
  40. + clocks = <&osc>;
  41. + #clock-cells = <1>;
  42. + };
  43. };
  44. sysgpio: pinctrl@13040000 {