2
0

WRH-300CR.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  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. spi-max-frequency = <10000000>;
  56. partition@0 {
  57. label = "u-boot";
  58. reg = <0x0 0x30000>;
  59. read-only;
  60. };
  61. partition@30000 {
  62. label = "u-boot-env";
  63. reg = <0x30000 0x10000>;
  64. };
  65. factory: partition@40000 {
  66. label = "factory";
  67. reg = <0x40000 0x10000>;
  68. read-only;
  69. };
  70. partition@50000 {
  71. label = "recover";
  72. reg = <0x50000 0x1c0000>;
  73. read-only;
  74. };
  75. partition@210000 {
  76. label = "firmware";
  77. reg = <0x210000 0xdf0000>;
  78. };
  79. };
  80. };
  81. &ehci {
  82. status = "okay";
  83. };
  84. &ohci {
  85. status = "okay";
  86. };
  87. &ethernet {
  88. mtd-mac-address = <&factory 0x2e>;
  89. mediatek,portmap = "llllw";
  90. };
  91. &wmac {
  92. ralink,mtd-eeprom = <&factory 0>;
  93. };
  94. &pinctrl {
  95. state_default: pinctrl0 {
  96. default {
  97. ralink,group = "i2c", "ephy", "wled";
  98. ralink,function = "gpio";
  99. };
  100. };
  101. };