114-dt-sun7i-rename-clocknodes.patch 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. From c57b781689bba48dad635caf005962cc9c8e5e3d Mon Sep 17 00:00:00 2001
  2. From: Chen-Yu Tsai <wens@csie.org>
  3. Date: Mon, 3 Feb 2014 09:51:44 +0800
  4. Subject: [PATCH] ARM: dts: sun7i: 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/sun7i-a20.dtsi | 25 +++++++++++++++++--------
  12. 1 file changed, 17 insertions(+), 8 deletions(-)
  13. --- a/arch/arm/boot/dts/sun7i-a20.dtsi
  14. +++ b/arch/arm/boot/dts/sun7i-a20.dtsi
  15. @@ -62,11 +62,12 @@
  16. #size-cells = <1>;
  17. ranges;
  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: clk@0 {
  27. @@ -76,21 +77,23 @@
  28. clock-output-names = "osc32k";
  29. };
  30. - pll1: pll1@01c20000 {
  31. + pll1: clk@01c20000 {
  32. #clock-cells = <0>;
  33. compatible = "allwinner,sun4i-pll1-clk";
  34. reg = <0x01c20000 0x4>;
  35. clocks = <&osc24M>;
  36. + clock-output-names = "pll1";
  37. };
  38. - pll4: pll4@01c20018 {
  39. + pll4: clk@01c20018 {
  40. #clock-cells = <0>;
  41. compatible = "allwinner,sun4i-pll1-clk";
  42. reg = <0x01c20018 0x4>;
  43. clocks = <&osc24M>;
  44. + clock-output-names = "pll4";
  45. };
  46. - pll5: pll5@01c20020 {
  47. + pll5: clk@01c20020 {
  48. #clock-cells = <1>;
  49. compatible = "allwinner,sun4i-pll5-clk";
  50. reg = <0x01c20020 0x4>;
  51. @@ -98,7 +101,7 @@
  52. clock-output-names = "pll5_ddr", "pll5_other";
  53. };
  54. - pll6: pll6@01c20028 {
  55. + pll6: clk@01c20028 {
  56. #clock-cells = <1>;
  57. compatible = "allwinner,sun4i-pll6-clk";
  58. reg = <0x01c20028 0x4>;
  59. @@ -111,6 +114,7 @@
  60. compatible = "allwinner,sun4i-cpu-clk";
  61. reg = <0x01c20054 0x4>;
  62. clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll6 1>;
  63. + clock-output-names = "cpu";
  64. };
  65. axi: axi@01c20054 {
  66. @@ -118,6 +122,7 @@
  67. compatible = "allwinner,sun4i-axi-clk";
  68. reg = <0x01c20054 0x4>;
  69. clocks = <&cpu>;
  70. + clock-output-names = "axi";
  71. };
  72. ahb: ahb@01c20054 {
  73. @@ -125,9 +130,10 @@
  74. compatible = "allwinner,sun4i-ahb-clk";
  75. reg = <0x01c20054 0x4>;
  76. clocks = <&axi>;
  77. + clock-output-names = "ahb";
  78. };
  79. - ahb_gates: ahb_gates@01c20060 {
  80. + ahb_gates: clk@01c20060 {
  81. #clock-cells = <1>;
  82. compatible = "allwinner,sun7i-a20-ahb-gates-clk";
  83. reg = <0x01c20060 0x8>;
  84. @@ -152,9 +158,10 @@
  85. compatible = "allwinner,sun4i-apb0-clk";
  86. reg = <0x01c20054 0x4>;
  87. clocks = <&ahb>;
  88. + clock-output-names = "apb0";
  89. };
  90. - apb0_gates: apb0_gates@01c20068 {
  91. + apb0_gates: clk@01c20068 {
  92. #clock-cells = <1>;
  93. compatible = "allwinner,sun7i-a20-apb0-gates-clk";
  94. reg = <0x01c20068 0x4>;
  95. @@ -170,6 +177,7 @@
  96. compatible = "allwinner,sun4i-apb1-mux-clk";
  97. reg = <0x01c20058 0x4>;
  98. clocks = <&osc24M>, <&pll6 1>, <&osc32k>;
  99. + clock-output-names = "apb1_mux";
  100. };
  101. apb1: apb1@01c20058 {
  102. @@ -177,9 +185,10 @@
  103. compatible = "allwinner,sun4i-apb1-clk";
  104. reg = <0x01c20058 0x4>;
  105. clocks = <&apb1_mux>;
  106. + clock-output-names = "apb1";
  107. };
  108. - apb1_gates: apb1_gates@01c2006c {
  109. + apb1_gates: clk@01c2006c {
  110. #clock-cells = <1>;
  111. compatible = "allwinner,sun7i-a20-apb1-gates-clk";
  112. reg = <0x01c2006c 0x4>;