Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp35130287rwd; Mon, 10 Jul 2023 03:04:31 -0700 (PDT) X-Google-Smtp-Source: APBJJlFI0Sex6f8XWs+Cpz9Wdm5PNS0ZQzkAlSaP75L9Imwu8gJKZsXzA4BqFkmY+5uxkmVybCgf X-Received: by 2002:aa7:d891:0:b0:51d:9605:28fd with SMTP id u17-20020aa7d891000000b0051d960528fdmr10420911edq.26.1688983470856; Mon, 10 Jul 2023 03:04:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1688983470; cv=none; d=google.com; s=arc-20160816; b=OpEYhD+rJpm3S5ihoWRX3ZcTewjkv8slPN/GFLjv40PslSpaJzwVRLSRlrBPdl3xRI Sj3TlwIgOEe5EIEHneSKawwU6F3eyHB9Ebh1v7DmYFAnzY5+9WfwYwL9lW06LDt7WvKB L1jt5HjDe9GweQy6KAx2FQdGmI3dmkBk4cyBcNBxVlZ53Cj1bTpa3UIGqGwTW62bmQiQ kNw9hDZFa/v2R6nWP1aP6dnv0R/Tc20F/Gi1jaoykxkQSnZ2tKiF0lIDIL/z14J6HzVh UW2BnpOBzEhbgy4o9NjSqJ6XMpD1d+i4uIf/1BpqrgOQbjc/ZGiEVGI4Jm4UwLM7wfJb 3pEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=bvs1KSdVyXaXgcZsLwz9rPC2hok95sFN4Ug1IAah5Pg=; fh=EgJcdY7b/sPuBFS470XRcPTnySiR+o/aN5jmh1N1Zto=; b=cl5EYyFV8xM04/phK7xOY8eDtOIaeNHUn6ou1Au4Xw4e7CHgAtpcWM1T/p57upkclT edcHwEd7IoG132jYFs/L72/PJeLZbdzFCvGtiyhltW8wJI2vNq8eqMAIE+/Q5+JgfsUx eN8hWtotRscLAkKwsJY5bjwauT2lt443UVnIsPbQ9Wbj2holmwq8xCKngH5QPdjLVSzA zu6PVZORTiu98BObGk+TidgBlg3L+gmhg7Ima0KIP/OkzvkIo9qy89Rrf50HB/Su1BFN DE3HAJn3YHfYKQRMVuuNC1m2gZ5gWoT1ePuNalkUUja2RdhsaqzbDxK8KTPUGskWQMsp AMgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=UdeA9zky; 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 ay6-20020a056402202600b0051e23250f88si6123688edb.349.2023.07.10.03.04.07; Mon, 10 Jul 2023 03:04:30 -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=UdeA9zky; 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 S233038AbjGJJtW (ORCPT + 99 others); Mon, 10 Jul 2023 05:49:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35122 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233260AbjGJJsM (ORCPT ); Mon, 10 Jul 2023 05:48:12 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 25E2D49C0; Mon, 10 Jul 2023 02:43:45 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 36A9ha97125493; Mon, 10 Jul 2023 04:43:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1688982216; bh=bvs1KSdVyXaXgcZsLwz9rPC2hok95sFN4Ug1IAah5Pg=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=UdeA9zky4bGhyAONwh44B19tA78O+ImLG3/5T6edcO+s90my4DLR+dX5O2SBegRzD +g0Kp9ufLpeHzzJ4l5sN47q0IIso+bfKlwhhUckULlcixt6pkUtuaLX2eLgmbkbK5E 2GmvbVMZM0HS9ro3KEgjPHi4u9+gGV+UPmFdnwGE= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 36A9hacI101530 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 10 Jul 2023 04:43:36 -0500 Received: from DFLE115.ent.ti.com (10.64.6.36) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 10 Jul 2023 04:43:36 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DFLE115.ent.ti.com (10.64.6.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; Mon, 10 Jul 2023 04:43:36 -0500 Received: from uda0492258.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 36A9hT7o031422; Mon, 10 Jul 2023 04:43:33 -0500 From: Siddharth Vadapalli To: , , , , , , CC: , , , , Subject: [PATCH v2 1/2] arm64: dts: ti: k3-j721s2-main: Add main CPSW2G devicetree node Date: Mon, 10 Jul 2023 15:13:27 +0530 Message-ID: <20230710094328.1359377-2-s-vadapalli@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230710094328.1359377-1-s-vadapalli@ti.com> References: <20230710094328.1359377-1-s-vadapalli@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 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>; -- 2.34.1