WNCE2001.dts 2.1 KB

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