From patchwork Thu Feb 15 10:30:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: MD Danish Anwar X-Patchwork-Id: 20424 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:b825:b0:106:860b:bbdd with SMTP id da37csp326231dyb; Thu, 15 Feb 2024 03:21:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXKgu2YlBzEbQVcjZCeOm4oYewA8pFZeLh/9bXI112wVz38Awm8iF9KdgeB8TIbRp++x7yAS5Omqe6bJgKt/LF0ktlaOg== X-Google-Smtp-Source: AGHT+IEcOioPz7L5+MGw7PQnHNNSgrI18ERafwPAw1HXedsZ1BrWVgxiK6GisZCsjy+4AybGNiZt X-Received: by 2002:a05:6a00:c91:b0:6e0:a9c4:3016 with SMTP id a17-20020a056a000c9100b006e0a9c43016mr1706449pfv.16.1707996084886; Thu, 15 Feb 2024 03:21:24 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707996084; cv=pass; d=google.com; s=arc-20160816; b=NwcrAojy54Xb091jVHT6GLaTSRop3YbGnvIyUdTRvOXM1N29JlBDRa6pQwgKfcCFle lBb3pBg+PwTYqn14V2Vs7QHCJaVKHakuBjQ1Oc9dmKISpsc447ySrdGdfbn6rPehEH9z AwvjEVK9jOpVb6rjl82Eg4U2me/HeOhF47JZh8MFxY/q7YaGqHaGP8CD9tTxSse8Y9Ja 4Akfhk27V9T1wEn+DBqtCc5m/e9ffLg6qY/xadB72ed2JM17bJlB5IfBswb1vNKVgznB fmBvWlrw7X9QFTevhWEMzydCzjUMVDTSK9FH6r8VS67ONNipI+l5sHxKmHGw9LpP9ktA x5Fg== 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:message-id:date:subject:cc:to :from:dkim-signature; bh=+n90dqjXRjOMQb16XVs2S115NbnHy10Ajvp1/zZckt0=; fh=yhFjpbfTPvnbLm88z7z6VlY3ME+iv1NNagYC/uGo9M0=; b=LNPh+KxoLZXsWH4r/43qvXu/kmszM8EgiXjUEiFExrF3O8u5bDOFEZHY0mBCQi7vjK wK58ygHzKDJCGF9Tw0iBoVhZMc3CAJXNd0Xrr+BjT8ygrtIaALYVhriDY2DIj0tIn9i1 ufIa0EWk1CaoM1kxVY1r6AkvHjyPGUHug5rncwxvyNbsDIbtP+28CEssuqaMH0LUqA2z w2Kurnq710RaJX0O8UQ6eufPjczRrC+bMlazpPK0k4bT2A55bsmJqMQjUZHCDgQlG7xB pRjlFA/b3HwH6WoaIsjpdnZHHn+nhGUKZEJAeerNBaM7lj6/+Exbj4OKy7ETI6wmVCxp iF2A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=HlAD6v4t; 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-66627-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66627-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id f28-20020a63381c000000b005c5e24d4364si933917pga.428.2024.02.15.03.21.24 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 03:21:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-66627-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=HlAD6v4t; 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-66627-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-66627-ouuuleilei=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 sy.mirrors.kernel.org (Postfix) with ESMTPS id E3D51B2FD4F for ; Thu, 15 Feb 2024 10:31:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id A7C397868E; Thu, 15 Feb 2024 10:30:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="HlAD6v4t" 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 6229077F22; Thu, 15 Feb 2024 10:30:51 +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=1707993053; cv=none; b=c5jfRpK30uYGs77G2mycKJdapHprdc8lPgz4eYC3WX6TmgSMwJGUxfClWypuYEW9vL6QtIvUwZoocgcqC7xUzLRCYyHfN84TGc58KQQefvPrnV23/41CoWC/QCtPT2qTriBLB5eMw2kziDAuIqENHliNMaawVfeRcfzpEQjopRI= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707993053; c=relaxed/simple; bh=kCRokLOhZl6yvnHX5JwFP41xHOBcBkNACEwai6IqO9Y=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=oMRLWm4poPRWuFVtBUa7vnG0aoOtvFh0s3Dbiwq4TDtu1aj9Q3eT4wy4FAtBUnF4fbC8kVGtG9FHCQ4CS/ybgPd/MM52+xePWuFEw8Up4J+yboevDsgEmDWy23SapeRdI2FmS31YBJFotreMST94YzPtRTuG76ea4BcuHvOxhVY= 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=HlAD6v4t; 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 lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 41FAUd3K118472; Thu, 15 Feb 2024 04:30:39 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1707993039; bh=+n90dqjXRjOMQb16XVs2S115NbnHy10Ajvp1/zZckt0=; h=From:To:CC:Subject:Date; b=HlAD6v4tAnROGB3f2SP9GOuyeVwg8A6jRaOFZD5n7VSV9fzGYTqMTvLE821UgGLQ9 AKPXsiy49hqjCW0DEET0nQQwbou09r4Q3gsk0Cj4xN1XWEpur8kxUaZiWqp6lh3J/X nhv8EDBkvrNZNLXRA+CC9zIrY444j63iU/bspG9E= Received: from DLEE101.ent.ti.com (dlee101.ent.ti.com [157.170.170.31]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 41FAUdKQ025689 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 15 Feb 2024 04:30:39 -0600 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Thu, 15 Feb 2024 04:30:38 -0600 Received: from lelvsmtp5.itg.ti.com (10.180.75.250) by DLEE101.ent.ti.com (157.170.170.31) 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, 15 Feb 2024 04:30:38 -0600 Received: from fllv0122.itg.ti.com (fllv0122.itg.ti.com [10.247.120.72]) by lelvsmtp5.itg.ti.com (8.15.2/8.15.2) with ESMTP id 41FAUcvk018921; Thu, 15 Feb 2024 04:30:38 -0600 Received: from localhost (danish-tpc.dhcp.ti.com [10.24.69.25]) by fllv0122.itg.ti.com (8.14.7/8.14.7) with ESMTP id 41FAUc2u031768; Thu, 15 Feb 2024 04:30:38 -0600 From: MD Danish Anwar To: Vignesh Raghavendra , Nishanth Menon CC: Andrew Lunn , Conor Dooley , Krzysztof Kozlowski , Rob Herring , , , , Tero Kristo , , , Roger Quadros , MD Danish Anwar Subject: [PATCH v5 0/3] Add AM64x ICSSG Ethernet support Date: Thu, 15 Feb 2024 16:00:33 +0530 Message-ID: <20240215103036.2825096-1-danishanwar@ti.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790963702781563593 X-GMAIL-MSGID: 1790963702781563593 Hi All, This series adds support for ICSSG ethernet on AM64x. This series is based on the latest next-20240214 linux-next. AM64x EVM has three ethernet ports. One is dedicated to CPSW and one is dedicated to ICSSG1. The remaining port is muxed between CPSW and ICSSG1 ICSSG1 ports. The ICSSG1 node is added in the k3-am642-evm.dts. By default the muxed port is used by CPSW so 2nd ICSSG1 port is disabled in the k3-am642-evm.dts. But overlay k3-am642-evm-icssg1-dualemac.dtso can be applied to use muxed port as ICSSG1. This is the v5 of the series [v1]. Changes from v4 to v5: *) Added Roger's RB tag in patch 1/3 and 3/3 *) Modified commit message of patch 3/3 *) Dropped ti,syscon-rgmii-delay property from patch 2/3 as it is no longer needed. *) Reverted the renaming of mdio-mux nodes back to 'mdio-mux-1' and 'mdio-mux-2' from 'mdio-mux@1' and 'mdio-mux@0' as the later was throwing DTBS_CHECK warnings. Changes from v3 to v4: *) Dropped ethernet3 alias from k3-am642-evm.dts as suggested by Roger. *) Dropped extra blank lines from k3-am642-evm.dts. *) Updated commit message of patch 3/3 *) Updated licensing header in k3-am642-evm-icssg1-dualemac.dtso. *) Fixed up alias for ethernet1 to icssg1_emac1 in k3-am642-evm-icssg1-dualemac.dtso as suggested by Roger. *) Renamed 'mdio-mux-1' and 'mdio-mux-2' to 'mdio-mux@1' and 'mdio-mux@0' respectively as suggested by Roger. Changes from v2 to v3: *) No functional changes. *) Rebased on latest linux-next (next-20240122) after 6.8-rc1. Changes from v1 to v2: *) Fixed aliases section in k3-am642-evm.dts *) Fixed firmware-names in k3-am642-evm.dts *) Changed icssg1_phy1 to ethernet-phy@f from ethernet-phy@0 as suggested by Andrew L. *) Changed makefile to handle overlays using CONFIG_OF_ALL_DTBS as suggested by Nishant and Andrew Davis. *) Fixed aliases section in k3-am642-evm-icssg1-dualemac.dtso *) Fixed pinctrl in k3-am642-evm-icssg1-dualemac.dtso *) Updated commit message of patch 3/3 of the series to warn about adding label name to 'mdio-mux-1' node. [v1] https://lore.kernel.org/all/20231207081917.340167-1-danishanwar@ti.com/ [v2] https://lore.kernel.org/all/20231212165832.3933335-1-danishanwar@ti.com/ [v3] https://lore.kernel.org/all/20240122113045.1711818-1-danishanwar@ti.com/ [v4] https://lore.kernel.org/all/20240205090546.4000446-1-danishanwar@ti.com/ Thanks and Regards, MD Danish Anwar MD Danish Anwar (2): arm64: dts: ti: k3-am642-evm: add ICSSG1 Ethernet support arm64: dts: ti: k3-am642-evm: add overlay for ICSSG1 2nd port Suman Anna (1): arm64: dts: ti: k3-am64-main: Add ICSSG IEP nodes arch/arm64/boot/dts/ti/Makefile | 5 + arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 24 +++++ .../dts/ti/k3-am642-evm-icssg1-dualemac.dtso | 79 +++++++++++++++ arch/arm64/boot/dts/ti/k3-am642-evm.dts | 97 ++++++++++++++++++- 4 files changed, 204 insertions(+), 1 deletion(-) create mode 100644 arch/arm64/boot/dts/ti/k3-am642-evm-icssg1-dualemac.dtso base-commit: 2c3b09aac00d7835023bbc4473ee06696be64fa8