AR670W.dts 1.5 KB

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