mt7621_zyxel_nwa-ax.dtsi 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. #include "mt7621.dtsi"
  2. #include <dt-bindings/gpio/gpio.h>
  3. #include <dt-bindings/input/input.h>
  4. / {
  5. aliases {
  6. label-mac-device = &gmac0;
  7. };
  8. };
  9. &nand {
  10. status = "okay";
  11. mediatek,nmbm;
  12. mediatek,bmt-max-ratio = <15>;
  13. mediatek,bmt-max-reserved-blocks = <64>;
  14. mediatek,bmt-remap-range =
  15. <0x0 0x980000>,
  16. <0x2980000 0x7800000>;
  17. partitions {
  18. compatible = "fixed-partitions";
  19. #address-cells = <1>;
  20. #size-cells = <1>;
  21. partition@0 {
  22. label = "u-boot";
  23. reg = <0x0 0x80000>;
  24. read-only;
  25. };
  26. partition@80000 {
  27. label = "u-boot-env";
  28. reg = <0x80000 0x80000>;
  29. read-only;
  30. };
  31. factory: partition@100000 {
  32. label = "factory";
  33. reg = <0x100000 0x80000>;
  34. read-only;
  35. };
  36. partition@180000 {
  37. label = "firmware";
  38. reg = <0x180000 0x2800000>;
  39. /* This concatenates kernel1 & kernel2 & rootfs */
  40. compatible = "fixed-partitions";
  41. #address-cells = <1>;
  42. #size-cells = <1>;
  43. partition@0 {
  44. label = "kernel";
  45. reg = <0x0 0x800000>;
  46. };
  47. partition@400000 {
  48. label = "ubi";
  49. reg = <0x800000 0x2000000>;
  50. };
  51. };
  52. partition@2980000 {
  53. label = "zy_firmware_1";
  54. reg = <0x2980000 0x2800000>;
  55. read-only;
  56. };
  57. partition@5180000 {
  58. label = "zy_rootfs_data";
  59. reg = <0x5180000 0x1400000>;
  60. read-only;
  61. };
  62. partition@6580000 {
  63. label = "zy_logs";
  64. reg = <0x6580000 0xd00000>;
  65. read-only;
  66. };
  67. partition@7280000 {
  68. label = "myzyxel";
  69. reg = <0x7280000 0x480000>;
  70. read-only;
  71. };
  72. partition@7700000 {
  73. label = "bootconfig";
  74. reg = <0x7700000 0x80000>;
  75. };
  76. mrd: partition@7780000 {
  77. label = "mrd";
  78. reg = <0x7780000 0x80000>;
  79. read-only;
  80. };
  81. };
  82. };
  83. &pcie {
  84. status = "okay";
  85. };
  86. &pcie1 {
  87. wlan_5g: wifi@0,0 {
  88. reg = <0x0 0 0 0 0>;
  89. compatible = "mediatek,mt76";
  90. mediatek,mtd-eeprom = <&factory 0x0>;
  91. /* MAC-Address set in userspace */
  92. };
  93. };
  94. &gmac0 {
  95. nvmem-cells = <&macaddr_mrd_1fff8>;
  96. nvmem-cell-names = "mac-address";
  97. };
  98. &switch0 {
  99. ports {
  100. port@4 {
  101. status = "okay";
  102. label = "lan";
  103. };
  104. };
  105. };
  106. &mrd {
  107. compatible = "nvmem-cells";
  108. #address-cells = <1>;
  109. #size-cells = <1>;
  110. macaddr_mrd_1fff8: macaddr@1fff8 {
  111. reg = <0x1fff8 0x6>;
  112. };
  113. };
  114. &state_default {
  115. gpio {
  116. groups = "uart3", "rgmii2";
  117. function = "gpio";
  118. };
  119. };
  120. &ethernet {
  121. pinctrl-0 = <&mdio_pins>, <&rgmii1_pins>;
  122. };