WR6202.dts 1.6 KB

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