MR24.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. /*
  2. * Device Tree Source for Meraki MR24 (Ikarem)
  3. *
  4. * Copyright (C) 2016 Chris Blake <chrisrblake93@gmail.com>
  5. *
  6. * Based on Cisco Meraki GPL Release r23-20150601 MR24 DTS
  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 MR24 Access Point";
  16. compatible = "meraki,ikarem";
  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. &EBC0 {
  34. /* Ikarem has 32MB of NAND */
  35. ndfc@1,0 {
  36. status = "okay";
  37. /* 32 MiB NAND Flash */
  38. nand {
  39. #address-cells = <1>;
  40. #size-cells = <1>;
  41. partition@0 {
  42. label = "u-boot";
  43. reg = <0x00000000 0x00170000>;
  44. read-only;
  45. };
  46. partition@170000 {
  47. label = "oops";
  48. reg = <0x00170000 0x00010000>;
  49. };
  50. partition@180000 {
  51. label = "ubi";
  52. reg = <0x00180000 0x01e80000>;
  53. };
  54. };
  55. };
  56. };
  57. &UART1 {
  58. status = "okay";
  59. };
  60. &GPIO0 {
  61. status = "okay";
  62. };
  63. &IIC0 {
  64. status = "okay";
  65. /* Boot ROM is at 0x52-0x53, do not touch */
  66. /* Unknown chip at 0x6e, not sure what it is */
  67. };
  68. &EMAC0 {
  69. status = "okay";
  70. };
  71. &POB0 {
  72. gpio-leds {
  73. compatible = "gpio-leds";
  74. power-green {
  75. label = "mr24:green:power";
  76. gpios = <&GPIO0 18 GPIO_ACTIVE_LOW>;
  77. };
  78. power-orange {
  79. label = "mr24:orange:power";
  80. gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
  81. };
  82. lan {
  83. label = "mr24:green:wan";
  84. gpios = <&GPIO0 17 GPIO_ACTIVE_LOW>;
  85. };
  86. ssi-0 {
  87. label = "mr24:green:wifi1";
  88. gpios = <&GPIO0 23 GPIO_ACTIVE_LOW>;
  89. };
  90. ssi-1 {
  91. label = "mr24:green:wifi2";
  92. gpios = <&GPIO0 22 GPIO_ACTIVE_LOW>;
  93. };
  94. ssi-2 {
  95. label = "mr24:green:wifi3";
  96. gpios = <&GPIO0 21 GPIO_ACTIVE_LOW>;
  97. };
  98. ssi-3 {
  99. label = "mr24:green:wifi4";
  100. gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
  101. };
  102. };
  103. gpio_keys_polled {
  104. compatible = "gpio-keys-polled";
  105. #address-cells = <1>;
  106. #size-cells = <0>;
  107. poll-interval = <60>; /* 3 * 20 = 60ms */
  108. autorepeat;
  109. button@1 {
  110. label = "Reset button";
  111. linux,code = <KEY_RESTART>;
  112. gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
  113. };
  114. };
  115. };
  116. &PCIE0 {
  117. status = "okay";
  118. };
  119. &MSI {
  120. status = "okay";
  121. };