1
0

MR-102N.dts 2.1 KB

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