Received: by 2002:a05:7208:2202:b0:86:316c:7444 with SMTP id s2csp2377912rbb; Tue, 4 Jun 2024 03:46:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhrmyaQvEctlQCiAVWfF9TJ4GCbK5Wctzran85IYqsJAj2FRllIH3J7t1fyFtnf3gL+6cJG180DxkF2h9bf2oTPG2NNUEkaaoeOiK2Ig== X-Google-Smtp-Source: AGHT+IHszJifa+BB2jVjgnW9faROV2M5mkwqCIr4y2yLH1Ya0MBdB3gqPo/gGXPRVYQq+M66k8JP X-Received: by 2002:a05:6214:5d05:b0:6ab:4e10:838f with SMTP id 6a1803df08f44-6aecd6c064amr134103166d6.35.1717498002416; Tue, 04 Jun 2024 03:46:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717498002; cv=pass; d=google.com; s=arc-20160816; b=o3mX6H+dzVHW40/LmkRPNDSNQBmsWZCHLSIqPFRSOyzdUjSL3s0gv3gIgE9tbgxLtq pwJUmoAWJIOGrL50fdHZIxzSHVib4rjrVaLA52KhHU2NMysX3EBglsWIVI5vYLAU50q7 IVS4L/GxKX4AfcijwGHMLAJydpJBUoWTPAQFdD7bhHVZbvo7zDWhuFPnKbWAJ+PNEIeU 4KEgWiev8I8DqBuPoG5vHz1lUYuKz9G80e2weuQTEyAPt23NWUTRpH0cQcugGPTlArqW JzEamX8k55LTSu8tEVgFxHtWUQnJ5IJLqeSlAJtq2wQnuK3rkKuo82w1o3S8WTJc7PLI Fbxg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=nezdJ3Z2zPJTiy12m4C6hmB+BU4Dij+DiP2Sa9MiMTo=; fh=cMiJFUl8uvPfY8iHwLUdbvkLZopZrxRQQwz3r4aOoUY=; b=ruBXejH5lTsPfn5A041Z31/y+tMZL5E4gV2qgpMN5jXz2Dj37sG68YuCHrH+1HvSPl 3gZmzuzTtE2vz5H1lxD0RXGPzVH0oZ+IVX2Qnktbs8ATlaBvU5Yx/rXWLR6UX/qFQ6Bo 81RLtsqt2ijV6u7nGj3xnEoCWkaKTW4ATFqgWuYog0Vq19xfEJ+HBIotS6FpOG/lkwQ/ Kx5EyfFoelE3IKNfRNASxv6I5Y7rLdbBE/D3JUw3ijA6EnCa5CJM332K236++2n4yOXg 4rEJrp4u4VP3K8TF8x4FYmiyNwIhUIZmpmvI+Y8BBsJkErytjedldbPQ6VFwRhJADYZr egGA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fZ928gOv; 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-200454-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200454-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id d75a77b69052e-43ff25b5558si13410681cf.747.2024.06.04.03.46.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 03:46:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200454-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=fZ928gOv; 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-200454-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200454-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2AE081C23332 for ; Tue, 4 Jun 2024 10:46:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 11AAF146588; Tue, 4 Jun 2024 10:44:40 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="fZ928gOv" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (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 8DCA61448EE; Tue, 4 Jun 2024 10:44:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717497879; cv=none; b=GsCjaBhJBCmGvsQp8qJ9AalMlirBfepSLBnKJrliXKeY9W0YTjEsp+Vzatl4zYTyN2rKQXwHtvsVHegKsfZ+nKs/SE+Cnws86UZYCrAMlxwsDwkVIXVQAnKmtQrcZYGvgNOupX+1fjll+H+myijoYCzND8KTVknzwwtJJqJVKnI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717497879; c=relaxed/simple; bh=WC72mgdBPuGdNcigkmv9eIIV8NhQG9m2XoiBYTPjcyw=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=S+G26byNVDY6bVqH3BwvXSztcj2Aq4drrxdDLoEVRMNbcy0J3GqnxcHqHkEPQyVoBI22xJfI8tCSHfLZNWtvWcfoiR4EuqNNBiThlofie7Nd/JcuA7Us3g2yasy8kH7D9BxshlAKS8u+egWvEtWwsj1Jc8wJxNV9Q1/5g/Ez5pQ= 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=fZ928gOv; arc=none smtp.client-ip=198.47.23.248 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 lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 454AiTmR103007; Tue, 4 Jun 2024 05:44:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717497869; bh=nezdJ3Z2zPJTiy12m4C6hmB+BU4Dij+DiP2Sa9MiMTo=; h=From:To:CC:Subject:Date; b=fZ928gOvYz7rbriJkTPNGmJ6XarluOPVdKMahhCPVsyi8oyl4LKw7rC14xA18VT2s 9j2Rhu5DXqZmBcrQkkozVxEMb7Op+40kCjoFOCpZD48OQK8fH15T6RyC0hPS2bClW+ 3SCINR2Ph+2eTkant7M5NaZzFVrRepEtgWoij+MQ= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 454AiTL0027856 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 4 Jun 2024 05:44:29 -0500 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE115.ent.ti.com (10.64.6.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 4 Jun 2024 05:44:29 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE110.ent.ti.com (10.64.6.31) 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; Tue, 4 Jun 2024 05:44:29 -0500 Received: from uda0492258.dhcp.ti.com (uda0492258.dhcp.ti.com [172.24.227.9]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 454AiPOa108836; Tue, 4 Jun 2024 05:44:26 -0500 From: Siddharth Vadapalli To: , , , , , CC: , , , , Subject: [PATCH v4] arm64: dts: ti: k3-am62p: use eFuse MAC Address for CPSW3G Port 1 Date: Tue, 4 Jun 2024 16:14:25 +0530 Message-ID: <20240604104425.3770037-1-s-vadapalli@ti.com> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Add the "ethernet-mac-syscon" node within "wkup_conf" node corresponding to the CTRLMMR_MAC_IDx registers within the CTRL_MMR space. Assign the compatible "ti,am62p-cpsw-mac-efuse" to enable "syscon_regmap" operations on these registers. The MAC Address programmed in the eFuse is accessible through the CTRLMMR_MAC_IDx registers. The "ti,syscon-efuse" device-tree property points to the CTRLMMR_MAC_IDx registers, allowing the CPSW driver to fetch the MAC Address and assign it to the network interface associated with CPSW3G MAC Port 1. Signed-off-by: Siddharth Vadapalli Acked-by: Krzysztof Kozlowski --- Hello, This patch is based on linux-next tagged next-20240604. v3 of this patch is at: https://lore.kernel.org/r/20240404124614.891416-1-s-vadapalli@ti.com/ Changes since v3: - Rebased patch on next-20240604. - Collected Acked-by tag. This patch no longer has any dependencies since the dependent patch mentioned in v3 which is: https://patchwork.kernel.org/project/linux-arm-kernel/patch/20240402105708.4114146-1-s-vadapalli@ti.com/ has been merged. Test Logs on AM62p: https://gist.github.com/Siddharth-Vadapalli-at-TI/d804e1b1cbd0a32bc8d563923f3211c0 Regards, Siddharth. arch/arm64/boot/dts/ti/k3-am62p-main.dtsi | 1 + arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi index 900d1f9530a2..22f8f1359bc5 100644 --- a/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62p-main.dtsi @@ -749,6 +749,7 @@ cpsw_port1: port@1 { label = "port1"; phys = <&phy_gmii_sel 1>; mac-address = [00 00 00 00 00 00]; + ti,syscon-efuse = <&cpsw_mac_syscon 0x0>; status = "disabled"; }; diff --git a/arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi b/arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi index c71d9624ea27..71784e10b4f1 100644 --- a/arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am62p-wakeup.dtsi @@ -19,6 +19,11 @@ chipid: chipid@14 { bootph-all; }; + cpsw_mac_syscon: ethernet-mac-syscon@200 { + compatible = "ti,am62p-cpsw-mac-efuse", "syscon"; + reg = <0x200 0x8>; + }; + usb0_phy_ctrl: syscon@4008 { compatible = "ti,am62-usb-phy-ctrl", "syscon"; reg = <0x4008 0x4>; -- 2.40.1