ar9132.dtsi 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <dt-bindings/clock/ath79-clk.h>
  3. / {
  4. compatible = "qca,ar9132";
  5. #address-cells = <1>;
  6. #size-cells = <1>;
  7. cpus {
  8. #address-cells = <1>;
  9. #size-cells = <0>;
  10. cpu@0 {
  11. device_type = "cpu";
  12. compatible = "mips,mips24Kc";
  13. clocks = <&pll ATH79_CLK_CPU>;
  14. reg = <0>;
  15. };
  16. };
  17. cpuintc: interrupt-controller {
  18. compatible = "qca,ar9132-cpu-intc", "qca,ar7100-cpu-intc";
  19. interrupt-controller;
  20. #interrupt-cells = <1>;
  21. qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>;
  22. qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>,
  23. <&ddr_ctrl 0>, <&ddr_ctrl 1>;
  24. };
  25. ahb {
  26. compatible = "simple-bus";
  27. ranges;
  28. #address-cells = <1>;
  29. #size-cells = <1>;
  30. interrupt-parent = <&cpuintc>;
  31. apb {
  32. compatible = "simple-bus";
  33. ranges;
  34. #address-cells = <1>;
  35. #size-cells = <1>;
  36. interrupt-parent = <&miscintc>;
  37. ddr_ctrl: memory-controller@18000000 {
  38. compatible = "qca,ar9132-ddr-controller",
  39. "qca,ar7240-ddr-controller";
  40. reg = <0x18000000 0x100>;
  41. #qca,ddr-wb-channel-cells = <1>;
  42. };
  43. uart: uart@18020000 {
  44. compatible = "ns8250";
  45. reg = <0x18020000 0x20>;
  46. interrupts = <3>;
  47. clocks = <&pll ATH79_CLK_AHB>;
  48. clock-names = "uart";
  49. reg-io-width = <4>;
  50. reg-shift = <2>;
  51. no-loopback-test;
  52. status = "disabled";
  53. };
  54. gpio: gpio@18040000 {
  55. compatible = "qca,ar9132-gpio",
  56. "qca,ar7100-gpio";
  57. reg = <0x18040000 0x30>;
  58. interrupts = <2>;
  59. ngpios = <22>;
  60. gpio-controller;
  61. #gpio-cells = <2>;
  62. interrupt-controller;
  63. #interrupt-cells = <2>;
  64. };
  65. pll: pll-controller@18050000 {
  66. compatible = "qca,ar9132-pll",
  67. "qca,ar9130-pll";
  68. reg = <0x18050000 0x20>;
  69. clock-names = "ref";
  70. /* The board must provides the ref clock */
  71. #clock-cells = <1>;
  72. clock-output-names = "cpu", "ddr", "ahb";
  73. };
  74. wdt: wdt@18060008 {
  75. compatible = "qca,ar7130-wdt";
  76. reg = <0x18060008 0x8>;
  77. interrupts = <4>;
  78. clocks = <&pll ATH79_CLK_AHB>;
  79. clock-names = "wdt";
  80. };
  81. miscintc: interrupt-controller@18060010 {
  82. compatible = "qca,ar9132-misc-intc",
  83. "qca,ar7100-misc-intc";
  84. reg = <0x18060010 0x8>;
  85. interrupt-parent = <&cpuintc>;
  86. interrupts = <6>;
  87. interrupt-controller;
  88. #interrupt-cells = <1>;
  89. };
  90. rst: reset-controller@1806001c {
  91. compatible = "qca,ar9132-reset",
  92. "qca,ar7100-reset";
  93. reg = <0x1806001c 0x4>;
  94. #reset-cells = <1>;
  95. };
  96. };
  97. usb: usb@1b000100 {
  98. compatible = "qca,ar7100-ehci", "generic-ehci";
  99. reg = <0x1b000100 0x100>;
  100. interrupts = <3>;
  101. resets = <&rst 5>;
  102. has-transaction-translator;
  103. phy-names = "usb";
  104. phys = <&usb_phy>;
  105. status = "disabled";
  106. };
  107. spi: spi@1f000000 {
  108. compatible = "qca,ar9132-spi", "qca,ar7100-spi";
  109. reg = <0x1f000000 0x10>;
  110. clocks = <&pll ATH79_CLK_AHB>;
  111. clock-names = "ahb";
  112. status = "disabled";
  113. #address-cells = <1>;
  114. #size-cells = <0>;
  115. };
  116. };
  117. usb_phy: usb-phy {
  118. compatible = "qca,ar7100-usb-phy";
  119. reset-names = "phy", "suspend-override";
  120. resets = <&rst 4>, <&rst 3>;
  121. #phy-cells = <0>;
  122. status = "disabled";
  123. };
  124. };