ar7100.dtsi 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include <dt-bindings/clock/ath79-clk.h>
  3. #include "ath79.dtsi"
  4. / {
  5. compatible = "qca,ar7100";
  6. cpus {
  7. #address-cells = <1>;
  8. #size-cells = <0>;
  9. cpu@0 {
  10. device_type = "cpu";
  11. compatible = "mips,mips24Kc";
  12. clocks = <&pll ATH79_CLK_CPU>;
  13. reg = <0>;
  14. };
  15. };
  16. ahb {
  17. apb {
  18. ddr_ctrl: memory-controller@18000000 {
  19. compatible = "qca,ar7100-ddr-controller";
  20. reg = <0x18000000 0x100>;
  21. #qca,ddr-wb-channel-cells = <1>;
  22. };
  23. uart: uart@18020000 {
  24. compatible = "ns16550a";
  25. reg = <0x18020000 0x20>;
  26. interrupts = <3>;
  27. clocks = <&pll ATH79_CLK_AHB>;
  28. clock-names = "uart";
  29. reg-io-width = <4>;
  30. reg-shift = <2>;
  31. no-loopback-test;
  32. status = "disabled";
  33. };
  34. usb_phy: usb-phy@18030000 {
  35. compatible = "qca,ar7100-usb-phy";
  36. reg = <0x18030000 0x10>;
  37. reset-names = "usb-phy", "usb-host", "usb-ohci-dll";
  38. resets = <&rst 4>, <&rst 5>, <&rst 6>;
  39. #phy-cells = <0>;
  40. status = "disabled";
  41. };
  42. gpio: gpio@18040000 {
  43. compatible = "qca,ar7100-gpio";
  44. reg = <0x18040000 0x30>;
  45. interrupts = <2>;
  46. ngpios = <16>;
  47. gpio-controller;
  48. #gpio-cells = <2>;
  49. interrupt-controller;
  50. #interrupt-cells = <2>;
  51. };
  52. pll: pll-controller@18050000 {
  53. compatible = "qca,ar7100-pll", "syscon";
  54. reg = <0x18050000 0x20>;
  55. clock-names = "ref";
  56. /* The board must provides the ref clock */
  57. #clock-cells = <1>;
  58. clock-output-names = "cpu", "ddr", "ahb";
  59. };
  60. wdt: wdt@18060008 {
  61. compatible = "qca,ar7130-wdt";
  62. reg = <0x18060008 0x8>;
  63. interrupts = <4>;
  64. clocks = <&pll ATH79_CLK_AHB>;
  65. clock-names = "wdt";
  66. };
  67. rst: reset-controller@18060024 {
  68. compatible = "qca,ar7100-reset";
  69. reg = <0x18060024 0x4>;
  70. #reset-cells = <1>;
  71. };
  72. pcie0: pcie-controller@180c0000 {
  73. compatible = "qca,ar7100-pci";
  74. #address-cells = <3>;
  75. #size-cells = <2>;
  76. bus-range = <0x0 0x0>;
  77. reg = <0x17010000 0x100>;
  78. reg-names = "cfg_base";
  79. ranges = <0x2000000 0 0x10000000 0x10000000 0 0x07000000 /* pci memory */
  80. 0x1000000 0 0x00000000 0x0000000 0 0x000001>; /* io space */
  81. interrupt-parent = <&cpuintc>;
  82. interrupts = <2>;
  83. interrupt-controller;
  84. #interrupt-cells = <1>;
  85. interrupt-map-mask = <0 0 0 1>;
  86. interrupt-map = <0 0 0 0 &pcie0 0>;
  87. status = "disabled";
  88. };
  89. };
  90. };
  91. usb2: usb@1b000000 {
  92. compatible = "generic-ehci";
  93. reg = <0x1b000000 0x1000>;
  94. interrupt-parent = <&cpuintc>;
  95. interrupts = <3>;
  96. phy-names = "usb-phy";
  97. phys = <&usb_phy>;
  98. has-synopsys-hc-bug;
  99. status = "disabled";
  100. };
  101. usb1: usb@1c000000 {
  102. compatible = "generic-ohci";
  103. reg = <0x1c000000 0x1000>;
  104. interrupt-parent = <&miscintc>;
  105. interrupts = <6>;
  106. phy-names = "usb-phy";
  107. phys = <&usb_phy>;
  108. status = "disabled";
  109. };
  110. spi: spi@1f000000 {
  111. compatible = "qca,ar7100-spi";
  112. reg = <0x1f000000 0x10>;
  113. clocks = <&pll ATH79_CLK_AHB>;
  114. clock-names = "ahb";
  115. #address-cells = <1>;
  116. #size-cells = <0>;
  117. status = "disabled";
  118. };
  119. };
  120. &cpuintc {
  121. qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>;
  122. qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>,
  123. <&ddr_ctrl 0>, <&ddr_ctrl 1>;
  124. };
  125. &miscintc {
  126. compatible = "qca,ar7100-misc-intc";
  127. };
  128. &eth0 {
  129. compatible = "qca,ar7100-eth";
  130. reg = <0x19000000 0x200
  131. 0x18070000 0x4>;
  132. pll-data = <0x00110000 0x00001099 0x00991099>;
  133. pll-reg = <0x4 0x10 17>;
  134. pll-handle = <&pll>;
  135. phy-mode = "rgmii";
  136. resets = <&rst 8>, <&rst 9>;
  137. reset-names = "phy", "mac";
  138. };
  139. &mdio1 {
  140. builtin-switch;
  141. };
  142. &eth1 {
  143. compatible = "qca,ar7100-eth";
  144. reg = <0x1a000000 0x200
  145. 0x18070004 0x4>;
  146. pll-data = <0x00110000 0x00001099 0x00991099>;
  147. pll-reg = <0x4 0x14 19>;
  148. pll-handle = <&pll>;
  149. phy-mode = "rgmii";
  150. resets = <&rst 12>, <&rst 13>;
  151. reset-names = "phy", "mac";
  152. };