bcm6368.dtsi 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  1. // SPDX-License-Identifier: GPL-2.0
  2. #include "dt-bindings/clock/bcm6368-clock.h"
  3. #include "dt-bindings/reset/bcm6368-reset.h"
  4. / {
  5. #address-cells = <1>;
  6. #size-cells = <1>;
  7. compatible = "brcm,bcm6368";
  8. cpus {
  9. #address-cells = <1>;
  10. #size-cells = <0>;
  11. mips-hpt-frequency = <200000000>;
  12. cpu@0 {
  13. compatible = "brcm,bmips4350";
  14. device_type = "cpu";
  15. reg = <0>;
  16. };
  17. cpu@1 {
  18. compatible = "brcm,bmips4350";
  19. device_type = "cpu";
  20. reg = <1>;
  21. };
  22. };
  23. clocks {
  24. periph_osc: periph-osc {
  25. compatible = "fixed-clock";
  26. #clock-cells = <0>;
  27. clock-frequency = <50000000>;
  28. clock-output-names = "periph";
  29. };
  30. };
  31. aliases {
  32. nflash = &nflash;
  33. pflash = &pflash;
  34. serial0 = &uart0;
  35. serial1 = &uart1;
  36. spi0 = &lsspi;
  37. };
  38. cpu_intc: interrupt-controller {
  39. #address-cells = <0>;
  40. compatible = "mti,cpu-interrupt-controller";
  41. interrupt-controller;
  42. #interrupt-cells = <1>;
  43. };
  44. ubus {
  45. #address-cells = <1>;
  46. #size-cells = <1>;
  47. compatible = "simple-bus";
  48. ranges;
  49. periph_clk: clock-controller@10000004 {
  50. compatible = "brcm,bcm6368-clocks";
  51. reg = <0x10000004 0x4>;
  52. #clock-cells = <1>;
  53. };
  54. pll_cntl: syscon@100000008 {
  55. compatible = "syscon";
  56. reg = <0x10000008 0x4>;
  57. native-endian;
  58. reboot {
  59. compatible = "syscon-reboot";
  60. offset = <0x0>;
  61. mask = <0x1>;
  62. };
  63. };
  64. periph_rst: reset-controller@10000010 {
  65. compatible = "brcm,bcm6345-reset";
  66. reg = <0x10000010 0x4>;
  67. #reset-cells = <1>;
  68. };
  69. periph_intc: interrupt-controller@10000020 {
  70. compatible = "brcm,bcm6345-l1-intc";
  71. reg = <0x10000020 0x10>,
  72. <0x10000030 0x10>;
  73. interrupt-controller;
  74. #interrupt-cells = <1>;
  75. interrupt-parent = <&cpu_intc>;
  76. interrupts = <2>, <3>;
  77. };
  78. wdt: watchdog@1000005c {
  79. compatible = "brcm,bcm7038-wdt";
  80. reg = <0x1000005c 0xc>;
  81. clocks = <&periph_osc>;
  82. clock-names = "refclk";
  83. timeout-sec = <30>;
  84. };
  85. leds0: led-controller@100000d0 {
  86. #address-cells = <1>;
  87. #size-cells = <0>;
  88. compatible = "brcm,bcm6358-leds";
  89. reg = <0x100000d0 0x8>;
  90. status = "disabled";
  91. };
  92. uart0: serial@10000100 {
  93. compatible = "brcm,bcm6345-uart";
  94. reg = <0x10000100 0x18>;
  95. interrupt-parent = <&periph_intc>;
  96. interrupts = <2>;
  97. clocks = <&periph_osc>;
  98. clock-names = "refclk";
  99. status = "disabled";
  100. };
  101. uart1: serial@10000120 {
  102. compatible = "brcm,bcm6345-uart";
  103. reg = <0x10000120 0x18>;
  104. interrupt-parent = <&periph_intc>;
  105. interrupts = <3>;
  106. clocks = <&periph_osc>;
  107. clock-names = "refclk";
  108. status = "disabled";
  109. };
  110. nflash: nand@10000200 {
  111. #address-cells = <1>;
  112. #size-cells = <0>;
  113. compatible = "brcm,nand-bcm6368",
  114. "brcm,brcmnand-v2.1",
  115. "brcm,brcmnand";
  116. reg = <0x10000200 0x180>,
  117. <0x10000600 0x200>,
  118. <0x10000070 0x10>;
  119. reg-names = "nand",
  120. "nand-cache",
  121. "nand-int-base";
  122. interrupt-parent = <&periph_intc>;
  123. interrupts = <10>;
  124. clocks = <&periph_clk BCM6368_CLK_NAND>;
  125. clock-names = "nand";
  126. status = "disabled";
  127. };
  128. lsspi: spi@10000800 {
  129. #address-cells = <1>;
  130. #size-cells = <0>;
  131. compatible = "brcm,bcm6358-spi";
  132. reg = <0x10000800 0x70c>;
  133. interrupt-parent = <&periph_intc>;
  134. interrupts = <1>;
  135. clocks = <&periph_clk BCM6368_CLK_SPI>;
  136. clock-names = "spi";
  137. resets = <&periph_rst BCM6368_RST_SPI>;
  138. reset-names = "spi";
  139. status = "disabled";
  140. };
  141. ehci: usb@10001500 {
  142. compatible = "brcm,bcm6368-ehci", "generic-ehci";
  143. reg = <0x10001500 0x100>;
  144. big-endian;
  145. interrupt-parent = <&periph_intc>;
  146. interrupts = <7>;
  147. phys = <&usbh 0>;
  148. phy-names = "usb";
  149. status = "disabled";
  150. };
  151. ohci: usb@10001600 {
  152. compatible = "brcm,bcm6368-ohci", "generic-ohci";
  153. reg = <0x10001600 0x100>;
  154. big-endian;
  155. no-big-frame-no;
  156. interrupt-parent = <&periph_intc>;
  157. interrupts = <5>;
  158. phys = <&usbh 0>;
  159. phy-names = "usb";
  160. status = "disabled";
  161. };
  162. usbh: usb-phy@10001700 {
  163. compatible = "brcm,bcm6368-usbh-phy";
  164. reg = <0x10001700 0x38>;
  165. #phy-cells = <1>;
  166. clocks = <&periph_clk BCM6368_CLK_USBH>;
  167. clock-names = "usbh";
  168. resets = <&periph_rst BCM6368_RST_USBH>;
  169. reset-names = "usbh";
  170. status = "disabled";
  171. };
  172. random: rng@10004180 {
  173. compatible = "brcm,bcm6368-rng";
  174. reg = <0x10004180 0x14>;
  175. clocks = <&periph_clk BCM6368_CLK_IPSEC>;
  176. clock-names = "ipsec";
  177. resets = <&periph_rst BCM6368_RST_IPSEC>;
  178. reset-names = "ipsec";
  179. };
  180. };
  181. pflash: nor@18000000 {
  182. #address-cells = <1>;
  183. #size-cells = <1>;
  184. compatible = "cfi-flash";
  185. reg = <0x18000000 0x2000000>;
  186. bank-width = <2>;
  187. status = "disabled";
  188. };
  189. };