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>
ðernet {
status = "okay";
- mtd-mac-address = <&cferom 0x6a0>;
+ nvmem-cells = <&macaddr_cferom_6a0>;
+ nvmem-cell-names = "mac-address";
};
&leds {
&usbh {
status = "okay";
};
+
+&cferom {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_cferom_6a0: macaddr@6a0 {
+ reg = <0x6a0 0x6>;
+ };
+};
pci-bus = <1>;
pci-dev = <0>;
- mtd-mac-address = <&cfe 0x6a0>;
- mtd-mac-address-increment = <1>;
+ nvmem-cells = <&macaddr_cfe_6a0>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
brcm,sprom-fixups = <6 0x1c00>,
<65 0x1255>,
ðernet {
status = "okay";
- mtd-mac-address = <&cfe 0x6a0>;
+ nvmem-cells = <&macaddr_cfe_6a0>;
+ nvmem-cell-names = "mac-address";
};
&hsspi {
&usbh {
status = "okay";
};
+
+&cfe {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_cfe_6a0: macaddr@6a0 {
+ reg = <0x6a0 0x6>;
+ };
+};
pci-bus = <1>;
pci-dev = <0>;
- mtd-mac-address = <&cfe 0x6a0>;
- mtd-mac-address-increment = <1>;
+ nvmem-cells = <&macaddr_cfe_6a0>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
brcm,sprom-fixups = <2 0x05bb>,
<65 0x1204>,
ðernet {
status = "okay";
- mtd-mac-address = <&cfe 0x6a0>;
+ nvmem-cells = <&macaddr_cfe_6a0>;
+ nvmem-cell-names = "mac-address";
};
&hsspi {
&usbh {
status = "okay";
};
+
+&cfe {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_cfe_6a0: macaddr@6a0 {
+ reg = <0x6a0 0x6>;
+ };
+};
pci-dev = <1>;
- mtd-mac-address = <&cfe 0x6a0>;
- mtd-mac-address-increment = <1>;
+ nvmem-cells = <&macaddr_cfe_6a0>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
ath,eeprom = <&cal_data 0x1e000>;
ath,endian-check;
&usbh {
status = "okay";
};
+
+&cfe {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_cfe_6a0: macaddr@6a0 {
+ reg = <0x6a0 0x6>;
+ };
+};
ðernet {
status = "okay";
- mtd-mac-address = <&cferom 0x6a0>;
+ nvmem-cells = <&macaddr_cferom_6a0>;
+ nvmem-cell-names = "mac-address";
};
&leds {
&usbh {
status = "okay";
};
+
+&cferom {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_cferom_6a0: macaddr@6a0 {
+ reg = <0x6a0 0x6>;
+ };
+};
pci-bus = <0>;
pci-dev = <1>;
- mtd-mac-address = <&cfe 0x6a0>;
- mtd-mac-address-increment = <1>;
+ nvmem-cells = <&macaddr_cfe_6a0>;
+ nvmem-cell-names = "mac-address";
+ mac-address-increment = <1>;
brcm,sprom-fixups = <97 0xfeb3>,
<98 0x1618>,
ðernet {
status = "okay";
- mtd-mac-address = <&cfe 0x6a0>;
+ nvmem-cells = <&macaddr_cfe_6a0>;
+ nvmem-cell-names = "mac-address";
};
&ohci {
&usbh {
status = "okay";
};
+
+&cfe {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_cfe_6a0: macaddr@6a0 {
+ reg = <0x6a0 0x6>;
+ };
+};