WRH-300CR.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. /dts-v1/;
  2. #include "mt7620n.dtsi"
  3. / {
  4. compatible = "elecom,wrh-300cr", "ralink,mt7620n-soc";
  5. model = "ELECOM WRH-300CR";
  6. gpio-leds {
  7. compatible = "gpio-leds";
  8. wps {
  9. label = "wrh-300cr:green:wps";
  10. gpios = <&gpio2 0 1>;
  11. };
  12. ethernet {
  13. label = "wrh-300cr:green:ethernet";
  14. gpios = <&gpio2 3 1>;
  15. };
  16. wlan {
  17. label = "wrh-300cr:green:wlan";
  18. gpios = <&gpio3 0 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. wps {
  32. label = "wps";
  33. gpios = <&gpio0 2 1>;
  34. linux,code = <0x211>;
  35. };
  36. };
  37. };
  38. &gpio1 {
  39. status = "okay";
  40. };
  41. &gpio2 {
  42. status = "okay";
  43. };
  44. &gpio3 {
  45. status = "okay";
  46. };
  47. &spi0 {
  48. status = "okay";
  49. m25p80@0 {
  50. #address-cells = <1>;
  51. #size-cells = <1>;
  52. compatible = "jedec,spi-nor";
  53. reg = <0>;
  54. linux,modalias = "m25p80", "mx25l12805d";
  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. };