2
0

WRH-300CR.dts 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. /dts-v1/;
  2. #include "mt7620n.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "elecom,wrh-300cr", "ralink,mt7620n-soc";
  6. model = "ELECOM WRH-300CR";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. wps {
  10. label = "wrh-300cr:green:wps";
  11. gpios = <&gpio2 0 1>;
  12. };
  13. ethernet {
  14. label = "wrh-300cr:green:ethernet";
  15. gpios = <&gpio2 3 1>;
  16. };
  17. wlan {
  18. label = "wrh-300cr:green:wlan";
  19. gpios = <&gpio3 0 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. wps {
  33. label = "wps";
  34. gpios = <&gpio0 2 1>;
  35. linux,code = <KEY_WPS_BUTTON>;
  36. };
  37. };
  38. };
  39. &gpio1 {
  40. status = "okay";
  41. };
  42. &gpio2 {
  43. status = "okay";
  44. };
  45. &gpio3 {
  46. status = "okay";
  47. };
  48. &spi0 {
  49. status = "okay";
  50. m25p80@0 {
  51. #address-cells = <1>;
  52. #size-cells = <1>;
  53. compatible = "jedec,spi-nor";
  54. reg = <0>;
  55. linux,modalias = "m25p80", "mx25l12805d";
  56. spi-max-frequency = <10000000>;
  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. };
  66. factory: partition@40000 {
  67. label = "factory";
  68. reg = <0x40000 0x10000>;
  69. read-only;
  70. };
  71. partition@50000 {
  72. label = "recover";
  73. reg = <0x50000 0x1c0000>;
  74. read-only;
  75. };
  76. partition@210000 {
  77. label = "firmware";
  78. reg = <0x210000 0xdf0000>;
  79. };
  80. };
  81. };
  82. &ehci {
  83. status = "okay";
  84. };
  85. &ohci {
  86. status = "okay";
  87. };
  88. &ethernet {
  89. mtd-mac-address = <&factory 0x2e>;
  90. mediatek,portmap = "llllw";
  91. };
  92. &wmac {
  93. ralink,mtd-eeprom = <&factory 0>;
  94. };
  95. &pinctrl {
  96. state_default: pinctrl0 {
  97. default {
  98. ralink,group = "i2c", "ephy", "wled";
  99. ralink,function = "gpio";
  100. };
  101. };
  102. };