keystone-k2g-evm.dts 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. /*
  2. * Copyright 2014 Texas Instruments, Inc.
  3. *
  4. * Keystone 2 Galileo EVM device tree
  5. *
  6. * This program is free software; you can redistribute it and/or modify
  7. * it under the terms of the GNU General Public License version 2 as
  8. * published by the Free Software Foundation.
  9. */
  10. /dts-v1/;
  11. #include "keystone-k2g.dtsi"
  12. / {
  13. compatible = "ti,k2g-evm","ti,keystone";
  14. model = "Texas Instruments Keystone 2 Galileo EVM";
  15. chosen {
  16. stdout-path = &uart0;
  17. };
  18. };
  19. &mdio {
  20. status = "okay";
  21. ethphy0: ethernet-phy@0 {
  22. reg = <0>;
  23. };
  24. };
  25. &gbe0 {
  26. phy-handle = <&ethphy0>;
  27. };
  28. &netcp {
  29. status = "okay";
  30. };
  31. &spi1 {
  32. status = "okay";
  33. spi_nor: flash@0 {
  34. #address-cells = <1>;
  35. #size-cells = <1>;
  36. compatible = "spi-flash";
  37. spi-max-frequency = <50000000>;
  38. m25p,fast-read;
  39. reg = <0>;
  40. partition@0 {
  41. label = "u-boot-spl";
  42. reg = <0x0 0x80000>;
  43. read-only;
  44. };
  45. partition@1 {
  46. label = "misc";
  47. reg = <0x80000 0xf80000>;
  48. };
  49. };
  50. };
  51. &qspi {
  52. status = "okay";
  53. flash0: m25p80@0 {
  54. compatible = "s25fl512s","spi-flash";
  55. reg = <0>;
  56. spi-tx-bus-width = <1>;
  57. spi-rx-bus-width = <4>;
  58. spi-max-frequency = <96000000>;
  59. #address-cells = <1>;
  60. #size-cells = <1>;
  61. tshsl-ns = <392>;
  62. tsd2d-ns = <392>;
  63. tchsh-ns = <100>;
  64. tslch-ns = <100>;
  65. block-size = <18>;
  66. partition@0 {
  67. label = "QSPI.u-boot-spl-os";
  68. reg = <0x00000000 0x00100000>;
  69. };
  70. partition@1 {
  71. label = "QSPI.u-boot-env";
  72. reg = <0x00100000 0x00040000>;
  73. };
  74. partition@2 {
  75. label = "QSPI.skern";
  76. reg = <0x00140000 0x0040000>;
  77. };
  78. partition@3 {
  79. label = "QSPI.pmmc-firmware";
  80. reg = <0x00180000 0x0040000>;
  81. };
  82. partition@4 {
  83. label = "QSPI.kernel";
  84. reg = <0x001C0000 0x0800000>;
  85. };
  86. partition@5 {
  87. label = "QSPI.file-system";
  88. reg = <0x009C0000 0x3640000>;
  89. };
  90. };
  91. };
  92. &mmc0 {
  93. status = "okay";
  94. };
  95. &mmc1 {
  96. status = "okay";
  97. };
  98. &gpmc {
  99. status = "okay";
  100. ranges = <0 0 0x30000000 0x01000000>; /* CS0 space. Min partition = 16MB */
  101. nand@0,0 {
  102. compatible = "ti,omap2-nand";
  103. reg = <0 0 4>; /* CS0, I/O window 4 bytes */
  104. interrupts = <GIC_SPI 196 IRQ_TYPE_EDGE_RISING>;
  105. ti,nand-ecc-opt = "bch16";
  106. ti,elm-id = <&elm>;
  107. nand-bus-width = <16>;
  108. gpmc,device-width = <2>;
  109. gpmc,sync-clk-ps = <0>;
  110. gpmc,cs-on-ns = <0>;
  111. gpmc,cs-rd-off-ns = <40>;
  112. gpmc,cs-wr-off-ns = <40>;
  113. gpmc,adv-on-ns = <0>;
  114. gpmc,adv-rd-off-ns = <25>;
  115. gpmc,adv-wr-off-ns = <25>;
  116. gpmc,we-on-ns = <0>;
  117. gpmc,we-off-ns = <20>;
  118. gpmc,oe-on-ns = <3>;
  119. gpmc,oe-off-ns = <30>;
  120. gpmc,access-ns = <30>;
  121. gpmc,rd-cycle-ns = <40>;
  122. gpmc,wr-cycle-ns = <40>;
  123. gpmc,wait-pin = <0>;
  124. gpmc,bus-turnaround-ns = <0>;
  125. gpmc,cycle2cycle-delay-ns = <0>;
  126. gpmc,clk-activation-ns = <0>;
  127. gpmc,wait-monitoring-ns = <0>;
  128. gpmc,wr-access-ns = <40>;
  129. gpmc,wr-data-mux-bus-ns = <0>;
  130. /* MTD partition table */
  131. /* All SPL-* partitions are sized to minimal length
  132. * which can be independently programmable. For
  133. * NAND flash this is equal to size of erase-block
  134. */
  135. #address-cells = <1>;
  136. #size-cells = <1>;
  137. nand-on-flash-bbt;
  138. /* MT29F2G16ABAFAWP - 256MB */
  139. partition@0 {
  140. label = "u-boot";
  141. reg = <0x0 0x100000>;
  142. read-only;
  143. };
  144. partition@100000 {
  145. label = "params";
  146. reg = <0x100000 0x80000>;
  147. };
  148. partition@180000 {
  149. label = "ubifs";
  150. reg = <0x180000 0xfe80000>;
  151. };
  152. };
  153. };