WLI-TX4-AG300N.dts 1.6 KB

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