mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-01-20 13:50:48 +00:00
ipq40xx: convert mtd-mac-address to nvmem implementation
Define nvmem-cells and convert mtd-mac-address to nvmem implementation. The conversion is done with an automated script. Signed-off-by: Ansuel Smith <ansuelsmth@gmail.com>
This commit is contained in:
parent
1e6f330ccf
commit
821b664099
@ -197,11 +197,13 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
mtd-mac-address = <&art 0x1006>;
|
||||
nvmem-cells = <&macaddr_art_1006>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
&gmac1 {
|
||||
mtd-mac-address = <&art 0x5006>;
|
||||
nvmem-cells = <&macaddr_art_5006>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
&nand {
|
||||
@ -352,3 +354,17 @@
|
||||
status = "okay";
|
||||
qcom,ath10k-calibration-variant = "CM520-79F";
|
||||
};
|
||||
|
||||
&art {
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_art_1006: macaddr@1006 {
|
||||
reg = <0x1006 0x6>;
|
||||
};
|
||||
|
||||
macaddr_art_5006: macaddr@5006 {
|
||||
reg = <0x5006 0x6>;
|
||||
};
|
||||
};
|
||||
|
@ -403,11 +403,13 @@
|
||||
};
|
||||
|
||||
&gmac0 {
|
||||
mtd-mac-address = <&orgdata 0x20>;
|
||||
nvmem-cells = <&macaddr_orgdata_20>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
&gmac1 {
|
||||
mtd-mac-address = <&orgdata 0x20>;
|
||||
nvmem-cells = <&macaddr_orgdata_20>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
&usb3_ss_phy {
|
||||
@ -417,3 +419,13 @@
|
||||
&usb3_hs_phy {
|
||||
status = "okay";
|
||||
};
|
||||
|
||||
&orgdata {
|
||||
compatible = "nvmem-cells";
|
||||
#address-cells = <1>;
|
||||
#size-cells = <1>;
|
||||
|
||||
macaddr_orgdata_20: macaddr@20 {
|
||||
reg = <0x20 0x6>;
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user