bcm-cygnus-clock.dtsi 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. /*
  2. * BSD LICENSE
  3. *
  4. * Copyright(c) 2014 Broadcom Corporation. All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without
  7. * modification, are permitted provided that the following conditions
  8. * are met:
  9. *
  10. * * Redistributions of source code must retain the above copyright
  11. * notice, this list of conditions and the following disclaimer.
  12. * * Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in
  14. * the documentation and/or other materials provided with the
  15. * distribution.
  16. * * Neither the name of Broadcom Corporation nor the names of its
  17. * contributors may be used to endorse or promote products derived
  18. * from this software without specific prior written permission.
  19. *
  20. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  21. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  22. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  23. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  24. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  26. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  30. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. */
  32. clocks {
  33. #address-cells = <1>;
  34. #size-cells = <1>;
  35. ranges;
  36. osc: oscillator {
  37. #clock-cells = <0>;
  38. compatible = "fixed-clock";
  39. clock-frequency = <25000000>;
  40. };
  41. /* Cygnus ARM PLL */
  42. armpll: armpll {
  43. #clock-cells = <0>;
  44. compatible = "brcm,cygnus-armpll";
  45. clocks = <&osc>;
  46. reg = <0x19000000 0x1000>;
  47. };
  48. /* peripheral clock for system timer */
  49. periph_clk: arm_periph_clk {
  50. #clock-cells = <0>;
  51. compatible = "fixed-factor-clock";
  52. clocks = <&armpll>;
  53. clock-div = <2>;
  54. clock-mult = <1>;
  55. };
  56. /* APB bus clock */
  57. apb_clk: apb_clk {
  58. #clock-cells = <0>;
  59. compatible = "fixed-factor-clock";
  60. clocks = <&armpll>;
  61. clock-div = <4>;
  62. clock-mult = <1>;
  63. };
  64. genpll: genpll {
  65. #clock-cells = <1>;
  66. compatible = "brcm,cygnus-genpll";
  67. reg = <0x0301d000 0x2c>, <0x0301c020 0x4>;
  68. clocks = <&osc>;
  69. clock-output-names = "genpll", "axi21", "250mhz", "ihost_sys",
  70. "enet_sw", "audio_125", "can";
  71. };
  72. /* always 1/2 of the axi21 clock */
  73. axi41_clk: axi41_clk {
  74. #clock-cells = <0>;
  75. compatible = "fixed-factor-clock";
  76. clocks = <&genpll 1>;
  77. clock-div = <2>;
  78. clock-mult = <1>;
  79. };
  80. /* always 1/4 of the axi21 clock */
  81. axi81_clk: axi81_clk {
  82. #clock-cells = <0>;
  83. compatible = "fixed-factor-clock";
  84. clocks = <&genpll 1>;
  85. clock-div = <4>;
  86. clock-mult = <1>;
  87. };
  88. lcpll0: lcpll0 {
  89. #clock-cells = <1>;
  90. compatible = "brcm,cygnus-lcpll0";
  91. reg = <0x0301d02c 0x1c>, <0x0301c020 0x4>;
  92. clocks = <&osc>;
  93. clock-output-names = "lcpll0", "pcie_phy", "ddr_phy", "sdio",
  94. "usb_phy", "smart_card", "ch5";
  95. };
  96. mipipll: mipipll {
  97. #clock-cells = <1>;
  98. compatible = "brcm,cygnus-mipipll";
  99. reg = <0x180a9800 0x2c>, <0x0301c020 0x4>, <0x180aa024 0x4>;
  100. clocks = <&osc>;
  101. clock-output-names = "mipipll", "ch0_unused", "ch1_lcd",
  102. "ch2_v3d", "ch3_unused", "ch4_unused",
  103. "ch5_unused";
  104. };
  105. asiu_clks: asiu_clks {
  106. #clock-cells = <1>;
  107. compatible = "brcm,cygnus-asiu-clk";
  108. reg = <0x0301d048 0xc>, <0x180aa024 0x4>;
  109. clocks = <&osc>;
  110. clock-output-names = "keypad", "adc/touch", "pwm";
  111. };
  112. audiopll: audiopll {
  113. #clock-cells = <1>;
  114. compatible = "brcm,cygnus-audiopll";
  115. reg = <0x180aeb00 0x68>;
  116. clocks = <&osc>;
  117. clock-output-names = "audiopll", "ch0_audio",
  118. "ch1_audio", "ch2_audio";
  119. };
  120. };