AR670W.dts 1.4 KB

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