2
0

AR670W.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. /dts-v1/;
  2. #include "rt2880.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "AR670W", "ralink,rt2880-soc";
  6. model = "Airlink101 AR670W";
  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. factory: factory@30000 {
  19. reg = <0x30000 0x10000>;
  20. label = "factory";
  21. read-only;
  22. };
  23. firmware@40000 {
  24. reg = <0x40000 0x3c0000>;
  25. label = "firmware";
  26. };
  27. };
  28. gpio-leds {
  29. compatible = "gpio-leds";
  30. status {
  31. label = "ar670w:green:power";
  32. gpios = <&gpio0 7 1>;
  33. };
  34. wpsblue {
  35. label = "ar670w:blue:wps";
  36. gpios = <&gpio0 13 1>;
  37. };
  38. };
  39. gpio-keys-polled {
  40. compatible = "gpio-keys-polled";
  41. #address-cells = <1>;
  42. #size-cells = <0>;
  43. poll-interval = <100>;
  44. wps {
  45. label = "wps";
  46. gpios = <&gpio0 0 1>;
  47. linux,code = <KEY_WPS_BUTTON>;
  48. };
  49. reset {
  50. label = "reset";
  51. gpios = <&gpio0 9 1>;
  52. linux,code = <KEY_RESTART>;
  53. };
  54. };
  55. };
  56. &gpio0 {
  57. status = "okay";
  58. };
  59. &pinctrl {
  60. state_default: pinctrl0 {
  61. gpio {
  62. ralink,group = "i2c", "spi", "uartlite";
  63. ralink,function = "gpio";
  64. };
  65. };
  66. };
  67. &ethernet {
  68. status = "okay";
  69. mtd-mac-address = <&factory 0x2004>;
  70. port@0 {
  71. phy-handle = <&phy0>;
  72. phy-mode = "mii";
  73. };
  74. mdio-bus {
  75. status = "okay";
  76. phy0: ethernet-phy@0 {
  77. phy-mode = "mii";
  78. reg = <0>;
  79. };
  80. };
  81. };
  82. &wmac {
  83. status = "okay";
  84. ralink,mtd-eeprom = <&factory 0x2000>;
  85. };