MZK-EX300NP.dts 1.9 KB

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