mt7622-linksys-e8450-ubi.dts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. // SPDX-License-Identifier: (GPL-2.0-only OR MIT)
  2. /dts-v1/;
  3. #include "mt7622-linksys-e8450.dtsi"
  4. / {
  5. model = "Linksys E8450 (UBI)";
  6. compatible = "linksys,e8450-ubi", "mediatek,mt7622";
  7. aliases {
  8. label-mac-device = &wan;
  9. };
  10. chosen {
  11. rootdisk = <&ubi_rootfs>;
  12. bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n1 swiotlb=512 ubi.block=0,fit root=/dev/fit0 rootwait";
  13. };
  14. };
  15. &snand {
  16. partitions {
  17. compatible = "fixed-partitions";
  18. #address-cells = <1>;
  19. #size-cells = <1>;
  20. partition@0 {
  21. label = "bl2";
  22. reg = <0x0 0x80000>;
  23. read-only;
  24. };
  25. partition@80000 {
  26. label = "ubi";
  27. reg = <0x80000 0x7f80000>;
  28. compatible = "linux,ubi";
  29. volumes {
  30. ubi-volume-ubootenv {
  31. volname = "ubootenv";
  32. nvmem-layout {
  33. compatible = "u-boot,env-redundant-bool-layout";
  34. };
  35. };
  36. ubi-volume-ubootenv2 {
  37. volname = "ubootenv2";
  38. nvmem-layout {
  39. compatible = "u-boot,env-redundant-bool-layout";
  40. };
  41. };
  42. ubi_rootfs: ubi-volume-fit {
  43. volname = "fit";
  44. };
  45. ubi_factory: ubi-volume-factory {
  46. volname = "factory";
  47. };
  48. };
  49. };
  50. };
  51. };
  52. &ubi_factory {
  53. nvmem-layout {
  54. compatible = "fixed-layout";
  55. #address-cells = <1>;
  56. #size-cells = <1>;
  57. eeprom_factory_0: eeprom@0 {
  58. reg = <0x0 0x4da8>; /* actual length 0x400 */
  59. };
  60. eeprom_factory_5000: eeprom@5000 {
  61. reg = <0x5000 0xe00>;
  62. };
  63. macaddr_factory_7fff4: macaddr@7fff4 {
  64. reg = <0x7fff4 0x6>;
  65. };
  66. macaddr_factory_7fffa: macaddr@7fffa {
  67. reg = <0x7fffa 0x6>;
  68. };
  69. };
  70. };
  71. &wmac {
  72. nvmem-cells = <&eeprom_factory_0>;
  73. nvmem-cell-names = "eeprom";
  74. status = "okay";
  75. };
  76. &wmac1 {
  77. nvmem-cells = <&eeprom_factory_5000>;
  78. nvmem-cell-names = "eeprom";
  79. };
  80. &gmac0 {
  81. nvmem-cells = <&macaddr_factory_7fff4>;
  82. nvmem-cell-names = "mac-address";
  83. };
  84. &wan {
  85. nvmem-cells = <&macaddr_factory_7fffa>;
  86. nvmem-cell-names = "mac-address";
  87. };