armada-xp-openblocks-ax3-4.dts 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. /*
  2. * Device Tree file for OpenBlocks AX3-4 board
  3. *
  4. * Copyright (C) 2012 Marvell
  5. *
  6. * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  7. *
  8. * This file is licensed under the terms of the GNU General Public
  9. * License version 2. This program is licensed "as is" without any
  10. * warranty of any kind, whether express or implied.
  11. */
  12. /dts-v1/;
  13. #include "armada-xp-mv78260.dtsi"
  14. / {
  15. model = "PlatHome OpenBlocks AX3-4 board";
  16. compatible = "plathome,openblocks-ax3-4", "marvell,armadaxp-mv78260", "marvell,armadaxp", "marvell,armada-370-xp";
  17. chosen {
  18. bootargs = "console=ttyS0,115200 earlyprintk";
  19. };
  20. memory {
  21. device_type = "memory";
  22. reg = <0 0x00000000 0 0xC0000000>; /* 3 GB */
  23. };
  24. soc {
  25. ranges = <MBUS_ID(0xf0, 0x01) 0 0 0xd0000000 0x100000
  26. MBUS_ID(0x01, 0x1d) 0 0 0xfff00000 0x100000
  27. MBUS_ID(0x01, 0x2f) 0 0 0xf0000000 0x8000000>;
  28. devbus-bootcs {
  29. status = "okay";
  30. /* Device Bus parameters are required */
  31. /* Read parameters */
  32. devbus,bus-width = <8>;
  33. devbus,turn-off-ps = <60000>;
  34. devbus,badr-skew-ps = <0>;
  35. devbus,acc-first-ps = <124000>;
  36. devbus,acc-next-ps = <248000>;
  37. devbus,rd-setup-ps = <0>;
  38. devbus,rd-hold-ps = <0>;
  39. /* Write parameters */
  40. devbus,sync-enable = <0>;
  41. devbus,wr-high-ps = <60000>;
  42. devbus,wr-low-ps = <60000>;
  43. devbus,ale-wr-ps = <60000>;
  44. /* NOR 128 MiB */
  45. nor@0 {
  46. compatible = "cfi-flash";
  47. reg = <0 0x8000000>;
  48. bank-width = <2>;
  49. };
  50. };
  51. pcie-controller {
  52. status = "okay";
  53. /* Internal mini-PCIe connector */
  54. pcie@1,0 {
  55. /* Port 0, Lane 0 */
  56. status = "okay";
  57. };
  58. };
  59. internal-regs {
  60. serial@12000 {
  61. clock-frequency = <250000000>;
  62. status = "okay";
  63. };
  64. serial@12100 {
  65. clock-frequency = <250000000>;
  66. status = "okay";
  67. };
  68. pinctrl {
  69. led_pins: led-pins-0 {
  70. marvell,pins = "mpp49", "mpp51", "mpp53";
  71. marvell,function = "gpio";
  72. };
  73. };
  74. leds {
  75. compatible = "gpio-leds";
  76. pinctrl-names = "default";
  77. pinctrl-0 = <&led_pins>;
  78. red_led {
  79. label = "red_led";
  80. gpios = <&gpio1 17 1>;
  81. default-state = "off";
  82. };
  83. yellow_led {
  84. label = "yellow_led";
  85. gpios = <&gpio1 19 1>;
  86. default-state = "off";
  87. };
  88. green_led {
  89. label = "green_led";
  90. gpios = <&gpio1 21 1>;
  91. default-state = "off";
  92. linux,default-trigger = "heartbeat";
  93. };
  94. };
  95. gpio_keys {
  96. compatible = "gpio-keys";
  97. #address-cells = <1>;
  98. #size-cells = <0>;
  99. button@1 {
  100. label = "Init Button";
  101. linux,code = <116>;
  102. gpios = <&gpio1 28 0>;
  103. };
  104. };
  105. mdio {
  106. phy0: ethernet-phy@0 {
  107. reg = <0>;
  108. };
  109. phy1: ethernet-phy@1 {
  110. reg = <1>;
  111. };
  112. phy2: ethernet-phy@2 {
  113. reg = <2>;
  114. };
  115. phy3: ethernet-phy@3 {
  116. reg = <3>;
  117. };
  118. };
  119. ethernet@70000 {
  120. status = "okay";
  121. phy = <&phy0>;
  122. phy-mode = "sgmii";
  123. };
  124. ethernet@74000 {
  125. status = "okay";
  126. phy = <&phy1>;
  127. phy-mode = "sgmii";
  128. };
  129. ethernet@30000 {
  130. status = "okay";
  131. phy = <&phy2>;
  132. phy-mode = "sgmii";
  133. };
  134. ethernet@34000 {
  135. status = "okay";
  136. phy = <&phy3>;
  137. phy-mode = "sgmii";
  138. };
  139. i2c@11000 {
  140. status = "okay";
  141. clock-frequency = <400000>;
  142. };
  143. i2c@11100 {
  144. status = "okay";
  145. clock-frequency = <400000>;
  146. s35390a: s35390a@30 {
  147. compatible = "s35390a";
  148. reg = <0x30>;
  149. };
  150. };
  151. sata@a0000 {
  152. nr-ports = <2>;
  153. status = "okay";
  154. };
  155. /* Front side USB 0 */
  156. usb@50000 {
  157. status = "okay";
  158. };
  159. /* Front side USB 1 */
  160. usb@51000 {
  161. status = "okay";
  162. };
  163. };
  164. };
  165. };