WMR-300.dts 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. /dts-v1/;
  2. #include "mt7620n.dtsi"
  3. / {
  4. compatible = "buffalo,wmr-300", "ralink,mt7620n-soc";
  5. model = "Buffalo WMR-300";
  6. gpio-leds {
  7. compatible = "gpio-leds";
  8. aoss1 {
  9. label = "wmr-300:red:aoss";
  10. gpios = <&gpio2 1 1>;
  11. };
  12. aoss2 {
  13. label = "wmr-300:green:aoss";
  14. gpios = <&gpio2 2 1>;
  15. };
  16. power {
  17. label = "wmr-300:green:status";
  18. gpios = <&gpio2 4 1>;
  19. };
  20. };
  21. gpio-keys-polled {
  22. compatible = "gpio-keys-polled";
  23. #address-cells = <1>;
  24. #size-cells = <0>;
  25. poll-interval = <20>;
  26. reset {
  27. label = "reset";
  28. gpios = <&gpio0 1 1>;
  29. linux,code = <0x198>;
  30. };
  31. aoss {
  32. label = "aoss";
  33. gpios = <&gpio0 2 1>;
  34. linux,code = <0x211>;
  35. };
  36. };
  37. };
  38. &gpio2 {
  39. status = "okay";
  40. };
  41. &spi0 {
  42. status = "okay";
  43. m25p80@0 {
  44. #address-cells = <1>;
  45. #size-cells = <1>;
  46. compatible = "jedec,spi-nor";
  47. reg = <0>;
  48. linux,modalias = "m25p80", "en25q64";
  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. };