Received: by 2002:ab2:2441:0:b0:1f3:1f8c:d0c6 with SMTP id k1csp133007lqe; Thu, 4 Apr 2024 01:46:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCX6Tf1fWQbVfRErl6CYnCjAccaqfuOAWYKczjmpUzMlveRsHfQBS/39vUMUHwWhhdgMsxLO8VbTfTWDile9/NywM6We4JUXF7Ada2sHKQ== X-Google-Smtp-Source: AGHT+IHjez5CEPFRpl2oWpD2cx+GBVDWacCfkHi4BXscXqBJ3jJUMkkoLwS2QLpcHc7zheeppsUo X-Received: by 2002:a05:6808:6048:b0:3c5:d512:22b5 with SMTP id dd8-20020a056808604800b003c5d51222b5mr1934728oib.14.1712220363776; Thu, 04 Apr 2024 01:46:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712220363; cv=pass; d=google.com; s=arc-20160816; b=hv9pYsFA9xeYUIVQ6YFfu79oTwKUvuOKJTn7KCWqHJt/SnOPgRvrNzA6p27/vBjEv+ EPNW9+sqC4NVVq5bdzjDRf2RVFPlRp2Eq6KNhI84t3ONWTgmZHhRzLSoV418UU8erxFA 78R8ghMf5FdirOzD5keEsvzbwekjnLdVotQmR293ByjgDHD/YnzTygTtyZqIHL1CIgxL jem7XQQvbTeNQt3RE2OksC2w5VFRmTZGVeC/WSN4RuAyvw6zOoY7XxkEqvDmiSaiB7BN MRdxxG7beuCWuPVMogapzngGkgaPxqe6ksdR+2u/Kzau9gRy9JpK3n+ux03JeA0H3qCT PlKg== 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=zKEXPE9es174/NXvmXcWvCz01yqeUuHdClVxb0krZBo=; fh=MJlobP/+jeqi69HHE0maxltu9JEJARCEKmhQt2oG9r4=; b=SzFFc41B75TPwhuXTN3BMljVypXk44QEmP47HeCgGac/VV8fzsl04a0a5P/mxFj6Jf bJNs9V5L858lUV2h3KgYzlL5o/YiKd2dINF/3vsvkiPnijzq1jX2Lw5Nlvwl1V+Vpluz Oa81uq4W/Z8z0yMwMjForxkelXZ+B8T6RLBqWS2T/cRc2Dpg6MNPgB168RoJZ0WSfrE2 7uUpxAjChadv+MiVujONZ4LSHlU7MH1LdDD37mZtSCfl2WkS638oSFAw0lfmNb+xYjpE 8uw70nvRaPgBhJjTH8b0an9uK/4mRGdxSiSXA9u0EsySgBkFmnM7Il2GAHOUQvJ6QjDG C3xA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tZzNUlr7; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-131111-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131111-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id m184-20020a633fc1000000b005f0568ad21asi15142562pga.691.2024.04.04.01.46.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Apr 2024 01:46:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-131111-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=tZzNUlr7; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-131111-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-131111-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id 0F4A6B2587B for ; Thu, 4 Apr 2024 08:35:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6297C70CCB; Thu, 4 Apr 2024 08:35:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="tZzNUlr7" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC9665D73B; Thu, 4 Apr 2024 08:35:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712219703; cv=none; b=syVA9JVssUyOu7XtxsNG7d1rW1mpdPeXAj28lB9ZKMBofBvD3ZW+oFev47D/le6eUnJ1S65GTHDJaMC8zg05kWcaRcAIvQZwXMi4TbSJw3OYAx99gDfxLqmHwvci6ZBo4iCr4982wI4QB/XoqdM1c/DqWW0LbNg2dNyKi/sArJQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712219703; c=relaxed/simple; bh=DQTSSWiiWCkefrYnZPQVvZGHFdYfwKXX7rU+vuILK3c=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=CuN0aSgtzx9KdQyiPbbl1gCogvN86YqHNuawKbMpr1//l9oWg3kMUpNX9GLOfv7qCInDGX2nLVYWLUZwrG+XM92rGOtNlMirSNa6Pm1bNA03eO5NoGxbB1HIifZ3QzrpeojYTO4OrluhF4vPgp0qCc4VGuG9IhS6hlvp20+6XYQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=tZzNUlr7; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 4348YhOQ103551; Thu, 4 Apr 2024 03:34:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1712219683; bh=zKEXPE9es174/NXvmXcWvCz01yqeUuHdClVxb0krZBo=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=tZzNUlr7qNGsNyN7127Sjasos5RTHym4CSOzBPRJrUoJfif13JP1pFbZhDyP0CGad 3eQR+GaxYysbaW4r+Q0VECs6szrbHLo+Pel2HdPJaKImcAYcjGS6MX5bd7gXX2z4KY cF+5DA7YSE/08NSvQBPmioAqBjdokvJ/xQ1HPc4Q= Received: from DFLE107.ent.ti.com (dfle107.ent.ti.com [10.64.6.28]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4348YhOv039372 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 4 Apr 2024 03:34:43 -0500 Received: from DFLE102.ent.ti.com (10.64.6.23) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 4 Apr 2024 03:34:43 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE102.ent.ti.com (10.64.6.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Thu, 4 Apr 2024 03:34:43 -0500 Received: from localhost (uda0492258.dhcp.ti.com [172.24.227.9]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 4348Yg4W089889; Thu, 4 Apr 2024 03:34:42 -0500 Date: Thu, 4 Apr 2024 14:04:42 +0530 From: Siddharth Vadapalli To: Vignesh Raghavendra CC: Siddharth Vadapalli , , , , , , , , , Subject: Re: [PATCH] arm64: dts: ti: k3-am62p-main: use eFuse MAC Address for CPSW3G Port 1 Message-ID: <77abfbd6-ee24-4a25-a05b-51bd7716a26f@ti.com> References: <20240402094200.4036076-1-s-vadapalli@ti.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: X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On Tue, Apr 02, 2024 at 04:02:07PM +0530, Siddharth Vadapalli wrote: > On Tue, Apr 02, 2024 at 03:25:41PM +0530, Vignesh Raghavendra wrote: > > > > > > On 02/04/24 15:12, Siddharth Vadapalli wrote: > > > Assign the MAC Address programmed in the eFuse registers as the default > > > MAC Address for CPSW3G MAC Port 1. Utilize the "ti,syscon-efuse" > > > device-tree property to do so. > > > > > > Signed-off-by: Siddharth Vadapalli > > > --- > > > > > > This patch is based on linux-next tagged next-20240402. > > > > > > Regards, > > > Siddharth. > > > > > > arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 1 + > > > 1 file changed, 1 insertion(+) > > > > > > diff --git a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi > > > index 7337a9e13535..eb126f4a04dd 100644 > > > --- a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi > > > +++ b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi > > > @@ -696,6 +696,7 @@ cpsw_port1: port@1 { > > > label = "port1"; > > > phys = <&phy_gmii_sel 1>; > > > mac-address = [00 00 00 00 00 00]; > > > + ti,syscon-efuse = <&wkup_conf 0x200>; > > > > Sorry, how does this work? wkup_conf is not marked as "syscon" compatible? > > Sorry I failed to realize that. So this will also require adding a > custom property similar to: > https://github.com/torvalds/linux/commit/cc1965b02d6cb18d9220dae06f7e2e0b0ebbea48 > followed by adding a new sub-node within wkup_conf corresponding to the > MAC Address CTRL_MMR registers. > > Thank you for reviewing the patch and pointing this out. I have posted the v2 patch at: https://patchwork.kernel.org/project/linux-arm-kernel/patch/20240404081845.622707-1-s-vadapalli@ti.com/ verifying that the MAC Address present in the CTRLMMR_MAC_IDx registers is assigned to the network interface corresponding to CPSW3G MAC Port 1. Regards, Siddharth.