mt7981b-cmcc-rax3000m-nand.dtso 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. /plugin/;
  4. / {
  5. compatible = "cmcc,rax3000m", "mediatek,mt7981";
  6. fragment@0 {
  7. target = <&gmac0>;
  8. __overlay__ {
  9. nvmem-cells = <&macaddr_factory_2a 0>;
  10. nvmem-cell-names = "mac-address";
  11. };
  12. };
  13. fragment@1 {
  14. target = <&gmac1>;
  15. __overlay__ {
  16. nvmem-cells = <&macaddr_factory_24 0>;
  17. nvmem-cell-names = "mac-address";
  18. };
  19. };
  20. fragment@2 {
  21. target = <&pio>;
  22. __overlay__ {
  23. spi0_flash_pins: spi0-pins {
  24. mux {
  25. function = "spi";
  26. groups = "spi0", "spi0_wp_hold";
  27. };
  28. conf-pu {
  29. pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
  30. drive-strength = <8>;
  31. mediatek,pull-up-adv = <0>; /* bias-disable */
  32. };
  33. conf-pd {
  34. pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
  35. drive-strength = <8>;
  36. mediatek,pull-up-adv = <0>; /* bias-disable */
  37. };
  38. };
  39. };
  40. };
  41. fragment@3 {
  42. target = <&spi0>;
  43. __overlay__ {
  44. pinctrl-names = "default";
  45. pinctrl-0 = <&spi0_flash_pins>;
  46. status = "okay";
  47. spi_nand@0 {
  48. compatible = "spi-nand";
  49. #address-cells = <1>;
  50. #size-cells = <1>;
  51. reg = <0>;
  52. spi-max-frequency = <52000000>;
  53. spi-tx-bus-width = <4>;
  54. spi-rx-bus-width = <4>;
  55. partitions {
  56. compatible = "fixed-partitions";
  57. #address-cells = <1>;
  58. #size-cells = <1>;
  59. partition@0 {
  60. label = "bl2";
  61. reg = <0x00000 0x0100000>;
  62. read-only;
  63. };
  64. partition@100000 {
  65. label = "u-boot-env";
  66. reg = <0x100000 0x80000>;
  67. };
  68. factory: partition@180000 {
  69. label = "factory";
  70. reg = <0x180000 0x200000>;
  71. read-only;
  72. nvmem-layout {
  73. compatible = "fixed-layout";
  74. #address-cells = <1>;
  75. #size-cells = <1>;
  76. macaddr_factory_24: macaddr@24 {
  77. compatible = "mac-base";
  78. reg = <0x24 0x6>;
  79. #nvmem-cell-cells = <1>;
  80. };
  81. macaddr_factory_2a: macaddr@2a {
  82. compatible = "mac-base";
  83. reg = <0x2a 0x6>;
  84. #nvmem-cell-cells = <1>;
  85. };
  86. };
  87. };
  88. partition@380000 {
  89. label = "fip";
  90. reg = <0x380000 0x200000>;
  91. read-only;
  92. };
  93. partition@580000 {
  94. label = "ubi";
  95. reg = <0x580000 0x7200000>;
  96. };
  97. };
  98. };
  99. };
  100. };
  101. fragment@4 {
  102. target = <&wifi>;
  103. __overlay__ {
  104. mediatek,mtd-eeprom = <&factory 0x0>;
  105. };
  106. };
  107. };