mt7622-linksys-e8450.dts 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. // SPDX-License-Identifier: (GPL-2.0-only OR MIT)
  2. /dts-v1/;
  3. #include "mt7622-linksys-e8450.dtsi"
  4. / {
  5. model = "Linksys E8450";
  6. compatible = "linksys,e8450", "mediatek,mt7622";
  7. aliases {
  8. label-mac-device = &wan;
  9. };
  10. };
  11. &snand {
  12. mediatek,bmt-v2;
  13. mediatek,bmt-table-size = <0x1000>;
  14. partitions {
  15. compatible = "fixed-partitions";
  16. #address-cells = <1>;
  17. #size-cells = <1>;
  18. partition@0 {
  19. label = "Preloader";
  20. reg = <0x00000 0x0080000>;
  21. read-only;
  22. };
  23. partition@80000 {
  24. label = "ATF";
  25. reg = <0x80000 0x0040000>;
  26. };
  27. partition@c0000 {
  28. label = "u-boot";
  29. reg = <0xc0000 0x0080000>;
  30. };
  31. partition@140000 {
  32. label = "u-boot-env";
  33. reg = <0x140000 0x0080000>;
  34. };
  35. factory: partition@1c0000 {
  36. label = "factory";
  37. reg = <0x1c0000 0x0100000>;
  38. nvmem-layout {
  39. compatible = "fixed-layout";
  40. #address-cells = <1>;
  41. #size-cells = <1>;
  42. macaddr_factory_7fff4: macaddr@7fff4 {
  43. reg = <0x7fff4 0x6>;
  44. };
  45. macaddr_factory_7fffa: macaddr@7fffa {
  46. reg = <0x7fffa 0x6>;
  47. };
  48. };
  49. };
  50. partition@300000 {
  51. label = "devinfo";
  52. reg = <0x300000 0x020000>;
  53. };
  54. partition@320000 {
  55. label = "senv";
  56. reg = <0x320000 0x020000>;
  57. };
  58. partition@360000 {
  59. label = "bootseq";
  60. reg = <0x360000 0x020000>;
  61. };
  62. partition@500000 {
  63. label = "firmware1";
  64. compatible = "denx,fit";
  65. openwrt,cmdline-match = "mtdparts=master";
  66. reg = <0x500000 0x1E00000>;
  67. };
  68. partition@2300000 {
  69. label = "firmware2";
  70. compatible = "denx,fit";
  71. openwrt,cmdline-match = "mtdparts=slave";
  72. reg = <0x2300000 0x1E00000>;
  73. };
  74. partition@4100000 {
  75. label = "data";
  76. reg = <0x4100000 0x1900000>;
  77. };
  78. partition@5100000 {
  79. label = "mfg";
  80. reg = <0x5a00000 0x1400000>;
  81. };
  82. };
  83. };
  84. &wmac {
  85. mediatek,mtd-eeprom = <&factory 0x0000>;
  86. status = "okay";
  87. };
  88. &wmac1 {
  89. mediatek,mtd-eeprom = <&factory 0x05000>;
  90. };
  91. &gmac0 {
  92. nvmem-cells = <&macaddr_factory_7fff4>;
  93. nvmem-cell-names = "mac-address";
  94. };
  95. &wan {
  96. nvmem-cells = <&macaddr_factory_7fffa>;
  97. nvmem-cell-names = "mac-address";
  98. };