ns2-xmc.dts 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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 "ns2.dtsi"
  34. / {
  35. model = "Broadcom NS2 XMC";
  36. compatible = "brcm,ns2-xmc", "brcm,ns2";
  37. aliases {
  38. serial0 = &uart3;
  39. };
  40. chosen {
  41. stdout-path = "serial0:115200n8";
  42. bootargs = "earlycon=uart8250,mmio32,0x66130000";
  43. };
  44. memory {
  45. device_type = "memory";
  46. reg = <0x000000000 0x80000000 0x00000001 0x00000000>;
  47. };
  48. };
  49. &enet {
  50. status = "okay";
  51. };
  52. &i2c0 {
  53. status = "okay";
  54. };
  55. &i2c1 {
  56. status = "okay";
  57. };
  58. &mdio_mux_iproc {
  59. mdio@10 {
  60. gphy0: eth-phy@10 {
  61. reg = <0x10>;
  62. };
  63. };
  64. };
  65. &nand {
  66. nandcs@0 {
  67. compatible = "brcm,nandcs";
  68. reg = <0>;
  69. nand-ecc-mode = "hw";
  70. nand-ecc-strength = <8>;
  71. nand-ecc-step-size = <512>;
  72. nand-bus-width = <16>;
  73. brcm,nand-oob-sector-size = <16>;
  74. #address-cells = <1>;
  75. #size-cells = <1>;
  76. partition@0 {
  77. label = "nboot";
  78. reg = <0x00000000 0x00280000>; /* 2.5MB */
  79. read-only;
  80. };
  81. partition@280000 {
  82. label = "nenv";
  83. reg = <0x00280000 0x00040000>; /* 0.25MB */
  84. read-only;
  85. };
  86. partition@2c0000 {
  87. label = "ndtb";
  88. reg = <0x002c0000 0x00040000>; /* 0.25MB */
  89. read-only;
  90. };
  91. partition@300000 {
  92. label = "nsystem";
  93. reg = <0x00300000 0x03d00000>; /* 61MB */
  94. read-only;
  95. };
  96. partition@4000000 {
  97. label = "nrootfs";
  98. reg = <0x04000000 0x06400000>; /* 100MB */
  99. };
  100. partition@a400000{
  101. label = "ncustfs";
  102. reg = <0x0a400000 0x35c00000>; /* 860MB */
  103. };
  104. };
  105. };
  106. &pci_phy0 {
  107. status = "okay";
  108. };
  109. &pcie0 {
  110. status = "okay";
  111. };
  112. &pcie8 {
  113. status = "okay";
  114. };
  115. &sata_phy0 {
  116. status = "okay";
  117. };
  118. &sata_phy1 {
  119. status = "okay";
  120. };
  121. &sata {
  122. status = "okay";
  123. };
  124. &qspi {
  125. flash: m25p80@0 {
  126. #address-cells = <1>;
  127. #size-cells = <1>;
  128. compatible = "m25p80";
  129. spi-max-frequency = <62500000>;
  130. m25p,default-addr-width = <3>;
  131. reg = <0x0 0x0>;
  132. partition@0 {
  133. label = "bl0";
  134. reg = <0x00000000 0x00080000>; /* 512KB */
  135. };
  136. partition@80000 {
  137. label = "fip";
  138. reg = <0x00080000 0x00150000>; /* 1344KB */
  139. };
  140. partition@1e0000 {
  141. label = "env";
  142. reg = <0x001e0000 0x00010000>;/* 64KB */
  143. };
  144. partition@1f0000 {
  145. label = "dtb";
  146. reg = <0x001f0000 0x00010000>; /* 64KB */
  147. };
  148. partition@200000 {
  149. label = "kernel";
  150. reg = <0x00200000 0x00e00000>; /* 14MB */
  151. };
  152. partition@1000000 {
  153. label = "rootfs";
  154. reg = <0x01000000 0x01000000>; /* 16MB */
  155. };
  156. };
  157. };
  158. &uart3 {
  159. status = "okay";
  160. };