kirkwood-mv88f6281gtw-ge.dts 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  1. /*
  2. * Marvell 88F6281 GTW GE Board
  3. *
  4. * Lennert Buytenhek <buytenh@marvell.com>
  5. * Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  6. *
  7. * This file is licensed under the terms of the GNU General Public
  8. * License version 2. This program is licensed "as is" without any
  9. * warranty of any kind, whether express or implied.
  10. *
  11. * This file contains the definitions that are common between the 6281
  12. * and 6282 variants of the Marvell Kirkwood Development Board.
  13. */
  14. /dts-v1/;
  15. #include "kirkwood.dtsi"
  16. #include "kirkwood-6281.dtsi"
  17. / {
  18. model = "Marvell 88F6281 GTW GE Board";
  19. compatible = "marvell,mv88f6281gtw-ge", "marvell,kirkwood-88f6281", "marvell,kirkwood";
  20. memory {
  21. device_type = "memory";
  22. reg = <0x00000000 0x20000000>; /* 512 MB */
  23. };
  24. chosen {
  25. bootargs = "console=ttyS0,115200n8 earlyprintk";
  26. stdout-path = &uart0;
  27. };
  28. mbus {
  29. pcie-controller {
  30. status = "okay";
  31. pcie@1,0 {
  32. status = "okay";
  33. };
  34. };
  35. };
  36. ocp@f1000000 {
  37. pin-controller@10000 {
  38. pmx_usb_led: pmx-usb-led {
  39. marvell,pins = "mpp12";
  40. marvell,function = "gpo";
  41. };
  42. pmx_leds: pmx-leds {
  43. marvell,pins = "mpp20", "mpp21";
  44. marvell,function = "gpio";
  45. };
  46. pmx_keys: pmx-keys {
  47. marvell,pins = "mpp46", "mpp47";
  48. marvell,function = "gpio";
  49. };
  50. };
  51. spi@10600 {
  52. status = "okay";
  53. flash@0 {
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. compatible = "mxicy,mx25l12805d";
  57. reg = <0>;
  58. spi-max-frequency = <50000000>;
  59. mode = <0>;
  60. };
  61. };
  62. serial@12000 {
  63. status = "okay";
  64. };
  65. ehci@50000 {
  66. status = "okay";
  67. };
  68. };
  69. gpio-leds {
  70. compatible = "gpio-leds";
  71. pinctrl-0 = <&pmx_leds &pmx_usb_led>;
  72. pinctrl-names = "default";
  73. green-status {
  74. label = "gtw:green:Status";
  75. gpios = <&gpio0 20 GPIO_ACTIVE_HIGH>;
  76. };
  77. red-status {
  78. label = "gtw:red:Status";
  79. gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;
  80. };
  81. green-usb {
  82. label = "gtw:green:USB";
  83. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  84. };
  85. };
  86. gpio_keys {
  87. compatible = "gpio-keys";
  88. #address-cells = <1>;
  89. #size-cells = <0>;
  90. pinctrl-0 = <&pmx_keys>;
  91. pinctrl-names = "default";
  92. button@1 {
  93. label = "SWR Button";
  94. linux,code = <KEY_RESTART>;
  95. gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
  96. };
  97. button@2 {
  98. label = "WPS Button";
  99. linux,code = <KEY_WPS_BUTTON>;
  100. gpios = <&gpio1 14 GPIO_ACTIVE_LOW>;
  101. };
  102. };
  103. dsa@0 {
  104. compatible = "marvell,dsa";
  105. #address-cells = <1>;
  106. #size-cells = <0>;
  107. dsa,ethernet = <&eth0port>;
  108. dsa,mii-bus = <&mdio>;
  109. switch@0 {
  110. #address-cells = <1>;
  111. #size-cells = <0>;
  112. reg = <0 0>; /* MDIO address 0, switch 0 in tree */
  113. port@0 {
  114. reg = <0>;
  115. label = "lan1";
  116. };
  117. port@1 {
  118. reg = <1>;
  119. label = "lan2";
  120. };
  121. port@2 {
  122. reg = <2>;
  123. label = "lan3";
  124. };
  125. port@3 {
  126. reg = <3>;
  127. label = "lan4";
  128. };
  129. port@4 {
  130. reg = <4>;
  131. label = "wan";
  132. };
  133. port@5 {
  134. reg = <5>;
  135. label = "cpu";
  136. };
  137. };
  138. };
  139. };
  140. &mdio {
  141. status = "okay";
  142. };
  143. &eth0 {
  144. status = "okay";
  145. ethernet0-port@0 {
  146. speed = <1000>;
  147. duplex = <1>;
  148. };
  149. };