aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/mediatek/patches-5.10/101-dts-update-mt7629-rfb.patch
blob: 254b5f9eb72f003dabb447c928a6e7c33bae4608 (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
--- a/arch/arm/boot/dts/mt7629-rfb.dts
+++ b/arch/arm/boot/dts/mt7629-rfb.dts
@@ -18,6 +18,7 @@
 
 	chosen {
 		stdout-path = "serial0:115200n8";
+		bootargs = "earlycon=uart8250,mmio32,0x11002000 console=ttyS0,115200n8";
 	};
 
 	gpio-keys {
@@ -70,6 +71,10 @@
 		compatible = "mediatek,eth-mac";
 		reg = <0>;
 		phy-mode = "2500base-x";
+
+		nvmem-cells = <&macaddr_factory_2a>;
+		nvmem-cell-names = "mac-address";
+
 		fixed-link {
 			speed = <2500>;
 			full-duplex;
@@ -82,6 +87,9 @@
 		reg = <1>;
 		phy-mode = "gmii";
 		phy-handle = <&phy0>;
+
+		nvmem-cells = <&macaddr_factory_24>;
+		nvmem-cell-names = "mac-address";
 	};
 
 	mdio: mdio-bus {
@@ -133,8 +141,9 @@
 			};
 
 			partition@b0000 {
-				label = "kernel";
+				label = "firmware";
 				reg = <0xb0000 0xb50000>;
+				compatible = "denx,fit";
 			};
 		};
 	};
@@ -272,3 +281,17 @@
 	pinctrl-0 = <&watchdog_pins>;
 	status = "okay";
 };
+
+&factory {
+	compatible = "nvmem-cells";
+	#address-cells = <1>;
+	#size-cells = <1>;
+
+	macaddr_factory_24: macaddr@24 {
+		reg = <0x24 0x6>;
+	};
+
+	macaddr_factory_2a: macaddr@2a {
+		reg = <0x2a 0x6>;
+	};
+};