Received: by 2002:a05:7412:d1aa:b0:fc:a2b0:25d7 with SMTP id ba42csp1738574rdb; Wed, 31 Jan 2024 07:42:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFEqy6+8EyrGpbw7MC2AIz2ija138hEMKrrfP2us6is3kSipIZYtV7UUt8Tyf272FOOBW37 X-Received: by 2002:a05:6359:4285:b0:177:6dc9:ac1e with SMTP id kp5-20020a056359428500b001776dc9ac1emr1747474rwb.8.1706715773369; Wed, 31 Jan 2024 07:42:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706715773; cv=pass; d=google.com; s=arc-20160816; b=r8KQC8QxjPIDTwiNHSG8K8RRaRehigsCbNO8sy0neVJa+2zZPovJDPobtMRprb215B CRNhh8UQjO2lrZAynEsn7qiqrq5Wyh9yo5Ok/7+LWqII+pFwZMVfz+BzOUXUV/GgCvq/ 8fjnpZOuUNN6eLfn4HQ7eR5jlOP2SmkKRcFlfp7LEp302P6pUAJ6x49h4UoWFPUEoHY0 QbEk97FNMfKUSMkwzYOp35oTaUHcNztuW5p9v8HwTBypBL7hQytrtfIJYCkEJVDKFh15 b2JXD8lwdpyleAm8uejcG0hht4IY3BkFj7zHihQc4QqyyqDxIeWVKbDEqVjFJ3R/YOPT ec3g== 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=YUPIxfbN7igG1w5ev0dRIuOh5fGnBd1xonZKD3T8aDs=; fh=UCnk75xSzrfHPA3/hAs2gs447zA/GOQcym3lYUUW+LY=; b=rKfCgUCzxv8CTINZzQZ9pG5/3ANQaQFA6RdNid05pkVTroQwQBzauqmO8FHG8EtDNm eUKEdwoQazSRzODxea8X6cEo3oJgwxbPMuS2GmTw1os6RgtLs/QleKi0eVEmm99YQwRZ kHsicW8afesF6wUbE/QefTwbiPoi0mspnVI51VFe1y64FUJm/YTkn0arYX0hYWi+mt5d c+CiA/0FGoXxWNc09Ygs3PKtvAUhSg2WkSelGLqSqeulgvM4g34tXNkloK0uP7aKyDTh LaBlp1PaU4SKP+IANAXz7+pdMpsBLvHYlmdRjaVy9R1SE+5ifGovuPEKiI8duDU6C1eS lnDw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Sy6Ckxc3; 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-46729-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46729-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com X-Forwarded-Encrypted: i=1; AJvYcCX8lgeeiSobCEy1++sZR+oTOi1+jLC+e23xb5ikJc+vW3zTm0qUYwIl9q+E/PydKJLt/7z7ziWK2Yk38wdXM/qGESpxJvZMVz+dM5UF3A== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id g1-20020a056a000b8100b006de3eda1a4dsi4425381pfj.221.2024.01.31.07.42.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 31 Jan 2024 07:42:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-46729-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=Sy6Ckxc3; 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-46729-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-46729-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 A800D280D2B for ; Wed, 31 Jan 2024 15:42:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 885E212A16A; Wed, 31 Jan 2024 15:41:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="Sy6Ckxc3" Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) (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 E735E1292F7; Wed, 31 Jan 2024 15:41:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.248 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706715716; cv=none; b=Q+1so5HNoreT+Z31DMb4U/2wzp6LBv6PJDdF8R0bbXpoKj5DdngdmP7Nr8TS6LDeMXMv6byqVAMusv3lQsg8zykCD23Ha6Melum7ZQS0lTLUSVlSfI+4L3YnZeZ4eJ1hG5HGV0eeHyw3RFPG8luG45s0Xr68gST61WI6iPUpVo4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706715716; c=relaxed/simple; bh=OY3bW4RyJYoIakBZivR/Y+Ua+hVYu3TyxVNFADq89ww=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=eSt7tTtUOHPfisA4cR2Psmx649msOdyNdA5dg5unMkC/G+2kbzEmWSCgL/rFpvAvXWHQWIJBA28xF48+VZEBzNkW3SVm6tjsXG5tjjmbrwAEAX2VAXZTRJgJjY/jQVtgmYTvSVZFVByTuhkQJy3oVTI1RovZSAvcfSVMDyFubaQ= 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=Sy6Ckxc3; arc=none smtp.client-ip=198.47.23.248 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 lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 40VFfcR2026580; Wed, 31 Jan 2024 09:41:38 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1706715698; bh=YUPIxfbN7igG1w5ev0dRIuOh5fGnBd1xonZKD3T8aDs=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=Sy6Ckxc34RFdHK5+QpbrbJp5WWtZj17uqYsykjZxOu8XPlLyPCN/hRUn/d0Zb72tm zW9mAsdAN6FT8H0/WRn1JEzLquvSbq37Qsf2f2hHFipbrVddOZ8jHF2nYOcpX2IrbT gOH6s0eDjZeikBIIf5543Krx1U6pWitYNUyUF78s= Received: from DFLE115.ent.ti.com (dfle115.ent.ti.com [10.64.6.36]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 40VFfcJA011814 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 31 Jan 2024 09:41:38 -0600 Received: from DFLE105.ent.ti.com (10.64.6.26) 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; Wed, 31 Jan 2024 09:41:38 -0600 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE105.ent.ti.com (10.64.6.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; Wed, 31 Jan 2024 09:41:38 -0600 Received: from [10.249.42.149] ([10.249.42.149]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 40VFfbLF069991; Wed, 31 Jan 2024 09:41:37 -0600 Message-ID: <96e48198-6027-4f94-9a36-1c21560fdfc1@ti.com> Date: Wed, 31 Jan 2024 09:41:37 -0600 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 4/6] arm64: dts: ti: k3-j784s4: Add Main CPSW2G node Content-Language: en-US To: Chintan Vankar , Peter Rosin , Greg Kroah-Hartman , Conor Dooley , Krzysztof Kozlowski , Rob Herring , Tero Kristo , Vignesh Raghavendra , Nishanth Menon CC: , , , , , , , Jayesh Choudhary References: <20240131101441.1362409-1-c-vankar@ti.com> <20240131101441.1362409-5-c-vankar@ti.com> From: Andrew Davis In-Reply-To: <20240131101441.1362409-5-c-vankar@ti.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On 1/31/24 4:14 AM, Chintan Vankar wrote: > From: Siddharth Vadapalli > > Add the device-tree nodes for the Main CPSW2G instance and enable it. > > Add alias for the Main CPSW2G port to enable Linux to fetch MAC Address > for the port directly from U-Boot. > > Signed-off-by: Siddharth Vadapalli > Signed-off-by: Jayesh Choudhary > Signed-off-by: Chintan Vankar > --- > arch/arm64/boot/dts/ti/k3-j784s4-evm.dts | 49 ++++++++++++++++++++++++ > 1 file changed, 49 insertions(+) > > diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > index b74f7d3025de..be028c246c67 100644 > --- a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > +++ b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts > @@ -28,6 +28,7 @@ aliases { > i2c0 = &wkup_i2c0; > i2c3 = &main_i2c0; > ethernet0 = &mcu_cpsw_port1; > + ethernet1 = &main_cpsw1_port1; > }; > > memory@80000000 { > @@ -280,6 +281,30 @@ &wkup_gpio0 { > > &main_pmx0 { > bootph-all; > + main_cpsw2g_default_pins: main-cpsw2g-default-pins { > + pinctrl-single,pins = < > + J784S4_IOPAD(0x0b8, PIN_INPUT, 6) /* (AC34) MCASP1_ACLKX.RGMII1_RD0 */ > + J784S4_IOPAD(0x0a0, PIN_INPUT, 6) /* (AD34) MCASP0_AXR12.RGMII1_RD1 */ > + J784S4_IOPAD(0x0a4, PIN_INPUT, 6) /* (AJ36) MCASP0_AXR13.RGMII1_RD2 */ > + J784S4_IOPAD(0x0a8, PIN_INPUT, 6) /* (AF34) MCASP0_AXR14.RGMII1_RD3 */ > + J784S4_IOPAD(0x0b0, PIN_INPUT, 6) /* (AL33) MCASP1_AXR3.RGMII1_RXC */ > + J784S4_IOPAD(0x0ac, PIN_INPUT, 6) /* (AE34) MCASP0_AXR15.RGMII1_RX_CTL */ > + J784S4_IOPAD(0x08c, PIN_INPUT, 6) /* (AE35) MCASP0_AXR7.RGMII1_TD0 */ > + J784S4_IOPAD(0x090, PIN_INPUT, 6) /* (AC35) MCASP0_AXR8.RGMII1_TD1 */ > + J784S4_IOPAD(0x094, PIN_INPUT, 6) /* (AG35) MCASP0_AXR9.RGMII1_TD2 */ > + J784S4_IOPAD(0x098, PIN_INPUT, 6) /* (AH36) MCASP0_AXR10.RGMII1_TD3 */ > + J784S4_IOPAD(0x0b4, PIN_INPUT, 6) /* (AL34) MCASP1_AXR4.RGMII1_TXC */ > + J784S4_IOPAD(0x09c, PIN_INPUT, 6) /* (AF35) MCASP0_AXR11.RGMII1_TX_CTL */ > + >; > + }; > + > + main_cpsw2g_mdio_default_pins: main-cpsw2g-mdio-default-pins { > + pinctrl-single,pins = < > + J784S4_IOPAD(0x0c0, PIN_INPUT, 6) /* (AD38) MCASP1_AXR0.MDIO0_MDC */ > + J784S4_IOPAD(0x0bc, PIN_INPUT, 6) /* (AD33) MCASP1_AFSX.MDIO0_MDIO */ > + >; > + }; > + > main_uart8_pins_default: main-uart8-default-pins { > bootph-all; > pinctrl-single,pins = < > @@ -809,6 +834,30 @@ &mcu_cpsw_port1 { > phy-handle = <&mcu_phy0>; > }; > > +&main_cpsw1 { > + status = "okay"; > + pinctrl-names = "default"; > + pinctrl-0 = <&main_cpsw2g_default_pins>; > +}; > + > +&main_cpsw1_mdio { > + pinctrl-names = "default"; > + pinctrl-0 = <&main_cpsw2g_mdio_default_pins>; If we need this pinmux info, why wasn't this node disabled? You disabled the main_cpsw0_mdio instance, but not this one. Disable this by default in the patch before this, then status = "okay" it here. Andrew > + > + main_cpsw1_phy0: ethernet-phy@0 { > + reg = <0>; > + ti,rx-internal-delay = ; > + ti,fifo-depth = ; > + ti,min-output-impedance; > + }; > +}; > + > +&main_cpsw1_port1 { > + status = "okay"; > + phy-mode = "rgmii-rxid"; > + phy-handle = <&main_cpsw1_phy0>; > +}; > + > &mailbox0_cluster0 { > status = "okay"; > interrupts = <436>;