164-1-dt-add-pll2-into-dtsi.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. From 32bb743195e1e48c48fc5cefd7c6ecdce56046a3 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Emilio=20L=C3=B3pez?= <emilio@elopez.com.ar>
  3. Date: Fri, 18 Jul 2014 15:58:44 -0300
  4. Subject: [PATCH] ARM: sunxi: Add PLL2 support
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. This commit adds the PLL2 definition to the sun4i, sun5i and sun7i
  9. device trees. PLL2 is used to clock audio devices.
  10. Signed-off-by: Emilio López <emilio@elopez.com.ar>
  11. Signed-off-by: Hans de Goede <hdegoede@redhat.com>
  12. ---
  13. arch/arm/boot/dts/sun4i-a10.dtsi | 8 ++++++++
  14. arch/arm/boot/dts/sun5i.dtsi | 8 ++++++++
  15. arch/arm/boot/dts/sun7i-a20.dtsi | 8 ++++++++
  16. 3 files changed, 24 insertions(+)
  17. --- a/arch/arm/boot/dts/sun4i-a10.dtsi
  18. +++ b/arch/arm/boot/dts/sun4i-a10.dtsi
  19. @@ -162,6 +162,14 @@
  20. clock-output-names = "pll1";
  21. };
  22. + pll2: clk@01c20008 {
  23. + #clock-cells = <1>;
  24. + compatible = "allwinner,sun4i-a10-b-pll2-clk";
  25. + reg = <0x01c20008 0x4>;
  26. + clocks = <&osc24M>;
  27. + clock-output-names = "pll2", "pll2x2", "pll2x4", "pll2x8";
  28. + };
  29. +
  30. pll4: clk@01c20018 {
  31. #clock-cells = <0>;
  32. compatible = "allwinner,sun4i-a10-pll1-clk";
  33. --- a/arch/arm/boot/dts/sun5i-a13.dtsi
  34. +++ b/arch/arm/boot/dts/sun5i-a13.dtsi
  35. @@ -136,6 +136,14 @@
  36. clock-output-names = "pll1";
  37. };
  38. + pll2: clk@01c20008 {
  39. + #clock-cells = <1>;
  40. + compatible = "allwinner,sun4i-a10-b-pll2-clk";
  41. + reg = <0x01c20008 0x4>;
  42. + clocks = <&osc24M>;
  43. + clock-output-names = "pll2", "pll2x2", "pll2x4", "pll2x8";
  44. + };
  45. +
  46. pll4: clk@01c20018 {
  47. #clock-cells = <0>;
  48. compatible = "allwinner,sun4i-a10-pll1-clk";
  49. --- a/arch/arm/boot/dts/sun7i-a20.dtsi
  50. +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
  51. @@ -203,6 +203,14 @@
  52. clock-output-names = "pll1";
  53. };
  54. + pll2: clk@01c20008 {
  55. + #clock-cells = <1>;
  56. + compatible = "allwinner,sun4i-a10-b-pll2-clk";
  57. + reg = <0x01c20008 0x4>;
  58. + clocks = <&osc24M>;
  59. + clock-output-names = "pll2", "pll2x2", "pll2x4", "pll2x8";
  60. + };
  61. +
  62. pll4: clk@01c20018 {
  63. #clock-cells = <0>;
  64. compatible = "allwinner,sun7i-a20-pll4-clk";