Received: by 2002:ab2:5c0e:0:b0:1ef:a325:1205 with SMTP id i14csp214850lqk; Thu, 14 Mar 2024 00:22:49 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVMYygp4mV//TjAIFXx2pIYRdijap67YDl7NvmoWutQKStuI8CTPxck70F2wXqlTcEcl+nb3arX6NN+FAHuCuWhMyIa/ydzXSiTZulKFw== X-Google-Smtp-Source: AGHT+IH5Vy7RUl90W0FtR39C04Qe07gu22g4lBuE88Clm58HNbAmjbFTq232ne3PJS4sfVRZkMeQ X-Received: by 2002:a05:622a:28a:b0:42e:fcf2:e6a with SMTP id z10-20020a05622a028a00b0042efcf20e6amr1060891qtw.36.1710400969426; Thu, 14 Mar 2024 00:22:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710400969; cv=pass; d=google.com; s=arc-20160816; b=yFcrk3b8jRGB2hCXS8WRuodS+4gQD9II52pKwt04gt7o3XDH7PcoAcvlJBVP7rZdwn JQqm8NQxbEkcIj1O7RtpElajFmPDA+UcVGClHH3VrGAd1/O+ov0h+AMgW0UuJLUa+/zO 0/ooZ5ENlA1uYgFmZGqJzdalY82Up7X8/F7JaF4TcvUo4iI53pxhYBDre66A40bGnSHu vWHJ3gD92ih7hYFxSyAjQh8Qq74cnxizkcBNmNvFm7ILZBCljl/UGy1OVThgfyKTcFtu fOMa+EDlv/J+1nHQ/t8Zt/9o7CW5nnfyO1A9L5CKDlcxyb7kvFhORui7Z078qQTXe70p /mGQ== 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=EqYT8bErUGPP3hgcFP27YRB7SfjO5pnIYidrWDI/DeU=; fh=s98kD5gcvxSNVrlzke1zZpF13zQF/OAqUpggKfOeB5E=; b=GjoLVQKZgB2w7D3YOb6qv+WUr3fHolFN4P3kMrg7geZY59FgI1QSYX1EHw+ipj9d98 1BpG8ZbyUiQKR6Iv6DBn6zFYM8a9MLpFwXyhEFa81yyx4bixXq8+/uIXrc/0PfyVS6mG YgofkHPu2z19kZiubSY1mHy3jJ7X0NdOH1DNjZEeoCjBO96s2IKHFSASxeO0RN+P6hz9 pZ6Eh7YE29t2CDlh2D5ujkC9a0UNjVTOhvAUPBmhCLyn5zWnXCojUW8WS1HBUA7ifW4v nkyghxz7XuwPcYo6YwT45vuj8BW6SLrs4+u930EeRRPlqVBzM7Qwcm0wgnUxXMSzWM+a a5Iw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jrnRdME7; 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-102927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102927-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id s17-20020a05622a1a9100b0042eec9e219fsi895928qtc.314.2024.03.14.00.22.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 00:22:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-102927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=jrnRdME7; 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-102927-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-102927-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 2A7B41C221C8 for ; Thu, 14 Mar 2024 07:22:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 470505E3D8; Thu, 14 Mar 2024 07:21:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="jrnRdME7" Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) (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 C8F585DF38; Thu, 14 Mar 2024 07:21:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.19.141 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710400917; cv=none; b=eejY6ewXeYnpHmwg05Yz6NZEzKHeJJzJa1vRWiN/f9HS5QlAh3HVru5P49lejgEDD8j7BnlgZ8XKqP4e49pJ+NJo4eLK8NsoFat2JURHcw40QvnM0gkB9aYf3OkweTIlxW0vFXcOOZXsn103OAugeCCKl6Nvs4JVFywWO64yYD0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710400917; c=relaxed/simple; bh=wDO2v52/Jhz1dO6jngGrH6v2PVhcnQt2WwAc/kUzz+M=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PZpKhpcko0h+zNkXtIQTJgv6hh+xqo4fi1XxBjsY7IywQJeyyf5nb3k3td8i2CdeTzFOVMDo2qC5m8kP60laOMWYA/ib21oVBiMqE3SaoC2D8XrJpIrIK8nm8k1XW2IhhNP+M+EmdxO4qfgA9Egy3UsEHUsvNcefHLiz0JyQyWk= 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=jrnRdME7; arc=none smtp.client-ip=198.47.19.141 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 fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 42E7LbfS065159; Thu, 14 Mar 2024 02:21:37 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1710400897; bh=EqYT8bErUGPP3hgcFP27YRB7SfjO5pnIYidrWDI/DeU=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=jrnRdME7CpfYfn1VDigIl2LLqi/lXOSMz6Qi75DxIl8xhZmMCdpBNt/twLS+nKJv8 Zk96FOOfFaT7PlNP3CRH9WrUHcQ4kveHcVhA16MaiziHfcmTkHc89b9FaeNIE+jiEl 4U/m1fAxGW7Wmf+6uCVMZvF/HmCiEo7of3rxmZ48= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 42E7Lbmc086709 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 14 Mar 2024 02:21:37 -0500 Received: from DFLE114.ent.ti.com (10.64.6.35) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 14 Mar 2024 02:21:36 -0500 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DFLE114.ent.ti.com (10.64.6.35) 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, 14 Mar 2024 02:21:36 -0500 Received: from localhost (chintan-thinkstation-p360-tower.dhcp.ti.com [172.24.227.220]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 42E7LZDl101268; Thu, 14 Mar 2024 02:21:36 -0500 From: Chintan Vankar To: Conor Dooley , Krzysztof Kozlowski , Rob Herring , Tero Kristo , Vignesh Raghavendra , Nishanth Menon CC: , , , , , , , Jayesh Choudhary , Chintan Vankar Subject: [PATCH v5 3/5] arm64: dts: ti: k3-j784s4-evm: Enable Main CPSW2G node and add aliases for it Date: Thu, 14 Mar 2024 12:51:27 +0530 Message-ID: <20240314072129.1520475-4-c-vankar@ti.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240314072129.1520475-1-c-vankar@ti.com> References: <20240314072129.1520475-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 Enable MAIN CPSW2G and add alias for it 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 | 50 ++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts b/arch/arm64/boot/dts/ti/k3-j784s4-evm.dts index 1f390c22844e..49195349a156 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 { @@ -281,6 +282,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 = < @@ -833,6 +858,31 @@ &mcu_cpsw_port1 { phy-handle = <&mcu_phy0>; }; +&main_cpsw1 { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_cpsw2g_default_pins>; +}; + +&main_cpsw1_mdio { + status = "okay"; + pinctrl-names = "default"; + pinctrl-0 = <&main_cpsw2g_mdio_default_pins>; + + 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>; -- 2.34.1