projects
/
openwrt
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ramips: TP-Link Archer C5 v4: license and file formatting fixes
[openwrt/openwrt.git]
/
target
/
linux
/
ramips
/
dts
/
mt7628an_wrtnode_wrtnode2.dtsi
diff --git
a/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi
b/target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi
index 882a8838dd7560320315705ba97109785602a780..f532a3e2a8c37c2a4ec526e8742289d07a2ea4a3 100644
(file)
--- a/
target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi
+++ b/
target/linux/ramips/dts/mt7628an_wrtnode_wrtnode2.dtsi
@@
-24,10
+24,11
@@
&spi0 {
status = "okay";
&spi0 {
status = "okay";
-
m25p80
@0 {
+
flash
@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
+ broken-flash-reset;
partitions {
compatible = "fixed-partitions";
partitions {
compatible = "fixed-partitions";
@@
-46,10
+47,24
@@
read-only;
};
read-only;
};
-
factory:
partition@40000 {
+ partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
label = "factory";
reg = <0x40000 0x10000>;
read-only;
+
+ nvmem-layout {
+ compatible = "fixed-layout";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ eeprom_factory_0: eeprom@0 {
+ reg = <0x0 0x400>;
+ };
+
+ macaddr_factory_4: macaddr@4 {
+ reg = <0x4 0x6>;
+ };
+ };
};
partition@50000 {
};
partition@50000 {
@@
-70,7
+85,8
@@
};
ðernet {
};
ðernet {
- mtd-mac-address = <&factory 0x4>;
+ nvmem-cells = <&macaddr_factory_4>;
+ nvmem-cell-names = "mac-address";
};
&esw {
};
&esw {
@@
-87,4
+103,7
@@
&wmac {
status = "okay";
&wmac {
status = "okay";
+
+ nvmem-cells = <&eeprom_factory_0>;
+ nvmem-cell-names = "eeprom";
};
};