WNCE2001.dts 2.0 KB

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