kirkwood-mv88f6281gtw-ge.dts 2.8 KB

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