apollo3g.dtsi 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174
  1. /*
  2. * Copyright 2008 DENX Software Engineering, Stefan Roese <sr@denx.de>
  3. * (c) Copyright 2010 Western Digital Technologies, Inc. All Rights Reserved.
  4. *
  5. * This file is licensed under the terms of the GNU General Public
  6. * License version 2. This program is licensed "as is" without
  7. * any warranty of any kind, whether express or implied.
  8. */
  9. #include "apm82181.dtsi"
  10. / {
  11. compatible = "amcc,apollo3g";
  12. aliases {
  13. serial0 = &UART0;
  14. };
  15. };
  16. &POB0 {
  17. ebc {
  18. nor_flash@0,0 {
  19. status = "okay";
  20. compatible = "amd,s29gl512n", "jedec-probe", "cfi-flash", "mtd-rom";
  21. bank-width = <1>;
  22. reg = <0x00000000 0x00000000 0x00080000>;
  23. #address-cells = <1>;
  24. #size-cells = <1>;
  25. partition@0 {
  26. /* Part of bootrom - Don't use it without a jump */
  27. label = "free";
  28. reg = <0x00000000 0x0001e000>;
  29. };
  30. partition@1 {
  31. label = "env";
  32. reg = <0x0001e000 0x00002000>;
  33. };
  34. partition@2 {
  35. label = "uboot";
  36. reg = <0x00020000 0x00050000>;
  37. };
  38. };
  39. };
  40. GPIO1: gpio1@e0000000 {
  41. compatible = "wd,mbl-gpio", "ti,74273";
  42. reg-names = "dat";
  43. reg = <0xe0000000 0x1>;
  44. #gpio-cells = <2>;
  45. gpio-controller;
  46. enable-phy {
  47. /* toggle to reset EMAC PHY */
  48. gpio-hog;
  49. line-name = "enable EMAC PHY";
  50. gpios = <0 GPIO_ACTIVE_LOW>;
  51. output-low;
  52. };
  53. enable-button {
  54. /* Defined in u-boot as: NOT_NOR
  55. * "enables features other than NOR
  56. * specifically, the buffer at CS2"
  57. * (button).
  58. *
  59. * Note: This option is disabled as
  60. * it prevents the system from being
  61. * rebooted successfully.
  62. */
  63. gpio-hog;
  64. line-name = "Enable Reset Button, disable NOR";
  65. gpios = <1 GPIO_ACTIVE_HIGH>;
  66. output-low;
  67. };
  68. enable-usb {
  69. gpio-hog;
  70. line-name = "Power USB Core";
  71. gpios = <2 GPIO_ACTIVE_LOW>;
  72. output-low;
  73. status = "disabled";
  74. };
  75. enable-port1 {
  76. gpio-hog;
  77. line-name = "Power Drive Port 1";
  78. gpios = <3 GPIO_ACTIVE_LOW>;
  79. output-low;
  80. };
  81. enable-port0 {
  82. gpio-hog;
  83. line-name = "Power Drive Port 0";
  84. gpios = <7 GPIO_ACTIVE_LOW>;
  85. output-low;
  86. status = "disabled";
  87. };
  88. };
  89. GPIO2: gpio2@e0100000 {
  90. compatible = "wd,mbl-gpio", "ti,74244";
  91. reg-names = "dat";
  92. reg = <0xe0100000 0x1>;
  93. #gpio-cells = <2>;
  94. gpio-controller;
  95. no-output;
  96. };
  97. gpio-leds {
  98. compatible = "gpio-leds";
  99. power-red {
  100. label = "mbl:red:power";
  101. gpios = <&GPIO1 4 GPIO_ACTIVE_HIGH>;
  102. linux,default-trigger = "panic";
  103. };
  104. power-green {
  105. label = "mbl:green:power";
  106. gpios = <&GPIO1 5 GPIO_ACTIVE_HIGH>;
  107. };
  108. power-blue {
  109. label = "mbl:blue:power";
  110. gpios = <&GPIO1 6 GPIO_ACTIVE_HIGH>;
  111. };
  112. };
  113. gpio_keys_polled {
  114. compatible = "gpio-keys-polled";
  115. #address-cells = <1>;
  116. #size-cells = <0>;
  117. poll-interval = <60>; /* 3 * 20 = 60ms */
  118. autorepeat;
  119. button@1 {
  120. label = "Reset button";
  121. linux,code = <KEY_RESTART>;
  122. gpios = <&GPIO2 2 GPIO_ACTIVE_LOW>;
  123. };
  124. };
  125. };
  126. &CRYPTO {
  127. status = "okay";
  128. };
  129. &PKA {
  130. status = "okay";
  131. };
  132. &TRNG {
  133. status = "okay";
  134. };
  135. &SATA1 {
  136. status = "okay";
  137. };
  138. &UART0 {
  139. status = "okay";
  140. };
  141. &EMAC0 {
  142. status = "okay";
  143. };
  144. &SATA1 {
  145. status = "okay";
  146. };