bcm958525xmc.dts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  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 XMC (BCM958525xmc)";
  37. compatible = "brcm,bcm58525", "brcm,nsp";
  38. aliases {
  39. serial0 = &uart0;
  40. };
  41. chosen {
  42. stdout-path = "serial0:115200n8";
  43. };
  44. memory {
  45. device_type = "memory";
  46. reg = <0x60000000 0x40000000>;
  47. };
  48. gpio-restart {
  49. compatible = "gpio-restart";
  50. gpios = <&gpioa 31 GPIO_ACTIVE_LOW>;
  51. open-source;
  52. priority = <200>;
  53. };
  54. };
  55. /* XHCI support needed to be complete */
  56. &amac0 {
  57. status = "okay";
  58. };
  59. &i2c0 {
  60. temperature-sensor@4c {
  61. compatible = "adi,adt7461a";
  62. reg = <0x4c>;
  63. };
  64. eeprom@52 {
  65. compatible = "atmel,24c02";
  66. reg = <0x52>;
  67. pagesize = <16>;
  68. };
  69. rtc@68 {
  70. compatible = "st,m41t81";
  71. reg = <0x68>;
  72. };
  73. };
  74. &nand {
  75. nandcs@0 {
  76. compatible = "brcm,nandcs";
  77. reg = <0>;
  78. nand-on-flash-bbt;
  79. #address-cells = <1>;
  80. #size-cells = <1>;
  81. nand-ecc-strength = <24>;
  82. nand-ecc-step-size = <1024>;
  83. brcm,nand-oob-sector-size = <27>;
  84. partition@0 {
  85. label = "nboot";
  86. reg = <0x00000000 0x00200000>;
  87. read-only;
  88. };
  89. partition@200000 {
  90. label = "nenv";
  91. reg = <0x00200000 0x00400000>;
  92. };
  93. partition@600000 {
  94. label = "nsystem";
  95. reg = <0x00600000 0x00a00000>;
  96. };
  97. partition@1000000 {
  98. label = "nrootfs";
  99. reg = <0x01000000 0x03000000>;
  100. };
  101. partition@4000000 {
  102. label = "ncustfs";
  103. reg = <0x04000000 0x3c000000>;
  104. };
  105. };
  106. };
  107. &pcie0 {
  108. status = "okay";
  109. };
  110. &pcie1 {
  111. status = "okay";
  112. };
  113. &pinctrl {
  114. pinctrl-names = "default";
  115. pinctrl-0 = <&nand_sel>;
  116. nand_sel: nand_sel {
  117. function = "nand";
  118. groups = "nand_grp";
  119. };
  120. };
  121. &qspi {
  122. bspi-sel = <0>;
  123. flash: m25p80@0 {
  124. #address-cells = <1>;
  125. #size-cells = <1>;
  126. compatible = "m25p80";
  127. reg = <0x0>;
  128. spi-max-frequency = <12500000>;
  129. m25p,fast-read;
  130. spi-cpol;
  131. spi-cpha;
  132. partition@0 {
  133. label = "boot";
  134. reg = <0x00000000 0x000a0000>;
  135. };
  136. partition@a0000 {
  137. label = "env";
  138. reg = <0x000a0000 0x00060000>;
  139. };
  140. partition@100000 {
  141. label = "system";
  142. reg = <0x00100000 0x00600000>;
  143. };
  144. partition@700000 {
  145. label = "rootfs";
  146. reg = <0x00700000 0x01900000>;
  147. };
  148. };
  149. };
  150. &sata_phy0 {
  151. status = "okay";
  152. };
  153. &sata_phy1 {
  154. status = "okay";
  155. };
  156. &sata {
  157. status = "okay";
  158. };
  159. &sdio {
  160. status = "ok";
  161. };
  162. &uart0 {
  163. status = "okay";
  164. };