MZK-EX300NP.dts 2.2 KB

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