2
0

MZK-EX300NP.dts 1.9 KB

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