bcm958622hr.dts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  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 (BCM958622HR)";
  37. compatible = "brcm,bcm58622", "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 and SLIC 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. &srab {
  107. compatible = "brcm,bcm58622-srab", "brcm,nsp-srab";
  108. status = "okay";
  109. ports {
  110. #address-cells = <1>;
  111. #size-cells = <0>;
  112. port@0 {
  113. label = "port0";
  114. reg = <0>;
  115. };
  116. port@1 {
  117. label = "port1";
  118. reg = <1>;
  119. };
  120. port@2 {
  121. label = "port2";
  122. reg = <2>;
  123. };
  124. port@3 {
  125. label = "port3";
  126. reg = <3>;
  127. };
  128. port@4 {
  129. label = "port4";
  130. reg = <4>;
  131. };
  132. port@5 {
  133. ethernet = <&amac0>;
  134. label = "cpu";
  135. reg = <5>;
  136. fixed-link {
  137. speed = <1000>;
  138. full-duplex;
  139. };
  140. };
  141. };
  142. };
  143. &uart0 {
  144. status = "okay";
  145. };