Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp440606lqp; Wed, 12 Jun 2024 06:26:05 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU+b7+Kg+x7Q7SiaMWvjFPIvJroLyuz5yKLYXOc0n1nI4uNlqT+9MyanczLmQgdt08Cip8gbT8vxu+qaui+oV3dKa9RyHIbzzIj+VvyXw== X-Google-Smtp-Source: AGHT+IHgJU2LxJZNVZRxr1s9BNlunlXVm+mcQLb4fAss1qnpaMWIPszori7iYP/Nh+WaJfA04Q56 X-Received: by 2002:a50:c30b:0:b0:57c:600b:b64e with SMTP id 4fb4d7f45d1cf-57caaabb40bmr1218936a12.27.1718198765677; Wed, 12 Jun 2024 06:26:05 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718198765; cv=pass; d=google.com; s=arc-20160816; b=VmYVh2rz+V2zLSAVqBoudVZ5qjL+Egm5NlZszqzp/jyMMNybQ1S73+dx4azEsiM4VS Zxf9MdJ6h4sNbYw/TPw+xKcdKr89XtPZgRlu93kMfVszMxodLQRYAlGoLsSGUAE00BDJ m1IaWnJ53A6tF8HnndCDKdr7Sv9mF2N+Abmo/yBWO7PA524XrxxcdYGJZo4eYiis4D1t 8FpfzW4zdaC9+f/YfK0RZOfaj+gr/0dVOOHYAu91Xw9lcjNSF4ZrK4ylBfHnBsg9Fe64 u5WJ65f/epwXJcHHUc3kjDGqkfByQZbgobmtkr9mvmuVzYl+BhO1z6cL9anEGuxsfQ5c CZuA== 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=4isp7/3bMlnEnXlgtEaJaWiCfyzYElSDJiQ9Orlzc/M=; fh=v0teqksL3xO+SLXxmXdn9hV0IgnSHmLX2R1lVYr4iek=; b=Razuw5nwz4zxsZa9chpCutwscxoZkUNKyFbMbI0FnfbDX0n43O8wxbO/bRsx8nTsEX VgR1x2LDFdw4PMBq2ChNtkKmYrqC4Ovqx+4JxGuv1ZkNizB03PNeHipdSz5mNvcSNBdl rPSi7ebcd/Y/2OCQkFFBKdi3rr1ncuK25/hSTxgdoUaRozAAquHc8kKacNiV7Z79pD3Z 2WB3/qPMaA5QlXgaHlgkh0RdL/Wg2Vj+Uz4TnhZM/sNf4Ac/kHUKWkjssg1tjFB5my7z tq/9OsC0zupH5TLxLxhXWorFwdmT1HGYcbEtaXSdN04z13w+gvzxs26UTnXX6WVeN/SU q5bw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=sm7zEfkD; 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-211560-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211560-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57ca8896028si863868a12.181.2024.06.12.06.26.05 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 06:26:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-211560-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=sm7zEfkD; 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-211560-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-211560-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 67E631F247A5 for ; Wed, 12 Jun 2024 13:26:05 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D5C2D17E474; Wed, 12 Jun 2024 13:24:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="sm7zEfkD" 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 9734B17E440; Wed, 12 Jun 2024 13:24:47 +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=1718198689; cv=none; b=EV+Pkd6lfQdaW76k3+GBmQhDrg9y203izk5LFjE2uj3I12dh2jA8FIoXeZqxganfnd/J8/uudv+cY3uhmlexzicIqrEPb/3S8d3LBPHxZHYnNVs0H0421hQBWcNEXIyc+OPvxinL0XpjZESFrvq18QN9cP1Agaeme8ukGiKkVZY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718198689; c=relaxed/simple; bh=a2mhhNhwhru4Qr/OnKO5CIu+Icy7g6+F7q+OVRZkWE4=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=Pci/iwXRLuecFmhu6vFzzhqw64/HgwNye7r9IGehM4eyS8xTJ8PXGw+MCw6lkUIfwavI9sNx6MmpoRNokBkJWKDO3QCqDHxOoS8eLOrmnr1hwEhny35wFBg6tbr8djPxyF1EqQ2T13nATjKSsmTaYWZeE3DeBzNFL/2MD/nmc0w= 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=sm7zEfkD; 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 fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 45CDOfpF079277; Wed, 12 Jun 2024 08:24:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718198681; bh=4isp7/3bMlnEnXlgtEaJaWiCfyzYElSDJiQ9Orlzc/M=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=sm7zEfkD4HmXOnTayhTjrfB54IoJjWG3DM+v2fPvS+58Dmz0RvRmdWVAFsgkB9lUo cyLT2850SV1L+2C0sMcKL7Q4Nfzwjr4oMNkvKrwUH2ibXkxZNz3Xcqg68v7M9aY2L4 I9spoQoZtWKVx5dhvy8Alewp+I/T6SrzlIpgaPkg= Received: from DFLE108.ent.ti.com (dfle108.ent.ti.com [10.64.6.29]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45CDOf1O065614 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 12 Jun 2024 08:24:41 -0500 Received: from DFLE103.ent.ti.com (10.64.6.24) by DFLE108.ent.ti.com (10.64.6.29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 12 Jun 2024 08:24:41 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE103.ent.ti.com (10.64.6.24) 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, 12 Jun 2024 08:24:41 -0500 Received: from uda0492258.dhcp.ti.com (uda0492258.dhcp.ti.com [172.24.227.9]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 45CDOAmw046478; Wed, 12 Jun 2024 08:24:37 -0500 From: Siddharth Vadapalli To: , , , , , , , CC: , , , , , , Subject: [PATCH v6 6/8] arm64: dts: ti: k3-serdes: Add SERDES0/SERDES1 lane-muxing macros for J722S Date: Wed, 12 Jun 2024 18:54:07 +0530 Message-ID: <20240612132409.2477888-7-s-vadapalli@ti.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240612132409.2477888-1-s-vadapalli@ti.com> References: <20240612132409.2477888-1-s-vadapalli@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 The SERDES0 and SERDES1 instances of SERDES on J722S are single lane SERDES which are individually muxed across different peripherals. LANE0 of SERDES0 is muxed between USB and CPSW while LANE0 of SERDES1 is muxed between PCIe and CPSW. Define the lane-muxing macros to be used as the idle state values. Co-developed-by: Ravi Gunasekaran Signed-off-by: Ravi Gunasekaran Signed-off-by: Siddharth Vadapalli Reviewed-by: Roger Quadros --- v5: https://lore.kernel.org/r/20240604085252.3686037-6-s-vadapalli@ti.com/ Changes since v5: - Collected Reviewed-by tag from Roger Quadros arch/arm64/boot/dts/ti/k3-serdes.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-serdes.h b/arch/arm64/boot/dts/ti/k3-serdes.h index a011ad893b44..ef3606068140 100644 --- a/arch/arm64/boot/dts/ti/k3-serdes.h +++ b/arch/arm64/boot/dts/ti/k3-serdes.h @@ -201,4 +201,12 @@ #define J784S4_SERDES4_LANE3_USB 0x2 #define J784S4_SERDES4_LANE3_IP4_UNUSED 0x3 +/* J722S */ + +#define J722S_SERDES0_LANE0_USB 0x0 +#define J722S_SERDES0_LANE0_QSGMII_LANE2 0x1 + +#define J722S_SERDES1_LANE0_PCIE0_LANE0 0x0 +#define J722S_SERDES1_LANE0_QSGMII_LANE1 0x1 + #endif /* DTS_ARM64_TI_K3_SERDES_H */ -- 2.40.1