WMR-300.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. /dts-v1/;
  2. #include "mt7620n.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "buffalo,wmr-300", "ralink,mt7620n-soc";
  6. model = "Buffalo WMR-300";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. aoss1 {
  10. label = "wmr-300:red:aoss";
  11. gpios = <&gpio2 1 1>;
  12. };
  13. aoss2 {
  14. label = "wmr-300:green:aoss";
  15. gpios = <&gpio2 2 1>;
  16. };
  17. power {
  18. label = "wmr-300:green:status";
  19. gpios = <&gpio2 4 1>;
  20. };
  21. };
  22. gpio-keys-polled {
  23. compatible = "gpio-keys-polled";
  24. #address-cells = <1>;
  25. #size-cells = <0>;
  26. poll-interval = <20>;
  27. reset {
  28. label = "reset";
  29. gpios = <&gpio0 1 1>;
  30. linux,code = <KEY_RESTART>;
  31. };
  32. aoss {
  33. label = "aoss";
  34. gpios = <&gpio0 2 1>;
  35. linux,code = <KEY_WPS_BUTTON>;
  36. };
  37. };
  38. };
  39. &gpio2 {
  40. status = "okay";
  41. };
  42. &spi0 {
  43. status = "okay";
  44. m25p80@0 {
  45. #address-cells = <1>;
  46. #size-cells = <1>;
  47. compatible = "jedec,spi-nor";
  48. reg = <0>;
  49. linux,modalias = "m25p80", "en25q64";
  50. spi-max-frequency = <10000000>;
  51. partition@0 {
  52. label = "u-boot";
  53. reg = <0x0 0x30000>;
  54. read-only;
  55. };
  56. partition@30000 {
  57. label = "u-boot-env";
  58. reg = <0x30000 0x10000>;
  59. read-only;
  60. };
  61. factory: partition@40000 {
  62. label = "factory";
  63. reg = <0x40000 0x10000>;
  64. read-only;
  65. };
  66. partition@50000 {
  67. label = "firmware";
  68. reg = <0x50000 0x7b0000>;
  69. };
  70. };
  71. };
  72. &ethernet {
  73. mtd-mac-address = <&factory 0x4>;
  74. mediatek,portmap = "wllll";
  75. };
  76. &wmac {
  77. ralink,mtd-eeprom = <&factory 0>;
  78. };
  79. &pinctrl {
  80. state_default: pinctrl0 {
  81. default {
  82. ralink,group = "i2c", "ephy";
  83. ralink,function = "gpio";
  84. };
  85. };
  86. };