ZBT-APE522II.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. /dts-v1/;
  2. #include "mt7620a.dtsi"
  3. / {
  4. compatible = "zbtlink,zbt-ape522ii", "ralink,mt7620a-soc";
  5. model = "ZBT-APE522II";
  6. chosen {
  7. bootargs = "console=ttyS0,115200";
  8. };
  9. gpio-leds {
  10. compatible = "gpio-leds";
  11. sys1 {
  12. label = "zbt-ape522ii:green:sys1";
  13. gpios = <&gpio0 11 1>;
  14. };
  15. sys2 {
  16. label = "zbt-ape522ii:green:sys2";
  17. gpios = <&gpio0 12 1>;
  18. };
  19. sys3 {
  20. label = "zbt-ape522ii:green:sys3";
  21. gpios = <&gpio0 9 1>;
  22. };
  23. sys4 {
  24. label = "zbt-ape522ii:green:sys4";
  25. gpios = <&gpio0 14 1>;
  26. };
  27. wlan2g4 {
  28. label = "zbt-ape522ii:green:wlan2g4";
  29. gpios = <&gpio3 0 1>;
  30. };
  31. };
  32. gpio-keys-polled {
  33. compatible = "gpio-keys-polled";
  34. #address-cells = <1>;
  35. #size-cells = <0>;
  36. poll-interval = <20>;
  37. reset {
  38. label = "reset";
  39. gpios = <&gpio0 2 0>;
  40. linux,code = <0x198>;
  41. };
  42. };
  43. };
  44. &gpio0 {
  45. status = "okay";
  46. };
  47. &gpio1 {
  48. status = "okay";
  49. };
  50. &gpio2 {
  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. };
  69. partition@30000 {
  70. label = "u-boot-env";
  71. reg = <0x30000 0x10000>;
  72. read-only;
  73. };
  74. factory: partition@40000 {
  75. label = "factory";
  76. reg = <0x40000 0x10000>;
  77. read-only;
  78. };
  79. partition@50000 {
  80. label = "firmware";
  81. reg = <0x50000 0xf80000>;
  82. };
  83. };
  84. };
  85. &ethernet {
  86. pinctrl-names = "default";
  87. pinctrl-0 = <&ephy_pins>;
  88. mtd-mac-address = <&factory 0x4>;
  89. mediatek,portmap = "wllll";
  90. };
  91. &wmac {
  92. ralink,mtd-eeprom = <&factory 0>;
  93. };
  94. &pcie {
  95. status = "okay";
  96. pcie-bridge {
  97. mt76@0,0 {
  98. reg = <0x0000 0 0 0 0>;
  99. device_type = "pci";
  100. mediatek,mtd-eeprom = <&factory 0x8000>;
  101. mediatek,2ghz = <0>;
  102. };
  103. };
  104. };
  105. &pinctrl {
  106. state_default: pinctrl0 {
  107. gpio {
  108. ralink,group = "wled", "i2c", "uartf", "wdt";
  109. ralink,function = "gpio";
  110. };
  111. pa {
  112. ralink,group = "pa";
  113. ralink,function = "pa";
  114. };
  115. };
  116. };