ns2-clock.dtsi 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /*
  2. * BSD LICENSE
  3. *
  4. * Copyright (c) 2016 Broadcom. 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. #include <dt-bindings/clock/bcm-ns2.h>
  33. osc: oscillator {
  34. #clock-cells = <0>;
  35. compatible = "fixed-clock";
  36. clock-frequency = <25000000>;
  37. };
  38. lcpll_ddr: lcpll_ddr@6501d058 {
  39. #clock-cells = <1>;
  40. compatible = "brcm,ns2-lcpll-ddr";
  41. reg = <0x6501d058 0x20>,
  42. <0x6501c020 0x4>,
  43. <0x6501d04c 0x4>;
  44. clocks = <&osc>;
  45. clock-output-names = "lcpll_ddr", "pcie_sata_usb",
  46. "ddr", "ddr_ch2_unused",
  47. "ddr_ch3_unused", "ddr_ch4_unused",
  48. "ddr_ch5_unused";
  49. };
  50. lcpll_ports: lcpll_ports@6501d078 {
  51. #clock-cells = <1>;
  52. compatible = "brcm,ns2-lcpll-ports";
  53. reg = <0x6501d078 0x20>,
  54. <0x6501c020 0x4>,
  55. <0x6501d054 0x4>;
  56. clocks = <&osc>;
  57. clock-output-names = "lcpll_ports", "wan", "rgmii",
  58. "ports_ch2_unused",
  59. "ports_ch3_unused",
  60. "ports_ch4_unused",
  61. "ports_ch5_unused";
  62. };
  63. genpll_scr: genpll_scr@6501d098 {
  64. #clock-cells = <1>;
  65. compatible = "brcm,ns2-genpll-scr";
  66. reg = <0x6501d098 0x32>,
  67. <0x6501c020 0x4>,
  68. <0x6501d044 0x4>;
  69. clocks = <&osc>;
  70. clock-output-names = "genpll_scr", "scr", "fs",
  71. "audio_ref", "scr_ch3_unused",
  72. "scr_ch4_unused", "scr_ch5_unused";
  73. };
  74. iprocmed: iprocmed {
  75. #clock-cells = <0>;
  76. compatible = "fixed-factor-clock";
  77. clocks = <&genpll_scr BCM_NS2_GENPLL_SCR_SCR_CLK>;
  78. clock-div = <2>;
  79. clock-mult = <1>;
  80. };
  81. iprocslow: iprocslow {
  82. #clock-cells = <0>;
  83. compatible = "fixed-factor-clock";
  84. clocks = <&genpll_scr BCM_NS2_GENPLL_SCR_SCR_CLK>;
  85. clock-div = <4>;
  86. clock-mult = <1>;
  87. };
  88. genpll_sw: genpll_sw@6501d0c4 {
  89. #clock-cells = <1>;
  90. compatible = "brcm,ns2-genpll-sw";
  91. reg = <0x6501d0c4 0x32>,
  92. <0x6501c020 0x4>,
  93. <0x6501d044 0x4>;
  94. clocks = <&osc>;
  95. clock-output-names = "genpll_sw", "rpe", "250", "nic",
  96. "chimp", "port", "sdio";
  97. };