Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp150972rbb; Fri, 23 Feb 2024 15:33:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUAw/ChOvJD+Xj05U0lDpFXA3uJhUsszLY09N4liw9EwTirGrEPPVaJRX2MWvWyVapGRzvBZYicstRDdPlS7Ykp7EW6tJ/HW/hwzZ2hjQ== X-Google-Smtp-Source: AGHT+IF1nxGoc1YoP+l+0rHJlrIbFlkBWQRtsoUzLH5N8HBcYGlG6sdAkxftk7tRhRKPUm+uowv0 X-Received: by 2002:a17:906:f2d7:b0:a3e:9547:a390 with SMTP id gz23-20020a170906f2d700b00a3e9547a390mr748709ejb.69.1708731223473; Fri, 23 Feb 2024 15:33:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708731223; cv=pass; d=google.com; s=arc-20160816; b=jvl5YXd0sGgoihP0KERTcAnj74MdbVolFzeudyr2RGbhNfDoNee7r0N3K2QycSuQuP 6Npg2syrCvK0ONNv8Kyb7ilrFtclwGDs47I36Kl4cFT3hn7+DyFoaO96sONZQonWzlM+ Yia0cKWeR28PaP9Xyjz/CWnA8iMaOfflWhAogCrrT8c/B3TeOgd72I3djwOAULejbfCX nDWmKNM/65EvkpjrMhl6rTjDj0+yGdkCc/FzUbppks4knPTx1RmvZqyGny9F7e1Qd1kg 7PDTy74DPtu0799LlC05Y775UxKYlJqCgH3u/t24kfW1G7fREn9tHEc7ahSYM/6oKSc3 gzYg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=l4z91o6goByVRV29UVchlrb57CwSGXGW5ZjXIXoGNv4=; fh=2H7ZS2O++hoLtBCPlWVz1g61Rz78Ia0r7BINaj9LwlI=; b=NrERArvHCcaiaHBetfHB3024AtHo0+Fm+pAAI4rUq51FPC7YDfjMLwvqU0bl5P7p+K bg4uAEPCzawCNKYiw031EWRPCsGEzq5C5RDC6Epy+wCoy4VwN5XhI55KL/Ejd4u8bYSq htIcG0CUfCpv6ddsSaDkjzjHxsPEW/5WjA/OS90JrnfA++wNvFpvCGQzW7SXq8MSDY7U 3dLt7SGAWS7uOxcOD3CzJ5pVhjUh6rDHAq7OK301+MmQSd4Uw0yRmWY8as7FIG5U2Qk0 uMaX4XXDN1J7xNhTHJ6WwfElGm+sGdkOWFc6FB2B1FbcIpbyMPuFIP55njU7C8wEZWMl dzFQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@yeah.net header.s=s110527 header.b=hYQNp5fd; arc=pass (i=1 spf=pass spfdomain=yeah.net dkim=pass dkdomain=yeah.net dmarc=pass fromdomain=yeah.net); spf=pass (google.com: domain of linux-kernel+bounces-79318-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79318-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yeah.net Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id z17-20020a170906075100b00a3ee758e479si45385ejb.193.2024.02.23.15.33.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 15:33:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79318-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@yeah.net header.s=s110527 header.b=hYQNp5fd; arc=pass (i=1 spf=pass spfdomain=yeah.net dkim=pass dkdomain=yeah.net dmarc=pass fromdomain=yeah.net); spf=pass (google.com: domain of linux-kernel+bounces-79318-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79318-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=yeah.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by am.mirrors.kernel.org (Postfix) with ESMTPS id 3204E1F23993 for ; Fri, 23 Feb 2024 23:33:43 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BB2BA14DFDB; Fri, 23 Feb 2024 23:33:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=yeah.net header.i=@yeah.net header.b="hYQNp5fd" Received: from mail-177132.yeah.net (mail-177132.yeah.net [123.58.177.132]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3A55414D44A; Fri, 23 Feb 2024 23:33:31 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=123.58.177.132 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708731215; cv=none; b=Rl4fMRcfgH8owEKqvFoVGrhEunAPakUtDXfGdmPvjXJ+oVmv1k5z2zEbW+Lxy5hvfvr89IXmQwbMvu5Ba+FT0Cdx9qpT+ocupqaBDWKKtTcmKAWWgC4UGimm1K6SH31aznsxl2Fa8bVjD5Odz5RyYg8N+v3mNacAPYF0WZKvozA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708731215; c=relaxed/simple; bh=QvReWiiur8SYGs5uaKN8mx3ALFlfw1WkRkgG0CneWAE=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JpZ9TJzEsD/bOiL8JB0Vi1RZpzMR+mtP3xxqysse/p76iuRzsfTIsrsBLKfN8nSGVwLNBqp8nInxpoRnH0c+2tCDX2K2BCKnvHcu31PNjox454HEkl/Qiujg3C2eBL8Ytogq7yiS/ggnZn4m+NI2rAzG3tKJpUSv42g0unyohEw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=yeah.net; spf=pass smtp.mailfrom=yeah.net; dkim=pass (1024-bit key) header.d=yeah.net header.i=@yeah.net header.b=hYQNp5fd; arc=none smtp.client-ip=123.58.177.132 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=yeah.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=yeah.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yeah.net; s=s110527; h=Date:From:Subject:Message-ID:MIME-Version: Content-Type; bh=l4z91o6goByVRV29UVchlrb57CwSGXGW5ZjXIXoGNv4=; b=hYQNp5fdBJql9uj6OdXcc7YuUxjqSiyIQI2kojMiAumVQzTRWbWJU0y+FXuQnC 67DIjttV4YOzQF96ZGJv3d04elGTCItlQ7DCQ0u9nfoI+yHY9ALgNbEZeDuQUUkn 44xwCYDUoX1FwbH49F6mMdIc5cjKSu8SajawwGpVnyfKQ= Received: from dragon (unknown [183.213.196.200]) by smtp2 (Coremail) with SMTP id C1UQrAC3nYc2K9ll3H48BA--.10236S3; Sat, 24 Feb 2024 07:33:11 +0800 (CST) Date: Sat, 24 Feb 2024 07:33:09 +0800 From: Shawn Guo To: Manuel Traut Cc: linux-kernel@vger.kernel.org, Rob Herring , Krzysztof Kozlowski , Conor Dooley , Shawn Guo , Sascha Hauer , Pengutronix Kernel Team , Fabio Estevam , NXP Linux Team , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] ARM: dts: imx6ul: Set macaddress location in ocotp Message-ID: References: <20240208122012.1959628-1-manuel.traut@mt.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240208122012.1959628-1-manuel.traut@mt.com> X-CM-TRANSID:C1UQrAC3nYc2K9ll3H48BA--.10236S3 X-Coremail-Antispam: 1Uf129KBjvJXoW7Aw1UCw13Kw1kAFy3KF47XFb_yoW8Xw4fp3 srWrZ8Gr4IkF1Ikay3Jr1qgr95Aas8tr1FvF17WFyjkay7Za47Kr1kKr13u345ZF4Fyayr trs7ur17ur4DtaUanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07j4Q6JUUUUU= X-CM-SenderInfo: pvkd40hjxrjqh1hdxhhqhw/1tbiDxeNZVnxce-IJgAAso On Thu, Feb 08, 2024 at 01:19:59PM +0100, Manuel Traut wrote: > If a bootloader does not configure the MAC address, devices come up with > a random MAC at the moment. > > ocotp provides registers for storing the mac-address. > Configure those for i.MX6UL and i.MX6ULL allows net/core to retrieve it from > there. > > Signed-off-by: Manuel Traut > --- > arch/arm/boot/dts/nxp/imx/imx6ul.dtsi | 12 ++++++++++++ > 1 file changed, 12 insertions(+) > > diff --git a/arch/arm/boot/dts/nxp/imx/imx6ul.dtsi b/arch/arm/boot/dts/nxp/imx/imx6ul.dtsi > index a27a7554c2e7..e5e8bf814f77 100644 > --- a/arch/arm/boot/dts/nxp/imx/imx6ul.dtsi > +++ b/arch/arm/boot/dts/nxp/imx/imx6ul.dtsi > @@ -538,6 +538,8 @@ fec2: ethernet@20b4000 { > fsl,num-rx-queues = <1>; > fsl,stop-mode = <&gpr 0x10 4>; > fsl,magic-packet; > + nvmem-cells = <&fec2_mac_addr>; > + nvmem-cell-names = "mac-address"; > status = "disabled"; > }; > > @@ -897,6 +899,8 @@ fec1: ethernet@2188000 { > fsl,num-rx-queues = <1>; > fsl,stop-mode = <&gpr 0x10 3>; > fsl,magic-packet; > + nvmem-cells = <&fec1_mac_addr>; > + nvmem-cell-names = "mac-address"; > status = "disabled"; > }; > > @@ -1004,6 +1008,14 @@ tempmon_temp_grade: temp-grade@20 { > cpu_speed_grade: speed-grade@10 { > reg = <0x10 4>; > }; Have a newline between nodes. > + fec1_mac_addr: mac-addr@88 { > + reg = <0x88 6>; > + }; > + > + fec2_mac_addr: mac-addr@8e { > + reg = <0x8e 6>; > + }; > + Dropped this one. I fixed them up and applied the patch. Shawn > }; > > csi: csi@21c4000 { > -- > 2.43.0 >