mt7981b-zyxel-nwa50ax-pro.dts 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225
  1. /dts-v1/;
  2. #include "mt7981.dtsi"
  3. / {
  4. model = "ZyXEL NWA50AX Pro";
  5. compatible = "zyxel,nwa50ax-pro", "mediatek,mt7981";
  6. aliases {
  7. led-boot = &led_green;
  8. led-failsafe = &led_red;
  9. led-running = &led_green;
  10. led-upgrade = &led_red;
  11. serial0 = &uart0;
  12. label-mac-device = &gmac1;
  13. };
  14. chosen {
  15. stdout-path = "serial0:115200n8";
  16. };
  17. gpio-keys {
  18. compatible = "gpio-keys";
  19. reset {
  20. label = "reset";
  21. linux,code = <KEY_RESTART>;
  22. gpios = <&pio 1 GPIO_ACTIVE_LOW>;
  23. };
  24. };
  25. leds {
  26. compatible = "gpio-leds";
  27. led_green: led@0 {
  28. label = "green:system";
  29. gpios = <&pio 4 GPIO_ACTIVE_HIGH>;
  30. };
  31. led@1 {
  32. label = "blue:system";
  33. gpios = <&pio 6 GPIO_ACTIVE_HIGH>;
  34. };
  35. led_red: led@2 {
  36. label = "red:system";
  37. gpios = <&pio 7 GPIO_ACTIVE_HIGH>;
  38. };
  39. };
  40. };
  41. &uart0 {
  42. status = "okay";
  43. };
  44. &watchdog {
  45. status = "okay";
  46. };
  47. &eth {
  48. pinctrl-names = "default";
  49. pinctrl-0 = <&mdio_pins>;
  50. status = "okay";
  51. gmac1: mac@1 {
  52. compatible = "mediatek,eth-mac";
  53. reg = <1>;
  54. phy-mode = "2500base-x";
  55. phy-handle = <&phy0>;
  56. nvmem-cells = <&macaddr_mrd_1fff8>;
  57. nvmem-cell-names = "mac-address";
  58. };
  59. };
  60. &mdio_bus {
  61. reset-gpios = <&pio 12 GPIO_ACTIVE_LOW>;
  62. reset-delay-us = <1500000>;
  63. reset-post-delay-us = <1000000>;
  64. phy0: ethernet-phy@5 {
  65. reg = <5>;
  66. compatible = "ethernet-phy-ieee802.3-c45";
  67. };
  68. };
  69. &spi0 {
  70. pinctrl-names = "default";
  71. pinctrl-0 = <&spi0_flash_pins>;
  72. status = "okay";
  73. spi_nand: flash@0 {
  74. #address-cells = <1>;
  75. #size-cells = <1>;
  76. compatible = "spi-nand";
  77. reg = <0>;
  78. spi-max-frequency = <52000000>;
  79. spi-cal-enable;
  80. spi-cal-mode = "read-data";
  81. spi-cal-datalen = <7>;
  82. spi-cal-data = /bits/ 8 <0x53 0x50 0x49 0x4E 0x41 0x4E 0x44>;
  83. spi-cal-addrlen = <5>;
  84. spi-cal-addr = /bits/ 32 <0x0 0x0 0x0 0x0 0x0>;
  85. spi-tx-buswidth = <4>;
  86. spi-rx-buswidth = <4>;
  87. mediatek,nmbm;
  88. mediatek,bmt-max-ratio = <1>;
  89. mediatek,bmt-max-reserved-blocks = <64>;
  90. mediatek,bmt-remap-range =
  91. <0x0 0x580000>,
  92. <0xef00000 0xef80000>;
  93. partitions {
  94. compatible = "fixed-partitions";
  95. #address-cells = <1>;
  96. #size-cells = <1>;
  97. partition@0 {
  98. label = "BL2";
  99. reg = <0x00000 0x0100000>;
  100. read-only;
  101. };
  102. partition@100000 {
  103. label = "u-boot-env";
  104. reg = <0x0100000 0x0080000>;
  105. };
  106. factory: partition@180000 {
  107. label = "Factory";
  108. reg = <0x180000 0x0200000>;
  109. read-only;
  110. compatible = "nvmem-cells";
  111. #address-cells = <1>;
  112. #size-cells = <1>;
  113. macaddr: macaddr@a {
  114. reg = <0xa 0x6>;
  115. };
  116. };
  117. partition@380000 {
  118. label = "FIP";
  119. reg = <0x380000 0x0200000>;
  120. read-only;
  121. };
  122. partition@580000 {
  123. label = "ubi";
  124. reg = <0x580000 0x3200000>;
  125. };
  126. partition@3780000 {
  127. label = "ubi_1";
  128. reg = <0x3780000 0x3200000>;
  129. read-only;
  130. };
  131. partition@6980000 {
  132. label = "rootfs-data";
  133. reg = <0x6980000 0x3c00000>;
  134. read-only;
  135. };
  136. partition@a580000 {
  137. label = "logs";
  138. reg = <0xa580000 0x3a80000>;
  139. read-only;
  140. };
  141. partition@e000000 {
  142. label = "myzyxel";
  143. reg = <0xe000000 0xf00000>;
  144. read-only;
  145. };
  146. partition@ef00000 {
  147. label = "bootconfig";
  148. reg = <0xef00000 0x80000>;
  149. };
  150. partition@ef80000 {
  151. label = "mrd";
  152. reg = <0xef80000 0x80000>;
  153. read-only;
  154. compatible = "nvmem-cells";
  155. #address-cells = <1>;
  156. #size-cells = <1>;
  157. macaddr_mrd_1fff8: macaddr@1fff8 {
  158. reg = <0x1fff8 0x6>;
  159. };
  160. };
  161. };
  162. };
  163. };
  164. &pio {
  165. spi0_flash_pins: spi0-pins {
  166. mux {
  167. function = "spi";
  168. groups = "spi0", "spi0_wp_hold";
  169. };
  170. };
  171. pwm_pins: pwm0-pins {
  172. mux {
  173. function = "pwm";
  174. groups = "pwm0_1";
  175. };
  176. };
  177. };
  178. &wifi {
  179. status = "okay";
  180. mediatek,mtd-eeprom = <&factory 0x0>;
  181. };