WNCE2001.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "netgear,wnce2001", "ralink,rt3052-soc";
  7. model = "Netgear WNCE2001";
  8. chosen {
  9. bootargs = "console=ttyS0,115200";
  10. };
  11. gpio-leds {
  12. compatible = "gpio-leds";
  13. power-green {
  14. label = "wnce2001:green:power";
  15. gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
  16. };
  17. power-red {
  18. label = "wnce2001:red:power";
  19. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  20. };
  21. wlan-green {
  22. label = "wnce2001:green:wlan";
  23. gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
  24. };
  25. wlan-red {
  26. label = "wnce2001:red:wlan";
  27. gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
  28. };
  29. };
  30. gpio-keys-polled {
  31. compatible = "gpio-keys-polled";
  32. #address-cells = <1>;
  33. #size-cells = <0>;
  34. poll-interval = <20>;
  35. reset {
  36. label = "reset";
  37. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  38. linux,code = <KEY_RESTART>;
  39. };
  40. wps {
  41. label = "wps";
  42. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  43. linux,code = <KEY_WPS_BUTTON>;
  44. };
  45. rt {
  46. label = "rt";
  47. gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
  48. linux,code = <BTN_0>;
  49. };
  50. ap {
  51. label = "ap";
  52. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  53. linux,code = <BTN_1>;
  54. };
  55. };
  56. };
  57. &spi0 {
  58. status = "okay";
  59. m25p80@0 {
  60. #address-cells = <1>;
  61. #size-cells = <1>;
  62. compatible = "jedec,spi-nor";
  63. reg = <0>;
  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. };