Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp14488834rwb; Mon, 28 Nov 2022 01:23:52 -0800 (PST) X-Google-Smtp-Source: AA0mqf4MBdViMa/h8aZF5IXl+uQVPU1ktghukdrjsTLdFCm761HlnmrKurIYHFA9C8fTH3ZoRELZ X-Received: by 2002:aa7:dd0f:0:b0:46a:40f5:aca with SMTP id i15-20020aa7dd0f000000b0046a40f50acamr22337502edv.427.1669627432575; Mon, 28 Nov 2022 01:23:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669627432; cv=none; d=google.com; s=arc-20160816; b=kI3WE767/OgSOsHn1Mxtz0BWuWY/UBOlfy201+viP9t2WNCm5j2KejPVMPOae9+M3Q B61s22XehpmhiCU/JbZkXVs5T2C0glE/dWSeyCF20ddmQRDrMnMz1KD6VXs54vLvWLJi 6/s9iDwbQcv5Gx501dHdMIehWtiiWKt11GhH8vQPJTxZBkMFUe9Unf3n7lytWSeVRiqi ghAoRIBhiBCs/NIYIg0OXyQow9PzRB5QnWLQtqsn2ZTVZ/loe9aBV13CjYYv/QFwPrSx XGf1sVWVAJh7hv4Oi4SA/nu2Epnm1x3bNfbrU+tNwn7z04gOKiUuv1ynCwrFe+vIaKgh c64g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:subject:date:cc:to:from; bh=3n1FBkr4Nf3exOC9CL/PuXcSxUJUHF0wA5NHjU3Md44=; b=Pd6ugzIC088nwDwvcypQ5NLgS8Ctptsi4LrWqgoCS2h3nmgTc8TKAX+RNWg/4nBLfo qZgJ+pbYqg0rZvTb3rtNIX6gk/aztiqyFxAab2vlIRI+O9F6PT66F9svmDk8lFaeLru5 TcH4oEZZWmfl6xKiGhn7lbBq//E2liaRFEKM7uy+Vm4nzvLV18edmopA9E+nQKdA9mII 1HqNdrONDj6lPfUDcxeoRE91tHdwse44JDpBj47oT46XGkJc3akSPkhw32Z9SuKgQM7J vhQolfsqKlOJefU6t5RB5WmRU3/2Qc7nY4zlje5WRfHYIKCVvJEGC5ckaMIeM2mRnTbl EWgw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=haag-streit.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xf9-20020a17090731c900b007ae0ca417e4si10218073ejb.690.2022.11.28.01.23.32; Mon, 28 Nov 2022 01:23:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=haag-streit.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230002AbiK1IsA (ORCPT + 83 others); Mon, 28 Nov 2022 03:48:00 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229696AbiK1Irz (ORCPT ); Mon, 28 Nov 2022 03:47:55 -0500 Received: from mail.steuer-voss.de (mail.steuer-voss.de [85.183.69.95]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B89965EB; Mon, 28 Nov 2022 00:47:53 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at mail.steuer-voss.de Received: by mail.steuer-voss.de (Postfix, from userid 1000) id 5F10D1D73; Mon, 28 Nov 2022 09:47:49 +0100 (CET) From: Nikolaus Voss To: Srinivas Kandagatla , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Krzysztof Kozlowski , Rob Herring , nv@vosn.de Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Date: Wed, 2 Nov 2022 15:27:19 +0100 Subject: [PATCH 2/2] imx6qdl.dtsi: use MAC-address from nvmem Message-Id: <20221128084749.5F10D1D73@mail.steuer-voss.de> X-Spam-Status: No, score=1.8 required=5.0 tests=BAYES_00,DATE_IN_PAST_96_XX, HEADER_FROM_DIFFERENT_DOMAINS,SPF_HELO_NONE,SPF_NONE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org IMX6QDL has fuse locations specified for storing the MAC for the built-in ethernet (Table 5-8 in Reference Manual). Define the fuse location in ocotp and refer to them in fec-ethernet. If the cells are not flashed, the driver behavior is unchanged, i.e. other MAC sources will be probed and a random MAC will be used as a last resort. Signed-off-by: Nikolaus Voss --- arch/arm/boot/dts/imx6qdl.dtsi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/boot/dts/imx6qdl.dtsi b/arch/arm/boot/dts/imx6qdl.dtsi index 4f7fefc14d0ac..7449d554ef1aa 100644 --- a/arch/arm/boot/dts/imx6qdl.dtsi +++ b/arch/arm/boot/dts/imx6qdl.dtsi @@ -1053,6 +1053,8 @@ fec: ethernet@2188000 { <&clks IMX6QDL_CLK_ENET_REF>; clock-names = "ipg", "ahb", "ptp", "enet_out"; fsl,stop-mode = <&gpr 0x34 27>; + nvmem-cells = <&fec_mac_addr>; + nvmem-cell-names = "mac-address"; status = "disabled"; }; @@ -1186,6 +1188,10 @@ tempmon_calib: calib@38 { tempmon_temp_grade: temp-grade@20 { reg = <0x20 4>; }; + + fec_mac_addr: mac-addr@88 { + reg = <0x88 6>; + }; }; tzasc@21d0000 { /* TZASC1 */ -- 2.34.1