1
0

AR725W.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. /dts-v1/;
  2. #include "rt2880.dtsi"
  3. #include <dt-bindings/gpio/gpio.h>
  4. #include <dt-bindings/input/input.h>
  5. / {
  6. compatible = "airlink101,ar725w", "ralink,rt2880-soc";
  7. model = "Airlink101 AR725W";
  8. aliases {
  9. led-boot = &led_power;
  10. led-failsafe = &led_power;
  11. led-running = &led_power;
  12. led-upgrade = &led_power;
  13. };
  14. cfi@bdc00000 {
  15. compatible = "cfi-flash";
  16. reg = <0xbc400000 0x800000>;
  17. bank-width = <2>;
  18. partitions {
  19. compatible = "fixed-partitions";
  20. #address-cells = <1>;
  21. #size-cells = <1>;
  22. partition@0 {
  23. reg = <0x0 0x30000>;
  24. label = "u-boot";
  25. read-only;
  26. };
  27. partition@30000 {
  28. reg = <0x30000 0x10000>;
  29. label = "u-boot-env";
  30. };
  31. factory: partition@40000 {
  32. reg = <0x40000 0x10000>;
  33. label = "factory";
  34. read-only;
  35. };
  36. partition@50000 {
  37. reg = <0x50000 0x3B0000>;
  38. label = "firmware";
  39. };
  40. };
  41. };
  42. gpio-leds {
  43. compatible = "gpio-leds";
  44. led_power: power {
  45. label = "ar725w:green:power";
  46. gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
  47. };
  48. wpsred {
  49. label = "ar725w:red:wps";
  50. gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
  51. };
  52. wpsblue {
  53. label = "ar725w:blue:wps";
  54. gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
  55. };
  56. };
  57. gpio-keys-polled {
  58. compatible = "gpio-keys-polled";
  59. poll-interval = <100>;
  60. wps {
  61. label = "wps";
  62. gpios = <&gpio0 0 GPIO_ACTIVE_LOW>;
  63. linux,code = <KEY_WPS_BUTTON>;
  64. };
  65. reset {
  66. label = "reset";
  67. gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
  68. linux,code = <KEY_RESTART>;
  69. };
  70. };
  71. };
  72. &gpio0 {
  73. status = "okay";
  74. };
  75. &pinctrl {
  76. state_default: pinctrl0 {
  77. gpio {
  78. ralink,group = "i2c", "spi", "uartlite";
  79. ralink,function = "gpio";
  80. };
  81. };
  82. };
  83. &ethernet {
  84. status = "okay";
  85. mtd-mac-address = <&factory 0x4>;
  86. port@0 {
  87. phy-handle = <&phy0>;
  88. phy-mode = "mii";
  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. status = "okay";
  100. ralink,mtd-eeprom = <&factory 0>;
  101. };