Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp8122318rwl; Fri, 30 Dec 2022 23:18:48 -0800 (PST) X-Google-Smtp-Source: AMrXdXvhspXoQd2dETM0vKIQW8XENGaDzu67uhovvQdLndpgFQRMgwlrIHdQxXnZj4BNpgK/IwsH X-Received: by 2002:a17:902:e746:b0:189:c839:14cd with SMTP id p6-20020a170902e74600b00189c83914cdmr53894597plf.16.1672471128332; Fri, 30 Dec 2022 23:18:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672471128; cv=none; d=google.com; s=arc-20160816; b=d9A/1LfiWNQ0QnmKJoySOkcsS7D7unJr3j3b5JJLaUS8bZs9ZK9HW5nalNGSdU4k61 ZD8kpaWnAe1LSq3eETJY449h5TVFwFXAl1NlY0C23yfHCkFt0jgl+qD5DTao6yUMiUsp eEVhlRcPn15se1v/7J50Sk6ERnkeMpg1Krh89xf4zQbOZaeKcIRVNHgf2FZQB/qQL9+z 5iM0x8kuOf+JpTpgnV62+I2zaaW5Q5iqpGqcXTVZJREYLBOkCMANbSF7IyFwBx7oVbGP vRLvXkFWf1o4kkBD+Aby0/iI9nqxjxatZOl9TsVQ6sIVfZYKjPsA3NmkrUfgc6/Oklj/ 90OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=9Z1B/pEeifw3QshfvkgZqql77ZHR3b0p/ji8p8FMFJo=; b=fiFE/mG/5pik1w6o9DSIrEYxwavKrkQjYuXJ8Ty3boRfpgGL0t0cuQ0hW2KEZC+B86 HjlnbjtA2x/U2V1rmxE8y4pcwljEvnseQRWXrCZc5pQFQagNpaAGDbxuActp+r2wMtHU B1+biZvXkWhb2wgrts8iBA+j+MfKHlgc7pqhmaykMelR4idMgl5WMNhnIbXQThv8Sme5 nwuzpSHF++t7xLU16wPQ9COdbkDxx75YIbf0ekZTtihLIho0rbkQvtK46M1lBqxKbLAn FAt55Uz8FMOxK2b8oGuqzGCDk6HAiyRmn3guNfN8zN1i2G+zRaunI+7WIUsf79erIl2M eJ/w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OWbqu1Os; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a63e855000000b00478bec2850asi23923855pgk.425.2022.12.30.23.18.40; Fri, 30 Dec 2022 23:18:48 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OWbqu1Os; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231520AbiLaGt6 (ORCPT + 63 others); Sat, 31 Dec 2022 01:49:58 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35744 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229560AbiLaGtf (ORCPT ); Sat, 31 Dec 2022 01:49:35 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8C88562E8; Fri, 30 Dec 2022 22:49:34 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1BB5760907; Sat, 31 Dec 2022 06:49:34 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 04822C433EF; Sat, 31 Dec 2022 06:49:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672469373; bh=fnRYgVKMoABU+4Ag+jvUfIngNPTfPy9gyioYbQfxmZg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OWbqu1OsxXWlitVjEjQ3chupXVHwpdCztR0F+Z9dYdHilOBJ7OKf/wx0w/EZzpRnh C3TM/R2oUKo6rGuJNLtepwWAKj5btI+4KEJjcLcRe0RivwZ4ufokcj4qRpugKxDBac VOUbOJ9498SHXUK/jFZkqCMjhyDLO3f+ofeFVD+R/0owkaUmGXGkfgWapvwue767zw ZdZrfWMreS91DA4wU12NqrSAPKQwS99DBFyvl6XHIj/k1mzS//yK2Q6MgwKfmJJIH1 nG6MrzhiGvT1l9aPPkNFo75TLA1qpJ/NGbqX4hhgdtP/dV/qW76io7SYQyJkjfB+fl N4zExTHUnsxmQ== Date: Sat, 31 Dec 2022 14:49:24 +0800 From: Shawn Guo To: Nikolaus Voss Cc: Srinivas Kandagatla , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , Krzysztof Kozlowski , Rob Herring , nv@vosn.de, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 2/2] imx6qdl.dtsi: use MAC-address from nvmem Message-ID: <20221231064923.GD6112@T480> References: <20221128084749.5F10D1D73@mail.steuer-voss.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221128084749.5F10D1D73@mail.steuer-voss.de> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 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 On Wed, Nov 02, 2022 at 03:27:19PM +0100, Nikolaus Voss wrote: > 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"; May I ask where is the support of FEC driver for this? Shawn > 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 >