armada-370-mirabox.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. serial@d0012000 {
  24. clock-frequency = <200000000>;
  25. status = "okay";
  26. };
  27. timer@d0020300 {
  28. clock-frequency = <600000000>;
  29. status = "okay";
  30. };
  31. pinctrl {
  32. pwr_led_pin: pwr-led-pin {
  33. marvell,pins = "mpp63";
  34. marvell,function = "gpo";
  35. };
  36. stat_led_pins: stat-led-pins {
  37. marvell,pins = "mpp64", "mpp65";
  38. marvell,function = "gpio";
  39. };
  40. };
  41. gpio_leds {
  42. compatible = "gpio-leds";
  43. pinctrl-names = "default";
  44. pinctrl-0 = <&pwr_led_pin &stat_led_pins>;
  45. green_pwr_led {
  46. label = "mirabox:green:pwr";
  47. gpios = <&gpio1 31 1>;
  48. linux,default-trigger = "heartbeat";
  49. };
  50. blue_stat_led {
  51. label = "mirabox:blue:stat";
  52. gpios = <&gpio2 0 1>;
  53. linux,default-trigger = "cpu0";
  54. };
  55. green_stat_led {
  56. label = "mirabox:green:stat";
  57. gpios = <&gpio2 1 1>;
  58. default-state = "off";
  59. };
  60. };
  61. mdio {
  62. phy0: ethernet-phy@0 {
  63. reg = <0>;
  64. };
  65. phy1: ethernet-phy@1 {
  66. reg = <1>;
  67. };
  68. };
  69. ethernet@d0070000 {
  70. status = "okay";
  71. phy = <&phy0>;
  72. phy-mode = "rgmii-id";
  73. };
  74. ethernet@d0074000 {
  75. status = "okay";
  76. phy = <&phy1>;
  77. phy-mode = "rgmii-id";
  78. };
  79. mvsdio@d00d4000 {
  80. pinctrl-0 = <&sdio_pins2>;
  81. pinctrl-names = "default";
  82. status = "okay";
  83. /*
  84. * No CD or WP GPIOs: SDIO interface used for
  85. * Wifi/Bluetooth chip
  86. */
  87. };
  88. usb@d0050000 {
  89. status = "okay";
  90. };
  91. usb@d0051000 {
  92. status = "okay";
  93. };
  94. i2c@d0011000 {
  95. status = "okay";
  96. clock-frequency = <100000>;
  97. pca9505: pca9505@25 {
  98. compatible = "nxp,pca9505";
  99. gpio-controller;
  100. #gpio-cells = <2>;
  101. reg = <0x25>;
  102. };
  103. };
  104. };
  105. };