From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B80C1CD1284 for ; Tue, 2 Apr 2024 16:13:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:CC:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=T518V34BHtunDPX9lRRrt6DiT/XdOqxf1JzfwPvPmck=; b=hfdzJEwjyj6czi awv+xVgyH+dn+AzVHU4YaYXM4kCvLAxyWmqrlKzE6d0y53j1AhQt83VxYLrXfnf7WSwmJzHxeJwrJ XZpG85BlqoRPR2tJK7s7r85dtDQByGCgWpwAMcIG1msIMP6TQOXrrF71tDbe5digHypqnqcN2gRqh uH3JiqNSVxEJ3Nqo+XBCwPkctl07yMfyNaZFAwUisWpe78mkfoR979HHHAjznbY8QZk4wVlkdsPx3 7U03Zb16eycDnTkoCaCkjAU6eCO6I0O58lk2NYP6a8TMB34vPLB6IHnZNd5AfrDoJ3W8LgS/+rI3E /xeJEufoS3JE9nKeBW0w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rrglB-0000000BzEQ-2Qbg; Tue, 02 Apr 2024 16:13:17 +0000 Received: from fllv0015.ext.ti.com ([198.47.19.141]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rrgl7-0000000Bz9W-2MQA for linux-arm-kernel@lists.infradead.org; Tue, 02 Apr 2024 16:13:15 +0000 Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 432GD7mX122906; Tue, 2 Apr 2024 11:13:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1712074387; bh=AwYCceT/5F6ItFhtiWk0XbQN3CxqTE6sM7MJfLiMEQI=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=rCNn42mgiiLR/O3MMAr3ZGxFqkk2Er+FLWmrEQ9yLTj+8V9LFVfwqZojQuFyZgQoU neKZNGDkvz2/PZr7dT1TDjLebnGucqhcThsy+73qKCdNq454c1Toc/9onu+2N/yHZZ AcNOnBZjEKRTcEloVHZYf2y22L8YJ0CbG7CTSEn0= Received: from DLEE110.ent.ti.com (dlee110.ent.ti.com [157.170.170.21]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 432GD7iI066070 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 2 Apr 2024 11:13:07 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE110.ent.ti.com (157.170.170.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Tue, 2 Apr 2024 11:13:07 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE105.ent.ti.com (157.170.170.35) 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, 2 Apr 2024 11:13:07 -0500 Received: from localhost (uda0133052.dhcp.ti.com [128.247.81.232]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 432GD7tE080769; Tue, 2 Apr 2024 11:13:07 -0500 Date: Tue, 2 Apr 2024 11:13:06 -0500 From: Nishanth Menon To: Michael Walle CC: Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley , , , Subject: Re: [PATCH] arm64: dts: ti: k3-j722s: Disable ethernet ports by default Message-ID: <20240402161306.tkg35heqlwqxoaua@another> References: <20240402151802.3803708-1-mwalle@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20240402151802.3803708-1-mwalle@kernel.org> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240402_091313_724848_577DD3FE X-CRM114-Status: GOOD ( 22.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On 17:18-20240402, Michael Walle wrote: > Device tree best practice is to disable any external interface in the > dtsi and just enable them if needed in the device tree. Thus, disable > both ethernet ports by default and just enable the one used by the EVM > in its device tree. > > There is no functional change. > > Signed-off-by: Michael Walle > --- > This should also be true for all the other SoCs. But I don't wanted to > touch all the (older) device trees. j722s is pretty new, so there we > should get it right. > --- > arch/arm64/boot/dts/ti/k3-j722s-evm.dts | 5 +---- > arch/arm64/boot/dts/ti/k3-j722s.dtsi | 8 ++++++++ > 2 files changed, 9 insertions(+), 4 deletions(-) > > diff --git a/arch/arm64/boot/dts/ti/k3-j722s-evm.dts b/arch/arm64/boot/dts/ti/k3-j722s-evm.dts > index d045dc7dde0c..afe7f68e6a4b 100644 > --- a/arch/arm64/boot/dts/ti/k3-j722s-evm.dts > +++ b/arch/arm64/boot/dts/ti/k3-j722s-evm.dts > @@ -224,14 +224,11 @@ cpsw3g_phy0: ethernet-phy@0 { > }; > > &cpsw_port1 { > + status = "okay"; > phy-mode = "rgmii-rxid"; > phy-handle = <&cpsw3g_phy0>; > }; > > -&cpsw_port2 { > - status = "disabled"; > -}; > - > &main_gpio1 { > status = "okay"; > }; > diff --git a/arch/arm64/boot/dts/ti/k3-j722s.dtsi b/arch/arm64/boot/dts/ti/k3-j722s.dtsi > index c75744edb143..d0451e6e7496 100644 > --- a/arch/arm64/boot/dts/ti/k3-j722s.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j722s.dtsi > @@ -83,6 +83,14 @@ &inta_main_dmss { > ti,interrupt-ranges = <7 71 21>; > }; > > +&cpsw_port1 { > + status = "disabled"; > +}; > + > +&cpsw_port2 { > + status = "disabled"; > +}; > + > &oc_sram { > reg = <0x00 0x70000000 0x00 0x40000>; > ranges = <0x00 0x00 0x70000000 0x40000>; > -- > 2.39.2 > Meant to respond to this thread: This is better at arch/arm64/boot/dts/ti/k3-am62p-main.dtsi. -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel