1
0

ar724x.dtsi 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154
  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,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. pinmux: pinmux@18040028 {
  52. compatible = "pinctrl-single";
  53. reg = <0x18040028 0x8>;
  54. pinctrl-single,bit-per-mux;
  55. pinctrl-single,register-width = <32>;
  56. pinctrl-single,function-mask = <0x1>;
  57. #pinctrl-cells = <2>;
  58. jtag_disable_pins: pinmux_jtag_disable_pins {
  59. pinctrl-single,bits = <0x0 0x1 0x1>;
  60. };
  61. };
  62. pll: pll-controller@18050000 {
  63. compatible = "qca,ar7240-pll", "syscon";
  64. reg = <0x18050000 0x3c>;
  65. clock-names = "ref";
  66. /* The board must provides the ref clock */
  67. #clock-cells = <1>;
  68. clock-output-names = "cpu", "ddr", "ahb";
  69. };
  70. wdt: wdt@18060008 {
  71. compatible = "qca,ar7130-wdt";
  72. reg = <0x18060008 0x8>;
  73. interrupts = <4>;
  74. clocks = <&pll ATH79_CLK_AHB>;
  75. clock-names = "wdt";
  76. };
  77. rst: reset-controller@1806001c {
  78. compatible = "qca,ar7240-reset",
  79. "qca,ar7100-reset";
  80. reg = <0x1806001c 0x4>;
  81. #reset-cells = <1>;
  82. };
  83. pcie: pcie-controller@180c0000 {
  84. compatible = "qcom,ar7240-pci";
  85. #address-cells = <3>;
  86. #size-cells = <2>;
  87. bus-range = <0x0 0x0>;
  88. reg = <0x180c0000 0x1000>, /* CRP */
  89. <0x180f0000 0x100>, /* CTRL */
  90. <0x14000000 0x1000>; /* CFG */
  91. reg-names = "crp_base", "ctrl_base", "cfg_base";
  92. ranges = <0x2000000 0 0x10000000 0x10000000 0 0x04000000 /* pci memory */
  93. 0x1000000 0 0x00000000 0x0000000 0 0x000001>; /* io space */
  94. interrupt-parent = <&cpuintc>;
  95. interrupts = <2>;
  96. interrupt-controller;
  97. #interrupt-cells = <1>;
  98. interrupt-map-mask = <0 0 0 1>;
  99. interrupt-map = <0 0 0 0 &pcie 0>;
  100. status = "disabled";
  101. };
  102. };
  103. spi: spi@1f000000 {
  104. compatible = "qca,ar7240-spi",
  105. "qca,ar7100-spi";
  106. reg = <0x1f000000 0x10>;
  107. clocks = <&pll ATH79_CLK_AHB>;
  108. clock-names = "ahb";
  109. status = "disabled";
  110. #address-cells = <1>;
  111. #size-cells = <0>;
  112. };
  113. };
  114. };
  115. &cpuintc {
  116. qca,ddr-wb-channel-interrupts = <2>, <3>, <4>, <5>;
  117. qca,ddr-wb-channels = <&ddr_ctrl 3>, <&ddr_ctrl 2>,
  118. <&ddr_ctrl 0>, <&ddr_ctrl 1>;
  119. };