mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-06-20 15:48:26 +02: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 {
|
&gmac0 {
|
||||||
mtd-mac-address = <&art 0x1006>;
|
nvmem-cells = <&macaddr_art_1006>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
};
|
};
|
||||||
|
|
||||||
&gmac1 {
|
&gmac1 {
|
||||||
mtd-mac-address = <&art 0x5006>;
|
nvmem-cells = <&macaddr_art_5006>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
};
|
};
|
||||||
|
|
||||||
&nand {
|
&nand {
|
||||||
|
@ -352,3 +354,17 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
qcom,ath10k-calibration-variant = "CM520-79F";
|
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 {
|
&gmac0 {
|
||||||
mtd-mac-address = <&orgdata 0x20>;
|
nvmem-cells = <&macaddr_orgdata_20>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
};
|
};
|
||||||
|
|
||||||
&gmac1 {
|
&gmac1 {
|
||||||
mtd-mac-address = <&orgdata 0x20>;
|
nvmem-cells = <&macaddr_orgdata_20>;
|
||||||
|
nvmem-cell-names = "mac-address";
|
||||||
};
|
};
|
||||||
|
|
||||||
&usb3_ss_phy {
|
&usb3_ss_phy {
|
||||||
|
@ -417,3 +419,13 @@
|
||||||
&usb3_hs_phy {
|
&usb3_hs_phy {
|
||||||
status = "okay";
|
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