mt7981b-cmcc-rax3000m-nand.dts 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. /dts-v1/;
  3. #include "mt7981b-cmcc-rax3000m.dts"
  4. / {
  5. model = "CMCC RAX3000M (NAND version)";
  6. compatible = "cmcc,rax3000m", "mediatek,mt7981";
  7. aliases {
  8. label-mac-device = &gmac1;
  9. };
  10. };
  11. &spi0 {
  12. pinctrl-names = "default";
  13. pinctrl-0 = <&spi0_flash_pins>;
  14. status = "okay";
  15. spi_nand: flash@0 {
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. compatible = "spi-nand";
  19. reg = <0>;
  20. spi-max-frequency = <52000000>;
  21. spi-tx-bus-width = <4>;
  22. spi-rx-bus-width = <4>;
  23. mediatek,nmbm;
  24. mediatek,bmt-max-ratio = <1>;
  25. mediatek,bmt-max-reserved-blocks = <64>;
  26. partitions {
  27. compatible = "fixed-partitions";
  28. #address-cells = <1>;
  29. #size-cells = <1>;
  30. partition@0 {
  31. label = "bl2";
  32. reg = <0x00000 0x0100000>;
  33. read-only;
  34. };
  35. partition@100000 {
  36. label = "u-boot-env";
  37. reg = <0x100000 0x80000>;
  38. };
  39. factory: partition@180000 {
  40. label = "factory";
  41. reg = <0x180000 0x200000>;
  42. read-only;
  43. };
  44. partition@380000 {
  45. label = "fip";
  46. reg = <0x380000 0x200000>;
  47. read-only;
  48. };
  49. partition@580000 {
  50. label = "ubi";
  51. reg = <0x580000 0x7200000>;
  52. };
  53. };
  54. };
  55. };
  56. &pio {
  57. spi0_flash_pins: spi0-pins {
  58. mux {
  59. function = "spi";
  60. groups = "spi0", "spi0_wp_hold";
  61. };
  62. conf-pu {
  63. pins = "SPI0_CS", "SPI0_HOLD", "SPI0_WP";
  64. drive-strength = <8>;
  65. mediatek,pull-up-adv = <0>; /* bias-disable */
  66. };
  67. conf-pd {
  68. pins = "SPI0_CLK", "SPI0_MOSI", "SPI0_MISO";
  69. drive-strength = <8>;
  70. mediatek,pull-up-adv = <0>; /* bias-disable */
  71. };
  72. };
  73. };
  74. &wifi {
  75. mediatek,mtd-eeprom = <&factory 0x0>;
  76. };