armada-370-mirabox.dts 2.6 KB

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