All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARM64: dts: meson: enable passing MAC addr on u-boot environment
       [not found] <1516122805-20227-1-git-send-email-jramirez@baylibre.com>
@ 2018-01-17  8:38   ` Neil Armstrong
  0 siblings, 0 replies; 4+ messages in thread
From: Neil Armstrong @ 2018-01-17  8:38 UTC (permalink / raw)
  To: linus-amlogic

Hi Jorge,

On 16/01/2018 18:13, Jorge Ramirez-Ortiz wrote:
> From: Jorge Ramirez-Ortiz <jramirez@baylibre.org>
> 
> 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.
> 
> Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.org>
> ---
>  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..8ed2a98 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;
> +		ethernet = &ethmac;

Isn't it ethernet0 instead ?

>  	};
>  
>  	chosen {
> 

It would be great to have this on all boards with ethernet enabled.

Neil

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

* [PATCH] ARM64: dts: meson: enable passing MAC addr on u-boot environment
@ 2018-01-17  8:38   ` Neil Armstrong
  0 siblings, 0 replies; 4+ messages in thread
From: Neil Armstrong @ 2018-01-17  8:38 UTC (permalink / raw)
  To: linux-arm-kernel

Hi Jorge,

On 16/01/2018 18:13, Jorge Ramirez-Ortiz wrote:
> From: Jorge Ramirez-Ortiz <jramirez@baylibre.org>
> 
> 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.
> 
> Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.org>
> ---
>  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..8ed2a98 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;
> +		ethernet = &ethmac;

Isn't it ethernet0 instead ?

>  	};
>  
>  	chosen {
> 

It would be great to have this on all boards with ethernet enabled.

Neil

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

* [PATCH] ARM64: dts: meson: enable passing MAC addr on u-boot environment
  2018-01-17  8:38   ` Neil Armstrong
@ 2018-01-17  8:44     ` Jorge Ramirez-Ortiz
  -1 siblings, 0 replies; 4+ messages in thread
From: Jorge Ramirez-Ortiz @ 2018-01-17  8:44 UTC (permalink / raw)
  To: linus-amlogic

On 01/17/2018 09:38 AM, Neil Armstrong wrote:
> Hi Jorge,
>
> On 16/01/2018 18:13, Jorge Ramirez-Ortiz wrote:
>> From: Jorge Ramirez-Ortiz <jramirez@baylibre.org>
>>
>> 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.
>>
>> Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.org>
>> ---
>>   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..8ed2a98 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;
>> +		ethernet = &ethmac;
> Isn't it ethernet0 instead ?

uboot can take both (ethernet or ethernet%i)
I just double checked amlogics uboot and you are right it needs ethernet%i

so will fix


>
>>   	};
>>   
>>   	chosen {
>>
> It would be great to have this on all boards with ethernet enabled.

yes will post a new version shortly


>
> Neil
>

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

* [PATCH] ARM64: dts: meson: enable passing MAC addr on u-boot environment
@ 2018-01-17  8:44     ` Jorge Ramirez-Ortiz
  0 siblings, 0 replies; 4+ messages in thread
From: Jorge Ramirez-Ortiz @ 2018-01-17  8:44 UTC (permalink / raw)
  To: linux-arm-kernel

On 01/17/2018 09:38 AM, Neil Armstrong wrote:
> Hi Jorge,
>
> On 16/01/2018 18:13, Jorge Ramirez-Ortiz wrote:
>> From: Jorge Ramirez-Ortiz <jramirez@baylibre.org>
>>
>> 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.
>>
>> Signed-off-by: Jorge Ramirez-Ortiz <jramirez@baylibre.org>
>> ---
>>   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..8ed2a98 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;
>> +		ethernet = &ethmac;
> Isn't it ethernet0 instead ?

uboot can take both (ethernet or ethernet%i)
I just double checked amlogics uboot and you are right it needs ethernet%i

so will fix


>
>>   	};
>>   
>>   	chosen {
>>
> It would be great to have this on all boards with ethernet enabled.

yes will post a new version shortly


>
> Neil
>

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

end of thread, other threads:[~2018-01-17  8:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <1516122805-20227-1-git-send-email-jramirez@baylibre.com>
2018-01-17  8:38 ` [PATCH] ARM64: dts: meson: enable passing MAC addr on u-boot environment Neil Armstrong
2018-01-17  8:38   ` Neil Armstrong
2018-01-17  8:44   ` Jorge Ramirez-Ortiz
2018-01-17  8:44     ` Jorge Ramirez-Ortiz

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.