From patchwork Wed Jan 17 10:55:43 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jorge Ramirez-Ortiz X-Patchwork-Id: 10169049 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id E1A9C603B5 for ; Wed, 17 Jan 2018 10:56:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D0199268AE for ; Wed, 17 Jan 2018 10:56:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id C4C0528497; Wed, 17 Jan 2018 10:56:20 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 70993268AE for ; Wed, 17 Jan 2018 10:56:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=4w3A1YijWnZunJ4kvfmQRAF82FvIKjZpxeEjTZdfmJM=; b=G2f LBVW7OpfLRZsy6df3a8/SEGc2YQ40gjR2LyaJP8eFh+U52OQMnqwy9FFucGkOP33p4LX+MQpClDJP uUZ87ZIc2vTqd+lnMTn8cKQBHrbchJj99wEZjQ2b+mQGr27eNKw9IKUlYe+PbAjsBdupRQZ2b0wKT u/OiYbr2Y5y3H3dEegMsccS/e+xWcsObc/xL98so/ad1SDEOKrwCvj/7C3dizlE5tU6ZTCeDlTfje hfQVTe3Tvlg/a/pljPXgW2SnvP0cw5mJC/9cejHrzfcHM6+f4oisTzFnYTJqF+QPCdEV1tUMCL0Hn IJps5BRgDUSHBs85zWIHpoHbdF5PRqg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1eblO0-0002Be-4C; Wed, 17 Jan 2018 10:56:04 +0000 Received: from mail-wm0-x244.google.com ([2a00:1450:400c:c09::244]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1eblNw-00026S-En for linux-amlogic@lists.infradead.org; Wed, 17 Jan 2018 10:56:02 +0000 Received: by mail-wm0-x244.google.com with SMTP id v123so14797094wmd.5 for ; Wed, 17 Jan 2018 02:55:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=baylibre-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=jmF9KIfo41lCdbSlOJ/NRDX9iLe/0jwnUrmw+45t9co=; b=1rbBqOXCr56PoAGqJTKmMG7nVdMPvwVDJG7dxEd8aKi8IOG6Rr6KSqRKTSIKXXo/LO 9TDSeWc6ghy/SSA5Jr35aHZcr3+iOSrxIZYunownzTZK3M9/RTNaP/pnwU6WqrXOdEj9 Fx72HVopDx+oGwDuVqGZ981aUgR6Lm0XDqGeYPNVi5BnTHz7j0q7yvgq9XgRL20wvp3N rVmdtnGqgx3hkPd0TU0vQP99JqvCKI+ls0hSw4kqDG3+TtIgLnMuoTQ6v2n+Mgfsm/qw dFvxim4s/D1jDsJ6u6qEv/n/fJNkVjAZFkYkd65bPIwkP/p+HvkMJgUzPcKzNuW0lUrX t1fQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=jmF9KIfo41lCdbSlOJ/NRDX9iLe/0jwnUrmw+45t9co=; b=udY55Vd/aSu8spoPpSx9Agb7bzfRXrxR6X35o2CjviY+FLZ/WENHFUeWKxkFoSPgG7 AAopFc31ME+HjhgeeXvr36hkVd3qBdwmMvESm1Mf6QmJZ+NPhBs/MavyP4xZXFJN6Bd0 FD4Nw+OrJGCEDRUMMtc3XjSNU1hJBIAyCXKidvU7gRQls4Inq05WGTPk62s0V7i5k5b9 5AsrNhVo/10l8HcW6GXi18zrZagju9pH+geEuZUqOKQZQnjQ5b0Y6FuhxqmFTD/2vjst MTWF3zLC/NnkNQsiazlN0VwjJgsXHqVtY1Q/K2+/ZDt6jRMy+rOspqFOsmfcWN+SaXcd +6rQ== X-Gm-Message-State: AKwxytdaTlzDannvMdLfV81dlORTISgRTlEy+y+Bn6c4QjSH+Te+nWSw fypMpfqPI0aiy7m9XR5pXGLLQA== X-Google-Smtp-Source: ACJfBouiYoIxkYt3IxXd7eVYnFsRdatIT2lvhXbZNzN4QTRiQx/L6lz53F4c2U+0wJGi0fzEGJGWlw== X-Received: by 10.28.71.77 with SMTP id u74mr1720061wma.150.1516186548306; Wed, 17 Jan 2018 02:55:48 -0800 (PST) Received: from igloo.80.58.61.254 (141.pool85-51-114.dynamic.orange.es. [85.51.114.141]) by smtp.gmail.com with ESMTPSA id x190sm775386wme.27.2018.01.17.02.55.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 17 Jan 2018 02:55:47 -0800 (PST) From: Jorge Ramirez-Ortiz To: jramirez@baylibre.com, carlo@caione.org, khilman@baylibre.com 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 X-BeenThere: linux-amlogic@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-amlogic@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, jbrunet@baylibre.com MIME-Version: 1.0 Sender: "linux-amlogic" Errors-To: linux-amlogic-bounces+patchwork-linux-amlogic=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP 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 {