Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp7944277rwp; Wed, 19 Jul 2023 02:50:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlEvX9wjYyOAqawVF9GEzPX0t6G7ToKOfhNtM3VZSaZg62u80P0Ytfv60F8M6k1nOi8mVR3m X-Received: by 2002:a05:6a00:2295:b0:686:2539:9ff2 with SMTP id f21-20020a056a00229500b0068625399ff2mr5385625pfe.9.1689760228887; Wed, 19 Jul 2023 02:50:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689760228; cv=none; d=google.com; s=arc-20160816; b=Adr16Qwv3Dzww4kRPWPgwMcyL9O/oKhUudAKKvQzZuYrQ6/tMS6sUKcogcJTSwYzIJ HYKu9GtEzhDsVDBvrH/0Bq6+XDi3Cow9SOLsnPyRATTvqEctzk0PZEaITZYm3GRd6XZS 8CRK+YvShbQI3M0ZlyxfHf9gNOSt580u1NGJUEYdf0IadDGpgChWaWpivIUcCmwB8PaO x6Oe1+txnScoWo3gGfDQnt8DHLBnPXKLsdlZp4Gm4AaXUbvBtWrN1HNZL1i3UtIGU5PJ JekWBuf238pP7vk9X/WrQ/oyjVfBl3t/kORFMhsYs9l3eJmw5J/EhV1lsg5oJtiRwD3K im5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=s3JqLfrdGx1x8y1Vva++v2wD+YNm6mj7IFwgXaDdy/0=; fh=eIUHAeId15VTOaaXVQkt8DgDwNwJBkKXVIDXSF5edtQ=; b=xPIYkrCe6/USM/rtNX4INrqGSfb50eNIeMc1I6knAXh6h29j/6PWSt26HVEw29Mx5z bBpf90THeja2UXJhTxemJ2bdLoTT8FQCFnAqPHSs0xyU9PVKWY69ZMP3l4fOk0IAZMQx X/VR6o+zQsF1cQ29FYwUmkc4NGLU/lYt4lQTKifw1TVVXMhVWBwdherKiPuX0E4WtKBv vE5o+TzzE+2zFiSlM+B5woNFVQa/TeBB8EyBH2Akbm4TpP4h0oA59DIWtThqcdiRO770 I04UprWu5rWNN1ykQ2lMuU2dOmHKh0ixhdlWlWO+cFedO3SpNQqeOcz3Cw0OJHxuwUJW qE3g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="F/zcQ59V"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b11-20020a655ccb000000b0055badd6d2d4si3191137pgt.414.2023.07.19.02.50.15; Wed, 19 Jul 2023 02:50:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="F/zcQ59V"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S230089AbjGSJnK (ORCPT + 99 others); Wed, 19 Jul 2023 05:43:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230215AbjGSJml (ORCPT ); Wed, 19 Jul 2023 05:42:41 -0400 Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6164D10D4; Wed, 19 Jul 2023 02:42:39 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36J9gTHx076518; Wed, 19 Jul 2023 04:42:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1689759749; bh=s3JqLfrdGx1x8y1Vva++v2wD+YNm6mj7IFwgXaDdy/0=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=F/zcQ59V/vYP/7vJSl4/K+2ewiNhSUhaZAAOp5Sptry9+dTj+yzeJaM1hjaWwmZo9 7uHuPQZ5lk00XW+xlwhTFxMYrINRFwEA6KYw9btBNtCKRzPYd9iY+xiekjArNmB5WU Yv5691lqT9/yxN5YW4Xhs/E8uzWY56sY7g/gt/DQ= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36J9gTV8017464 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 19 Jul 2023 04:42:29 -0500 Received: from DLEE106.ent.ti.com (157.170.170.36) 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; Wed, 19 Jul 2023 04:42:28 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE106.ent.ti.com (157.170.170.36) 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; Wed, 19 Jul 2023 04:42:28 -0500 Received: from [172.24.227.83] (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36J9gOlJ038474; Wed, 19 Jul 2023 04:42:25 -0500 Message-ID: Date: Wed, 19 Jul 2023 15:12:24 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH v2 1/2] arm64: dts: ti: k3-j721s2-main: Add main CPSW2G devicetree node Content-Language: en-US To: Siddharth Vadapalli , , , , , , , CC: , , , , Ravi Gunasekaran References: <20230710094328.1359377-1-s-vadapalli@ti.com> <20230710094328.1359377-2-s-vadapalli@ti.com> From: Ravi Gunasekaran In-Reply-To: <20230710094328.1359377-2-s-vadapalli@ti.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 7/10/23 3:13 PM, Siddharth Vadapalli wrote: > From: Kishon Vijay Abraham I > > TI's J721S2 SoC has a MAIN CPSW2G instance of the CPSW Ethernet Switch. > Add devicetree node for it. > > Signed-off-by: Kishon Vijay Abraham I > Signed-off-by: Siddharth Vadapalli > --- > arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 69 ++++++++++++++++++++++ > 1 file changed, 69 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi > index ed79ab3a3271..4d0d27e7ca1b 100644 > --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi > +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi > @@ -51,6 +51,12 @@ usb_serdes_mux: mux-controller@0 { > mux-reg-masks = <0x0 0x8000000>; /* USB0 to SERDES0 lane 1/3 mux */ > }; > > + phy_gmii_sel_cpsw: phy@34 { > + compatible = "ti,am654-phy-gmii-sel"; > + reg = <0x34 0x4>; > + #phy-cells = <1>; > + }; > + > serdes_ln_ctrl: mux-controller@80 { > compatible = "mmio-mux"; > reg = <0x80 0x10>; > @@ -1039,6 +1045,69 @@ cpts@310d0000 { > }; > }; > > + main_cpsw: ethernet@c200000 { > + compatible = "ti,j721e-cpsw-nuss"; > + reg = <0x00 0xc200000 0x00 0x200000>; > + reg-names = "cpsw_nuss"; > + ranges = <0x0 0x0 0x0 0xc200000 0x0 0x200000>; > + #address-cells = <2>; > + #size-cells = <2>; > + dma-coherent; > + clocks = <&k3_clks 28 28>; > + clock-names = "fck"; > + power-domains = <&k3_pds 28 TI_SCI_PD_EXCLUSIVE>; > + > + dmas = <&main_udmap 0xc640>, > + <&main_udmap 0xc641>, > + <&main_udmap 0xc642>, > + <&main_udmap 0xc643>, > + <&main_udmap 0xc644>, > + <&main_udmap 0xc645>, > + <&main_udmap 0xc646>, > + <&main_udmap 0xc647>, > + <&main_udmap 0x4640>; > + dma-names = "tx0", "tx1", "tx2", "tx3", > + "tx4", "tx5", "tx6", "tx7", > + "rx"; > + > + status = "disabled"; > + > + ethernet-ports { > + #address-cells = <1>; > + #size-cells = <0>; > + > + main_cpsw_port1: port@1 { > + reg = <1>; > + ti,mac-only; > + label = "port1"; > + phys = <&phy_gmii_sel_cpsw 1>; > + status = "disabled"; > + }; > + }; > + > + main_cpsw_mdio: mdio@f00 { > + compatible = "ti,cpsw-mdio","ti,davinci_mdio"; > + reg = <0x00 0xf00 0x00 0x100>; > + #address-cells = <1>; > + #size-cells = <0>; > + clocks = <&k3_clks 28 28>; > + clock-names = "fck"; > + bus_freq = <1000000>; > + status = "disabled"; > + }; > + > + cpts@3d000 { > + compatible = "ti,am65-cpts"; > + reg = <0x00 0x3d000 0x00 0x400>; > + clocks = <&k3_clks 28 3>; > + clock-names = "cpts"; > + interrupts-extended = <&gic500 GIC_SPI 21 IRQ_TYPE_LEVEL_HIGH>; > + interrupt-names = "cpts"; > + ti,cpts-ext-ts-inputs = <4>; > + ti,cpts-periodic-outputs = <2>; > + }; > + }; > + > usbss0: cdns-usb@4104000 { > compatible = "ti,j721e-usb"; > reg = <0x00 0x04104000 0x00 0x100>; Reviewed-by: Ravi Gunasekaran -- Regards, Ravi