aboutsummaryrefslogtreecommitdiff
path: root/target/linux/mediatek/dts/mt7988d-asus-zenwifi-bt8.dts
blob: 1f95a01fbe00ecf982d553f7534dc4b3e9213510 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
// SPDX-License-Identifier: (GPL-2.0 OR MIT)

#include "mt7988d-asus-zenwifi-bt8.dtsi"

/ {
	model = "ASUS ZenWiFi BT8";
	compatible = "asus,zenwifi-bt8", "mediatek,mt7988a";

	chosen {
		bootargs-override = "earlycon=uart8250,mmio32,0x11000000 console=ttyS0,115200n8";
		stdout-path = "serial0:115200n8";
	};
};

&spi0 {
	pinctrl-names = "default";
	pinctrl-0 = <&spi0_flash_pins>;
	status = "okay";

	spi_nand: spi_nand@0 {
		compatible = "u-boot-dont-touch-spi-nand";
		reg = <0>;
		spi-max-frequency = <52000000>;
		spi-tx-bus-width = <4>;
		spi-rx-bus-width = <4>;

		partitions {
			compatible = "fixed-partitions";
			#address-cells = <1>;
			#size-cells = <1>;

			partition@0 {
				reg = <0x0 0x400000>;
				label = "Bootloader";
				read-only;
			};

			partition@400000 {
				reg = <0x400000 0x7c00000>;
				compatible = "linux,ubi";
				label = "UBI_DEV";

				volumes {
					ubi_factory: ubi-volume-factory {
						volname = "Factory";
					};
				};
			};
		};
	};
};

&ubi_factory {
	ASUS_BT8_NVMEM_LAYOUT;
};

&gmac0 {
	nvmem-cells = <&macaddr_factory_4>;
	nvmem-cell-names = "mac-address";
};

&gmac1 {
	nvmem-cells = <&macaddr_factory_a>;
	nvmem-cell-names = "mac-address";
};

&gmac2 {
	nvmem-cells = <&macaddr_factory_4>;
	nvmem-cell-names = "mac-address";
};

&mt7996_wifi {
	#address-cells = <1>;
	#size-cells = <0>;
	nvmem-cells = <&eeprom_factory_0>;
	nvmem-cell-names = "eeprom";

	band@0 {
		/* 2.4 GHz */
		reg = <0>;
		nvmem-cells = <&macaddr_factory_fffee>;
		nvmem-cell-names = "mac-address";
	};

	band@1 {
		/* 5 GHz */
		reg = <1>;
		nvmem-cells = <&macaddr_factory_ffff4>;
		nvmem-cell-names = "mac-address";
	};

	band@2 {
		/* 6 GHz */
		reg = <2>;
		nvmem-cells = <&macaddr_factory_ffffa>;
		nvmem-cell-names = "mac-address";
	};
};