WZR-AGL300NH.dts 2.2 KB

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