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 0FDCACD1284 for ; Tue, 2 Apr 2024 15:18:28 +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:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=HQPMKMWGKAAW3imjBs4a3guTftqvD2QnJ+2B4lOai18=; b=ZKxpXdtK+QDTDp p5t4szvUbXarP+0hYZV62jah1D/isbF2XvgiOYpe3Wrba198/EMaC+It6+xsk3GvVJ6gqrd14cShd Ig8I+tooFW+WWr9v995f3kmD/ixQhByymn9/2VKW9u7OSEkttVyKEOBkxHZ+z6yUPF4oLC9QAsA8h d96hJeIXGY8cl3CEZePekg8OFhiYD1UNVtwDh0rGc/D4hRcH/iZu+Gao2a6f+qocJy4AOHvAgzDFj 5hTNkTw9rQ7OhCWd/lb/8eTf38HxOccatTzRPDMWXZUNboccUug+YR7N+nEQQP5ZwAIjlcP4ViwI1 VedOLzrGJGjR8wX/nohQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rrftz-0000000BmVL-2b9V; Tue, 02 Apr 2024 15:18:19 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rrftw-0000000BmUB-1Psz for linux-arm-kernel@lists.infradead.org; Tue, 02 Apr 2024 15:18:17 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id F2516CE1CA7; Tue, 2 Apr 2024 15:18:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2430AC433C7; Tue, 2 Apr 2024 15:18:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1712071093; bh=uoXTVBYmsXH4CuxeXyMn5r530R+RfFIEalMgma3ikU8=; h=From:To:Cc:Subject:Date:From; b=GkkeAzzvoitP4WU/zFxkWc//dpYnH6fshYUVURDOBdBCnTMcOViE3rLVb7qjfIftR u05v8hsXMsKnKsgZ0uP3nlW7okuWUw7fLBIiI5a6kOWWc9bEQAb/yotcuOB5EIe4du kHNqDT9Gofxy9ntVZyfrSbTqQlQK/q03jgv1xxP2lWlzXT55XU1nGWQOuj2MXBb1kB Ga0l0d+yJbrxV6IU1CNDqRxv9Mz1/6ru+GPSchFSe8oCm1fK9s+GB+OEfVTI5EXdZe ShA0e5NbnQg83H8sTg74Og8DWz+WU4oxYFbQ5W3/9FA5qjnc4Szr4DHPNXWSWH0ckr cKA2qRVZ0zw/Q== From: Michael Walle To: Nishanth Menon , Vignesh Raghavendra , Tero Kristo , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Michael Walle Subject: [PATCH] arm64: dts: ti: k3-j722s: Disable ethernet ports by default Date: Tue, 2 Apr 2024 17:18:02 +0200 Message-Id: <20240402151802.3803708-1-mwalle@kernel.org> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240402_081816_596500_B912AE82 X-CRM114-Status: GOOD ( 13.51 ) 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 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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel