MOFI3500-3GN.dts 1.7 KB

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