MR-102N.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "MR-102N", "ralink,rt3052-soc";
  6. model = "AXIMCom MR-102N";
  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 0x790000>;
  32. };
  33. partition@7e0000 {
  34. label = "nvram";
  35. reg = <0x7e0000 0x10000>;
  36. };
  37. partition@7f0000 {
  38. label = "nvram_backup";
  39. reg = <0x7f0000 0x10000>;
  40. };
  41. };
  42. gpio-leds {
  43. compatible = "gpio-leds";
  44. usb {
  45. label = "mr-102n:green:usb";
  46. gpios = <&gpio0 8 1>;
  47. };
  48. status {
  49. label = "mr-102n:amber:status";
  50. gpios = <&gpio0 9 1>;
  51. };
  52. wlan {
  53. label = "mr-102n:green:wlan";
  54. gpios = <&gpio0 11 1>;
  55. };
  56. };
  57. gpio-keys-polled {
  58. compatible = "gpio-keys-polled";
  59. #address-cells = <1>;
  60. #size-cells = <0>;
  61. poll-interval = <20>;
  62. reset {
  63. label = "reset";
  64. gpios = <&gpio0 13 1>;
  65. linux,code = <KEY_RESTART>;
  66. };
  67. wps {
  68. label = "wps";
  69. gpios = <&gpio0 18 1>;
  70. linux,code = <KEY_WPS_BUTTON>;
  71. };
  72. };
  73. };
  74. &pinctrl {
  75. state_default: pinctrl0 {
  76. gpio {
  77. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  78. ralink,function = "gpio";
  79. };
  80. };
  81. };
  82. &ethernet {
  83. mtd-mac-address = <&factory 0x4>;
  84. };
  85. &esw {
  86. status = "okay";
  87. #mediatek,portmap = <0x3e>;
  88. mediatek,portmap = <0x2f>;
  89. };
  90. &wmac {
  91. ralink,mtd-eeprom = <&factory 0>;
  92. };
  93. &otg {
  94. status = "okay";
  95. };