armada-385-linksys-venom.dts 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213
  1. /*
  2. * Device Tree file for the Linksys WRT32X (Venom)
  3. *
  4. * Copyright (C) 2017 Imre Kaloz <[email protected]>
  5. *
  6. *
  7. * This file is dual-licensed: you can use it either under the terms
  8. * of the GPL or the X11 license, at your option. Note that this dual
  9. * licensing only applies to this file, and not this project as a
  10. * whole.
  11. *
  12. * a) This file is licensed under the terms of the GNU General Public
  13. * License version 2. This program is licensed "as is" without
  14. * any warranty of any kind, whether express or implied.
  15. *
  16. * Or, alternatively,
  17. *
  18. * b) Permission is hereby granted, free of charge, to any person
  19. * obtaining a copy of this software and associated documentation
  20. * files (the "Software"), to deal in the Software without
  21. * restriction, including without limitation the rights to use,
  22. * copy, modify, merge, publish, distribute, sublicense, and/or
  23. * sell copies of the Software, and to permit persons to whom the
  24. * Software is furnished to do so, subject to the following
  25. * conditions:
  26. *
  27. * The above copyright notice and this permission notice shall be
  28. * included in all copies or substantial portions of the Software.
  29. *
  30. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  31. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  32. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  33. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  34. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  35. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  36. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  37. * OTHER DEALINGS IN THE SOFTWARE.
  38. */
  39. /dts-v1/;
  40. #include <dt-bindings/gpio/gpio.h>
  41. #include <dt-bindings/input/input.h>
  42. #include "armada-385-linksys.dtsi"
  43. / {
  44. model = "Linksys WRT32X";
  45. compatible = "linksys,wrt32x", "linksys,venom", "linksys,armada385",
  46. "marvell,armada385", "marvell,armada380";
  47. chosen {
  48. bootargs = "console=ttyS0,115200";
  49. stdout-path = "serial0:115200n8";
  50. append-rootblock = "root=/dev/mtdblock";
  51. };
  52. };
  53. &expander0 {
  54. wan_amber@0 {
  55. label = "venom:amber:wan";
  56. reg = <0x0>;
  57. };
  58. wan_blue@1 {
  59. label = "venom:blue:wan";
  60. reg = <0x1>;
  61. };
  62. usb2@5 {
  63. label = "venom:blue:usb2";
  64. reg = <0x5>;
  65. };
  66. usb3_1@6 {
  67. label = "venom:blue:usb3_1";
  68. reg = <0x6>;
  69. };
  70. usb3_2@7 {
  71. label = "venom:blue:usb3_2";
  72. reg = <0x7>;
  73. };
  74. wps_blue@8 {
  75. label = "venom:blue:wps";
  76. reg = <0x8>;
  77. };
  78. wps_amber@9 {
  79. label = "venom:amber:wps";
  80. reg = <0x9>;
  81. };
  82. };
  83. &gpio_leds {
  84. power {
  85. gpios = <&gpio1 24 GPIO_ACTIVE_HIGH>;
  86. label = "venom:blue:power";
  87. };
  88. sata {
  89. gpios = <&gpio1 21 GPIO_ACTIVE_LOW>;
  90. label = "venom:blue:sata";
  91. };
  92. wlan_2g {
  93. gpios = <&gpio1 13 GPIO_ACTIVE_LOW>;
  94. label = "venom:blue:wlan_2g";
  95. };
  96. wlan_5g {
  97. gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
  98. label = "venom:blue:wlan_5g";
  99. };
  100. };
  101. &gpio_leds_pins {
  102. marvell,pins = "mpp21", "mpp45", "mpp46", "mpp56";
  103. };
  104. &nand {
  105. /* Spansion S34ML02G2 256MiB, OEM Layout */
  106. partitions {
  107. compatible = "fixed-partitions";
  108. #address-cells = <1>;
  109. #size-cells = <1>;
  110. partition@0 {
  111. label = "u-boot";
  112. reg = <0x0000000 0x200000>; /* 2MB */
  113. read-only;
  114. };
  115. partition@200000 {
  116. label = "u_env";
  117. reg = <0x200000 0x20000>; /* 128KB */
  118. };
  119. partition@220000 {
  120. label = "s_env";
  121. reg = <0x220000 0x40000>; /* 256KB */
  122. };
  123. partition@180000 {
  124. label = "unused_area";
  125. reg = <0x260000 0x5c0000>; /* 5.75MB */
  126. };
  127. partition@7e0000 {
  128. label = "devinfo";
  129. reg = <0x7e0000 0x40000>; /* 256KB */
  130. read-only;
  131. };
  132. /* kernel1 overlaps with rootfs1 by design */
  133. partition@900000 {
  134. label = "kernel1";
  135. reg = <0x900000 0x7b00000>; /* 123MB */
  136. };
  137. partition@f00000 {
  138. label = "rootfs1";
  139. reg = <0xf00000 0x7500000>; /* 117MB */
  140. };
  141. /* kernel2 overlaps with rootfs2 by design */
  142. partition@8400000 {
  143. label = "kernel2";
  144. reg = <0x8400000 0x7b00000>; /* 123MB */
  145. };
  146. partition@8a00000 {
  147. label = "rootfs2";
  148. reg = <0x8a00000 0x7500000>; /* 117MB */
  149. };
  150. /* last MB is for the BBT, not writable */
  151. partition@ff00000 {
  152. label = "BBT";
  153. reg = <0xff00000 0x100000>;
  154. };
  155. };
  156. };
  157. &pcie1 {
  158. mwlwifi {
  159. marvell,chainmask = <4 4>;
  160. };
  161. };
  162. &pcie2 {
  163. mwlwifi {
  164. marvell,chainmask = <4 4>;
  165. };
  166. };
  167. &sdhci {
  168. pinctrl-names = "default";
  169. pinctrl-0 = <&sdhci_pins>;
  170. no-1-8-v;
  171. non-removable;
  172. wp-inverted;
  173. bus-width = <8>;
  174. status = "okay";
  175. };
  176. &usb3_1_vbus {
  177. gpio = <&gpio1 12 GPIO_ACTIVE_HIGH>;
  178. };
  179. &usb3_1_vbus_pins {
  180. marvell,pins = "mpp44";
  181. };