From patchwork Tue Jan 16 17:13:25 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: 10167713 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 B3CA7601E7 for ; Tue, 16 Jan 2018 17:14:08 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9651223201 for ; Tue, 16 Jan 2018 17:14:08 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 889152624A; Tue, 16 Jan 2018 17:14:08 +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 3E2FE23201 for ; Tue, 16 Jan 2018 17:14:08 +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=3QmqxkImEplhyYkUSyvjw15cmre/DxIY/P/Elf7frlk=; b=flv dqob/2TqQ96u1/dRuii8knN2mPREhjgQZHO9rZNqkgO12gWryzGs7wOSrP3JD9ea5kj0qenCbkGxC 97cydx3T9eGMHGZqoE7mtH5EuR4iYFiAvrxDmySrhpmckUz10iR7BK9cvjO4k502EQo2RbSpLUMZ8 ZVxVOz6bFedU8QVtOQG8ig4ssxxfyJenL0ekMHWY+ESZaCgSZOyxj347PLFIUIvZSPlPteUTj6SJ9 iUZsyDiwIKH9IA+VuLe0Z2q3QQG8SX4UPaRuXElDjtV6iZaE3DOyOQv36UN0Yoo8MCYLxATVjfPN0 ZLDdPDYwtqx0EI1dpLJvECCUeCCx4iw==; 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 1ebUo8-0005uT-Q0; Tue, 16 Jan 2018 17:13:56 +0000 Received: from mail-wr0-x241.google.com ([2a00:1450:400c:c0c::241]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1ebUo5-0005p2-58 for linux-amlogic@lists.infradead.org; Tue, 16 Jan 2018 17:13:55 +0000 Received: by mail-wr0-x241.google.com with SMTP id g21so15964486wrb.13 for ; Tue, 16 Jan 2018 09:13:40 -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=IrwhjCs8ji7hgZ9B1P3Z2y3Q9NhcVGlV++8qeBKQRZA=; b=BOTc8J89OQ0kFzcM4aGTDNdqFxvKYJd2FnEAdKHuiT5qpxB5OFuCn549NzWDMHJZfk 5iPui+JQhj9mQ+6At9eOnX46jy8xCMK87Bal8zKR5F/dDlOMnVC5Je4pHhOrhBdsXnCA 7doKNQzWod8U8+JnV7v8brz7NdlO4A2z7ojdUtAzgaQZAsmKU502TUd1ymT4b2wWdR97 b1Vy/OrH1PI4dxD1AWHwVWVtfl6AspqAw3Vbhmgi9UgeY9Vc1YKbPAAbgp3xJpTGCj9L 6A+foZQZel4DKG8e17WwuQRy4uZCMvbRwwWnfuWL11DiZbWj0Qgi3UQJ1GkWAOULXNM4 USJA== 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=IrwhjCs8ji7hgZ9B1P3Z2y3Q9NhcVGlV++8qeBKQRZA=; b=p5DaF971HcmKNb1WWgdZYjKH1BVDHleh1cDkdhC+1zm98qd7ri35Zwt9OPGyuVAQuq kvwuYRkD/bTJYKx12GumRgu1c3QL5gjx5+8ep8F7VHruiJD6y4pnhOsvMPjFyin54a8a UHGUWqgn80TJCvNvJw0mdoM+6EinD1UMWQFjMRmAsN8Et8SLPxym9WobEJNjdY+ALvoD s1J9AI2Ybft7p1YuI1oYE+PS70x8FdDZ3o+YU1pEApq8mm/hIbeEECIqCm+BWWs+rB8W LfuHH+mNQjrVKYXd47eFvWyiW+lD7nQ+NJ4wpwYPYlZhfT2k+HfWlURmyJozATrPOCnN HK6Q== X-Gm-Message-State: AKwxytdR7rx1bNAXe5BYX6MpHiYArdr6f1h8dLGt2xSGoy6PTzPMwYdO z807yRcXwR/7NdSP0BlU5ax25Q== X-Google-Smtp-Source: ACJfBotKa4SYVPaoUQi7PLhAxoTQzPItkCYBEYXTBcqd4VV6OPxVAG/nrLigotR8JUipjVRd7S71aw== X-Received: by 10.223.135.2 with SMTP id a2mr10352218wra.126.1516122819072; Tue, 16 Jan 2018 09:13:39 -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 j43sm1789036wre.86.2018.01.16.09.13.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 16 Jan 2018 09:13:38 -0800 (PST) From: Jorge Ramirez-Ortiz To: jorge.ramirez.ortiz@gmail.com, carlo@caione.org, khilman@baylibre.com Subject: [PATCH] ARM64: dts: meson: enable passing MAC addr on u-boot environment Date: Tue, 16 Jan 2018 18:13:25 +0100 Message-Id: <1516122805-20227-1-git-send-email-jramirez@baylibre.com> X-Mailer: git-send-email 2.7.4 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180116_091353_351916_B85BAAA6 X-CRM114-Status: UNSURE ( 7.72 ) X-CRM114-Notice: Please train this message. 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-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 From: Jorge Ramirez-Ortiz 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 --- 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 = ðmac; }; chosen {