* [PATCH] ARM: dts: imx6qdl-gw54xx: allow boot firmware to set eth1 MAC
@ 2020-05-28 19:53 Tim Harvey
2020-06-23 3:47 ` Shawn Guo
0 siblings, 1 reply; 2+ messages in thread
From: Tim Harvey @ 2020-05-28 19:53 UTC (permalink / raw)
To: Shawn Guo, Sascha Hauer
Cc: Pengutronix Kernel Team, Fabio Estevam, NXP Linux Team,
devicetree, linux-arm-kernel, linux-kernel, Rob Herring,
Tim Harvey
The GW54xx has a PCIe based GbE as the 2nd ethernet device. The
boot firmware will populate the local-mac-address field of the
device aliased to ethernet1 thus adding the PCIe device to
dt allows boot firmware to set its MAC address.
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---
arch/arm/boot/dts/imx6qdl-gw54xx.dtsi | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi b/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
index c40583d..5527f95 100644
--- a/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-gw54xx.dtsi
@@ -9,6 +9,7 @@
/ {
/* these are used by bootloader for disabling nodes */
aliases {
+ ethernet1 = ð1;
led0 = &led0;
led1 = &led1;
led2 = &led2;
@@ -398,6 +399,23 @@
pinctrl-0 = <&pinctrl_pcie>;
reset-gpio = <&gpio1 29 GPIO_ACTIVE_LOW>;
status = "okay";
+
+ pcie@0,0,0 {
+ reg = <0x0000 0 0 0 0>;
+
+ pcie@1,0,0 {
+ reg = <0x0000 0 0 0 0>;
+
+ pcie@2,8,0 {
+ reg = <0x4000 0 0 0 0>;
+
+ eth1: pcie@8,0,0 {
+ reg = <0x0000 0 0 0 0>;
+ local-mac-address = [00 00 00 00 00 00];
+ };
+ };
+ };
+ };
};
&pwm1 {
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ARM: dts: imx6qdl-gw54xx: allow boot firmware to set eth1 MAC
2020-05-28 19:53 [PATCH] ARM: dts: imx6qdl-gw54xx: allow boot firmware to set eth1 MAC Tim Harvey
@ 2020-06-23 3:47 ` Shawn Guo
0 siblings, 0 replies; 2+ messages in thread
From: Shawn Guo @ 2020-06-23 3:47 UTC (permalink / raw)
To: Tim Harvey
Cc: Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
NXP Linux Team, devicetree, linux-arm-kernel, linux-kernel,
Rob Herring
On Thu, May 28, 2020 at 12:53:16PM -0700, Tim Harvey wrote:
> The GW54xx has a PCIe based GbE as the 2nd ethernet device. The
> boot firmware will populate the local-mac-address field of the
> device aliased to ethernet1 thus adding the PCIe device to
> dt allows boot firmware to set its MAC address.
>
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-06-23 3:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-28 19:53 [PATCH] ARM: dts: imx6qdl-gw54xx: allow boot firmware to set eth1 MAC Tim Harvey
2020-06-23 3:47 ` Shawn Guo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).