MZK-EX300NP.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. 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. };