Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1151257lqa; Sun, 28 Apr 2024 22:25:27 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUOq7NgUKVfBmHPFu/fmlYJavCTswPIUXI0HHiHx36D53V7ykUhQLvl8GPo3iRCcyohkU48LI6xznwDCZy6wy26+nxasS5cTeCdftBHTg== X-Google-Smtp-Source: AGHT+IHgl7O2qGkFMKfBVxhQNifXK6iR3vFCAb0gKLhBlhX9i4osZnwf2u+ZRge7jnYJJ5YZieWm X-Received: by 2002:a05:6808:308e:b0:3c7:af0:a528 with SMTP id bl14-20020a056808308e00b003c70af0a528mr14582985oib.3.1714368327394; Sun, 28 Apr 2024 22:25:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714368327; cv=pass; d=google.com; s=arc-20160816; b=1IWzbHZkQYyaehIhkN35/G0ue77bor5+NsfBk4WCK8Y5W5ztRr6mcqrJgVjgSXeJ5T +i44SoYl/tU95PRwUhODUphpsJcQZCIySLlAb0/KerGqEc7jxQ9PFNoKLILlEcV7PU86 jdeHEHJSFpeVugWiirbfAp/GJPM5FjFEGm+EVUgAs8pnop8THGEkRctb6wWrhRBeW3o0 dYSnc35DD0Vk27JJpER57BL9fTiZQ+lusMsVJ8WnJoWZ4h16GEIXkrFlcwMBA1BTpM3m 077dADFp2a80haSKFIUVYjEUcp8KW8BN3wrnncq2qISRc4Qt71Tdv0AVmD3WSmNO6INJ 1x6A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=YlwjJexDMMoV1TKua9hyBS7nJpSKTtWk5vd9QtlVsNc=; fh=lxcx7GyT+UiI5VLoyRa5vFpInuhgAX6UHi/CKZJeV4Y=; b=fIGkt4YMM+HXR3767nLZ+u1ErrLI83TsN4180ftDY80Geqhkdpru48dhL1BRwmun3B oxcLKGOtGrTgr1U0ioR1srFmjQAizzRi2AUTDxmc0p8QL4fkwD1DXMwDPhFmvQ7OQb6c Z9J89n39BvCRQq+ihVJWEdIf+FSc/PhLskkK6IsZ65pr3tQfvy4vnRGxvbq3w7qRCq4C vy6ZKGmeEVAv8VF4iL/wMYUIn8KN1TYGYZ1Q60YoJX8W49V2VAMQUIBjTLFshgbmwF3g HegH2ROqjTPOVQGirknAzs6uILALdy9JzxQU180cZ+IoRZY5172Sd7u1hLVG9/retC87 qsOw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="fEqa9gd/"; 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-161749-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161749-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. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id k5-20020a633d05000000b005f802547237si16411322pga.711.2024.04.28.22.25.27 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 28 Apr 2024 22:25:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-161749-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="fEqa9gd/"; 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-161749-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-161749-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 F08C928139D for ; Mon, 29 Apr 2024 05:25:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C0092DF42; Mon, 29 Apr 2024 05:25:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="fEqa9gd/" 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 1ABA98BE2; Mon, 29 Apr 2024 05:25:15 +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=1714368317; cv=none; b=hca3MSqoXmx72dbqQMnh5EwSZ/ZSOQpVDnXbiKlgZrHIuWlf8Zvp1SSznOtVVQh8lM0Q6iLSzyNJtPNFhJ1yK2PQzVNw+f3KwFKFBYgfT79ZL3Gx189r69yo2x1kBo5gyAlPHsdM+IzYo25EiHYCXUH0Z8z8rIZ1YbMSdr0p3wM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714368317; c=relaxed/simple; bh=Ed7Oj6KAsZjX9rdEOr1fDKRnxgpa4qVUZuWx/uLGxX0=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=MwlMAxTXE/WaLxFcE2MlyfzmEmDoEKlY42h3ylL+ZZqqeKWIEjYmNK64iKFg6of0rwniTCxTLHUwjfGpS3PbnxGngJbhI1TqNz4ayXNh+foNvo+weKdYkCkVophGQkRGSK3yst+Hu0PwVTT6+BTdICVYKKcm/zeTZK0XpD7Z/UM= 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=fEqa9gd/; 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 lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 43T5Otw8063283; Mon, 29 Apr 2024 00:24:55 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1714368295; bh=YlwjJexDMMoV1TKua9hyBS7nJpSKTtWk5vd9QtlVsNc=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=fEqa9gd/XdAsN2euun74yGGQVFkROVLZPY8S76KbRnzSV9CWOTRb8S+cdh7ZwDCza I0TSK2Kv6nOapcVQ74FmyHSxAaGoBDmPR5dpRY+ihSxSrrUMKpmObbgNuaRQrTUhU6 PdEbKbthAFHZJ27pkNt78KJuB66qLzUW7uppLctw= Received: from DLEE102.ent.ti.com (dlee102.ent.ti.com [157.170.170.32]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 43T5Ot8j047330 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 29 Apr 2024 00:24:55 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) 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; Mon, 29 Apr 2024 00:24:55 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE115.ent.ti.com (157.170.170.26) 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, 29 Apr 2024 00:24:54 -0500 Received: from [172.24.227.88] (uda0500640.dhcp.ti.com [172.24.227.88]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 43T5OoV0038567; Mon, 29 Apr 2024 00:24:51 -0500 Message-ID: <6a3ef0c1-d6b3-7161-1338-c7c0a9c41d18@ti.com> Date: Mon, 29 Apr 2024 10:54:50 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: 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 2/2] arm64: dts: ti: k3-am62a7: Add overlay for second CPSW3G Port Content-Language: en-US To: Chintan Vankar , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Tero Kristo , Vignesh Raghavendra , Nishanth Menon , , , CC: , , , Ravi Gunasekaran References: <20240425102038.1995252-1-c-vankar@ti.com> <20240425102038.1995252-3-c-vankar@ti.com> From: Ravi Gunasekaran In-Reply-To: <20240425102038.1995252-3-c-vankar@ti.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On 4/25/24 3:50 PM, Chintan Vankar wrote: > 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 Please update the license to "GPL-2.0-only OR MIT" > +/** > + * 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>; One entry per line like below 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 */ > + >; > + }; > +}; -- Regards, Ravi