113-dt-sun6i-rename-clocknodes.patch 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. From 8bd1bb3a670aae791c4b2e9ab13c92768233368a Mon Sep 17 00:00:00 2001
  2. From: Chen-Yu Tsai <wens@csie.org>
  3. Date: Mon, 3 Feb 2014 09:51:43 +0800
  4. Subject: [PATCH] ARM: dts: sun6i: 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/sun6i-a31.dtsi | 19 ++++++++++++++-----
  12. 1 file changed, 14 insertions(+), 5 deletions(-)
  13. --- a/arch/arm/boot/dts/sun6i-a31.dtsi
  14. +++ b/arch/arm/boot/dts/sun6i-a31.dtsi
  15. @@ -70,17 +70,19 @@
  16. clock-frequency = <24000000>;
  17. };
  18. - osc32k: osc32k {
  19. + osc32k: clk@0 {
  20. #clock-cells = <0>;
  21. compatible = "fixed-clock";
  22. clock-frequency = <32768>;
  23. + clock-output-names = "osc32k";
  24. };
  25. - pll1: pll1@01c20000 {
  26. + pll1: clk@01c20000 {
  27. #clock-cells = <0>;
  28. compatible = "allwinner,sun6i-a31-pll1-clk";
  29. reg = <0x01c20000 0x4>;
  30. clocks = <&osc24M>;
  31. + clock-output-names = "pll1";
  32. };
  33. pll6: clk@01c20028 {
  34. @@ -103,6 +105,7 @@
  35. * Allwinner.
  36. */
  37. clocks = <&osc32k>, <&osc24M>, <&pll1>, <&pll1>;
  38. + clock-output-names = "cpu";
  39. };
  40. axi: axi@01c20050 {
  41. @@ -110,6 +113,7 @@
  42. compatible = "allwinner,sun4i-axi-clk";
  43. reg = <0x01c20050 0x4>;
  44. clocks = <&cpu>;
  45. + clock-output-names = "axi";
  46. };
  47. ahb1_mux: ahb1_mux@01c20054 {
  48. @@ -117,6 +121,7 @@
  49. compatible = "allwinner,sun6i-a31-ahb1-mux-clk";
  50. reg = <0x01c20054 0x4>;
  51. clocks = <&osc32k>, <&osc24M>, <&axi>, <&pll6>;
  52. + clock-output-names = "ahb1_mux";
  53. };
  54. ahb1: ahb1@01c20054 {
  55. @@ -124,9 +129,10 @@
  56. compatible = "allwinner,sun4i-ahb-clk";
  57. reg = <0x01c20054 0x4>;
  58. clocks = <&ahb1_mux>;
  59. + clock-output-names = "ahb1";
  60. };
  61. - ahb1_gates: ahb1_gates@01c20060 {
  62. + ahb1_gates: clk@01c20060 {
  63. #clock-cells = <1>;
  64. compatible = "allwinner,sun6i-a31-ahb1-gates-clk";
  65. reg = <0x01c20060 0x8>;
  66. @@ -152,9 +158,10 @@
  67. compatible = "allwinner,sun4i-apb0-clk";
  68. reg = <0x01c20054 0x4>;
  69. clocks = <&ahb1>;
  70. + clock-output-names = "apb1";
  71. };
  72. - apb1_gates: apb1_gates@01c20060 {
  73. + apb1_gates: clk@01c20068 {
  74. #clock-cells = <1>;
  75. compatible = "allwinner,sun6i-a31-apb1-gates-clk";
  76. reg = <0x01c20068 0x4>;
  77. @@ -169,6 +176,7 @@
  78. compatible = "allwinner,sun4i-apb1-mux-clk";
  79. reg = <0x01c20058 0x4>;
  80. clocks = <&osc32k>, <&osc24M>, <&pll6>, <&pll6>;
  81. + clock-output-names = "apb2_mux";
  82. };
  83. apb2: apb2@01c20058 {
  84. @@ -176,9 +184,10 @@
  85. compatible = "allwinner,sun6i-a31-apb2-div-clk";
  86. reg = <0x01c20058 0x4>;
  87. clocks = <&apb2_mux>;
  88. + clock-output-names = "apb2";
  89. };
  90. - apb2_gates: apb2_gates@01c2006c {
  91. + apb2_gates: clk@01c2006c {
  92. #clock-cells = <1>;
  93. compatible = "allwinner,sun6i-a31-apb2-gates-clk";
  94. reg = <0x01c2006c 0x4>;