AR725W.dts 1.7 KB

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