WHR-600D.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /dts-v1/;
  2. /include/ "mt7620a.dtsi"
  3. / {
  4. compatible = "ralink,mt7620a-soc";
  5. model = "Buffalo WHR-600D";
  6. palmbus@10000000 {
  7. gpio2: gpio@660 {
  8. status = "okay";
  9. };
  10. spi@b00 {
  11. status = "okay";
  12. m25p80@0 {
  13. #address-cells = <1>;
  14. #size-cells = <1>;
  15. compatible = "en25q64";
  16. reg = <0 0>;
  17. linux,modalias = "m25p80", "mx25l6405d";
  18. spi-max-frequency = <10000000>;
  19. partition@0 {
  20. label = "u-boot";
  21. reg = <0x0 0x30000>;
  22. read-only;
  23. };
  24. partition@30000 {
  25. label = "u-boot-env";
  26. reg = <0x30000 0x10000>;
  27. read-only;
  28. };
  29. factory: partition@40000 {
  30. label = "factory";
  31. reg = <0x40000 0x10000>;
  32. read-only;
  33. };
  34. partition@50000 {
  35. label = "firmware";
  36. reg = <0x50000 0x5b0000>;
  37. };
  38. partition@600000 {
  39. label = "usercfg";
  40. reg = <0x600000 0x100000>;
  41. };
  42. };
  43. };
  44. };
  45. pinctrl {
  46. state_default: pinctrl0 {
  47. gpio {
  48. ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
  49. ralink,function = "gpio";
  50. };
  51. };
  52. };
  53. ethernet@10100000 {
  54. pinctrl-names = "default";
  55. pinctrl-0 = <&ephy_pins>;
  56. mtd-mac-address = <&factory 0x4>;
  57. ralink,port-map = "llllw";
  58. };
  59. gsw@10110000 {
  60. ralink,port4 = "ephy";
  61. };
  62. wmac@10180000 {
  63. ralink,mtd-eeprom = <&factory 0>;
  64. };
  65. pcie@10140000 {
  66. status = "okay";
  67. };
  68. gpio-leds {
  69. compatible = "gpio-leds";
  70. power {
  71. label = "buffalo:red:power";
  72. gpios = <&gpio0 7 1>;
  73. };
  74. status {
  75. label = "buffalo:green:status";
  76. gpios = <&gpio0 8 1>;
  77. };
  78. power2 {
  79. label = "buffalo:green:power";
  80. gpios = <&gpio0 9 1>;
  81. };
  82. status2 {
  83. label = "buffalo:orange:status";
  84. gpios = <&gpio0 10 1>;
  85. };
  86. internet {
  87. label = "buffalo:green:internet";
  88. gpios = <&gpio2 17 1>;
  89. };
  90. router {
  91. label = "buffalo:green:router";
  92. gpios = <&gpio2 18 1>;
  93. };
  94. router2 {
  95. label = "buffalo:orange:router";
  96. gpios = <&gpio2 19 1>;
  97. };
  98. };
  99. gpio-keys-polled {
  100. compatible = "gpio-keys-polled";
  101. #address-cells = <1>;
  102. #size-cells = <0>;
  103. poll-interval = <20>;
  104. s1 {
  105. label = "reset";
  106. gpios = <&gpio2 12 1>;
  107. linux,code = <0x100>;
  108. };
  109. s2 {
  110. label = "aoss";
  111. gpios = <&gpio2 13 1>;
  112. linux,code = <0x101>;
  113. };
  114. s3 {
  115. label = "ap";
  116. gpios = <&gpio2 14 1>;
  117. linux,code = <0x102>;
  118. };
  119. s4 {
  120. label = "bridge";
  121. gpios = <&gpio2 15 1>;
  122. linux,code = <0x103>;
  123. };
  124. };
  125. };