mt7622-ubnt-unifi-6-lr-v1-ubootmod.dts 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
  2. #include "mt7622-ubnt-unifi-6-lr-v1.dtsi"
  3. / {
  4. model = "Ubiquiti UniFi 6 LR v1 (U-Boot mod)";
  5. compatible = "ubnt,unifi-6-lr-v1-ubootmod", "mediatek,mt7622";
  6. chosen {
  7. rootdisk = <&rootdisk>;
  8. bootargs = "earlycon=uart8250,mmio32,0x11002000 swiotlb=512 console=ttyS0,115200n8 root=/dev/fit0 rootwait";
  9. };
  10. };
  11. &nor_partitions {
  12. partition@0 {
  13. label = "bl2";
  14. reg = <0x0 0x20000>;
  15. };
  16. partition@20000 {
  17. label = "fip";
  18. reg = <0x20000 0xa0000>;
  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 = "recovery";
  47. reg = <0x120000 0xee0000>;
  48. };
  49. rootdisk: partition@1000000 {
  50. compatible = "denx,fit";
  51. label = "firmware";
  52. reg = <0x1000000 0x3000000>;
  53. };
  54. };
  55. &wmac {
  56. mediatek,mtd-eeprom = <&factory 0x0>;
  57. nvmem-cells = <&macaddr_eeprom_0>;
  58. nvmem-cell-names = "mac-address";
  59. status = "okay";
  60. };
  61. &slot0 {
  62. wifi@0,0 {
  63. reg = <0x0 0 0 0 0>;
  64. mediatek,mtd-eeprom = <&factory 0x20000>;
  65. nvmem-cells = <&macaddr_eeprom_6>;
  66. nvmem-cell-names = "mac-address";
  67. ieee80211-freq-limit = <5000000 6000000>;
  68. };
  69. };
  70. &gmac0 {
  71. nvmem-cells = <&macaddr_eeprom_0>;
  72. nvmem-cell-names = "mac-address";
  73. };