armada-370-mirabox.dts 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. /*
  2. * Device Tree file for Globalscale Mirabox
  3. *
  4. * Gregory CLEMENT <gregory.clement@free-electrons.com>
  5. *
  6. * This file is licensed under the terms of the GNU General Public
  7. * License version 2. This program is licensed "as is" without any
  8. * warranty of any kind, whether express or implied.
  9. */
  10. /dts-v1/;
  11. #include <dt-bindings/gpio/gpio.h>
  12. #include "armada-370.dtsi"
  13. / {
  14. model = "Globalscale Mirabox";
  15. compatible = "globalscale,mirabox", "marvell,armada370", "marvell,armada-370-xp";
  16. chosen {
  17. bootargs = "console=ttyS0,115200 earlyprintk";
  18. };
  19. memory {
  20. device_type = "memory";
  21. reg = <0x00000000 0x20000000>; /* 512 MB */
  22. };
  23. soc {
  24. ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
  25. MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>;
  26. pcie-controller {
  27. status = "okay";
  28. /* Internal mini-PCIe connector */
  29. pcie@1,0 {
  30. /* Port 0, Lane 0 */
  31. status = "okay";
  32. };
  33. /* Connected on the PCB to a USB 3.0 XHCI controller */
  34. pcie@2,0 {
  35. /* Port 1, Lane 0 */
  36. status = "okay";
  37. };
  38. };
  39. internal-regs {
  40. serial@12000 {
  41. status = "okay";
  42. };
  43. timer@20300 {
  44. clock-frequency = <600000000>;
  45. status = "okay";
  46. };
  47. pinctrl {
  48. pwr_led_pin: pwr-led-pin {
  49. marvell,pins = "mpp63";
  50. marvell,function = "gpo";
  51. };
  52. stat_led_pins: stat-led-pins {
  53. marvell,pins = "mpp64", "mpp65";
  54. marvell,function = "gpio";
  55. };
  56. };
  57. gpio_leds {
  58. compatible = "gpio-leds";
  59. pinctrl-names = "default";
  60. pinctrl-0 = <&pwr_led_pin &stat_led_pins>;
  61. green_pwr_led {
  62. label = "mirabox:green:pwr";
  63. gpios = <&gpio1 31 GPIO_ACTIVE_LOW>;
  64. default-state = "keep";
  65. };
  66. blue_stat_led {
  67. label = "mirabox:blue:stat";
  68. gpios = <&gpio2 0 GPIO_ACTIVE_LOW>;
  69. default-state = "off";
  70. };
  71. green_stat_led {
  72. label = "mirabox:green:stat";
  73. gpios = <&gpio2 1 GPIO_ACTIVE_LOW>;
  74. default-state = "off";
  75. };
  76. };
  77. mdio {
  78. pinctrl-0 = <&mdio_pins>;
  79. pinctrl-names = "default";
  80. phy0: ethernet-phy@0 {
  81. reg = <0>;
  82. };
  83. phy1: ethernet-phy@1 {
  84. reg = <1>;
  85. };
  86. };
  87. ethernet@70000 {
  88. pinctrl-0 = <&ge0_rgmii_pins>;
  89. pinctrl-names = "default";
  90. status = "okay";
  91. phy = <&phy0>;
  92. phy-mode = "rgmii-id";
  93. };
  94. ethernet@74000 {
  95. pinctrl-0 = <&ge1_rgmii_pins>;
  96. pinctrl-names = "default";
  97. status = "okay";
  98. phy = <&phy1>;
  99. phy-mode = "rgmii-id";
  100. };
  101. mvsdio@d4000 {
  102. pinctrl-0 = <&sdio_pins3>;
  103. pinctrl-names = "default";
  104. status = "okay";
  105. /*
  106. * No CD or WP GPIOs: SDIO interface used for
  107. * Wifi/Bluetooth chip
  108. */
  109. broken-cd;
  110. };
  111. usb@50000 {
  112. status = "okay";
  113. };
  114. usb@51000 {
  115. status = "okay";
  116. };
  117. i2c@11000 {
  118. status = "okay";
  119. clock-frequency = <100000>;
  120. pca9505: pca9505@25 {
  121. compatible = "nxp,pca9505";
  122. gpio-controller;
  123. #gpio-cells = <2>;
  124. reg = <0x25>;
  125. };
  126. };
  127. nand@d0000 {
  128. status = "okay";
  129. num-cs = <1>;
  130. marvell,nand-keep-config;
  131. marvell,nand-enable-arbiter;
  132. nand-on-flash-bbt;
  133. partition@0 {
  134. label = "U-Boot";
  135. reg = <0 0x400000>;
  136. };
  137. partition@400000 {
  138. label = "Linux";
  139. reg = <0x400000 0x400000>;
  140. };
  141. partition@800000 {
  142. label = "Filesystem";
  143. reg = <0x800000 0x3f800000>;
  144. };
  145. };
  146. };
  147. };
  148. };