MR-102N.dts 1.7 KB

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