ASL26555-16M.dts 2.2 KB

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