1
0

WZR-AGL300NH.dts 2.4 KB

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