1
0

MZK-W300NH2.dts 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. /dts-v1/;
  2. #include "rt3050.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "MZK-W300NH2", "ralink,rt3052-soc";
  6. model = "Planex MZK-W300NH2";
  7. cfi@1f000000 {
  8. compatible = "cfi-flash";
  9. reg = <0x1f000000 0x800000>;
  10. bank-width = <2>;
  11. device-width = <2>;
  12. #address-cells = <1>;
  13. #size-cells = <1>;
  14. partition@0 {
  15. label = "u-boot";
  16. reg = <0x0 0x30000>;
  17. read-only;
  18. };
  19. partition@30000 {
  20. label = "u-boot-env";
  21. reg = <0x30000 0x10000>;
  22. read-only;
  23. };
  24. factory: partition@40000 {
  25. label = "factory";
  26. reg = <0x40000 0x10000>;
  27. read-only;
  28. };
  29. partition@3e0000 {
  30. label = "cimage";
  31. reg = <0x3e0000 0x20000>;
  32. read-only;
  33. };
  34. partition@50000 {
  35. label = "firmware";
  36. reg = <0x50000 0x390000>;
  37. };
  38. };
  39. gpio-leds {
  40. compatible = "gpio-leds";
  41. power {
  42. label = "mzk-w300nh2:green:power";
  43. gpios = <&gpio0 9 1>;
  44. };
  45. wlan {
  46. label = "mzk-w300nh2:amber:wlan";
  47. gpios = <&gpio0 14 1>;
  48. };
  49. wps {
  50. label = "mzk-w300nh2:amber:wps";
  51. gpios = <&gpio0 11 1>;
  52. };
  53. };
  54. gpio-keys-polled {
  55. compatible = "gpio-keys-polled";
  56. #address-cells = <1>;
  57. #size-cells = <0>;
  58. poll-interval = <20>;
  59. wps {
  60. label = "wps";
  61. gpios = <&gpio0 12 1>;
  62. linux,code = <KEY_WPS_BUTTON>;
  63. };
  64. reset {
  65. label = "reset";
  66. gpios = <&gpio0 0 1>;
  67. linux,code = <KEY_RESTART>;
  68. };
  69. rt {
  70. label = "rt";
  71. gpios = <&gpio0 13 1>;
  72. linux,code = <BTN_0>;
  73. };
  74. };
  75. };
  76. &pinctrl {
  77. state_default: pinctrl0 {
  78. gpio {
  79. ralink,group = "spi", "i2c", "jtag", "rgmii", "mdio", "uartf";
  80. ralink,function = "gpio";
  81. };
  82. };
  83. };
  84. &ethernet {
  85. mtd-mac-address = <&factory 0x4>;
  86. };
  87. &esw {
  88. mediatek,portmap = <0x2f>;
  89. };
  90. &wmac {
  91. ralink,mtd-eeprom = <&factory 0>;
  92. };