armada-398-db.dts 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162
  1. /*
  2. * Device Tree Include file for Marvell Armada 398 Development Board
  3. *
  4. * Copyright (C) 2015 Marvell
  5. *
  6. * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  7. *
  8. * This file is dual-licensed: you can use it either under the terms
  9. * of the GPL or the X11 license, at your option. Note that this dual
  10. * licensing only applies to this file, and not this project as a
  11. * whole.
  12. *
  13. * a) This file is free software; you can redistribute it and/or
  14. * modify it under the terms of the GNU General Public License as
  15. * published by the Free Software Foundation; either version 2 of the
  16. * License, or (at your option) any later version.
  17. *
  18. * This file is distributed in the hope that it will be useful
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU General Public License for more details.
  22. *
  23. * Or, alternatively
  24. *
  25. * b) Permission is hereby granted, free of charge, to any person
  26. * obtaining a copy of this software and associated documentation
  27. * files (the "Software"), to deal in the Software without
  28. * restriction, including without limitation the rights to use
  29. * copy, modify, merge, publish, distribute, sublicense, and/or
  30. * sell copies of the Software, and to permit persons to whom the
  31. * Software is furnished to do so, subject to the following
  32. * conditions:
  33. *
  34. * The above copyright notice and this permission notice shall be
  35. * included in all copies or substantial portions of the Software.
  36. *
  37. * THE SOFTWARE IS PROVIDED , WITHOUT WARRANTY OF ANY KIND
  38. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  39. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  40. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  41. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY
  42. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  43. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  44. * OTHER DEALINGS IN THE SOFTWARE.
  45. */
  46. /dts-v1/;
  47. #include "armada-398.dtsi"
  48. / {
  49. model = "Marvell Armada 398 Development Board";
  50. compatible = "marvell,a398-db", "marvell,armada398", "marvell,armada390";
  51. chosen {
  52. stdout-path = "serial0:115200n8";
  53. };
  54. memory {
  55. device_type = "memory";
  56. reg = <0x00000000 0x80000000>; /* 2 GB */
  57. };
  58. soc {
  59. ranges = <MBUS_ID(0xf0, 0x01) 0 0xf1000000 0x100000
  60. MBUS_ID(0x01, 0x1d) 0 0xfff00000 0x100000>;
  61. internal-regs {
  62. i2c@11000 {
  63. pinctrl-0 = <&i2c0_pins>;
  64. pinctrl-names = "default";
  65. status = "okay";
  66. clock-frequency = <100000>;
  67. };
  68. serial@12000 {
  69. pinctrl-0 = <&uart0_pins>;
  70. pinctrl-names = "default";
  71. status = "okay";
  72. };
  73. serial@12100 {
  74. pinctrl-0 = <&uart1_pins>;
  75. pinctrl-names = "default";
  76. status = "okay";
  77. };
  78. usb@58000 {
  79. status = "okay";
  80. };
  81. flash@d0000 {
  82. status = "okay";
  83. pinctrl-0 = <&nand_pins>;
  84. pinctrl-names = "default";
  85. num-cs = <1>;
  86. marvell,nand-keep-config;
  87. marvell,nand-enable-arbiter;
  88. nand-on-flash-bbt;
  89. nand-ecc-strength = <8>;
  90. nand-ecc-step-size = <512>;
  91. partition@0 {
  92. label = "U-Boot";
  93. reg = <0 0x800000>;
  94. };
  95. partition@800000 {
  96. label = "Linux";
  97. reg = <0x800000 0x800000>;
  98. };
  99. partition@1000000 {
  100. label = "Filesystem";
  101. reg = <0x1000000 0x3f000000>;
  102. };
  103. };
  104. usb3@f8000 {
  105. status = "okay";
  106. };
  107. };
  108. pcie-controller {
  109. status = "okay";
  110. pcie@1,0 {
  111. status = "okay";
  112. };
  113. pcie@2,0 {
  114. status = "okay";
  115. };
  116. pcie@3,0 {
  117. status = "okay";
  118. };
  119. };
  120. };
  121. };
  122. &spi1 {
  123. status = "okay";
  124. pinctrl-0 = <&spi1_pins>;
  125. pinctrl-names = "default";
  126. spi-flash@0 {
  127. #address-cells = <1>;
  128. #size-cells = <0>;
  129. compatible = "n25q128a13", "jedec,spi-nor";
  130. reg = <0>;
  131. spi-max-frequency = <108000000>;
  132. partition@0 {
  133. label = "U-Boot";
  134. reg = <0 0x400000>;
  135. };
  136. partition@400000 {
  137. label = "Filesystem";
  138. reg = <0x400000 0x1000000>;
  139. };
  140. };
  141. };