Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1570230ybi; Sat, 27 Jul 2019 12:48:50 -0700 (PDT) X-Google-Smtp-Source: APXvYqwgWLcTfPrAt7qTSz3VNfwSbZmz7PTm2IlxCioDqS669k6Ti+tbUtGF/3dtuhfpKhYONJuE X-Received: by 2002:a17:90a:9301:: with SMTP id p1mr103947335pjo.22.1564256930678; Sat, 27 Jul 2019 12:48:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564256930; cv=none; d=google.com; s=arc-20160816; b=vXqvEtJ3GG73HqjY482TADI9sWLbGkouQH9ZoLYUIhuTgRU/3ctVncMZ6GAYNWLljD zPJeCgEZazZ3r7ky5dfuu40h5EBFaum3uJrttW728d3Rb0Jc1Qy0h8ihthINbfwVsYSu +f6juzIKfIJvogVGlLTiF/bzjuXymfpqnGozUQxEo3yHoNMelj5lnqz/BpX0DQLxwJUa pL5YFmNDxg0AaCysTV6Ov7h0FJxoj3MSV1pj3Qfb6rNT3AkmJjo6PJAmhR/m+5XHjncd pg9v1O708o4HRHmYoO2QpJ7whwPYXEEP87/wUg/n/3Bs4nKCveMWngm/4hgMuVfj330G 5OIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nJlEm3dspnVA1ANEmrZqrPkw4P7Y/3ZVDcm+FttuwD8=; b=J824uxpplAMNylP+G+wEtpHLCoya71GWddsbQasebVVtUiSjApswMx2klXlv4e3fGJ uiLUmAHqdp1aZT6TwHHOIsioowjwV9wQS/8Xmbn3zlDmBr6a78hnP1/cEZ1f4v1bFV6J L2zRchhEJzy1fTrxqz+1wAl97m5bMTblo7sUQfyYXy9tNfqdz5J6fcsvzJo6vLtEKX9L PriXdkOjNzSh6oGncZVwSZNV0sSaytHYmNa1hPj4aTggmdASW2UM0+D+gl5Bozy+cSS1 cJnTFwpvXUqXWElnziFhLypxuUpyrdJtQ4TqDVpZS7RCXjK+lnV8io/ORvWs4OvQD3gM 5FDA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=jMGFetvU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s189si21718515pgb.272.2019.07.27.12.48.16; Sat, 27 Jul 2019 12:48:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@googlemail.com header.s=20161025 header.b=jMGFetvU; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=googlemail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388260AbfG0TrN (ORCPT + 99 others); Sat, 27 Jul 2019 15:47:13 -0400 Received: from mail-wm1-f66.google.com ([209.85.128.66]:37984 "EHLO mail-wm1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387890AbfG0TrL (ORCPT ); Sat, 27 Jul 2019 15:47:11 -0400 Received: by mail-wm1-f66.google.com with SMTP id s15so28881686wmj.3 for ; Sat, 27 Jul 2019 12:47:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=nJlEm3dspnVA1ANEmrZqrPkw4P7Y/3ZVDcm+FttuwD8=; b=jMGFetvUkouy5oaS2jC9JloqDDB4ECT5Fa59B0q8l9FZFb1TmFQeFuDB+PkR6358Hl GZOcEZ06G86uK/6zH82Gwdj8NsArIOCIX+mrwQBhjItintgYrxBW/lL7dTjOMWK26XS4 TqV5BIAhUlaj9eFliO6D+6sdMxwNl6eAb0oXuaKkUA/eQJ5DNtO1DC80LTUbEPC5AVst lkg2S+BsXMyk57FnQJaaRZ8VmvM8Fs8NJWI3jTfsOLQmyN0pJu5/8oWk+f6i3AKV23VO Lv7d5qg0GusMAKDMNUOkcVGtOIBjDpV9Di7lkH28WDLPSBn8ZyrA3lO6OfRueI1r24fG /mvA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=nJlEm3dspnVA1ANEmrZqrPkw4P7Y/3ZVDcm+FttuwD8=; b=eMxrXcNaPahAUib/fIFAjQNcXKRLuO2pL2Bn+DpZmLWMHAs/UWSqqHG7Cn5Es1fi5B 06/ZtBWteoDv2izQWFv2/njSZ8UyWHZkXi4/usAEIhIT5y5Eh5GUQlCA8LoIYGC4t1uf Twt4/Y5X90dBTUURIUb+kIVVXz1cO74wV8GXTfLZ2VOKmbHjHwxErtoGQiO54tuP9poi pfmxPppwBSheXR7vdfyz2OAhfnAZthgCAwMbIcbCrgDBlB96FfwNNYwyrxjr52z6SBmS S/qdYAMnGUf4uEL9skUe5NOoD5HdZIkyXOXrN/LX0K1fLVuVJJ6O0c6HlXidCarMdP7u 8raw== X-Gm-Message-State: APjAAAXGOrsZgL1efThDfVyX/3Rup9AD6YhwmcYuCo8xC+iwDk+mE7zM kW69K9Dog0CrBxT6y23+CVE= X-Received: by 2002:a7b:c748:: with SMTP id w8mr17514641wmk.36.1564256829821; Sat, 27 Jul 2019 12:47:09 -0700 (PDT) Received: from blackbox.darklights.net (p200300F133C65C00B418D0F4A25A19EC.dip0.t-ipconnect.de. [2003:f1:33c6:5c00:b418:d0f4:a25a:19ec]) by smtp.googlemail.com with ESMTPSA id c4sm44651726wrt.86.2019.07.27.12.47.08 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sat, 27 Jul 2019 12:47:09 -0700 (PDT) From: Martin Blumenstingl To: linux-amlogic@lists.infradead.org, khilman@baylibre.com Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux.amoon@gmail.com, ottuzzi@gmail.com, Martin Blumenstingl Subject: [PATCH 2/2] ARM: dts: meson8b: odroidc1: use the MAC address stored in the eFuse Date: Sat, 27 Jul 2019 21:46:47 +0200 Message-Id: <20190727194647.15355-3-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 2.22.0 In-Reply-To: <20190727194647.15355-1-martin.blumenstingl@googlemail.com> References: <20190727194647.15355-1-martin.blumenstingl@googlemail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Odroid-C1 (and probably other Meson8b boards which are based on the reference designs) uses the MAC address stored in eFuse at offset 0x1b4. Assign the nvmem cell to the Ethernet controller as "mac-address" so the MAC address which is stored in the eFuse is assigned to the Ethernet controller. This means the MAC address will be consistent across reboots. Signed-off-by: Martin Blumenstingl --- arch/arm/boot/dts/meson8b-odroidc1.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/boot/dts/meson8b-odroidc1.dts b/arch/arm/boot/dts/meson8b-odroidc1.dts index 90f66dc45115..df428a40a748 100644 --- a/arch/arm/boot/dts/meson8b-odroidc1.dts +++ b/arch/arm/boot/dts/meson8b-odroidc1.dts @@ -200,6 +200,9 @@ phy-handle = <ð_phy>; amlogic,tx-delay-ns = <4>; + nvmem-cells = <ðernet_mac_address>; + nvmem-cell-names = "mac-address"; + mdio { compatible = "snps,dwmac-mdio"; #address-cells = <1>; -- 2.22.0