1
0

WNCE2001.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  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. spi-max-frequency = <10000000>;
  64. partition@0 {
  65. label = "u-boot";
  66. reg = <0x0 0x30000>;
  67. read-only;
  68. };
  69. factory: partition@30000 {
  70. label = "factory";
  71. reg = <0x30000 0x10000>;
  72. read-only;
  73. };
  74. partition@40000 {
  75. label = "config";
  76. reg = <0x40000 0x20000>;
  77. read-only;
  78. };
  79. partition@60000 {
  80. label = "language";
  81. reg = <0x60000 0x30000>;
  82. read-only;
  83. };
  84. partition@90000 {
  85. label = "pot";
  86. reg = <0x90000 0x10000>;
  87. read-only;
  88. };
  89. partition@a0000 {
  90. label = "checksum";
  91. reg = <0xa0000 0x10000>;
  92. };
  93. partition@b0000 {
  94. label = "firmware";
  95. reg = <0xb0000 0x350000>;
  96. };
  97. };
  98. };
  99. &pinctrl {
  100. state_default: pinctrl0 {
  101. gpio {
  102. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  103. ralink,function = "gpio";
  104. };
  105. };
  106. };
  107. &ethernet {
  108. mtd-mac-address = <&factory 0x28>;
  109. };
  110. &wmac {
  111. ralink,mtd-eeprom = <&factory 0>;
  112. };