qca9563_zte_mf282.dts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. // Copyright (c) 2021 Cezary Jackiewicz
  3. // Copyright (c) 2021, 2022 Lech Perczak
  4. // Copyright (c) 2022 David Bauer <[email protected]>
  5. // Copyright (c) 2023 Andreas Böhler <[email protected]>
  6. #include "qca9563_zte_mf28x.dtsi"
  7. / {
  8. model = "ZTE MF282";
  9. compatible = "zte,mf282", "qca,qca9563";
  10. ubi-concat {
  11. compatible = "mtd-concat";
  12. devices = <&ubiconcat0 &ubiconcat1>;
  13. partitions {
  14. compatible = "fixed-partitions";
  15. #address-cells = <1>;
  16. #size-cells = <1>;
  17. partition@0 {
  18. reg = <0x0 0x7440000>;
  19. label = "ubi";
  20. };
  21. };
  22. };
  23. };
  24. &led_debug {
  25. color = <LED_COLOR_ID_BLUE>;
  26. };
  27. &boot_flash {
  28. partitions {
  29. partition@0 {
  30. label = "u-boot";
  31. reg = <0x0 0x80000>;
  32. read-only;
  33. };
  34. partition@80000 {
  35. label = "u-boot-env";
  36. reg = <0x80000 0x20000>;
  37. read-only;
  38. };
  39. };
  40. };
  41. &system_flash {
  42. partitions {
  43. partition@0 {
  44. label = "fota-flag";
  45. reg = <0x000000 0x140000>;
  46. read-only;
  47. };
  48. partition@140000 {
  49. label = "caldata";
  50. reg = <0x140000 0x140000>;
  51. read-only;
  52. nvmem-layout {
  53. compatible = "fixed-layout";
  54. #address-cells = <1>;
  55. #size-cells = <1>;
  56. cal_caldata_1000: cal@1000 {
  57. reg = <0x1000 0x440>;
  58. };
  59. cal_caldata_5000: cal@5000 {
  60. reg = <0x5000 0x844>;
  61. };
  62. };
  63. };
  64. partition@280000 {
  65. label = "mac";
  66. reg = <0x280000 0x140000>;
  67. read-only;
  68. nvmem-layout {
  69. compatible = "fixed-layout";
  70. #address-cells = <1>;
  71. #size-cells = <1>;
  72. macaddr_mac_0: macaddr@0 {
  73. compatible = "mac-base";
  74. reg = <0x0 0x6>;
  75. #nvmem-cell-cells = <1>;
  76. };
  77. };
  78. };
  79. /* This encompasses stock cfg-param, oops, web partitions,
  80. * which can be overwritten safely
  81. */
  82. ubiconcat0: partition@3c0000 {
  83. label = "ubiconcat0";
  84. reg = <0x3c0000 0xf40000>;
  85. };
  86. /* Kernel MTD size is increased to 8MB from stock 3MB */
  87. partition@1300000 {
  88. label = "kernel";
  89. reg = <0x1300000 0x800000>;
  90. };
  91. /* This encompasses stock rootfs, data, fota partitions,
  92. * which can be overwritten safely
  93. */
  94. ubiconcat1: partition@1b00000 {
  95. label = "ubiconcat1";
  96. reg = <0x1b00000 0x6500000>;
  97. };
  98. };
  99. };
  100. &eth0 {
  101. nvmem-cells = <&macaddr_mac_0 0>;
  102. nvmem-cell-names = "mac-address";
  103. };
  104. &wifi_ath10k {
  105. nvmem-cells = <&macaddr_mac_0 1>, <&cal_caldata_5000>;
  106. nvmem-cell-names = "mac-address", "calibration";
  107. };
  108. &wmac {
  109. nvmem-cells = <&macaddr_mac_0 0>, <&cal_caldata_1000>;
  110. nvmem-cell-names = "mac-address", "calibration";
  111. };