Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp6972476rwr; Tue, 25 Apr 2023 06:34:26 -0700 (PDT) X-Google-Smtp-Source: AKy350b3lmGMJd/q69VYl7yj0eYsqnQ+jYm/fHveLrx77mloWVp/Vhc/02N0nbTIH6bzAObMZSl2 X-Received: by 2002:a17:90a:3181:b0:247:8b61:a41 with SMTP id j1-20020a17090a318100b002478b610a41mr15937651pjb.25.1682429666005; Tue, 25 Apr 2023 06:34:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682429665; cv=none; d=google.com; s=arc-20160816; b=YWa8AnzvfRDSNdxbMI3JRFgmm4KSEoTu5MbRRRtTwahdfWYqLhb6sWE9xZpGjNdL8h 4yD5XFaP2ifBqhisroDHdYSlzyMidX4cLe4yCewwmY15IO5Zwa2AhosB+Q90wIt0PJ+q QNW/lC+EcNMksEYkgMs5/NDrlOZii+CuiDkX8QM5JHnqSew3TT+rWpeX3yvgXeaJ6Nx0 R82cP8kpdJ6p+BNpRawBKKkv+xEwrGagwgAvgB2At79FzJBVUmhEiBA5xgdnHYW3qGvE OGLzWc+jF11zT3/+F8NIFss/y8KK2j9fQ7/mEpL1RcVOipz3NrnRXg6DSvoDf5WNZe0m O5ZQ== 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=c46MKi09eru97iqyhoS/ej5Bk+10vEhDoBCZ9O5a9wo=; b=wYS/oi+3fT6RhRyAA5EnpYgRQC1Yf8ebnsVFSf0nv6dlCuDceYiSZlUlOpBOvE62qj C+YIx/18OwZwMYztdItYB9fH9k4q3AJgtLY8vc1XbGSegr8/OK1D2LhiL/Byn6w+E7Lc v6ZAX/4g7VAkvfwqiI6HyesbWyfMCiGpmdfmJepWqg3qNNneK7MsuAtX3r1zOEU4nGo5 n7ul52ZFdQpiq6mQ35CaXXVkqD300obPMPcJduMGvxQFB5aGqhXg69fYooyFUfTw4+Ur gtbFQyFwej2hTY2dqR25ZQS9O3cg3RHy9Zv95rax/fjWFnLIthqAQALwomNoW5HqS5va Z5Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="ekC/RwAs"; 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 pj8-20020a17090b4f4800b002476be78cd2si17032321pjb.121.2023.04.25.06.34.05; Tue, 25 Apr 2023 06:34:25 -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="ekC/RwAs"; 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 S234118AbjDYNdY (ORCPT + 99 others); Tue, 25 Apr 2023 09:33:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233976AbjDYNdT (ORCPT ); Tue, 25 Apr 2023 09:33:19 -0400 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 70191CC1E; Tue, 25 Apr 2023 06:32:46 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 33PDWb2m045265; Tue, 25 Apr 2023 08:32:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1682429557; bh=c46MKi09eru97iqyhoS/ej5Bk+10vEhDoBCZ9O5a9wo=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=ekC/RwAsOGBHOi/ZQa1F7tsf+vby4R9emzpO45mERgMifKXjaEWYyUWlCgkEIsFI4 T7Ib4Tb638XFeqcAn43htaB8X03J3DnSSRdfDDsB/jUEHpjUhBcJMTa/+KK40DZIxP L0SViypAn6gfHatzwNAEmPXpAy/JqLKbZt/MKb/Y= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 33PDWbaq114558 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 25 Apr 2023 08:32:37 -0500 Received: from DLEE114.ent.ti.com (157.170.170.25) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Tue, 25 Apr 2023 08:32:37 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE114.ent.ti.com (157.170.170.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Tue, 25 Apr 2023 08:32:37 -0500 Received: from uda0492258.dhcp.ti.com (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 33PDWNHK042485; Tue, 25 Apr 2023 08:32:34 -0500 From: Siddharth Vadapalli To: , , , , , , CC: , , , , Subject: [RFC PATCH 3/3] arm64: dts: ti: k3-j784s4: Add overlay for dual port USXGMII mode Date: Tue, 25 Apr 2023 19:02:23 +0530 Message-ID: <20230425133223.4060752-4-s-vadapalli@ti.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230425133223.4060752-1-s-vadapalli@ti.com> References: <20230425133223.4060752-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=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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 The CPSW9G instance of the CPSW Ethernet Switch supports USXGMII mode with MAC Ports 1 and 2 of the instance, which are connected to ENET Expansion 1 and ENET Expansion 2 slots on the EVM respectively, through the Serdes2 instance of the SERDES. Enable CPSW9G MAC Ports 1 and 2 in fixed-link configuration USXGMII mode at 5 Gbps each. Signed-off-by: Siddharth Vadapalli --- arch/arm64/boot/dts/ti/Makefile | 1 + .../ti/k3-j784s4-evm-usxgmii-exp1-exp2.dtso | 72 +++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-j784s4-evm-usxgmii-exp1-exp2.dtso diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index 88c43f1f211b..8ac7507f60ba 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -47,6 +47,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-j721s2-common-proc-board.dtb dtb-$(CONFIG_ARCH_K3) += k3-am69-sk.dtb dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm.dtb dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm-quad-port-eth-exp1.dtbo +dtb-$(CONFIG_ARCH_K3) += k3-j784s4-evm-usxgmii-exp1-exp2.dtbo # Enable support for device-tree overlays DTC_FLAGS_k3-am6548-iot2050-advanced-m2 += -@ diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm-usxgmii-exp1-exp2.dtso b/arch/arm64/boot/dts/ti/k3-j784s4-evm-usxgmii-exp1-exp2.dtso new file mode 100644 index 000000000000..90f045a6a9ad --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm-usxgmii-exp1-exp2.dtso @@ -0,0 +1,72 @@ +// SPDX-License-Identifier: GPL-2.0 +/** + * DT Overlay for CPSW9G in dual port fixed-link USXGMII mode using ENET-1 + * and ENET-2 Expansion slots of J784S4 EVM. + * + * Copyright (C) 2023 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; +/plugin/; + +#include +#include +#include +#include + +&main_cpsw0 { + status = "okay"; + pinctrl-names = "default"; +}; + +&main_cpsw0_port1 { + status = "okay"; + phy-mode = "usxgmii"; + mac-address = [00 00 00 00 00 00]; + phys = <&cpsw0_phy_gmii_sel 1>, <&serdes2_usxgmii_link>; + phy-names = "mac", "serdes"; + fixed-link { + speed = <5000>; + full-duplex; + }; +}; + +&main_cpsw0_port2 { + status = "okay"; + phy-mode = "usxgmii"; + mac-address = [00 00 00 00 00 00]; + phys = <&cpsw0_phy_gmii_sel 2>, <&serdes2_usxgmii_link>; + phy-names = "mac", "serdes"; + fixed-link { + speed = <5000>; + full-duplex; + }; +}; + +&serdes_wiz2 { + status = "okay"; + assigned-clock-parents = <&k3_clks 406 9>; +}; + +&serdes2 { + status = "okay"; + #address-cells = <1>; + #size-cells = <0>; + + serdes2_usxgmii_link: phy@2 { + reg = <2>; + cdns,num-lanes = <2>; + #phy-cells = <0>; + cdns,phy-type = ; + resets = <&serdes_wiz2 3>, <&serdes_wiz2 4>; + }; +}; + +&serdes_ln_ctrl { + idle-states = , , + , , + , , + , , + , , + , ; +}; -- 2.25.1