Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp4849538pxj; Wed, 9 Jun 2021 03:29:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/WMT/orgqRIcmIOYVUujfVvV6wNaYR1zLJ1b8YbXVG122spx8vVJXQEcYwl54OHfRzbN1 X-Received: by 2002:aa7:db93:: with SMTP id u19mr30033193edt.227.1623234557275; Wed, 09 Jun 2021 03:29:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623234557; cv=none; d=google.com; s=arc-20160816; b=0mfP7zKqMp31+1aASFAohW+0COTyTWaWe2ryejgCAksIYaOCf2UhdlcYJFsM7f48Dy 5w1q6qoPBGx8b1D6kF0FHDLHUV7mnKHJr2C3pPGTiYGHKiLDK/vYaM/b4dqDmod8Tb9S KQS6LZxTU3AnCleLVg2tl9AuXQFr75qch8QFHgZJY2OXUdaMa0+XjxEaHtWx7KKZ9f95 huE/E0UQoj0BSBCMervB/IRh6RYUWO+6nkkq4tQ8uaBNLjsGnIYMe1wydP39yam6Xops 78Yd7a2zbg7+PkpdfCElDfkQ557twoJwsrDMLWNo5F22SsZnXVPa+vXDKvEDEJLj5y5V ASLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=XFmvnR4Sp9qLoZE86AyC7J5ZSl2Xb2RCdaI+k6DBZjY=; b=sC8UQlWZACCgmYUcgVu8CeULxBMUzHHt3YvijBYHXsh9UoKRzDeDH+9kzFHn0SNi0A rZfbD/t9WiSbYfTXVLS8GzUV1GdSl+Yb2yX82UVT0nN51/8+hLU4bJd2fEKu+uPEKfrv UBb4L5KKc5n+XRpFllHfAOf0/dhoS5pELPLyadfrBJ5io/AE+Ln+wfRySnRkB/J01cZ6 Bi5nT3s4DS0nZ7Jy9PrnUBs/gP1cIKUKVFhgh6LS9tkukhj77fsb3vFBOUA3+3+D1uj3 df27qu08tAXsxrYqXGZRokfF5+TeG52U+lMm2FbuaF6AJW8nm0etwZ93PPllUPz4OYSD cqDw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="yaG/RTDB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u8si1855478eju.375.2021.06.09.03.28.53; Wed, 09 Jun 2021 03:29:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="yaG/RTDB"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237274AbhFHTAM (ORCPT + 99 others); Tue, 8 Jun 2021 15:00:12 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:44990 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235795AbhFHSvw (ORCPT ); Tue, 8 Jun 2021 14:51:52 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 158Inndx080929; Tue, 8 Jun 2021 13:49:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1623178189; bh=XFmvnR4Sp9qLoZE86AyC7J5ZSl2Xb2RCdaI+k6DBZjY=; h=From:To:CC:Subject:Date; b=yaG/RTDBfzSBMwBK9EDSfdoN3rvAi5WCHslPVNGgmjGP4VXJpxqqcfizZTJRzEBQ1 tavaxMEMXeZQjkvePue012n1v5CtbjmN41lne3Zc+ukbdJAAXHO2SqqBUQ1e8TCsvP bmCgOBk3wY4Cx7bDc6+DKNNgM9uaaYJKrF9x9WEY= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 158InnR9101654 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 8 Jun 2021 13:49:49 -0500 Received: from DFLE105.ent.ti.com (10.64.6.26) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 8 Jun 2021 13:49:48 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DFLE105.ent.ti.com (10.64.6.26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2 via Frontend Transport; Tue, 8 Jun 2021 13:49:48 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 158InlxD043167; Tue, 8 Jun 2021 13:49:47 -0500 From: Grygorii Strashko To: Nishanth Menon , Vignesh Raghavendra , Lokesh Vutla , Tero Kristo CC: , , , Grygorii Strashko Subject: [PATCH] arm64: dts: ti: k3-am642-main: fix ports mac properties Date: Tue, 8 Jun 2021 21:49:40 +0300 Message-ID: <20210608184940.25934-1-grygorii.strashko@ti.com> X-Mailer: git-send-email 2.17.1 MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The current device tree CPSW3g node adds non-zero "mac-address" property to the ports, which prevents random MAC address assignment to network devices if bootloader failed to update DT. This may cause more then one host to have the same MAC in the network. mac-address = [00 00 de ad be ef]; mac-address = [00 01 de ad be ef]; In addition, there is one MAC address available in eFuse registers which can be used for default port 1. Hence, fix ports MAC properties by: - resetting "mac-address" property to 0 - adding ti,syscon-efuse = <&main_conf 0x200> to Port 1 Fixes: 3753b12877b6 ("arm64: dts: ti: k3-am64-main: Add CPSW DT node") Signed-off-by: Grygorii Strashko --- arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi index effb9d2e3c25..7f7178a7a055 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -514,7 +514,8 @@ ti,mac-only; label = "port1"; phys = <&phy_gmii_sel 1>; - mac-address = [00 00 de ad be ef]; + mac-address = [00 00 00 00 00 00]; + ti,syscon-efuse = <&main_conf 0x200>; }; cpsw_port2: port@2 { @@ -522,7 +523,7 @@ ti,mac-only; label = "port2"; phys = <&phy_gmii_sel 2>; - mac-address = [00 01 de ad be ef]; + mac-address = [00 00 00 00 00 00]; }; }; -- 2.17.1