Received: by 2002:ab2:7903:0:b0:1fb:b500:807b with SMTP id a3csp1457778lqj; Tue, 4 Jun 2024 02:03:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUm4LIs7EXjX9bXvmJ3jlOb+VHX+JEPA4XeZMsLX7CEDSKVI1ypOa0Beac/Lsfs8REEwqau/vFsCDBu7H/KtGI1z0osS/pQxHvH9kQl1w== X-Google-Smtp-Source: AGHT+IH9t6mG4+WyqakZPxUmGISTF8DPg4A3BPiloZXO/7TBpBwfmOgoTJmJxYrvdMBoUJEcZ3m/ X-Received: by 2002:a17:907:6010:b0:a69:6cba:ddfc with SMTP id a640c23a62f3a-a696cbba064mr43299766b.26.1717491795034; Tue, 04 Jun 2024 02:03:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1717491795; cv=pass; d=google.com; s=arc-20160816; b=ukvPAAkBhDDAJxC0fJlVbR3SgdbYd7Fj8MhHpDN8MAiK1g+0P7ZsRH4jBySkqWA87J OUBFXfo1Z0pGLHH46/rvWuWNmquErpGbben5lIQ4jVPIACByhe3XenmNVLNQGkC+UjpG 8+6mETHISjCyw1wOg2rmhkrQiKLUDokX/WZhB7UfcgSphDOIh5AMIOv/CQclBnU7pjyN wVUBwjuNbgrWS+DWh1VU7U7crXk4ghBBVewRVnwFIW0jY5iBag5xsnp3tZONvd0Rt0ff AcydfIQirQAobViPR14rZvLWHOaQ+bLxAl3D0Vjrq6BPEnIDYq7PMGNALV+3k8egEkzV cHjA== 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=ZTsbZfu8/YTvTzsrJnQEvxfQtqxK+nv3kaQq41L7VPQ=; fh=v0teqksL3xO+SLXxmXdn9hV0IgnSHmLX2R1lVYr4iek=; b=RxgI+Sr09UN1xjGG7YrdgYmqAfvmNBkKaONRHeG4tiu1k6lkYBWIc6aZUavgKAoohu VXrOrTVp88Kf3rbhE9I3eL+riWmEtNMRuG0cCWCnTaiF6W21Wr4jZ6S6Z+feasRfOUsl Rx3oFQ3ShZ/33YZ60GgCok5MJkle+F4eQtH+6N4SoKP45/YyhCRYvarb3/QLUaLrN8d8 qO+xA9J4bGeHggoAL9RNjYGtgaDGx6IyQiv3ikljqhGxJsItT/9Gr+58AkEw4u/2rifT 4qrw8xStAwhiK69MBXyy6X2qCDhGPokDcZwl3sLmsB2qnAqAb2bTuYH2VBe7xx1JTJ5R u05A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=M35XJqsj; 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-200286-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200286-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 a640c23a62f3a-a68ecd47422si243730066b.885.2024.06.04.02.03.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Jun 2024 02:03:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-200286-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=M35XJqsj; 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-200286-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-200286-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 883611F27163 for ; Tue, 4 Jun 2024 08:54:24 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C1A311442F7; Tue, 4 Jun 2024 08:53:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="M35XJqsj" 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 75184143C55; Tue, 4 Jun 2024 08:53:26 +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=1717491208; cv=none; b=gAdXsVWCu0w1U+T+7T/jFPxmmiGTQ4DW9Hn770InQYWfFj/8pExtmJ3XQiiZKXS6S0LoGUORTuCaksl/4sGqcyfHMNmgQwErorLMp8yZv3voUI19T8+T/LN9XDgAyb6NcGiZ642IFDo4cyOVABCPTA7WbKgNuWAlLRsW/k7Vnas= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717491208; c=relaxed/simple; bh=hOptQPKCRBaU50AovYzINhj1F0zsK8GV1tpsJ5h++qE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=blQSiB20wE7x87slcyqKhkCBvFCivD+ivPghkkJZ/ZMwRokeLXL74qSlJ2yPo4777evjYL1Cn7hqP9zcfeUH3JsSTunO6VSE8NJyTVc2z6f/TMR3DZ7jznWoRHFB4kbQIEWHrxwqmLAZuU96Hh3fjC2GO4LCAKjd3AMTbOGbaPs= 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=M35XJqsj; 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 4548rKqM056337; Tue, 4 Jun 2024 03:53:20 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1717491200; bh=ZTsbZfu8/YTvTzsrJnQEvxfQtqxK+nv3kaQq41L7VPQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=M35XJqsjMWMG1BgXsW8Cotok28+qKjuuKCNO64RIQvUbVsFeWdqxkOIDGEx9s05eA 9D+QKZVQqTfPP/TZTHV2zOvDQ38cA5HVdEp3uhJaiFIoca4myXFyF3xN1QoupuCAIP lI4sHB7CcKdNaHvB/i+a4kHWyfhKstfGU+nuxTXM= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 4548rKN3038151 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 4 Jun 2024 03:53:20 -0500 Received: from DFLE106.ent.ti.com (10.64.6.27) 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; Tue, 4 Jun 2024 03:53:19 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE106.ent.ti.com (10.64.6.27) 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; Tue, 4 Jun 2024 03:53:19 -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 4548qqQm066926; Tue, 4 Jun 2024 03:53:15 -0500 From: Siddharth Vadapalli To: , , , , , , , CC: , , , , , , Subject: [PATCH v5 5/7] arm64: dts: ti: k3-serdes: Add SERDES0/SERDES1 lane-muxing macros for J722S Date: Tue, 4 Jun 2024 14:22:50 +0530 Message-ID: <20240604085252.3686037-6-s-vadapalli@ti.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240604085252.3686037-1-s-vadapalli@ti.com> References: <20240604085252.3686037-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 --- v4: https://lore.kernel.org/r/20240601121554.2860403-6-s-vadapalli@ti.com/ No changes since v4. 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