MR-102N.dts 1.7 KB

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