WNCE2001.dts 2.3 KB

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