bcm958625hr.dts 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254
  1. /*
  2. * BSD LICENSE
  3. *
  4. * Copyright(c) 2016 Broadcom. All rights reserved.
  5. *
  6. * Redistribution and use in source and binary forms, with or without
  7. * modification, are permitted provided that the following conditions
  8. * are met:
  9. *
  10. * * Redistributions of source code must retain the above copyright
  11. * notice, this list of conditions and the following disclaimer.
  12. * * Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in
  14. * the documentation and/or other materials provided with the
  15. * distribution.
  16. * * Neither the name of Broadcom Corporation nor the names of its
  17. * contributors may be used to endorse or promote products derived
  18. * from this software without specific prior written permission.
  19. *
  20. * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  21. * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  22. * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  23. * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  24. * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  25. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  26. * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  27. * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  28. * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  29. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  30. * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. */
  32. /dts-v1/;
  33. #include "bcm-nsp.dtsi"
  34. #include <dt-bindings/gpio/gpio.h>
  35. / {
  36. model = "NorthStar Plus SVK (BCM958625HR)";
  37. compatible = "brcm,bcm958625hr", "brcm,bcm58625", "brcm,nsp";
  38. chosen {
  39. stdout-path = "serial0:115200n8";
  40. };
  41. memory@60000000 {
  42. device_type = "memory";
  43. reg = <0x60000000 0x20000000>;
  44. };
  45. gpio-restart {
  46. compatible = "gpio-restart";
  47. gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
  48. open-source;
  49. priority = <200>;
  50. };
  51. sfp: sfp {
  52. compatible = "sff,sfp";
  53. i2c-bus = <&i2c0>;
  54. mod-def0-gpios = <&gpioa 28 GPIO_ACTIVE_LOW>;
  55. los-gpios = <&gpioa 24 GPIO_ACTIVE_HIGH>;
  56. tx-fault-gpios = <&gpioa 30 GPIO_ACTIVE_HIGH>;
  57. tx-disable-gpios = <&gpioa 26 GPIO_ACTIVE_HIGH>;
  58. };
  59. };
  60. &i2c0 {
  61. status = "okay";
  62. };
  63. &dma {
  64. status = "okay";
  65. };
  66. &amac0 {
  67. status = "okay";
  68. };
  69. &amac1 {
  70. status = "okay";
  71. };
  72. &amac2 {
  73. status = "okay";
  74. };
  75. &ehci0 {
  76. status = "okay";
  77. };
  78. &nand_controller {
  79. nand@0 {
  80. compatible = "brcm,nandcs";
  81. reg = <0>;
  82. nand-on-flash-bbt;
  83. #address-cells = <1>;
  84. #size-cells = <1>;
  85. nand-ecc-strength = <24>;
  86. nand-ecc-step-size = <1024>;
  87. brcm,nand-oob-sector-size = <27>;
  88. partition@0 {
  89. label = "nboot";
  90. reg = <0x00000000 0x00200000>;
  91. read-only;
  92. };
  93. partition@200000 {
  94. label = "nenv";
  95. reg = <0x00200000 0x00400000>;
  96. };
  97. partition@600000 {
  98. label = "nsystem";
  99. reg = <0x00600000 0x00a00000>;
  100. };
  101. partition@1000000 {
  102. label = "nrootfs";
  103. reg = <0x01000000 0x03000000>;
  104. };
  105. partition@4000000 {
  106. label = "ncustfs";
  107. reg = <0x04000000 0x3c000000>;
  108. };
  109. };
  110. };
  111. &ohci0 {
  112. status = "okay";
  113. };
  114. &pcie0 {
  115. status = "okay";
  116. };
  117. &pcie1 {
  118. status = "okay";
  119. };
  120. &pinctrl {
  121. pinctrl-names = "default";
  122. pinctrl-0 = <&nand_sel>;
  123. nand_sel: nand_sel {
  124. function = "nand";
  125. groups = "nand_grp";
  126. };
  127. };
  128. &qspi {
  129. status = "okay";
  130. bspi-sel = <0>;
  131. flash: flash@0 {
  132. #address-cells = <1>;
  133. #size-cells = <1>;
  134. compatible = "m25p80";
  135. reg = <0x0>;
  136. spi-max-frequency = <12500000>;
  137. m25p,fast-read;
  138. spi-cpol;
  139. spi-cpha;
  140. partition@0 {
  141. label = "boot";
  142. reg = <0x00000000 0x000a0000>;
  143. };
  144. partition@a0000 {
  145. label = "env";
  146. reg = <0x000a0000 0x00060000>;
  147. };
  148. partition@100000 {
  149. label = "system";
  150. reg = <0x00100000 0x00600000>;
  151. };
  152. partition@700000 {
  153. label = "rootfs";
  154. reg = <0x00700000 0x01900000>;
  155. };
  156. };
  157. };
  158. &sata_phy0 {
  159. status = "okay";
  160. };
  161. &sata_phy1 {
  162. status = "okay";
  163. };
  164. &srab {
  165. compatible = "brcm,bcm58625-srab", "brcm,nsp-srab";
  166. status = "okay";
  167. ports {
  168. port@0 {
  169. label = "port0";
  170. reg = <0>;
  171. };
  172. port@1 {
  173. label = "port1";
  174. reg = <1>;
  175. };
  176. port@2 {
  177. label = "port2";
  178. reg = <2>;
  179. };
  180. port@3 {
  181. label = "port3";
  182. reg = <3>;
  183. };
  184. port@4 {
  185. label = "port4";
  186. reg = <4>;
  187. };
  188. port@5 {
  189. label = "sfp";
  190. phy-mode = "sgmii";
  191. reg = <5>;
  192. sfp = <&sfp>;
  193. managed = "in-band-status";
  194. };
  195. port@8 {
  196. ethernet = <&amac2>;
  197. label = "cpu";
  198. reg = <8>;
  199. fixed-link {
  200. speed = <1000>;
  201. full-duplex;
  202. };
  203. };
  204. };
  205. };
  206. &uart0 {
  207. status = "okay";
  208. };
  209. &usb3_phy {
  210. status = "okay";
  211. };
  212. &xhci {
  213. status = "okay";
  214. };