3G-6200N.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "edimax,3g-6200n", "ralink,rt3050-soc";
  7. model = "Edimax 3g-6200n";
  8. aliases {
  9. led-boot = &led_power;
  10. led-failsafe = &led_power;
  11. led-running = &led_power;
  12. led-upgrade = &led_power;
  13. };
  14. cfi@1f000000 {
  15. compatible = "cfi-flash";
  16. reg = <0x1f000000 0x800000>;
  17. bank-width = <2>;
  18. device-width = <2>;
  19. partitions {
  20. compatible = "fixed-partitions";
  21. #address-cells = <1>;
  22. #size-cells = <1>;
  23. partition@0 {
  24. label = "u-boot";
  25. reg = <0x0 0x30000>;
  26. read-only;
  27. };
  28. partition@30000 {
  29. label = "u-boot-env";
  30. reg = <0x30000 0x10000>;
  31. read-only;
  32. };
  33. factory: partition@40000 {
  34. label = "factory";
  35. reg = <0x40000 0x10000>;
  36. read-only;
  37. };
  38. partition@3e0000 {
  39. label = "cimage";
  40. reg = <0x3e0000 0x20000>;
  41. read-only;
  42. };
  43. partition@50000 {
  44. label = "firmware";
  45. reg = <0x50000 0x390000>;
  46. };
  47. };
  48. };
  49. gpio-leds {
  50. compatible = "gpio-leds";
  51. led_power: power {
  52. label = "3g-6200n:green:power";
  53. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  54. };
  55. wlan {
  56. label = "3g-6200n:amber:wlan";
  57. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  58. };
  59. 3g {
  60. label = "3g-6200n:blue:3g";
  61. gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
  62. trigger-sources = <&otg_port1>;
  63. linux,default-trigger = "usbport";
  64. };
  65. };
  66. gpio-keys-polled {
  67. compatible = "gpio-keys-polled";
  68. poll-interval = <20>;
  69. reset {
  70. label = "reset";
  71. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  72. linux,code = <KEY_RESTART>;
  73. };
  74. rfkill {
  75. label = "wlanswitch";
  76. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  77. linux,code = <KEY_RFKILL>;
  78. };
  79. };
  80. };
  81. &pinctrl {
  82. state_default: pinctrl0 {
  83. gpio {
  84. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  85. ralink,function = "gpio";
  86. };
  87. };
  88. };
  89. &ethernet {
  90. mtd-mac-address = <&factory 0x4>;
  91. };
  92. &esw {
  93. mediatek,portmap = <0x2f>;
  94. };
  95. &wmac {
  96. ralink,mtd-eeprom = <&factory 0>;
  97. };
  98. &otg {
  99. status = "okay";
  100. };