Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2155399lqz; Tue, 2 Apr 2024 08:43:34 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXSR7J8Av54DAFqC4lOs33NSDgAhP8NeO2IFP93GWVa3nuEbPekHpSRgLK80+VQ1A/ZIGDdwriVoAzRzkzE8swBUbcd4hTzZskU+lSCbA== X-Google-Smtp-Source: AGHT+IG81PFPErd2cz5gOs9PpBH1kRiKOR/VI20wnrxc7IVcovA/6cdhlVHEqnwjFLxYbjbVQCh7 X-Received: by 2002:a05:6a20:3948:b0:1a3:aecb:db60 with SMTP id r8-20020a056a20394800b001a3aecbdb60mr16752968pzg.9.1712072613859; Tue, 02 Apr 2024 08:43:33 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712072613; cv=pass; d=google.com; s=arc-20160816; b=Ps1x4Nnc/JWtk4TFyPCHJsQ+xGVislmQNketl/kofIuj7nxuSzVA6x0AByZ7Ekkay+ RjEIqxP65PvxNsVJcZCDorJSozh2zeabpTfOx+ibeQP7F36xmVOHPRtAdgkKtd2RLVsb 07xKxWF51X4yyrbIVP7sB4YXFFwSO2/eWiUJN7yTtfYCOdLf2YbnC5rzYE/hkmv83CSO jZPmIRJLmjNcvOTAwqxAkbEn6wqt+LrmblwjnTGwqEmyTt6yfyGlB10E9s9Hgln18+/a vnm6FWO1oPmJOBFZ0faURlobyf4le5uWmhWLgw1mZo5riokj5i0n31jOnVFLxfSnmPfb JmvQ== 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=zgW6/Q9HiEy7D2dTEcinP20dcoZQ1Fjx57qrzccNWV8=; fh=h6so2NvUCFgXZRvgWGh/Zynld7xpK3WhX42GsV9mY/s=; b=c+PtsrXB8htk8klezgwZYWCec+Gxpekg2Um6Vw3dXi0gEmsEISwC3sRFwQ77Cxel9W cEFZ+pixSfNY3IvzzMwTF37FDbutfTCF0W6pARu3x0IQ+SGWqRi3dvUY+wIVcm+SI+ZW jfmBV6IInlvrBmfMINFZdJmeP0eqVy2ZmBD0TYZkucT0tC7U9L2Awnj9d+xXG1Db7B2j twrDEPUhs7EXw2V+yYMKAluDbAI9VP7eGOt1JVdkpulka6LZ+Xa8Db2Prk0Cygm1Wx+C AJwAfOsjjNY3X6df/C9jxQyay49y9OXkhsiooekdC/hkuiCwfLfwDZhPU4xvC/xrKNGo RNbQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GkkeAzzv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-128232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b13-20020a17090a488d00b0029de6cf894asi13185974pjh.40.2024.04.02.08.43.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 08:43:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=GkkeAzzv; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-128232-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128232-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 8BE7FB25D23 for ; Tue, 2 Apr 2024 15:18:21 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8E0EF12CDA5; Tue, 2 Apr 2024 15:18:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="GkkeAzzv" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 96B9D85283; Tue, 2 Apr 2024 15:18:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712071093; cv=none; b=GeDq3Ei94br7nl1l+BLcrL7X6r3EwfrKi6Q9+pPYLaUK6QD3LYBcjQuSRb7I2L8gtkfPBL4ezU/oROUvbR7HIAiNXUUXTC6wujZm8tZ9JGwn82B5QmaB/pCmlGBzovilsiJ4F2g8Wuj4mVW1cV5VbR/vZ9Gy5ITO16eVhv4buc0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712071093; c=relaxed/simple; bh=uoXTVBYmsXH4CuxeXyMn5r530R+RfFIEalMgma3ikU8=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=VEPhaiYuyV50W4CWuT//otKLrwt4v5uSNrPYbp/yyZhM2CHoRJiAWVcyAplropgcSyohD1MHuW+97INMxcjMfwmi9/yIGQOrnmZCtA4h+RYbAgMnDt9Tq1USaR9hiyu7eTWcqVVKHfWkK+QyFlath1QBWk/CmvcSNpKITayfw/M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=GkkeAzzv; arc=none smtp.client-ip=10.30.226.201 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 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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