// SPDX-License-Identifier: GPL-2.0-or-later OR MIT

#include <dt-bindings/leds/common.h>

#include "ar7241_tplink_tl-mr3x20.dtsi"

/ {
	compatible = "tplink,tl-mr3220-v1", "qca,ar7241";
	model = "TP-Link TL-MR3220 v1";
};

&art_part {
	nvmem-layout {
		compatible = "fixed-layout";
		#address-cells = <1>;
		#size-cells = <1>;

		cal_art_1000: calibration@1000 {
			reg = <0x1000 0x200>;
		};
	};
};

&pcie {
	ath9k: wifi@0,0 {
		compatible = "pci168c,002b";
		reg = <0x0000 0 0 0 0>;
		nvmem-cells = <&cal_art_1000>, <&macaddr_uboot_1fc00 0>;
		nvmem-cell-names = "calibration", "mac-address";

		led {
			led-sources = <1>;
			led-active-low;
		};
	};
};
