WMR-300.dts 1.8 KB

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