Received: by 2002:a89:48b:0:b0:1f5:f2ab:c469 with SMTP id a11csp1006277lqd; Thu, 25 Apr 2024 03:21:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWGthD1WiitlV39RlkxjgrvoRrg1vmclHOu/1bcYlWH4UEKnFII+4Wvj8BVnNNnHBpU0+gnkSyTPwcZ9wMU2NG77AFroMe3vvuxr+1VIA== X-Google-Smtp-Source: AGHT+IHj6yc1hwEOdlHuuzOii3yP77aucm+1LBDhPoLC5bAbHtdh6yzMb+3pk8z94fhDZf90i5sx X-Received: by 2002:a17:90b:3011:b0:2a4:739a:23c4 with SMTP id hg17-20020a17090b301100b002a4739a23c4mr5938519pjb.35.1714040475168; Thu, 25 Apr 2024 03:21:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714040475; cv=pass; d=google.com; s=arc-20160816; b=he0Qh/uZ5UaQN4u0JsGtcewYlkqX16PVy2uvKS683Go07bIcCUJsjHygOjznaTlTMo ODwq9VJzcJ52EIkcU6AyKbuag2rj2CbpNrB/+TzyqCdbWwaeQBprY2scbROnI8OJMIa9 D4oUELiAPKakMNTBtYHz0VX0TzdQslBrmzG/qgkQzOgGEp/70wA2CuSL+K9O7JrfiBpq 1KYjmJiPiWQYW90XczvyWDZzuW8SserpN/C+o1XJce2FmR1rC31IIhHEcBKmEDBWgFWj i6dRP9B/EYo+syW37yz/h0y6TgvmjGQw6UeCInxeKbGMhNVWEEkiTfIVx0my2NMShfo5 dOqA== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=KA0nu5NQ1a/+4LHWjpLd7xA6ZjPq0ef69CqsU9ADrKQ=; fh=Dj7NFxOheFIKdlCKwDwwSjjRdXAyq/p+HW/J4KEpSMs=; b=lmHZABNgZtsQJO+YcwlOIh8fdVFjlV2AGKLZTlJ+qw18UCNJhoyG4Tz7HdyC3b9aC2 TZYKn/vpYLFLT7kL+ZHdx90qXrFSX7x8JkF3b7Kw9CCZuvPp9vUfuVB630u8uIBGe6Mk hka+nP8HOIpEvtiSY/P8xgEAUZTy0tFHKaN8UzFZ/iwaEsF2sIlLgupK1UyZOe7zrtF+ 8CWjPI0Xdsjy0MWASG9Kbdzd+eDi5EkZkJVVAER84mQbyoAERV3VmEqlYMAHMyyvtbju 6cTTMsiLYXFmcxwj+aJq0n2MXg/jjn7oma4jrmdFicbJxDJbtdlFS6jNQuijhDTVhU69 x2yA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=OS2WGmJq; 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-158383-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158383-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id d9-20020a17090a114900b002a5566ccf28si14402370pje.50.2024.04.25.03.21.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Apr 2024 03:21:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-158383-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=OS2WGmJq; 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-158383-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-158383-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id C603D281610 for ; Thu, 25 Apr 2024 10:21:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 39FDE1272D9; Thu, 25 Apr 2024 10:20:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="OS2WGmJq" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 C8538126F02; Thu, 25 Apr 2024 10:20:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714040452; cv=none; b=uVoYZO0nqJXOcFyMpiGm2UawqUKV/6GhdAUxfEKBytAKWCSb9TjaJzMbUGtaWyu7Xve7raNcwnWTNqDP8M3YqD92hDNdgJx0yeQgy3Hx3WNxeL5qptiwvSR5p0fJHIsT1e2SzKRd8YdqPzO/CXNR+mByQD2zWk0VUtJ8EQ1JPrs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714040452; c=relaxed/simple; bh=vuHXorPy6YtF2cDUTngs8FJ6VxYtlfsvKMpKbQE7f30=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=kED3+zyD3r4/IuY8TcEbA39gC0CxBPiIY3Wv3Pbjuys25v22uAOoOOK6H5O3KdoZTH4Dl4+s0XW6dLWjHZao1MmW8oiSxIgNvjH1MvgILJzeyW0cUkFdnBlAD5Sps4oZeatSUSQBFg9yG6R1Xe+Xm6mRVWVe26YOq2YkSubdgAs= 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=OS2WGmJq; arc=none smtp.client-ip=198.47.23.249 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 lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 43PAKjFo122860; Thu, 25 Apr 2024 05:20:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1714040445; bh=KA0nu5NQ1a/+4LHWjpLd7xA6ZjPq0ef69CqsU9ADrKQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=OS2WGmJqrP8SWyL1gv774NNTyHD8KhGQbdBZinziQ/7b13QUhG3FWQnJgsDE72OBf TohCwm51s4nBrW5JApR7EZFjTheoLzKz5gzcqXjIjanlxtgKP9kNkXU//Dnu3gof8X ipkvJT9y/H/rBV89SFr/rg3GuVuGvI/rhfBMQCrg= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 43PAKjqT090579 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 25 Apr 2024 05:20:45 -0500 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 25 Apr 2024 05:20:44 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DLEE112.ent.ti.com (157.170.170.23) 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; Thu, 25 Apr 2024 05:20:44 -0500 Received: from localhost (chintan-thinkstation-p360-tower.dhcp.ti.com [172.24.227.220]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 43PAKhSI002423; Thu, 25 Apr 2024 05:20:43 -0500 From: Chintan Vankar To: Conor Dooley , Krzysztof Kozlowski , Rob Herring , Tero Kristo , Vignesh Raghavendra , Nishanth Menon , , , , CC: , , , Chintan Vankar Subject: [PATCH v2 2/2] arm64: dts: ti: k3-am62a7: Add overlay for second CPSW3G Port Date: Thu, 25 Apr 2024 15:50:38 +0530 Message-ID: <20240425102038.1995252-3-c-vankar@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240425102038.1995252-1-c-vankar@ti.com> References: <20240425102038.1995252-1-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-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 From: Siddharth Vadapalli The SK-Ethernet-DC01 Add-On Ethernet Card for AM62A7-SK board supports RGMII mode. Add overlay to enable the second CPSW3G port in RGMII-RXID mode with the Add-On Ethernet Card. Signed-off-by: Siddharth Vadapalli Signed-off-by: Chintan Vankar --- Link to v1: https://lore.kernel.org/r/20230424111945.3865240-3-s-vadapalli@ti.com/ Changes from v1 to v2: - Since support for device tree overlays for am62a7-sk is already enabled by commit "635ed9715194", it is removed from this series. arch/arm64/boot/dts/ti/Makefile | 3 + .../dts/ti/k3-am62a7-sk-ethernet-dc01.dtso | 61 +++++++++++++++++++ 2 files changed, 64 insertions(+) create mode 100644 arch/arm64/boot/dts/ti/k3-am62a7-sk-ethernet-dc01.dtso diff --git a/arch/arm64/boot/dts/ti/Makefile b/arch/arm64/boot/dts/ti/Makefile index c76b41f86527..8c55e46d9f98 100644 --- a/arch/arm64/boot/dts/ti/Makefile +++ b/arch/arm64/boot/dts/ti/Makefile @@ -27,6 +27,7 @@ dtb-$(CONFIG_ARCH_K3) += k3-am62-lp-sk.dtb # Boards with AM62Ax SoC dtb-$(CONFIG_ARCH_K3) += k3-am62a7-sk.dtb +dtb-$(CONFIG_ARCH_K3) += k3-am62a7-sk-ethernet-dc01.dtbo # Boards with AM62Px SoC dtb-$(CONFIG_ARCH_K3) += k3-am62p5-sk.dtb @@ -123,6 +124,8 @@ k3-am62a7-sk-csi2-ov5640-dtbs := k3-am62a7-sk.dtb \ k3-am62x-sk-csi2-ov5640.dtbo k3-am62a7-sk-csi2-tevi-ov5640-dtbs := k3-am62a7-sk.dtb \ k3-am62x-sk-csi2-tevi-ov5640.dtbo +k3-am62a7-sk-ethernet-dc01-dtbs := k3-am62a7-sk.dtb \ + k3-am62a7-sk-ethernet-dc01.dtbo k3-am62a7-sk-hdmi-audio-dtbs := k3-am62a7-sk.dtb k3-am62x-sk-hdmi-audio.dtbo k3-am62p5-sk-csi2-imx219-dtbs := k3-am62p5-sk.dtb \ k3-am62x-sk-csi2-imx219.dtbo diff --git a/arch/arm64/boot/dts/ti/k3-am62a7-sk-ethernet-dc01.dtso b/arch/arm64/boot/dts/ti/k3-am62a7-sk-ethernet-dc01.dtso new file mode 100644 index 000000000000..f6d5a089a717 --- /dev/null +++ b/arch/arm64/boot/dts/ti/k3-am62a7-sk-ethernet-dc01.dtso @@ -0,0 +1,61 @@ +// SPDX-License-Identifier: GPL-2.0 +/** + * DT Overlay for second CPSW3G port in RGMII mode using SK-ETHERNET-DC01 + * Add-On Daughtercard with AM62A7-SK. + * + * Copyright (C) 2024 Texas Instruments Incorporated - https://www.ti.com/ + */ + +/dts-v1/; +/plugin/; + +#include +#include +#include "k3-pinctrl.h" + +&{/} { + aliases { + ethernet1 = "/bus@f0000/ethernet@8000000/ethernet-ports/port@2"; + }; +}; + +&cpsw3g { + pinctrl-0 = <&main_rgmii1_pins_default>, <&main_rgmii2_pins_default>; +}; + +&cpsw_port2 { + status = "okay"; + phy-mode = "rgmii-rxid"; + phy-handle = <&cpsw3g_phy1>; +}; + +&cpsw3g_mdio { + #address-cells = <1>; + #size-cells = <0>; + + cpsw3g_phy1: ethernet-phy@1 { + reg = <1>; + ti,rx-internal-delay = ; + ti,fifo-depth = ; + ti,min-output-impedance; + }; +}; + +&main_pmx0 { + main_rgmii2_pins_default: main-rgmii2-default-pins { + pinctrl-single,pins = < + AM62AX_IOPAD(0x0184, PIN_INPUT, 0) /* (AA21) RGMII2_RD0 */ + AM62AX_IOPAD(0x0188, PIN_INPUT, 0) /* (Y20) RGMII2_RD1 */ + AM62AX_IOPAD(0x018c, PIN_INPUT, 0) /* (AB21) RGMII2_RD2 */ + AM62AX_IOPAD(0x0190, PIN_INPUT, 0) /* (AB20) RGMII2_RD3 */ + AM62AX_IOPAD(0x0180, PIN_INPUT, 0) /* (AA20) RGMII2_RXC */ + AM62AX_IOPAD(0x017c, PIN_INPUT, 0) /* (W18) RGMII2_RX_CTL */ + AM62AX_IOPAD(0x016c, PIN_INPUT, 0) /* (AA19) RGMII2_TD0 */ + AM62AX_IOPAD(0x0170, PIN_INPUT, 0) /* (Y18) RGMII2_TD1 */ + AM62AX_IOPAD(0x0174, PIN_INPUT, 0) /* (AA18) RGMII2_TD2 */ + AM62AX_IOPAD(0x0178, PIN_INPUT, 0) /* (W17) RGMII2_TD3 */ + AM62AX_IOPAD(0x0168, PIN_INPUT, 0) /* (AB19) RGMII2_TXC */ + AM62AX_IOPAD(0x0164, PIN_INPUT, 0) /* (Y19) RGMII2_TX_CTL */ + >; + }; +}; -- 2.34.1