Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752883AbeAQKzw (ORCPT + 1 other); Wed, 17 Jan 2018 05:55:52 -0500 Received: from mail-wm0-f68.google.com ([74.125.82.68]:38987 "EHLO mail-wm0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752228AbeAQKzt (ORCPT ); Wed, 17 Jan 2018 05:55:49 -0500 X-Google-Smtp-Source: ACJfBouiYoIxkYt3IxXd7eVYnFsRdatIT2lvhXbZNzN4QTRiQx/L6lz53F4c2U+0wJGi0fzEGJGWlw== From: Jorge Ramirez-Ortiz To: jramirez@baylibre.com, carlo@caione.org, khilman@baylibre.com Cc: linux-arm-kernel@lists.infradead.org, linux-amlogic@lists.infradead.org, jbrunet@baylibre.com, linux-kernel@vger.kernel.org Subject: [PATCH v2] ARM64: dts: meson s905x: accept MAC addr from u-boot environment Date: Wed, 17 Jan 2018 11:55:43 +0100 Message-Id: <1516186543-22056-1-git-send-email-jramirez@baylibre.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: 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 Signed-off-by: Jorge Ramirez-Ortiz --- 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 = ðmac; }; chosen { -- 2.7.4