111-dt-sun4i-rename-clocknodes.patch 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. From 35b7dfc295f4d6079572a22a225c7444134e1f72 Mon Sep 17 00:00:00 2001
  2. From: Chen-Yu Tsai <wens@csie.org>
  3. Date: Mon, 3 Feb 2014 09:51:41 +0800
  4. Subject: [PATCH] ARM: dts: sun4i: rename clock node names to clk@N
  5. Device tree naming conventions state that node names should match
  6. node function. Change fully functioning clock nodes to match and
  7. add clock-output-names to all sunxi clock nodes.
  8. Signed-off-by: Chen-Yu Tsai <wens@csie.org>
  9. Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
  10. ---
  11. arch/arm/boot/dts/sun4i-a10.dtsi | 30 ++++++++++++++++++++----------
  12. 1 file changed, 20 insertions(+), 10 deletions(-)
  13. --- a/arch/arm/boot/dts/sun4i-a10.dtsi
  14. +++ b/arch/arm/boot/dts/sun4i-a10.dtsi
  15. @@ -58,34 +58,38 @@
  16. clock-frequency = <0>;
  17. };
  18. - osc24M: osc24M@01c20050 {
  19. + osc24M: clk@01c20050 {
  20. #clock-cells = <0>;
  21. compatible = "allwinner,sun4i-osc-clk";
  22. reg = <0x01c20050 0x4>;
  23. clock-frequency = <24000000>;
  24. + clock-output-names = "osc24M";
  25. };
  26. - osc32k: osc32k {
  27. + osc32k: clk@0 {
  28. #clock-cells = <0>;
  29. compatible = "fixed-clock";
  30. clock-frequency = <32768>;
  31. + clock-output-names = "osc32k";
  32. };
  33. - pll1: pll1@01c20000 {
  34. + pll1: clk@01c20000 {
  35. #clock-cells = <0>;
  36. compatible = "allwinner,sun4i-pll1-clk";
  37. reg = <0x01c20000 0x4>;
  38. clocks = <&osc24M>;
  39. + clock-output-names = "pll1";
  40. };
  41. - pll4: pll4@01c20018 {
  42. + pll4: clk@01c20018 {
  43. #clock-cells = <0>;
  44. compatible = "allwinner,sun4i-pll1-clk";
  45. reg = <0x01c20018 0x4>;
  46. clocks = <&osc24M>;
  47. + clock-output-names = "pll4";
  48. };
  49. - pll5: pll5@01c20020 {
  50. + pll5: clk@01c20020 {
  51. #clock-cells = <1>;
  52. compatible = "allwinner,sun4i-pll5-clk";
  53. reg = <0x01c20020 0x4>;
  54. @@ -93,7 +97,7 @@
  55. clock-output-names = "pll5_ddr", "pll5_other";
  56. };
  57. - pll6: pll6@01c20028 {
  58. + pll6: clk@01c20028 {
  59. #clock-cells = <1>;
  60. compatible = "allwinner,sun4i-pll6-clk";
  61. reg = <0x01c20028 0x4>;
  62. @@ -107,6 +111,7 @@
  63. compatible = "allwinner,sun4i-cpu-clk";
  64. reg = <0x01c20054 0x4>;
  65. clocks = <&osc32k>, <&osc24M>, <&pll1>, <&dummy>;
  66. + clock-output-names = "cpu";
  67. };
  68. axi: axi@01c20054 {
  69. @@ -114,9 +119,10 @@
  70. compatible = "allwinner,sun4i-axi-clk";
  71. reg = <0x01c20054 0x4>;
  72. clocks = <&cpu>;
  73. + clock-output-names = "axi";
  74. };
  75. - axi_gates: axi_gates@01c2005c {
  76. + axi_gates: clk@01c2005c {
  77. #clock-cells = <1>;
  78. compatible = "allwinner,sun4i-axi-gates-clk";
  79. reg = <0x01c2005c 0x4>;
  80. @@ -129,9 +135,10 @@
  81. compatible = "allwinner,sun4i-ahb-clk";
  82. reg = <0x01c20054 0x4>;
  83. clocks = <&axi>;
  84. + clock-output-names = "ahb";
  85. };
  86. - ahb_gates: ahb_gates@01c20060 {
  87. + ahb_gates: clk@01c20060 {
  88. #clock-cells = <1>;
  89. compatible = "allwinner,sun4i-ahb-gates-clk";
  90. reg = <0x01c20060 0x8>;
  91. @@ -154,9 +161,10 @@
  92. compatible = "allwinner,sun4i-apb0-clk";
  93. reg = <0x01c20054 0x4>;
  94. clocks = <&ahb>;
  95. + clock-output-names = "apb0";
  96. };
  97. - apb0_gates: apb0_gates@01c20068 {
  98. + apb0_gates: clk@01c20068 {
  99. #clock-cells = <1>;
  100. compatible = "allwinner,sun4i-apb0-gates-clk";
  101. reg = <0x01c20068 0x4>;
  102. @@ -171,6 +179,7 @@
  103. compatible = "allwinner,sun4i-apb1-mux-clk";
  104. reg = <0x01c20058 0x4>;
  105. clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
  106. + clock-output-names = "apb1_mux";
  107. };
  108. apb1: apb1@01c20058 {
  109. @@ -178,9 +187,10 @@
  110. compatible = "allwinner,sun4i-apb1-clk";
  111. reg = <0x01c20058 0x4>;
  112. clocks = <&apb1_mux>;
  113. + clock-output-names = "apb1";
  114. };
  115. - apb1_gates: apb1_gates@01c2006c {
  116. + apb1_gates: clk@01c2006c {
  117. #clock-cells = <1>;
  118. compatible = "allwinner,sun4i-apb1-gates-clk";
  119. reg = <0x01c2006c 0x4>;