1
0

WMR-300.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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. spi-max-frequency = <10000000>;
  50. partition@0 {
  51. label = "u-boot";
  52. reg = <0x0 0x30000>;
  53. read-only;
  54. };
  55. partition@30000 {
  56. label = "u-boot-env";
  57. reg = <0x30000 0x10000>;
  58. read-only;
  59. };
  60. factory: partition@40000 {
  61. label = "factory";
  62. reg = <0x40000 0x10000>;
  63. read-only;
  64. };
  65. partition@50000 {
  66. label = "firmware";
  67. reg = <0x50000 0x7b0000>;
  68. };
  69. };
  70. };
  71. &ethernet {
  72. mtd-mac-address = <&factory 0x4>;
  73. mediatek,portmap = "wllll";
  74. };
  75. &wmac {
  76. ralink,mtd-eeprom = <&factory 0>;
  77. };
  78. &pinctrl {
  79. state_default: pinctrl0 {
  80. default {
  81. ralink,group = "i2c", "ephy";
  82. ralink,function = "gpio";
  83. };
  84. };
  85. };