bcm988312hr.dts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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 (BCM988312HR)";
  37. compatible = "brcm,bcm88312", "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 0x80000000>;
  47. };
  48. gpio-restart {
  49. compatible = "gpio-restart";
  50. gpios = <&gpioa 15 GPIO_ACTIVE_LOW>;
  51. open-source;
  52. priority = <200>;
  53. };
  54. };
  55. /* USB 2/3 support needed to be complete */
  56. &amac0 {
  57. status = "okay";
  58. };
  59. &nand {
  60. nandcs@0 {
  61. compatible = "brcm,nandcs";
  62. reg = <0>;
  63. nand-on-flash-bbt;
  64. #address-cells = <1>;
  65. #size-cells = <1>;
  66. nand-ecc-strength = <24>;
  67. nand-ecc-step-size = <1024>;
  68. brcm,nand-oob-sector-size = <27>;
  69. partition@0 {
  70. label = "nboot";
  71. reg = <0x00000000 0x00200000>;
  72. read-only;
  73. };
  74. partition@200000 {
  75. label = "nenv";
  76. reg = <0x00200000 0x00400000>;
  77. };
  78. partition@600000 {
  79. label = "nsystem";
  80. reg = <0x00600000 0x00a00000>;
  81. };
  82. partition@1000000 {
  83. label = "nrootfs";
  84. reg = <0x01000000 0x03000000>;
  85. };
  86. partition@4000000 {
  87. label = "ncustfs";
  88. reg = <0x04000000 0x3c000000>;
  89. };
  90. };
  91. };
  92. &pcie0 {
  93. status = "okay";
  94. };
  95. &pcie1 {
  96. status = "okay";
  97. };
  98. &pinctrl {
  99. pinctrl-names = "default";
  100. pinctrl-0 = <&nand_sel>;
  101. nand_sel: nand_sel {
  102. function = "nand";
  103. groups = "nand_grp";
  104. };
  105. };
  106. &sata_phy0 {
  107. status = "okay";
  108. };
  109. &sata_phy1 {
  110. status = "okay";
  111. };
  112. &sata {
  113. status = "okay";
  114. };
  115. &srab {
  116. compatible = "brcm,bcm88312-srab", "brcm,nsp-srab";
  117. status = "okay";
  118. ports {
  119. #address-cells = <1>;
  120. #size-cells = <0>;
  121. port@0 {
  122. label = "port0";
  123. reg = <0>;
  124. };
  125. port@1 {
  126. label = "port1";
  127. reg = <1>;
  128. };
  129. port@2 {
  130. label = "port2";
  131. reg = <2>;
  132. };
  133. port@3 {
  134. label = "port3";
  135. reg = <3>;
  136. };
  137. port@4 {
  138. label = "port4";
  139. reg = <4>;
  140. };
  141. port@5 {
  142. ethernet = <&amac0>;
  143. label = "cpu";
  144. reg = <5>;
  145. fixed-link {
  146. speed = <1000>;
  147. full-duplex;
  148. };
  149. };
  150. };
  151. };
  152. &uart0 {
  153. status = "okay";
  154. };