Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp996274rdb; Fri, 19 Jan 2024 05:19:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IEqlJhYsx7JX5D5ub5wazgNK9bjfsd3cdYhqhidPolZFixmBXVpZFbWqa+51aYkCF2IrLYw X-Received: by 2002:a05:6122:3184:b0:4b6:dfda:525c with SMTP id ch4-20020a056122318400b004b6dfda525cmr2780725vkb.5.1705670392968; Fri, 19 Jan 2024 05:19:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705670392; cv=pass; d=google.com; s=arc-20160816; b=TDnrGxFvsnj+bWZD1SvnAl7XbBYkmiVhScGSgdx8po+tvH6JxXKCAGXRuNvouVRnVm AbW42svva40GA+sWHTVeJM8/YA7QcBF0miiSVEPiBvQDoMAyHge1AZc5W0ODrBbemh0I ZZccbw7NnOUCyZhNPABRH8IF6KzIJQ2uGMAZifjOWGflLqcZzNuz997fJtklpNDYWsao Tphlac4TrlYbeSXov/exbd/QXAOjygRmCx2MrEdPFt0bvAD/ytog1oe18jkbV/el1Jr7 TfVObvjBZtN+sY4q9PFpCWOgBs3t822vG/nA352dECgkZNRfznKc2gwyOIoHbQiquzzO GBuA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=OrSnCm6YBe7QCbBAO+laLJ5oHXHnkGr4ZsBxFZ4MU0M=; fh=qn5AJ6h6V15e2SZfyT1F5NtxnUk+SUZ4dH9QeGPjJgg=; b=yz1SvzUs6xnp+Ix11o8lKf0BWMaxp4vNG0p6psWLFXnK9SkAcnCGLv7JHSf+10qFq7 cKGoYpDZwXt5K/xQOn1e4mfLRChNxRHMWPBmE+UxY665CIskZkIQgdm4BiNJiTwVZfga h1ka1CxsQT0UlSa/WCH3Kb27v+NHahQ5TqezQsak3LGwuipe7M+WwwJu+kYmqba1tbHd 2VSbeb8jfNd/Oc+RK18b2UutRaf/yX2mXpgJCR8/i6YeSR5amwIdpsxk2PJXhbVWeSas EBk3W3isb06gMzyrVo+8YRxAEbsTI1RdNq237ZHmrulOtpLsWIiFSXUGz3lL4Um73IoI GH6A== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=PZnJIJGt; 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-31184-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31184-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. [147.75.199.223]) by mx.google.com with ESMTPS id k19-20020a05612202d300b004b7a95bda6asi2036776vki.6.2024.01.19.05.19.52 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 19 Jan 2024 05:19:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-31184-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=PZnJIJGt; 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-31184-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-31184-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 9D8FF1C22A91 for ; Fri, 19 Jan 2024 13:19:52 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 990CA524D6; Fri, 19 Jan 2024 13:19:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="PZnJIJGt" Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) (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 20DDC3C467; Fri, 19 Jan 2024 13:19:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.142 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705670383; cv=none; b=tPbDkPxnay+lIJ0aCsocLHef4QDx+VXNsyuADEGr8Z5SYZTWn/VxyJ7iPSRupNV0kl6Qvvv1/JALfUWFkbkmefqBAqm9M5embRvsyaO7B1XhJQSeyt6VlSF4a33rth3KRY0GQq4lKefTaf9829nR0X0zzWDSjDuXDhGqqkC0KQQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705670383; c=relaxed/simple; bh=IxHL4UjsYcnST39I2PBwlAiraAkN2ZkkvvIZFXNFVDA=; h=Date:From:To:CC:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=iwXwIYvq3Sk610C0Lr0n/DcybpOVy93rNL74x1A0+fJ9xdEsHby6qzX0gNmhmahiQeeahJ3RnK8vNI0/hiz2R1KpzrYOekjyBgRQjDQIAQjcB4G9rPWOpR5lzYicVp9rgyk0c+paxN3pHQrkFehFzygIcxbIPscBef62MTkUTOA= 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=PZnJIJGt; arc=none smtp.client-ip=198.47.19.142 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 fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40JDJXjs130594; Fri, 19 Jan 2024 07:19:33 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1705670373; bh=OrSnCm6YBe7QCbBAO+laLJ5oHXHnkGr4ZsBxFZ4MU0M=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=PZnJIJGt0VKAK9AVSh6xflgjo79zKD1emDuYaTOw3g1D/brtzyCVQYcWc/CyJIb6J 6hghM+r2o6581TEVIdAyCZ5NsDK2ULjSJlgu4LLbSAQ16dk02hNbchrNEd7f0GMqlO rDjAy7nGpgyMwHFVszdu6qPx17EqIv9qAIEXwCxA= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40JDJXGF087733 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 19 Jan 2024 07:19:33 -0600 Received: from DLEE107.ent.ti.com (157.170.170.37) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Fri, 19 Jan 2024 07:19:33 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE107.ent.ti.com (157.170.170.37) 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; Fri, 19 Jan 2024 07:19:33 -0600 Received: from localhost (uda0133052.dhcp.ti.com [128.247.81.232]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40JDJXsY019795; Fri, 19 Jan 2024 07:19:33 -0600 Date: Fri, 19 Jan 2024 07:19:33 -0600 From: Nishanth Menon To: Chintan Vankar CC: Conor Dooley , Krzysztof Kozlowski , Rob Herring , Tero Kristo , Vignesh Raghavendra , , , , , , , , , Subject: Re: [PATCH v2 3/5] arm64: dts: ti: k3-j784s4-main: Add CPSW9G nodes Message-ID: <20240119131933.zr3pkehssn4yr64f@cosponsor> References: <20240118094454.2656734-1-c-vankar@ti.com> <20240118094454.2656734-4-c-vankar@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20240118094454.2656734-4-c-vankar@ti.com> X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On 15:14-20240118, Chintan Vankar wrote: > From: Siddharth Vadapalli > > J784S4 SoC has a 9 port Ethernet Switch instance with 8 external > ports and 1 host port, referred to as CPSW9G. > > Add device-tree nodes for CPSW9G and disable it by default. > Device-tree overlays will be used to enable it. > > Signed-off-by: Siddharth Vadapalli > Signed-off-by: Chintan Vankar > --- > arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 114 +++++++++++++++++++++ > 1 file changed, 114 insertions(+) Any reason why we cant squash this to previous patch with something like "Add main cpsw nodes" ? > > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > index 191fdbe02877..9aebce8a51ab 100644 > --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi > @@ -54,6 +54,13 @@ cpsw1_phy_gmii_sel: phy@4034 { > #phy-cells = <1>; > }; > > + cpsw0_phy_gmii_sel: phy@4044 { > + compatible = "ti,j784s4-cpsw9g-phy-gmii-sel"; > + ti,qsgmii-main-ports = <7>, <7>; > + reg = <0x4044 0x20>; > + #phy-cells = <1>; > + }; > + > serdes_ln_ctrl: mux-controller@4080 { > compatible = "reg-mux"; > reg = <0x00004080 0x30>; > @@ -1248,6 +1255,113 @@ cpts@310d0000 { > }; > }; > > + main_cpsw0: ethernet@c000000 { > + compatible = "ti,j784s4-cpswxg-nuss"; > + reg = <0x00 0xc000000 0x00 0x200000>; > + reg-names = "cpsw_nuss"; > + #address-cells = <2>; > + #size-cells = <2>; > + ranges = <0x00 0x00 0x00 0xc000000 0x00 0x200000>; > + dma-coherent; > + clocks = <&k3_clks 64 0>; > + clock-names = "fck"; > + power-domains = <&k3_pds 64 TI_SCI_PD_EXCLUSIVE>; > + > + dmas = <&main_udmap 0xca00>, > + <&main_udmap 0xca01>, > + <&main_udmap 0xca02>, > + <&main_udmap 0xca03>, > + <&main_udmap 0xca04>, > + <&main_udmap 0xca05>, > + <&main_udmap 0xca06>, > + <&main_udmap 0xca07>, > + <&main_udmap 0x4a00>; > + dma-names = "tx0", "tx1", "tx2", "tx3", > + "tx4", "tx5", "tx6", "tx7", > + "rx"; > + > + status = "disabled"; > + > + ethernet-ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + main_cpsw0_port1: port@1 { > + reg = <1>; > + label = "port1"; > + ti,mac-only; > + status = "disabled"; > + }; > + > + main_cpsw0_port2: port@2 { > + reg = <2>; > + label = "port2"; > + ti,mac-only; > + status = "disabled"; > + }; > + > + main_cpsw0_port3: port@3 { > + reg = <3>; > + label = "port3"; > + ti,mac-only; > + status = "disabled"; > + }; > + > + main_cpsw0_port4: port@4 { > + reg = <4>; > + label = "port4"; > + ti,mac-only; > + status = "disabled"; > + }; > + > + main_cpsw0_port5: port@5 { > + reg = <5>; > + label = "port5"; > + status = "disabled"; > + }; > + > + main_cpsw0_port6: port@6 { > + reg = <6>; > + label = "port6"; > + status = "disabled"; > + }; > + > + main_cpsw0_port7: port@7 { > + reg = <7>; > + label = "port7"; > + status = "disabled"; > + }; > + > + main_cpsw0_port8: port@8 { > + reg = <8>; > + label = "port8"; > + status = "disabled"; > + }; > + }; > + > + main_cpsw0_mdio: mdio@f00 { > + compatible = "ti,cpsw-mdio","ti,davinci_mdio"; > + reg = <0x00 0xf00 0x00 0x100>; > + #address-cells = <1>; > + #size-cells = <0>; > + clocks = <&k3_clks 64 0>; > + clock-names = "fck"; > + bus_freq = <1000000>; > + status = "disabled"; > + }; > + > + cpts@3d000 { > + compatible = "ti,am65-cpts"; > + reg = <0x00 0x3d000 0x00 0x400>; > + clocks = <&k3_clks 64 3>; > + clock-names = "cpts"; > + interrupts-extended = <&gic500 GIC_SPI 16 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "cpts"; > + ti,cpts-ext-ts-inputs = <4>; > + ti,cpts-periodic-outputs = <2>; > + }; > + }; > + > main_cpsw1: ethernet@c200000 { > compatible = "ti,j721e-cpsw-nuss"; > #address-cells = <2>; > -- > 2.34.1 > -- Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D