MOFI3500-3GN.dts 1.6 KB

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