2
0

WLI-TX4-AG300N.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  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 = "WLI-TX4-AG300N", "ralink,rt2880-soc";
  8. model = "Buffalo WLI-TX4-AG300N";
  9. cfi@1f000000 {
  10. compatible = "cfi-flash";
  11. reg = <0x1f000000 0x800000>;
  12. bank-width = <2>;
  13. device-width = <2>;
  14. #address-cells = <1>;
  15. #size-cells = <1>;
  16. partition@0 {
  17. label = "uboot";
  18. reg = <0x0 0x30000>;
  19. read-only;
  20. };
  21. partition@30000 {
  22. label = "uboot-env";
  23. reg = <0x30000 0x10000>;
  24. read-only;
  25. };
  26. factory: partition@40000 {
  27. label = "factory";
  28. reg = <0x40000 0x10000>;
  29. read-only;
  30. };
  31. partition@50000 {
  32. label = "firmware";
  33. reg = <0x50000 0x3b0000>;
  34. };
  35. };
  36. gpio-keys-polled {
  37. compatible = "gpio-keys-polled";
  38. #address-cells = <1>;
  39. #size-cells = <0>;
  40. poll-interval = <100>;
  41. wps {
  42. label = "wps";
  43. gpios = <&gpio0 0 1>;
  44. linux,code = <KEY_WPS_BUTTON>;
  45. };
  46. bandwidth {
  47. label = "bandwidth";
  48. gpios = <&gpio0 8 0>;
  49. linux,code = <KEY_RESTART>;
  50. };
  51. reset {
  52. label = "reset";
  53. gpios = <&gpio0 9 1>;
  54. linux,code = <KEY_RESTART>;
  55. };
  56. };
  57. gpio-leds {
  58. compatible = "gpio-leds";
  59. diag {
  60. label = "wli-tx4-ag300n:red:diag";
  61. gpios = <&gpio0 10 1>;
  62. };
  63. power {
  64. label = "wli-tx4-ag300n:blue:power";
  65. gpios = <&gpio0 12 1>;
  66. };
  67. security {
  68. label = "wli-tx4-ag300n:blue:security";
  69. gpios = <&gpio0 13 1>;
  70. };
  71. };
  72. };
  73. &gpio0 {
  74. status = "okay";
  75. };
  76. &ethernet {
  77. status = "okay";
  78. mtd-mac-address = <&factory 0x4>;
  79. port@0 {
  80. mediatek,fixed-link = <100 1 1 1>;
  81. };
  82. mdio-bus {
  83. status = "okay";
  84. phy0: ethernet-phy@0 {
  85. phy-mode = "mii";
  86. reg = <0>;
  87. };
  88. };
  89. };
  90. &wmac {
  91. ralink,mtd-eeprom = <&factory 0>;
  92. };