mt7622-ubnt-unifi-6-lr-v3.dts 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "mt7622-ubnt-unifi-6-lr-v3.dtsi"
  3. / {
  4. model = "Ubiquiti UniFi 6 LR v3";
  5. compatible = "ubnt,unifi-6-lr-v3", "mediatek,mt7622";
  6. };
  7. &nor_partitions {
  8. partition@0 {
  9. label = "preloader";
  10. reg = <0x0 0x40000>;
  11. };
  12. partition@40000 {
  13. label = "atf";
  14. reg = <0x40000 0x20000>;
  15. };
  16. partition@60000 {
  17. label = "u-boot";
  18. reg = <0x60000 0x60000>;
  19. };
  20. partition@c0000 {
  21. label = "u-boot-env";
  22. reg = <0xc0000 0x10000>;
  23. };
  24. factory: partition@d0000 {
  25. label = "factory";
  26. reg = <0xd0000 0x40000>;
  27. read-only;
  28. };
  29. eeprom: partition@110000 {
  30. label = "eeprom";
  31. reg = <0x110000 0x10000>;
  32. read-only;
  33. nvmem-layout {
  34. compatible = "fixed-layout";
  35. #address-cells = <1>;
  36. #size-cells = <1>;
  37. macaddr_eeprom_0: macaddr@0 {
  38. reg = <0x0 0x6>;
  39. };
  40. macaddr_eeprom_6: macaddr@6 {
  41. reg = <0x6 0x6>;
  42. };
  43. };
  44. };
  45. partition@120000 {
  46. label = "bs";
  47. reg = <0x120000 0x10000>;
  48. };
  49. partition@130000 {
  50. label = "cfg";
  51. reg = <0x130000 0x100000>;
  52. read-only;
  53. };
  54. partition@230000 {
  55. compatible = "denx,fit";
  56. label = "firmware";
  57. reg = <0x230000 0x1ee0000>;
  58. };
  59. partition@2110000 {
  60. label = "kernel1";
  61. reg = <0x2110000 0x1ee0000>;
  62. };
  63. };
  64. &wmac {
  65. mediatek,mtd-eeprom = <&factory 0x0>;
  66. nvmem-cells = <&macaddr_eeprom_0>;
  67. nvmem-cell-names = "mac-address";
  68. status = "okay";
  69. };
  70. &slot0 {
  71. wifi@0,0 {
  72. reg = <0x0 0 0 0 0>;
  73. mediatek,mtd-eeprom = <&factory 0x20000>;
  74. nvmem-cells = <&macaddr_eeprom_6>;
  75. nvmem-cell-names = "mac-address";
  76. ieee80211-freq-limit = <5000000 6000000>;
  77. };
  78. };
  79. &gmac0 {
  80. nvmem-cells = <&macaddr_eeprom_0>;
  81. nvmem-cell-names = "mac-address";
  82. };