aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/bmips/dts/bcm63168-comtrend-vr-3032u.dts
diff options
context:
space:
mode:
authorAnsuel Smith <ansuelsmth@gmail.com>2021-07-18 19:37:39 +0200
committerPetr Štetiar <ynezz@true.cz>2021-07-19 14:51:22 +0200
commit32adbfc789f6113fa6a297de71d36df32fcb8324 (patch)
treeb726218b09be6bf806c27828b5818c090af60947 /target/linux/bmips/dts/bcm63168-comtrend-vr-3032u.dts
parent821b6640994df32d20a087a01b7c368187a93c24 (diff)
downloadupstream-32adbfc789f6113fa6a297de71d36df32fcb8324.tar.gz
upstream-32adbfc789f6113fa6a297de71d36df32fcb8324.tar.bz2
upstream-32adbfc789f6113fa6a297de71d36df32fcb8324.zip
bmips: 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>
Diffstat (limited to 'target/linux/bmips/dts/bcm63168-comtrend-vr-3032u.dts')
-rw-r--r--target/linux/bmips/dts/bcm63168-comtrend-vr-3032u.dts13
1 files changed, 12 insertions, 1 deletions
diff --git a/target/linux/bmips/dts/bcm63168-comtrend-vr-3032u.dts b/target/linux/bmips/dts/bcm63168-comtrend-vr-3032u.dts
index 094dca1585..95fda0843c 100644
--- a/target/linux/bmips/dts/bcm63168-comtrend-vr-3032u.dts
+++ b/target/linux/bmips/dts/bcm63168-comtrend-vr-3032u.dts
@@ -44,7 +44,8 @@
&ethernet {
status = "okay";
- mtd-mac-address = <&cferom 0x6a0>;
+ nvmem-cells = <&macaddr_cferom_6a0>;
+ nvmem-cell-names = "mac-address";
};
&leds {
@@ -224,3 +225,13 @@
&usbh {
status = "okay";
};
+
+&cferom {
+ compatible = "nvmem-cells";
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ macaddr_cferom_6a0: macaddr@6a0 {
+ reg = <0x6a0 0x6>;
+ };
+};