armada-370-mirabox.dts 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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. internal-regs {
  25. serial@12000 {
  26. clock-frequency = <200000000>;
  27. status = "okay";
  28. };
  29. timer@20300 {
  30. clock-frequency = <600000000>;
  31. status = "okay";
  32. };
  33. pinctrl {
  34. pwr_led_pin: pwr-led-pin {
  35. marvell,pins = "mpp63";
  36. marvell,function = "gpo";
  37. };
  38. stat_led_pins: stat-led-pins {
  39. marvell,pins = "mpp64", "mpp65";
  40. marvell,function = "gpio";
  41. };
  42. };
  43. gpio_leds {
  44. compatible = "gpio-leds";
  45. pinctrl-names = "default";
  46. pinctrl-0 = <&pwr_led_pin &stat_led_pins>;
  47. green_pwr_led {
  48. label = "mirabox:green:pwr";
  49. gpios = <&gpio1 31 1>;
  50. linux,default-trigger = "heartbeat";
  51. };
  52. blue_stat_led {
  53. label = "mirabox:blue:stat";
  54. gpios = <&gpio2 0 1>;
  55. linux,default-trigger = "cpu0";
  56. };
  57. green_stat_led {
  58. label = "mirabox:green:stat";
  59. gpios = <&gpio2 1 1>;
  60. default-state = "off";
  61. };
  62. };
  63. mdio {
  64. phy0: ethernet-phy@0 {
  65. reg = <0>;
  66. };
  67. phy1: ethernet-phy@1 {
  68. reg = <1>;
  69. };
  70. };
  71. ethernet@70000 {
  72. status = "okay";
  73. phy = <&phy0>;
  74. phy-mode = "rgmii-id";
  75. };
  76. ethernet@74000 {
  77. status = "okay";
  78. phy = <&phy1>;
  79. phy-mode = "rgmii-id";
  80. };
  81. mvsdio@d4000 {
  82. pinctrl-0 = <&sdio_pins3>;
  83. pinctrl-names = "default";
  84. status = "okay";
  85. /*
  86. * No CD or WP GPIOs: SDIO interface used for
  87. * Wifi/Bluetooth chip
  88. */
  89. broken-cd;
  90. };
  91. usb@50000 {
  92. status = "okay";
  93. };
  94. usb@51000 {
  95. status = "okay";
  96. };
  97. i2c@11000 {
  98. status = "okay";
  99. clock-frequency = <100000>;
  100. pca9505: pca9505@25 {
  101. compatible = "nxp,pca9505";
  102. gpio-controller;
  103. #gpio-cells = <2>;
  104. reg = <0x25>;
  105. };
  106. };
  107. pcie-controller {
  108. status = "okay";
  109. /* Internal mini-PCIe connector */
  110. pcie@1,0 {
  111. /* Port 0, Lane 0 */
  112. status = "okay";
  113. };
  114. /* Connected on the PCB to a USB 3.0 XHCI controller */
  115. pcie@2,0 {
  116. /* Port 1, Lane 0 */
  117. status = "okay";
  118. };
  119. };
  120. };
  121. };
  122. };