armada-370-mirabox.dts 3.2 KB

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