Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1265994lqs; Sat, 15 Jun 2024 01:23:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVlNWCyJ9vXDRr9X2s37lpbOZy6q95RUfjAG/4tsxHUTCV67xbD07K5shlkjuvf6JiEOGN6GgONpOt2p1cDVFJgqeO5hAAhlSTF+4mSAA== X-Google-Smtp-Source: AGHT+IHMJ0wkaEMjD+9aMAcIUnwfwgZhDLJqY1RHFrQgUzId0rHZEBpOkVuatyQRjvxEfdliY36J X-Received: by 2002:a50:8d0e:0:b0:57c:53c9:ccc7 with SMTP id 4fb4d7f45d1cf-57cbd51f37bmr4059345a12.0.1718439802557; Sat, 15 Jun 2024 01:23:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718439802; cv=pass; d=google.com; s=arc-20160816; b=CBJMLlsIOJlwJXFBJ6ghq1KMUoot7MLqWY2o3losBEt62JAzrNxN3E+josziJ4wCGP 9Lc9ebKazI71ck0tQfbvwueAEF2k0mqnooa7/jTWqKYqQSbUiz3UK0XGFPQaCSRU3juw /6AvqS7EGK3oHe0seTkNWSBlpc0eThie/2k+GM/1P2EZyJvGRZQUoPxJv4kuzpY43Zat AcdHwA5gSocf4p08OAOqlxLy6FEB7eXHa//Ii3BY0lKemHWzApZ9xLuEKUXgJ/XNG/23 RESmdL+ukte0yXWmlcpexD3+JrAF7+mZqYN7oreMCs5T1+X72nyzo3P/07OHOpUOt7Iq fQoQ== 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=ToP5EKkVGa1u0JhGEFQvR0WDOaWbVtUSajWl2oNi+AY=; fh=v0teqksL3xO+SLXxmXdn9hV0IgnSHmLX2R1lVYr4iek=; b=htYVJKPEggd1PBbJ6tBoMX4peEWOdKPXAPQMb7sVLh925sEq4fOa+H6qP1DG71JVjg zxJRB3VIlaguXJ9jMoSW4DnjiIQlf7o7mBl+zkTBUZDfNHOMgKFz1yRN2PKJGbd8deD1 Gaq1WKoGlpY+jdn9g/7NLcmtqyfKNiIaoYt8JjE8n0pa+GTQtDKJGrJ5vVLDE2gkM6VC NOC76mNJT2Kf7br3gr2Gr1siy1iGYTIwJ2ckW7RyOsKFI6YPwszEnV1QuL428oebkwuc kQqoRFURyXQkXx1KBn+HQ4Bh3vUSDV+bC46A4f8mcaUTqksPpK4Q73f8pPVhgv8Sg2UZ QH8g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lnqYIkkC; 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-215775-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215775-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. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb72e2a10si2537427a12.170.2024.06.15.01.23.22 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jun 2024 01:23:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215775-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lnqYIkkC; 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-215775-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215775-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 037991F24954 for ; Sat, 15 Jun 2024 08:17:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5AAA718E29; Sat, 15 Jun 2024 08:16:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="lnqYIkkC" 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 177FE18037; Sat, 15 Jun 2024 08:16:39 +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=1718439401; cv=none; b=glWXRspSfR0P3fjriPOihsKOwH+m9oQoLiB9S3NtFI7Gq9ooDfUXsmZFxfpgZEqBEfD9fuaB9RrIiGY0pW6xZhN4gNLCnS2O5y/1f6eLcaKKe2HnEvRX3I+h6LRHp97XARzi1ZhxDo4i/qThsXF0DNL8OB+e3No8BWfYIqCOz2s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718439401; c=relaxed/simple; bh=dUexP38crW4PGLu1FqbaeYNsUjEP9Z6NRgcFO78qlIE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=nKRegndOCBSdVCMHXsvIVgygo4s2MA87Uo+p6vs2KloiMUs+BBjShv8F19VqhpqszLvzfE+V0fkk/p4ZFM19anLp52Vf6m4KJAbFjyEy4tg5f601vPzlsSWyqiLI7juQ680OVTubWJgOUz000BMuzG4VSUIk3hqTC8ERvdUJZcU= 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=lnqYIkkC; 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 45F8GSPU102747; Sat, 15 Jun 2024 03:16:28 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1718439388; bh=ToP5EKkVGa1u0JhGEFQvR0WDOaWbVtUSajWl2oNi+AY=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=lnqYIkkCZ2qbWhWBtGWK8YtyvYuNl0AKhwbVx+PKwMntSU7fw1LMi0S/UqgI2YrBA KVB+ap587R+rZnndBv0UzjglzkQUbeifBBHgbmR8Grbpm/COGnmv/K4W8O+LNj30wZ uAlsi5Z0+pxU3OgEat5+6+BJZOCd2sFJz1uxSTo8= Received: from DFLE113.ent.ti.com (dfle113.ent.ti.com [10.64.6.34]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 45F8GSvm084490 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Sat, 15 Jun 2024 03:16:28 -0500 Received: from DFLE112.ent.ti.com (10.64.6.33) by DFLE113.ent.ti.com (10.64.6.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Sat, 15 Jun 2024 03:16:27 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) 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 via Frontend Transport; Sat, 15 Jun 2024 03:16:27 -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 45F8G1QZ024463; Sat, 15 Jun 2024 03:16:23 -0500 From: Siddharth Vadapalli To: , , , , , , , CC: , , , , , , Subject: [PATCH v7 5/8] arm64: dts: ti: k3-serdes: Add SERDES0/SERDES1 lane-muxing macros for J722S Date: Sat, 15 Jun 2024 13:45:57 +0530 Message-ID: <20240615081600.3602462-6-s-vadapalli@ti.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240615081600.3602462-1-s-vadapalli@ti.com> References: <20240615081600.3602462-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 --- v6: https://lore.kernel.org/r/20240612132409.2477888-7-s-vadapalli@ti.com/ No changes since v6. 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