Commit dfa6570e authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Florian Fainelli
Browse files

ARM: dts: BCM5301X: Specify MAC addresses on Luxul devices



Use NRAM (NVMEM device) and its "et0macaddr" variable (NVMEM cell) to
point Ethernet devices to their MAC addresses.

Signed-off-by: default avatarRafał Miłecki <rafal@milecki.pl>
Link: https://lore.kernel.org/r/20230515083308.7612-1-zajec5@gmail.com


Signed-off-by: default avatarFlorian Fainelli <florian.fainelli@broadcom.com>
parent 19571b46
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
@@ -20,6 +20,14 @@
		reg = <0x00000000 0x08000000>;
	};

	nvram@1eff0000 {
		compatible = "brcm,nvram";
		reg = <0x1eff0000 0x10000>;

		et0macaddr: et0macaddr {
		};
	};

	leds {
		compatible = "gpio-leds";

@@ -53,6 +61,11 @@
	};
};

&gmac0 {
	nvmem-cells = <&et0macaddr>;
	nvmem-cell-names = "mac-address";
};

&spi_nor {
	status = "okay";
};
+13 −0
Original line number Diff line number Diff line
@@ -24,6 +24,14 @@
		reg = <0x00000000 0x08000000>;
	};

	nvram@1eff0000 {
		compatible = "brcm,nvram";
		reg = <0x1eff0000 0x10000>;

		et0macaddr: et0macaddr {
		};
	};

	nand_controller: nand-controller@18028000 {
		nand@0 {
			partitions {
@@ -60,6 +68,11 @@
	};
};

&gmac0 {
	nvmem-cells = <&et0macaddr>;
	nvmem-cell-names = "mac-address";
};

&spi_nor {
	status = "okay";
};
+13 −0
Original line number Diff line number Diff line
@@ -20,6 +20,14 @@
		reg = <0x00000000 0x08000000>;
	};

	nvram@1eff0000 {
		compatible = "brcm,nvram";
		reg = <0x1eff0000 0x10000>;

		et0macaddr: et0macaddr {
		};
	};

	leds {
		compatible = "gpio-leds";

@@ -53,6 +61,11 @@
	};
};

&gmac0 {
	nvmem-cells = <&et0macaddr>;
	nvmem-cell-names = "mac-address";
};

&spi_nor {
	status = "okay";
};
+11 −0
Original line number Diff line number Diff line
@@ -24,6 +24,10 @@
	nvram@1eff0000 {
		compatible = "brcm,nvram";
		reg = <0x1eff0000 0x10000>;

		et0macaddr: et0macaddr {
			#nvmem-cell-cells = <1>;
		};
	};

	leds {
@@ -106,6 +110,11 @@
	vcc-gpio = <&chipcommon 9 GPIO_ACTIVE_HIGH>;
};

&gmac0 {
	nvmem-cells = <&et0macaddr 0>;
	nvmem-cell-names = "mac-address";
};

&spi_nor {
	status = "okay";
};
@@ -137,6 +146,8 @@
		port@4 {
			reg = <4>;
			label = "wan";
			nvmem-cells = <&et0macaddr 5>;
			nvmem-cell-names = "mac-address";
		};

		port@5 {
+11 −0
Original line number Diff line number Diff line
@@ -25,6 +25,10 @@
	nvram@1eff0000 {
		compatible = "brcm,nvram";
		reg = <0x1eff0000 0x10000>;

		et0macaddr: et0macaddr {
			#nvmem-cell-cells = <1>;
		};
	};

	leds {
@@ -61,6 +65,11 @@
	vcc-gpio = <&chipcommon 18 GPIO_ACTIVE_HIGH>;
};

&gmac0 {
	nvmem-cells = <&et0macaddr 0>;
	nvmem-cell-names = "mac-address";
};

&spi_nor {
	status = "okay";
};
@@ -76,6 +85,8 @@
		port@0 {
			reg = <0>;
			label = "wan";
			nvmem-cells = <&et0macaddr 1>;
			nvmem-cell-names = "mac-address";
		};

		port@1 {
Loading