2
0

WNCE2001.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "WNCE2001", "ralink,rt3052-soc";
  6. model = "Netgear WNCE2001";
  7. chosen {
  8. bootargs = "console=ttyS0,115200";
  9. };
  10. gpio-leds {
  11. compatible = "gpio-leds";
  12. power-green {
  13. label = "wnce2001:green:power";
  14. gpios = <&gpio0 8 1>;
  15. };
  16. power-red {
  17. label = "wnce2001:red:power";
  18. gpios = <&gpio0 9 1>;
  19. };
  20. wlan-green {
  21. label = "wnce2001:green:wlan";
  22. gpios = <&gpio0 12 0>;
  23. };
  24. wlan-red {
  25. label = "wnce2001:red:wlan";
  26. gpios = <&gpio0 13 0>;
  27. };
  28. };
  29. gpio-keys-polled {
  30. compatible = "gpio-keys-polled";
  31. #address-cells = <1>;
  32. #size-cells = <0>;
  33. poll-interval = <20>;
  34. reset {
  35. label = "reset";
  36. gpios = <&gpio0 10 1>;
  37. linux,code = <KEY_RESTART>;
  38. };
  39. wps {
  40. label = "wps";
  41. gpios = <&gpio0 0 1>;
  42. linux,code = <KEY_WPS_BUTTON>;
  43. };
  44. rt {
  45. label = "rt";
  46. gpios = <&gpio0 11 1>;
  47. linux,code = <BTN_0>;
  48. };
  49. ap {
  50. label = "ap";
  51. gpios = <&gpio0 7 1>;
  52. linux,code = <BTN_1>;
  53. };
  54. };
  55. };
  56. &spi0 {
  57. status = "okay";
  58. m25p80@0 {
  59. #address-cells = <1>;
  60. #size-cells = <1>;
  61. compatible = "jedec,spi-nor";
  62. reg = <0>;
  63. linux,modalias = "m25p80", "mx25l3205d";
  64. spi-max-frequency = <10000000>;
  65. partition@0 {
  66. label = "u-boot";
  67. reg = <0x0 0x30000>;
  68. read-only;
  69. };
  70. factory: partition@30000 {
  71. label = "factory";
  72. reg = <0x30000 0x10000>;
  73. read-only;
  74. };
  75. partition@40000 {
  76. label = "config";
  77. reg = <0x40000 0x20000>;
  78. read-only;
  79. };
  80. partition@60000 {
  81. label = "language";
  82. reg = <0x60000 0x30000>;
  83. read-only;
  84. };
  85. partition@90000 {
  86. label = "pot";
  87. reg = <0x90000 0x10000>;
  88. read-only;
  89. };
  90. partition@a0000 {
  91. label = "checksum";
  92. reg = <0xa0000 0x10000>;
  93. };
  94. partition@b0000 {
  95. label = "firmware";
  96. reg = <0xb0000 0x350000>;
  97. };
  98. };
  99. };
  100. &pinctrl {
  101. state_default: pinctrl0 {
  102. gpio {
  103. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  104. ralink,function = "gpio";
  105. };
  106. };
  107. };
  108. &ethernet {
  109. mtd-mac-address = <&factory 0x28>;
  110. };
  111. &wmac {
  112. ralink,mtd-eeprom = <&factory 0>;
  113. };