Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4952531ybv; Mon, 17 Feb 2020 09:06:52 -0800 (PST) X-Google-Smtp-Source: APXvYqzrdFvcPcL/YwxEmZXbqAfDC8aXyRRUAPbhNXDGaLhJeg4GzM1K2f1IQhQvIIbg30nto7zg X-Received: by 2002:a05:6830:1615:: with SMTP id g21mr13319208otr.49.1581959212067; Mon, 17 Feb 2020 09:06:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581959212; cv=none; d=google.com; s=arc-20160816; b=Gvw4Nx3P0Q1iIothKOjqROkUaHtuIzUOtyzDrACAdvDPtPoWOHnhM9wLlIYO1VLg44 oi6XfA3wyADh3xm92wvPinaUx1Kd2te4UFBbYUVdoXnsb/CHP8rhWp3vrI1szlrjP7ji 4VJjpkNS13ka9l5/1xesy0fc5zRVHQqTATiOVGlbGl9g+Kn39xaTN5wq8CQKMR2l4lE+ nsOf38e79Z2r+pjNNIaepi4bBk5bqXpHP9sdbwqonMRrBksOwfEG0p8MKCD6UBFOW7/L UHZGfHsc0EljtjQMHYkXGYAu3MWXBDSAUM7NRiK10kkgfi+M+dWkSoPRrF6HyOWevP3/ wxng== 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=ex+tP/S3jJM/1n8mzovxtL99ooZIHpji+z8Ck9o3ixM=; b=HsWp94+/O0EUtG1JyW4+JDoJAaCgxQ4CxpA+9EEjwTKa3nfUiBUxfw7AmkDXjkqnMm D/jT5u+Y1kDxeQR4CRNeUXbiz5hLfX1pF/FdYdVJUoP5ZBKktqPQzRdV4AcEp+DkUUtj w2IFK+Ol7q+/icdPQK9AJ9eP3qT++TMwQuq8L2oqtN5bNKIEdyFJlkE5RBmHAyP1hIUE gnNHjCByCTnJeu4968iplWaC8QkFLy0H+BpRpghM5rzaAJS31sFfO8d5KX23aUep/2sg fmanDM99k7fWIG+xWTC9WPiscrdaavwL3IOJQMvK9dVrfgITiokYU4NRGPNcNCrrRahp WRCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=BC+LE7ZC; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c22si439627otr.97.2020.02.17.09.06.39; Mon, 17 Feb 2020 09:06:52 -0800 (PST) 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=fail header.i=@goldelico.com header.s=strato-dkim-0002 header.b=BC+LE7ZC; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728901AbgBQQzj (ORCPT + 99 others); Mon, 17 Feb 2020 11:55:39 -0500 Received: from mo4-p03-ob.smtp.rzone.de ([85.215.255.101]:17082 "EHLO mo4-p03-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728810AbgBQQzj (ORCPT ); Mon, 17 Feb 2020 11:55:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1581958537; s=strato-dkim-0002; d=goldelico.com; h=References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=ex+tP/S3jJM/1n8mzovxtL99ooZIHpji+z8Ck9o3ixM=; b=BC+LE7ZCAZveaAFoluYtb4Q3baSJX5raqCmebCJfRBHA81Z4xWBNhmHNxuV2VQu8bL CbVTsOFh1QY3fPDznpjmCjYpCDgD9bUeYeSKH2usPSqUxVXxBGll/970irVOG4zJwp+i +SbJTRRl3DtHb/O7qFqHzqvKUWrL25BxTzyJSdie3DuzgiVPZShzG3mHNEywGrhhjeyo M2HitpNrNCb702vgmy7KhTo5XW2iJh+eC9nvxsCuPo+NZNvTemC/NSiMpMskc+tyGr3I 8POIbz/SSwrHFSYXBF9h8/oLSyxqpYu5AmF56RFJP6rWVPxGsZkmvZyVd2Pk47hh4WMd fbhA== X-RZG-AUTH: ":JGIXVUS7cutRB/49FwqZ7WcJeFKiMhflhwDubTJ9o1mfYzBGHXL8GTnsvhg=" X-RZG-CLASS-ID: mo00 Received: from iMac.fritz.box by smtp.strato.de (RZmta 46.1.12 DYNA|AUTH) with ESMTPSA id U06217w1HGtYOqv (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Mon, 17 Feb 2020 17:55:34 +0100 (CET) From: "H. Nikolaus Schaller" To: PrasannaKumar Muralidharan , Paul Cercueil , Mathieu Malaterre , Srinivas Kandagatla , Rob Herring , Mark Rutland , Ralf Baechle , Paul Burton , Mauro Carvalho Chehab , "David S. Miller" , Greg Kroah-Hartman , Jonathan Cameron , "H. Nikolaus Schaller" , Krzysztof Kozlowski , Kees Cook , Andi Kleen , Geert Uytterhoeven Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mips@vger.kernel.org, letux-kernel@openphoenux.org, kernel@pyra-handheld.com Subject: [RFC v4 6/6] MIPS: DTS: CI20: make DM9000 Ethernet controller use NVMEM to find the default MAC address Date: Mon, 17 Feb 2020 17:55:30 +0100 Message-Id: <1c124c43c0cd96274cb0386d68aa01ad8ef8b2cb.1581958529.git.hns@goldelico.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: References: 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 There is a unique MAC address programmed into the eFuses of the JZ4780 chip in the CI20 factory. By using this for initializing the DM9000 Ethernet controller, every CI20 board has an individual - but stable - MAC address and DHCP can assign stable IP addresses. Signed-off-by: H. Nikolaus Schaller --- arch/mips/boot/dts/ingenic/ci20.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/mips/boot/dts/ingenic/ci20.dts b/arch/mips/boot/dts/ingenic/ci20.dts index 37b93166bf22..6dc1f9eeff00 100644 --- a/arch/mips/boot/dts/ingenic/ci20.dts +++ b/arch/mips/boot/dts/ingenic/ci20.dts @@ -355,6 +355,9 @@ interrupt-parent = <&gpe>; interrupts = <19 4>; + + nvmem-cells = <ð0_addr>; + nvmem-cell-names = "mac-address"; }; }; -- 2.23.0