WZR-AGL300NH.dts 2.1 KB

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