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

/dts-v1/;
#include "mt7986a-acer-w6-common.dtsi"

/ {
	model = "Acer Connect Vero W6m";
	compatible = "acer,vero-w6m", "mediatek,mt7986a";

	aliases {
		serial0 = &uart0;
		led-boot = &led_status;
		led-failsafe = &led_status;
		led-running = &led_status;
		led-upgrade = &led_status;
	};
};

&i2c0 {
	led-controller@30 {
		compatible = "kinetic,ktd2026";
		reg = <0x30>;
		vin-supply = <&reg_5v>;
		vio-supply = <&reg_3p3v>;

		led_status: multi-led {
			color = <LED_COLOR_ID_RGB>;
			function = LED_FUNCTION_STATUS;
			#address-cells = <1>;
			#size-cells = <0>;

			led@0 {
				reg = <0>;
				color = <LED_COLOR_ID_RED>;
			};

			led@1 {
				reg = <1>;
				color = <LED_COLOR_ID_GREEN>;
			};

			led@2 {
				reg = <2>;
				color = <LED_COLOR_ID_BLUE>;
			};
		};
	};
};

&nvmem {
	eeprom_factory_a0000: eeprom@a0000 {
		reg = <0xa0000 0x1000>;
	};

	precal_factory_a1010: precal@a1010 {
		reg = <0xa1010 0x62810>;
	};
};

&slot0 {
	radio0: mt7915@0,0 {
		reg = <0x0000 0 0 0 0>;
		nvmem-cells = <&eeprom_factory_a0000>, <&precal_factory_a1010>;
		nvmem-cell-names = "eeprom", "precal";
	};
};

&swport0 {
       label = "internet";
};
