ZBT-APE522II.dts 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. compatible = "zbtlink,zbt-ape522ii", "ralink,mt7620a-soc";
  6. model = "ZBT-APE522II";
  7. chosen {
  8. bootargs = "console=ttyS0,115200";
  9. };
  10. gpio-leds {
  11. compatible = "gpio-leds";
  12. sys1 {
  13. label = "zbt-ape522ii:green:sys1";
  14. gpios = <&gpio0 11 1>;
  15. };
  16. sys2 {
  17. label = "zbt-ape522ii:green:sys2";
  18. gpios = <&gpio0 12 1>;
  19. };
  20. sys3 {
  21. label = "zbt-ape522ii:green:sys3";
  22. gpios = <&gpio0 9 1>;
  23. };
  24. sys4 {
  25. label = "zbt-ape522ii:green:sys4";
  26. gpios = <&gpio0 14 1>;
  27. };
  28. wlan2g4 {
  29. label = "zbt-ape522ii:green:wlan2g4";
  30. gpios = <&gpio3 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 2 0>;
  41. linux,code = <KEY_RESTART>;
  42. };
  43. };
  44. };
  45. &gpio0 {
  46. status = "okay";
  47. };
  48. &gpio1 {
  49. status = "okay";
  50. };
  51. &gpio2 {
  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. };
  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 0xf80000>;
  83. };
  84. };
  85. };
  86. &ethernet {
  87. pinctrl-names = "default";
  88. pinctrl-0 = <&ephy_pins>;
  89. mtd-mac-address = <&factory 0x4>;
  90. mediatek,portmap = "wllll";
  91. };
  92. &wmac {
  93. ralink,mtd-eeprom = <&factory 0>;
  94. };
  95. &pcie {
  96. status = "okay";
  97. pcie-bridge {
  98. mt76@0,0 {
  99. reg = <0x0000 0 0 0 0>;
  100. device_type = "pci";
  101. mediatek,mtd-eeprom = <&factory 0x8000>;
  102. mediatek,2ghz = <0>;
  103. };
  104. };
  105. };
  106. &pinctrl {
  107. state_default: pinctrl0 {
  108. gpio {
  109. ralink,group = "wled", "i2c", "uartf", "wdt";
  110. ralink,function = "gpio";
  111. };
  112. pa {
  113. ralink,group = "pa";
  114. ralink,function = "pa";
  115. };
  116. };
  117. };