2
0

MZK-EX750NP.dts 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "ralink,mt7620a-soc";
  6. model = "Planex MZK-EX750NP";
  7. gpio-leds {
  8. compatible = "gpio-leds";
  9. power {
  10. label = "mzk-ex750np:red:power";
  11. gpios = <&gpio0 14 1>;
  12. };
  13. wifi {
  14. label = "mzk-ex750np:red:wifi";
  15. gpios = <&gpio3 0 1>;
  16. };
  17. wps {
  18. label = "mzk-ex750np:green:wps";
  19. gpios = <&gpio0 10 1>;
  20. };
  21. rep {
  22. label = "mzk-ex750np:blue:rep";
  23. gpios = <&gpio2 16 1>;
  24. };
  25. wifi1 {
  26. label = "mzk-ex750np:blue:wifi1";
  27. gpios = <&gpio2 19 1>;
  28. };
  29. wifi2 {
  30. label = "mzk-ex750np:blue:wifi2";
  31. gpios = <&gpio2 18 1>;
  32. };
  33. wifi3 {
  34. label = "mzk-ex750np:blue:wifi3";
  35. gpios = <&gpio2 17 1>;
  36. };
  37. };
  38. gpio-keys-polled {
  39. compatible = "gpio-keys-polled";
  40. #address-cells = <1>;
  41. #size-cells = <0>;
  42. poll-interval = <20>;
  43. reset {
  44. label = "reset";
  45. gpios = <&gpio0 9 1>;
  46. linux,code = <KEY_RESTART>;
  47. };
  48. wps {
  49. label = "wps";
  50. gpios = <&gpio0 13 0>;
  51. linux,code = <KEY_RFKILL>;
  52. };
  53. };
  54. };
  55. &gpio2 {
  56. status = "okay";
  57. };
  58. &gpio3 {
  59. status = "okay";
  60. };
  61. &spi0 {
  62. status = "okay";
  63. m25p80@0 {
  64. #address-cells = <1>;
  65. #size-cells = <1>;
  66. compatible = "jedec,spi-nor";
  67. reg = <0>;
  68. linux,modalias = "m25p80", "w25q64";
  69. spi-max-frequency = <10000000>;
  70. partition@0 {
  71. label = "u-boot";
  72. reg = <0x0 0x30000>;
  73. read-only;
  74. };
  75. partition@30000 {
  76. label = "u-boot-env";
  77. reg = <0x30000 0x10000>;
  78. read-only;
  79. };
  80. factory: partition@40000 {
  81. label = "factory";
  82. reg = <0x40000 0x10000>;
  83. read-only;
  84. };
  85. partition@50000 {
  86. label = "firmware";
  87. reg = <0x50000 0x730000>;
  88. };
  89. partition@780000 {
  90. label = "Udata";
  91. reg = <0x780000 0x80000>;
  92. };
  93. };
  94. };
  95. &pinctrl {
  96. state_default: pinctrl0 {
  97. gpio {
  98. ralink,group = "uartf", "nd_sd", "rgmii2", "wled";
  99. ralink,function = "gpio";
  100. };
  101. };
  102. };
  103. &ethernet {
  104. pinctrl-names = "default";
  105. pinctrl-0 = <&ephy_pins>;
  106. mtd-mac-address = <&factory 0x4>;
  107. mediatek,portmap = "llllw";
  108. };
  109. &wmac {
  110. ralink,mtd-eeprom = <&factory 0>;
  111. };
  112. &pcie {
  113. status = "okay";
  114. pcie-bridge {
  115. mt76@0,0 {
  116. reg = <0x0000 0 0 0 0>;
  117. device_type = "pci";
  118. mediatek,mtd-eeprom = <&factory 0x8000>;
  119. mediatek,2ghz = <0>;
  120. };
  121. };
  122. };