ASL26555-16M.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "ASL26555", "ralink,rt3050-soc";
  6. model = "Alpha ASL26555 (16M)";
  7. gpio-keys-polled {
  8. compatible = "gpio-keys-polled";
  9. #address-cells = <1>;
  10. #size-cells = <0>;
  11. poll-interval = <20>;
  12. reset {
  13. label = "reset";
  14. gpios = <&gpio0 10 0>;
  15. linux,code = <KEY_RESTART>;
  16. };
  17. wps {
  18. label = "wps";
  19. gpios = <&gpio0 12 0>;
  20. linux,code = <KEY_WPS_BUTTON>;
  21. };
  22. };
  23. gpio-leds {
  24. compatible = "gpio-leds";
  25. eth {
  26. label = "asl26555:green:eth";
  27. gpios = <&gpio0 0 1>;
  28. };
  29. wan-red {
  30. label = "asl26555:red:wan";
  31. gpios = <&gpio0 1 0>;
  32. };
  33. wan-green {
  34. label = "asl26555:green:wan";
  35. gpios = <&gpio0 2 0>;
  36. };
  37. wlan {
  38. label = "asl26555:green:wlan";
  39. gpios = <&gpio0 7 0>;
  40. };
  41. power-green {
  42. label = "asl26555:green:power";
  43. gpios = <&gpio0 8 0>;
  44. };
  45. power-red {
  46. label = "asl26555:red:power";
  47. gpios = <&gpio0 9 0>;
  48. };
  49. 3g-green {
  50. label = "asl26555:green:3g";
  51. gpios = <&gpio0 14 1>;
  52. };
  53. 3g-red {
  54. label = "asl26555:red:3g";
  55. gpios = <&gpio0 17 1>;
  56. };
  57. };
  58. };
  59. &gpio0 {
  60. status = "okay";
  61. };
  62. &spi0 {
  63. status = "okay";
  64. m25p80@0 {
  65. #address-cells = <1>;
  66. #size-cells = <1>;
  67. compatible = "jedec,spi-nor";
  68. reg = <0>;
  69. linux,modalias = "m25p80", "s25sl12801";
  70. spi-max-frequency = <10000000>;
  71. partition@0 {
  72. label = "uboot";
  73. reg = <0x0 0x30000>;
  74. read-only;
  75. };
  76. partition@30000 {
  77. label = "uboot-env";
  78. reg = <0x30000 0x10000>;
  79. read-only;
  80. };
  81. partition@40000 {
  82. label = "factory";
  83. reg = <0x40000 0x10000>;
  84. read-only;
  85. };
  86. partition@50000 {
  87. label = "firmware";
  88. reg = <0x50000 0xf80000>;
  89. };
  90. partition@fd0000 {
  91. label = "cert";
  92. reg = <0xfd0000 0x10000>;
  93. read-only;
  94. };
  95. partition@fe0000 {
  96. label = "langpack";
  97. reg = <0xfe0000 0x10000>;
  98. read-only;
  99. };
  100. devdata: partition@ff0000 {
  101. label = "devdata";
  102. reg = <0xff0000 0x10000>;
  103. read-only;
  104. };
  105. };
  106. };
  107. &pinctrl {
  108. state_default: pinctrl0 {
  109. gpio {
  110. ralink,group = "i2c", "jtag", "rgmii", "mdio", "uartf";
  111. ralink,function = "gpio";
  112. };
  113. };
  114. };
  115. &ethernet {
  116. mtd-mac-address = <&devdata 0x4004>;
  117. };
  118. &esw {
  119. mediatek,portmap = <0x1e>;
  120. };
  121. &wmac {
  122. ralink,mtd-eeprom = <&devdata 0x4000>;
  123. };
  124. &otg {
  125. status = "okay";
  126. };