WNCE2001.dts 2.4 KB

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