WR6202.dts 1.8 KB

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