armada-370-mirabox.dts 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  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 "armada-370.dtsi"
  12. / {
  13. model = "Globalscale Mirabox";
  14. compatible = "globalscale,mirabox", "marvell,armada370", "marvell,armada-370-xp";
  15. chosen {
  16. bootargs = "console=ttyS0,115200 earlyprintk";
  17. };
  18. memory {
  19. device_type = "memory";
  20. reg = <0x00000000 0x20000000>; /* 512 MB */
  21. };
  22. soc {
  23. ranges = <MBUS_ID(0xf0, 0x01) 0 0xd0000000 0x100000
  24. MBUS_ID(0x01, 0xe0) 0 0xfff00000 0x100000>;
  25. pcie-controller {
  26. status = "okay";
  27. /* Internal mini-PCIe connector */
  28. pcie@1,0 {
  29. /* Port 0, Lane 0 */
  30. status = "okay";
  31. };
  32. /* Connected on the PCB to a USB 3.0 XHCI controller */
  33. pcie@2,0 {
  34. /* Port 1, Lane 0 */
  35. status = "okay";
  36. };
  37. };
  38. internal-regs {
  39. serial@12000 {
  40. clock-frequency = <200000000>;
  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 1>;
  64. linux,default-trigger = "heartbeat";
  65. };
  66. blue_stat_led {
  67. label = "mirabox:blue:stat";
  68. gpios = <&gpio2 0 1>;
  69. linux,default-trigger = "cpu0";
  70. };
  71. green_stat_led {
  72. label = "mirabox:green:stat";
  73. gpios = <&gpio2 1 1>;
  74. default-state = "off";
  75. };
  76. };
  77. mdio {
  78. phy0: ethernet-phy@0 {
  79. reg = <0>;
  80. };
  81. phy1: ethernet-phy@1 {
  82. reg = <1>;
  83. };
  84. };
  85. ethernet@70000 {
  86. status = "okay";
  87. phy = <&phy0>;
  88. phy-mode = "rgmii-id";
  89. };
  90. ethernet@74000 {
  91. status = "okay";
  92. phy = <&phy1>;
  93. phy-mode = "rgmii-id";
  94. };
  95. mvsdio@d4000 {
  96. pinctrl-0 = <&sdio_pins3>;
  97. pinctrl-names = "default";
  98. status = "okay";
  99. /*
  100. * No CD or WP GPIOs: SDIO interface used for
  101. * Wifi/Bluetooth chip
  102. */
  103. broken-cd;
  104. };
  105. usb@50000 {
  106. status = "okay";
  107. };
  108. usb@51000 {
  109. status = "okay";
  110. };
  111. i2c@11000 {
  112. status = "okay";
  113. clock-frequency = <100000>;
  114. pca9505: pca9505@25 {
  115. compatible = "nxp,pca9505";
  116. gpio-controller;
  117. #gpio-cells = <2>;
  118. reg = <0x25>;
  119. };
  120. };
  121. };
  122. };
  123. };