kirkwood-mv88f6281gtw-ge.dts 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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. };
  27. ocp@f1000000 {
  28. pinctrl@10000 {
  29. pmx_usb_led: pmx-usb-led {
  30. marvell,pins = "mpp12";
  31. marvell,function = "gpo";
  32. };
  33. pmx_leds: pmx-leds {
  34. marvell,pins = "mpp20", "mpp21";
  35. marvell,function = "gpio";
  36. };
  37. pmx_keys: pmx-keys {
  38. marvell,pins = "mpp46", "mpp47";
  39. marvell,function = "gpio";
  40. };
  41. };
  42. spi@10600 {
  43. pinctrl-0 = <&pmx_spi>;
  44. pinctrl-names = "default";
  45. status = "okay";
  46. flash@0 {
  47. #address-cells = <1>;
  48. #size-cells = <1>;
  49. compatible = "mx25l12805d";
  50. reg = <0>;
  51. spi-max-frequency = <50000000>;
  52. mode = <0>;
  53. };
  54. };
  55. serial@12000 {
  56. pinctrl-0 = <&pmx_uart0>;
  57. pinctrl-names = "default";
  58. clock-frequency = <200000000>;
  59. status = "ok";
  60. };
  61. ehci@50000 {
  62. status = "okay";
  63. };
  64. pcie-controller {
  65. status = "okay";
  66. pcie@1,0 {
  67. status = "okay";
  68. };
  69. };
  70. };
  71. gpio-leds {
  72. compatible = "gpio-leds";
  73. pinctrl-0 = <&pmx_leds &pmx_usb_led>;
  74. pinctrl-names = "default";
  75. green-status {
  76. label = "gtw:green:Status";
  77. gpios = <&gpio0 20 0>;
  78. };
  79. red-status {
  80. label = "gtw:red:Status";
  81. gpios = <&gpio0 21 0>;
  82. };
  83. green-usb {
  84. label = "gtw:green:USB";
  85. gpios = <&gpio0 12 0>;
  86. };
  87. };
  88. gpio_keys {
  89. compatible = "gpio-keys";
  90. #address-cells = <1>;
  91. #size-cells = <0>;
  92. pinctrl-0 = <&pmx_keys>;
  93. pinctrl-names = "default";
  94. button@1 {
  95. label = "SWR Button";
  96. linux,code = <0x198>; /* KEY_RESTART */
  97. gpios = <&gpio1 15 1>;
  98. };
  99. button@2 {
  100. label = "WPS Button";
  101. linux,code = <0x211>; /* KEY_WPS_BUTTON */
  102. gpios = <&gpio1 14 1>;
  103. };
  104. };
  105. };