WHR-300HP2.dts 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. /dts-v1/;
  2. /include/ "mt7620a.dtsi"
  3. / {
  4. compatible = "ralink,mt7620a-soc";
  5. model = "Buffalo WHR-300HP2";
  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", "s25fl064k";
  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 0x7b0000>;
  37. };
  38. };
  39. };
  40. };
  41. pinctrl {
  42. state_default: pinctrl0 {
  43. gpio {
  44. ralink,group = "i2c", "uartf", "rgmii1", "rgmii2", "wled", "nd_sd";
  45. ralink,function = "gpio";
  46. };
  47. pa {
  48. ralink,group = "pa";
  49. ralink,function = "pa";
  50. };
  51. };
  52. };
  53. ethernet@10100000 {
  54. pinctrl-names = "default";
  55. pinctrl-0 = <&ephy_pins>;
  56. ralink,port-map = "llllw";
  57. };
  58. gsw@10110000 {
  59. ralink,port4 = "ephy";
  60. };
  61. wmac@10180000 {
  62. ralink,mtd-eeprom = <&factory 0>;
  63. };
  64. gpio-leds {
  65. compatible = "gpio-leds";
  66. power {
  67. label = "buffalo:red:power";
  68. gpios = <&gpio0 7 1>;
  69. };
  70. wifi {
  71. label = "buffalo:green:wifi";
  72. gpios = <&gpio0 8 1>;
  73. };
  74. power2 {
  75. label = "buffalo:green:power";
  76. gpios = <&gpio0 9 1>;
  77. };
  78. wifi2 {
  79. label = "buffalo:orange:wifi";
  80. gpios = <&gpio0 10 1>;
  81. };
  82. internet {
  83. label = "buffalo:green:internet";
  84. gpios = <&gpio2 17 1>;
  85. };
  86. router {
  87. label = "buffalo:green:router";
  88. gpios = <&gpio2 18 1>;
  89. };
  90. router2 {
  91. label = "buffalo:orange:router";
  92. gpios = <&gpio2 19 1>;
  93. };
  94. };
  95. gpio-keys-polled {
  96. compatible = "gpio-keys-polled";
  97. #address-cells = <1>;
  98. #size-cells = <0>;
  99. poll-interval = <20>;
  100. reset {
  101. label = "reset";
  102. gpios = <&gpio2 12 1>;
  103. linux,code = <0x198>;
  104. };
  105. aoss {
  106. label = "aoss";
  107. gpios = <&gpio2 13 1>;
  108. linux,code = <0x211>;
  109. };
  110. ap {
  111. label = "ap";
  112. gpios = <&gpio2 14 1>;
  113. linux,code = <0x100>;
  114. linux,input-type = <5>; /* EV_SW */
  115. };
  116. bridge {
  117. label = "bridge";
  118. gpios = <&gpio2 15 1>;
  119. linux,code = <0x100>;
  120. linux,input-type = <5>; /* EV_SW */
  121. };
  122. };
  123. };