All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] ARM64: dts: meson s905x: accept MAC addr from u-boot environment
@ 2018-01-17 10:55 ` Jorge Ramirez-Ortiz
  0 siblings, 0 replies; 6+ messages in thread
From: Jorge Ramirez-Ortiz @ 2018-01-17 10:55 UTC (permalink / raw)
  To: linus-amlogic

With the adequate configuration settings, u-boot will loop through the
list of aliases looking for "ethernetX".

By adding an ethernet alias, u-boot can fixup the local-mac-address
property in the kernel's device tree using a value held in its
environment variable ethaddr.

Tested-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
---
 arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts
index 68d2c90..278d769 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts
@@ -18,6 +18,7 @@
 
 	aliases {
 		serial0 = &uart_AO;
+		ethernet0 = &ethmac;
 	};
 
 	chosen {
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v2] ARM64: dts: meson s905x: accept MAC addr from u-boot environment
@ 2018-01-17 10:55 ` Jorge Ramirez-Ortiz
  0 siblings, 0 replies; 6+ messages in thread
From: Jorge Ramirez-Ortiz @ 2018-01-17 10:55 UTC (permalink / raw)
  To: linux-arm-kernel

With the adequate configuration settings, u-boot will loop through the
list of aliases looking for "ethernetX".

By adding an ethernet alias, u-boot can fixup the local-mac-address
property in the kernel's device tree using a value held in its
environment variable ethaddr.

Tested-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
---
 arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts
index 68d2c90..278d769 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts
@@ -18,6 +18,7 @@
 
 	aliases {
 		serial0 = &uart_AO;
+		ethernet0 = &ethmac;
 	};
 
 	chosen {
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v2] ARM64: dts: meson s905x: accept MAC addr from u-boot  environment
@ 2018-01-17 10:55 ` Jorge Ramirez-Ortiz
  0 siblings, 0 replies; 6+ messages in thread
From: Jorge Ramirez-Ortiz @ 2018-01-17 10:55 UTC (permalink / raw)
  To: jramirez, carlo, khilman
  Cc: linux-arm-kernel, linux-amlogic, jbrunet, linux-kernel

With the adequate configuration settings, u-boot will loop through the
list of aliases looking for "ethernetX".

By adding an ethernet alias, u-boot can fixup the local-mac-address
property in the kernel's device tree using a value held in its
environment variable ethaddr.

Tested-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
---
 arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts
index 68d2c90..278d769 100644
--- a/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts
+++ b/arch/arm64/boot/dts/amlogic/meson-gxl-s905x-libretech-cc.dts
@@ -18,6 +18,7 @@
 
 	aliases {
 		serial0 = &uart_AO;
+		ethernet0 = &ethmac;
 	};
 
 	chosen {
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [PATCH v2] ARM64: dts: meson s905x: accept MAC addr from u-boot environment
  2018-01-17 10:55 ` Jorge Ramirez-Ortiz
  (?)
@ 2018-01-31  0:32   ` Kevin Hilman
  -1 siblings, 0 replies; 6+ messages in thread
From: Kevin Hilman @ 2018-01-31  0:32 UTC (permalink / raw)
  To: linus-amlogic

Jorge Ramirez-Ortiz <jramirez@baylibre.com> writes:

> With the adequate configuration settings, u-boot will loop through the
> list of aliases looking for "ethernetX".
>
> By adding an ethernet alias, u-boot can fixup the local-mac-address
> property in the kernel's device tree using a value held in its
> environment variable ethaddr.
>
> Tested-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
> Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>

Applied to v4.17/dt64,

Kevin

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [PATCH v2] ARM64: dts: meson s905x: accept MAC addr from u-boot environment
@ 2018-01-31  0:32   ` Kevin Hilman
  0 siblings, 0 replies; 6+ messages in thread
From: Kevin Hilman @ 2018-01-31  0:32 UTC (permalink / raw)
  To: linux-arm-kernel

Jorge Ramirez-Ortiz <jramirez@baylibre.com> writes:

> With the adequate configuration settings, u-boot will loop through the
> list of aliases looking for "ethernetX".
>
> By adding an ethernet alias, u-boot can fixup the local-mac-address
> property in the kernel's device tree using a value held in its
> environment variable ethaddr.
>
> Tested-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
> Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>

Applied to v4.17/dt64,

Kevin

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [PATCH v2] ARM64: dts: meson s905x: accept MAC addr from u-boot  environment
@ 2018-01-31  0:32   ` Kevin Hilman
  0 siblings, 0 replies; 6+ messages in thread
From: Kevin Hilman @ 2018-01-31  0:32 UTC (permalink / raw)
  To: Jorge Ramirez-Ortiz
  Cc: carlo, linux-arm-kernel, linux-amlogic, jbrunet, linux-kernel

Jorge Ramirez-Ortiz <jramirez@baylibre.com> writes:

> With the adequate configuration settings, u-boot will loop through the
> list of aliases looking for "ethernetX".
>
> By adding an ethernet alias, u-boot can fixup the local-mac-address
> property in the kernel's device tree using a value held in its
> environment variable ethaddr.
>
> Tested-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>
> Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.com>

Applied to v4.17/dt64,

Kevin

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-01-31  0:32 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-17 10:55 [PATCH v2] ARM64: dts: meson s905x: accept MAC addr from u-boot environment Jorge Ramirez-Ortiz
2018-01-17 10:55 ` Jorge Ramirez-Ortiz
2018-01-17 10:55 ` Jorge Ramirez-Ortiz
2018-01-31  0:32 ` Kevin Hilman
2018-01-31  0:32   ` Kevin Hilman
2018-01-31  0:32   ` Kevin Hilman

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.