1
0

3G-6200NL.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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-6200nl", "ralink,rt3050-soc";
  7. model = "Edimax 3g-6200nl";
  8. aliases {
  9. led-boot = &led_internet;
  10. led-failsafe = &led_internet;
  11. led-running = &led_internet;
  12. led-upgrade = &led_internet;
  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_internet: internet {
  52. label = "3g-6200nl:green:internet";
  53. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  54. };
  55. wlan {
  56. label = "3g-6200nl:green:wlan";
  57. gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
  58. };
  59. };
  60. gpio-keys-polled {
  61. compatible = "gpio-keys-polled";
  62. poll-interval = <20>;
  63. reset {
  64. label = "reset";
  65. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  66. linux,code = <KEY_RESTART>;
  67. };
  68. };
  69. };
  70. &pinctrl {
  71. state_default: pinctrl0 {
  72. gpio {
  73. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  74. ralink,function = "gpio";
  75. };
  76. };
  77. };
  78. &ethernet {
  79. mtd-mac-address = <&factory 0x4>;
  80. };
  81. &esw {
  82. mediatek,portdisable = <0x37>;
  83. };
  84. &wmac {
  85. ralink,mtd-eeprom = <&factory 0>;
  86. };
  87. &otg {
  88. status = "okay";
  89. };