MX60.dts 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. /*
  2. * Device Tree Source for Meraki MX60/MX60W (Buckminster)
  3. *
  4. * Copyright (C) 2016 Chris Blake <chrisrblake93@gmail.com>
  5. *
  6. * Based on Cisco Meraki DTS extracted from release wired-12-217818
  7. *
  8. * This file is licensed under the terms of the GNU General Public
  9. * License version 2. This program is licensed "as is" without
  10. * any warranty of any kind, whether express or implied.
  11. */
  12. /dts-v1/;
  13. #include "apm82181.dtsi"
  14. / {
  15. model = "Meraki MX60/MX60W Security Appliance";
  16. compatible = "meraki,buckminster";
  17. aliases {
  18. serial0 = &UART1;
  19. };
  20. chosen {
  21. linux,stdout-path = "/plb/opb/serial@ef600400";
  22. };
  23. };
  24. &CRYPTO {
  25. status = "okay";
  26. };
  27. &PKA {
  28. status = "okay";
  29. };
  30. &TRNG {
  31. status = "okay";
  32. };
  33. &USBOTG0 {
  34. status = "okay";
  35. dr_mode = "host";
  36. };
  37. &EBC0 {
  38. /* Buckminster has 1GiB of NAND */
  39. ndfc@1,0 {
  40. status = "okay";
  41. nand {
  42. #address-cells = <1>;
  43. #size-cells = <1>;
  44. partition@0 {
  45. label = "u-boot";
  46. reg = <0x00000000 0x00100000>;
  47. read-only;
  48. };
  49. partition@100000 {
  50. label = "u-boot-env";
  51. reg = <0x00100000 0x00100000>;
  52. read-only;
  53. };
  54. partition@200000 {
  55. label = "oops";
  56. reg = <0x00200000 0x00040000>;
  57. };
  58. partition@240000 {
  59. label = "ubi";
  60. reg = <0x00240000 0x3fdc0000>;
  61. };
  62. all {
  63. label = "all";
  64. reg = <0x00000000 0x40000000>;
  65. };
  66. };
  67. };
  68. };
  69. &UART1 {
  70. status = "okay";
  71. };
  72. &GPIO0 {
  73. status = "okay";
  74. };
  75. &IIC0 {
  76. status = "okay";
  77. };
  78. &EMAC0 {
  79. status = "okay";
  80. phy-handle = <&phy0>;
  81. mdio {
  82. #address-cells = <1>;
  83. #size-cells = <0>;
  84. phy0: ethernet-phy@0 {
  85. device_type = "ethernet-phy";
  86. reg = <0>;
  87. qca,ar8327-initvals = <
  88. 0x0010 0x40000000
  89. 0x0624 0x007f7f7f
  90. 0x0004 0x07a00000 /* PAD0_MODE */
  91. 0x000c 0x01000000 /* PAD6_MODE */
  92. 0x007c 0x0000007e /* PORT0_STATUS */
  93. >;
  94. };
  95. };
  96. };
  97. &POB0 {
  98. gpio-leds {
  99. compatible = "gpio-leds";
  100. power-green {
  101. label = "mx60:green:power";
  102. gpios = <&GPIO0 18 GPIO_ACTIVE_LOW>;
  103. };
  104. power-orange {
  105. label = "mx60:orange:power";
  106. gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
  107. };
  108. wan-green {
  109. label = "mx60:green:wan";
  110. gpios = <&GPIO0 17 GPIO_ACTIVE_LOW>;
  111. };
  112. wan-orange {
  113. label = "mx60:orange:wan";
  114. gpios = <&GPIO0 15 GPIO_ACTIVE_LOW>;
  115. };
  116. lan1 {
  117. label = "mx60:green:lan1";
  118. gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
  119. };
  120. lan2 {
  121. label = "mx60:green:lan2";
  122. gpios = <&GPIO0 21 GPIO_ACTIVE_LOW>;
  123. };
  124. lan3 {
  125. label = "mx60:green:lan3";
  126. gpios = <&GPIO0 22 GPIO_ACTIVE_LOW>;
  127. };
  128. lan4 {
  129. label = "mx60:green:lan4";
  130. gpios = <&GPIO0 23 GPIO_ACTIVE_LOW>;
  131. };
  132. };
  133. gpio_keys_polled {
  134. compatible = "gpio-keys-polled";
  135. #address-cells = <1>;
  136. #size-cells = <0>;
  137. poll-interval = <60>; /* 3 * 20 = 60ms */
  138. autorepeat;
  139. button@1 {
  140. label = "Reset button";
  141. linux,code = <KEY_RESTART>;
  142. gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
  143. };
  144. };
  145. };
  146. &PCIE0 {
  147. /* Leave this enabled as u-boot on the MX60 will disable it for us */
  148. status = "okay";
  149. };
  150. &MSI {
  151. status = "okay";
  152. };