1
0

WLI-TX4-AG300N.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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,wli-tx4-ag300n", "ralink,rt2880-soc";
  9. model = "Buffalo WLI-TX4-AG300N";
  10. aliases {
  11. led-boot = &led_power;
  12. led-failsafe = &led_power;
  13. led-running = &led_power;
  14. led-upgrade = &led_power;
  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. gpio-keys-polled {
  47. compatible = "gpio-keys-polled";
  48. poll-interval = <100>;
  49. wps {
  50. label = "wps";
  51. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  52. linux,code = <KEY_WPS_BUTTON>;
  53. };
  54. bandwidth {
  55. label = "bandwidth";
  56. gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
  57. linux,code = <KEY_RESTART>;
  58. };
  59. reset {
  60. label = "reset";
  61. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  62. linux,code = <KEY_RESTART>;
  63. };
  64. };
  65. gpio-leds {
  66. compatible = "gpio-leds";
  67. diag {
  68. label = "wli-tx4-ag300n:red:diag";
  69. gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
  70. };
  71. led_power: power {
  72. label = "wli-tx4-ag300n:blue:power";
  73. gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
  74. };
  75. security {
  76. label = "wli-tx4-ag300n:blue:security";
  77. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  78. };
  79. };
  80. };
  81. &gpio0 {
  82. status = "okay";
  83. };
  84. &ethernet {
  85. status = "okay";
  86. mtd-mac-address = <&factory 0x4>;
  87. port@0 {
  88. mediatek,fixed-link = <100 1 1 1>;
  89. };
  90. mdio-bus {
  91. status = "okay";
  92. phy0: ethernet-phy@0 {
  93. phy-mode = "mii";
  94. reg = <0>;
  95. };
  96. };
  97. };
  98. &wmac {
  99. ralink,mtd-eeprom = <&factory 0>;
  100. };