WR6202.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "WR6202", "ralink,rt3052-soc";
  6. model = "AWB WR6202";
  7. chosen {
  8. bootargs = "console=ttyS0,115200";
  9. };
  10. gpio-leds {
  11. compatible = "gpio-leds";
  12. wps {
  13. label = "wr6202:blue:wps";
  14. gpios = <&gpio0 14 1>;
  15. };
  16. 3g {
  17. label = "wr6202:blue:3g";
  18. gpios = <&gpio0 13 1>;
  19. };
  20. };
  21. gpio-keys-polled {
  22. compatible = "gpio-keys-polled";
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. poll-interval = <20>;
  26. reset {
  27. label = "reset";
  28. gpios = <&gpio0 10 1>;
  29. linux,code = <KEY_RESTART>;
  30. };
  31. wps {
  32. label = "wps";
  33. gpios = <&gpio0 0 1>;
  34. linux,code = <KEY_WPS_BUTTON>;
  35. };
  36. };
  37. cfi@1f000000 {
  38. compatible = "cfi-flash";
  39. reg = <0x1f000000 0x800000>;
  40. bank-width = <2>;
  41. device-width = <2>;
  42. #address-cells = <1>;
  43. #size-cells = <1>;
  44. partition@0 {
  45. label = "u-boot";
  46. reg = <0x0 0x30000>;
  47. read-only;
  48. };
  49. partition@30000 {
  50. label = "u-boot-env";
  51. reg = <0x30000 0x10000>;
  52. read-only;
  53. };
  54. factory: partition@40000 {
  55. label = "factory";
  56. reg = <0x40000 0x10000>;
  57. read-only;
  58. };
  59. partition@50000 {
  60. label = "firmware";
  61. reg = <0x50000 0x7b0000>;
  62. };
  63. };
  64. gpio_export {
  65. compatible = "gpio-export";
  66. #size-cells = <0>;
  67. usb {
  68. gpio-export,name = "usb";
  69. gpio-export,output = <0>;
  70. gpios = <&gpio0 11 0>;
  71. };
  72. };
  73. };
  74. &pinctrl {
  75. state_default: pinctrl0 {
  76. gpio {
  77. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  78. ralink,function = "gpio";
  79. };
  80. };
  81. };
  82. &ethernet {
  83. mtd-mac-address = <&factory 0x28>;
  84. };
  85. &esw {
  86. mediatek,portmap = <0x3e>;
  87. };
  88. &wmac {
  89. ralink,mtd-eeprom = <&factory 0>;
  90. };
  91. &otg {
  92. status = "okay";
  93. };