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

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