AR725W.dts 1.6 KB

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