ar724x.dtsi 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include <dt-bindings/clock/ath79-clk.h>
  3. #include "ath79.dtsi"
  4. / {
  5. compatible = "qca,ar7240";
  6. #address-cells = <1>;
  7. #size-cells = <1>;
  8. chosen {
  9. bootargs = "console=ttyS0,115200";
  10. };
  11. cpus {
  12. #address-cells = <1>;
  13. #size-cells = <0>;
  14. cpu@0 {
  15. device_type = "cpu";
  16. compatible = "mips,mips24Kc";
  17. clocks = <&pll ATH79_CLK_CPU>;
  18. reg = <0>;
  19. };
  20. };
  21. ahb: ahb {
  22. apb {
  23. ddr_ctrl: memory-controller@18000000 {
  24. compatible = "qca,ar9132-ddr-controller",
  25. "qca,ar7240-ddr-controller";
  26. reg = <0x18000000 0x100>;
  27. #qca,ddr-wb-channel-cells = <1>;
  28. };
  29. uart: uart@18020000 {
  30. compatible = "ns16550a";
  31. reg = <0x18020000 0x20>;
  32. interrupts = <3>;
  33. clocks = <&pll ATH79_CLK_AHB>;
  34. clock-names = "uart";
  35. reg-io-width = <4>;
  36. reg-shift = <2>;
  37. no-loopback-test;
  38. status = "disabled";
  39. };
  40. gpio: gpio@18040000 {
  41. compatible = "qca,ar7240-gpio",
  42. "qca,ar7100-gpio";
  43. reg = <0x18040000 0x30>;
  44. interrupts = <2>;
  45. ngpios = <18>;
  46. gpio-controller;
  47. #gpio-cells = <2>;
  48. interrupt-controller;
  49. #interrupt-cells = <2>;
  50. };
  51. pll: pll-controller@18050000 {
  52. compatible = "qca,ar7240-pll",
  53. "qca,ar7240-pll";
  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@1806001c {
  68. compatible = "qca,ar7240-reset",
  69. "qca,ar7100-reset";
  70. reg = <0x1806001c 0x4>;
  71. #reset-cells = <1>;
  72. };
  73. pcie: pcie-controller@180c0000 {
  74. compatible = "qcom,ar7240-pci";
  75. #address-cells = <3>;
  76. #size-cells = <2>;
  77. bus-range = <0x0 0x0>;
  78. reg = <0x180c0000 0x1000>, /* CRP */
  79. <0x180f0000 0x100>, /* CTRL */
  80. <0x14000000 0x1000>; /* CFG */
  81. reg-names = "crp_base", "ctrl_base", "cfg_base";
  82. ranges = <0x2000000 0 0x10000000 0x10000000 0 0x04000000 /* pci memory */
  83. 0x1000000 0 0x00000000 0x0000000 0 0x000001>; /* io space */
  84. interrupt-parent = <&cpuintc>;
  85. interrupts = <2>;
  86. interrupt-controller;
  87. #interrupt-cells = <1>;
  88. interrupt-map-mask = <0 0 0 1>;
  89. interrupt-map = <0 0 0 0 &pcie 0>;
  90. status = "disabled";
  91. };
  92. };
  93. spi: spi@1f000000 {
  94. compatible = "qca,ar7240-spi",
  95. "qca,ar7100-spi";
  96. reg = <0x1f000000 0x10>;
  97. clocks = <&pll ATH79_CLK_AHB>;
  98. clock-names = "ahb";
  99. status = "disabled";
  100. #address-cells = <1>;
  101. #size-cells = <0>;
  102. };
  103. };
  104. };
  105. &cpuintc {
  106. qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>;
  107. qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>,
  108. <&ddr_ctrl 0>, <&ddr_ctrl 1>;
  109. };