AR725W.dts 1.6 KB

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