2
0

WZR-AGL300NH.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. /dts-v1/;
  2. #include "rt2880.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. #address-cells = <1>;
  6. #size-cells = <1>;
  7. compatible = "WZR-AGL300NH", "ralink,rt2880-soc";
  8. model = "Buffalo WZR-AGL300NH";
  9. pci@440000 {
  10. status = "ok";
  11. };
  12. cfi@1f000000 {
  13. compatible = "cfi-flash";
  14. reg = <0x1f000000 0x800000>;
  15. bank-width = <2>;
  16. device-width = <2>;
  17. #address-cells = <1>;
  18. #size-cells = <1>;
  19. partition@0 {
  20. label = "uboot";
  21. reg = <0x0 0x30000>;
  22. read-only;
  23. };
  24. partition@30000 {
  25. label = "uboot-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 0x3b0000>;
  37. };
  38. };
  39. rtl8366s {
  40. compatible = "realtek,rtl8366s";
  41. gpio-sda = <&gpio0 1 0>;
  42. gpio-sck = <&gpio0 2 0>;
  43. };
  44. gpio-keys-polled {
  45. compatible = "gpio-keys-polled";
  46. #address-cells = <1>;
  47. #size-cells = <0>;
  48. poll-interval = <100>;
  49. wps {
  50. label = "wps";
  51. gpios = <&gpio0 0 1>;
  52. linux,code = <KEY_WPS_BUTTON>;
  53. };
  54. router {
  55. label = "router_switch";
  56. gpios = <&gpio0 7 0>;
  57. linux,code = <BTN_0>;
  58. };
  59. reset {
  60. label = "reset";
  61. gpios = <&gpio0 9 1>;
  62. linux,code = <KEY_RESTART>;
  63. };
  64. };
  65. gpio-leds {
  66. compatible = "gpio-leds";
  67. router {
  68. label = "wzr-agl300nh:green:router";
  69. gpios = <&gpio0 8 1>;
  70. };
  71. diag {
  72. label = "wzr-agl300nh:red:diag";
  73. gpios = <&gpio0 12 1>;
  74. };
  75. security_g {
  76. label = "wzr-agl300nh:orange:security_g";
  77. gpios = <&gpio0 11 1>;
  78. };
  79. security_n {
  80. label = "wzr-agl300nh:orange:security_n";
  81. gpios = <&gpio0 13 1>;
  82. };
  83. };
  84. };
  85. &gpio0 {
  86. status = "okay";
  87. };
  88. &pinctrl {
  89. state_default: pinctrl0 {
  90. gpio {
  91. ralink,group = "i2c", "uartlite", "mdio";
  92. ralink,function = "gpio";
  93. };
  94. };
  95. };
  96. &ethernet {
  97. status = "okay";
  98. mtd-mac-address = <&factory 0x4>;
  99. port@0 {
  100. mediatek,fixed-link = <1000 1 1 1>;
  101. };
  102. mdio-bus {
  103. status = "okay";
  104. phy0: ethernet-phy@0 {
  105. phy-mode = "mii";
  106. reg = <0>;
  107. };
  108. };
  109. };
  110. &wmac {
  111. ralink,mtd-eeprom = <&factory 0>;
  112. };