Received: by 2002:ab2:1689:0:b0:1f7:5705:b850 with SMTP id d9csp1311682lqa; Mon, 29 Apr 2024 05:13:41 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW+DQYgn4JKY+8mmssRIPjB/qhlhNp6eLcXlF6Tj/SU4YQ5DOhb4XHndKjD4p/iOFUIc/eURwDLsvQlvUBuhHdqoVAJQGWejhRX1FFzNw== X-Google-Smtp-Source: AGHT+IHST04loUq7YaBkFdytYr/ec7hrhZKAXwjf4LqM0VVXyC9tSUK/i6XIntPw64mzyB1z1EYc X-Received: by 2002:a05:622a:60c:b0:43b:70f:64b1 with SMTP id z12-20020a05622a060c00b0043b070f64b1mr935568qta.25.1714392820945; Mon, 29 Apr 2024 05:13:40 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714392820; cv=pass; d=google.com; s=arc-20160816; b=LxLGbDsIdcETmqa8ggfPRXp/UeDuz11NMZkxCFRw3MJMj3AFXOk9so0udx6dWFaB4Z 3orYSq8sAxQYDnF0GNg6mmieGCktCGpmH8giFNZ0lR+76sdeZnkjAn+gpGtvIWmwmrMb JXCOUUO15zAJdSP0oAQrigZCuDMZNSzd21EHgq5lxsNHAweUQ7AY+xOTPKuEzQ3CdelZ QMSp5IT/RXY0soHtbN9Mb2UElU4Qg2LFeABsK3ACprG1jYdbtYgyxkV0952pa6xX3lVE uWIwUoG01WGT61rwCHHfg7WtovB5QtRVAIAixH2ezJsqvemZ3Gv6wUacBBTQFra6RPi/ Y5cA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=rdw8evLwWtWg4TxCSZv2WlOmo6cXgGwlewjHR7pWkyc=; fh=LGr9+eqTsuZMhUSzIhf1cllm9Y9oQk0zwEcy0FTawnY=; b=zuZ7VceicspgDlQz7eEHqlMAbhNHR3q5Gju5ha63xA47vxbdosqNZ0yJsgTEMZeu90 kJDTqjSpOlT6ArlcV5ONkGBjCBNUqOmP6I1I6w4W129B7Vz1iT55r7jl5fdOKyVVcHgj AMDaqMaXoT1cOADqw9h6XPANpIBxe321LQnZ0OI1NPo+pSx6H19GKNVmBQBkRcAevQIj iC0Z3G24Go63erxjikle5/gmFxs374eBtufysRhiFVS7TVvpeM4IWTdMQiBpPjTb11Pu HzGmmiG5ScJzlZLM+TTmI4/AKQwBnfTx1GPo9/zcFUYrquWkE+4gcRJA4mpjFNe3DROU FBXw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RDNfN7hQ; 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-162208-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162208-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. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id eh27-20020a05622a579b00b0043687278051si24471402qtb.583.2024.04.29.05.13.40 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Apr 2024 05:13:40 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-162208-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=RDNfN7hQ; 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-162208-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-162208-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 88C3F1C22A80 for ; Mon, 29 Apr 2024 12:13:40 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BE7AD7F47A; Mon, 29 Apr 2024 12:09:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="RDNfN7hQ" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (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 07EFB54730; Mon, 29 Apr 2024 12:09:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714392596; cv=none; b=Co7GT4iOF+b/ZEgIVecuxA8qj4M05o4gFppEcctktldx3xyglrTGPBuDm3Wh2sAYVjHUAd/ou4zXd3eGLmGFXhDJbaLiOD+b4rehSqNxid75YnVwH0hUcEwF+E/DHOrsZR2zzam2hjS8VmBO+B+XDNNIK8tXQX36XEKKFrD0VFA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714392596; c=relaxed/simple; bh=GfXjU8PF6rpVW7j0wSBt9V/mAgzUQyV3+S8TBEJYeOE=; h=From:To:CC:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=ZE/M8ZzAYvYHL48pj8PSK7aRJjxM4wOAO8hOIqT8GVWK572hNIhHhSowI1qPn6rXQsrT2G2z6kEKnL++1orhboz7VRxE82Tm07mgBNWmahyT0Szma8GCEs6n6ZvGWlQIch/0DBsWS9WR83IB6ukwIuF6G4l2nJS7oKo4UKdVpBE= 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=RDNfN7hQ; arc=none smtp.client-ip=198.47.23.249 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 lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 43TC9fKi090068; Mon, 29 Apr 2024 07:09:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1714392581; bh=rdw8evLwWtWg4TxCSZv2WlOmo6cXgGwlewjHR7pWkyc=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=RDNfN7hQNXEt58RALhNoEd7AlIlVyG00VjK9H5lRpVAJkeqRLvv2lkhDQmU7XqTg5 6CZmIibl4Z2cWBVNW4VMgjefimo66WNzucJFFbjNI5YbkcS4gEPF8a+3L2jWfLUzrp aWqFRxnX5BoB/D05mmWo1xEV9F84mvCf4vaf0FB0= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 43TC9fl0099105 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 29 Apr 2024 07:09:41 -0500 Received: from DFLE108.ent.ti.com (10.64.6.29) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Mon, 29 Apr 2024 07:09:40 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) 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 via Frontend Transport; Mon, 29 Apr 2024 07:09:40 -0500 Received: from uda0500640.dal.design.ti.com (uda0500640.dhcp.ti.com [172.24.227.88]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 43TC9XrF012367; Mon, 29 Apr 2024 07:09:37 -0500 From: Ravi Gunasekaran To: , CC: , , , , , , , , , Subject: [PATCH 1/3] arm64: dts: ti: k3-j722s: Add support for SERDES0 Date: Mon, 29 Apr 2024 17:39:30 +0530 Message-ID: <20240429120932.11456-2-r-gunasekaran@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20240429120932.11456-1-r-gunasekaran@ti.com> References: <20240429120932.11456-1-r-gunasekaran@ti.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Add SERDES0 and its wrapper description to support USB3 and SGMII interfaces. Signed-off-by: Ravi Gunasekaran --- arch/arm64/boot/dts/ti/k3-j722s.dtsi | 54 ++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j722s.dtsi b/arch/arm64/boot/dts/ti/k3-j722s.dtsi index c75744edb143..beba5a3ea6cc 100644 --- a/arch/arm64/boot/dts/ti/k3-j722s.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j722s.dtsi @@ -9,6 +9,7 @@ #include #include #include +#include #include "k3-am62p5.dtsi" @@ -75,6 +76,50 @@ <0x00 0x78000000 0x00 0x78000000 0x00 0x00008000>, <0x00 0x78100000 0x00 0x78100000 0x00 0x00008000>; }; + + serdes_refclk: clock-cmnrefclk { + compatible = "fixed-clock"; + #clock-cells = <0>; + clock-frequency = <0>; + }; + + serdes_wiz0: wiz@f000000 { + compatible = "ti,am64-wiz-10g"; + ranges = <0x0f000000 0x0 0x0f000000 0x00010000>; + #address-cells = <1>; + #size-cells = <1>; + power-domains = <&k3_pds 279 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 279 0>, <&k3_clks 279 1>, <&serdes_refclk>; + clock-names = "fck", "core_ref_clk", "ext_ref_clk"; + num-lanes = <1>; + #reset-cells = <1>; + #clock-cells = <1>; + + assigned-clocks = <&k3_clks 279 1>; + assigned-clock-parents = <&k3_clks 279 5>; + + serdes0: serdes@f000000 { + compatible = "ti,j721e-serdes-10g"; + reg = <0x0f000000 0x00010000>; + reg-names = "torrent_phy"; + resets = <&serdes_wiz0 0>; + reset-names = "torrent_reset"; + clocks = <&serdes_wiz0 TI_WIZ_PLL0_REFCLK>, + <&serdes_wiz0 TI_WIZ_PHY_EN_REFCLK>; + clock-names = "refclk", "phy_en_refclk"; + assigned-clocks = <&serdes_wiz0 TI_WIZ_PLL0_REFCLK>, + <&serdes_wiz0 TI_WIZ_PLL1_REFCLK>, + <&serdes_wiz0 TI_WIZ_REFCLK_DIG>; + assigned-clock-parents = <&k3_clks 279 1>, + <&k3_clks 279 1>, + <&k3_clks 279 1>; + #address-cells = <1>; + #size-cells = <0>; + #clock-cells = <1>; + + status = "disabled"; /* Needs lane config */ + }; + }; }; /* Main domain overrides */ @@ -83,6 +128,15 @@ ti,interrupt-ranges = <7 71 21>; }; +&main_conf { + serdes0_ln_ctrl: mux-controller@4080 { + compatible = "reg-mux"; + reg = <0x4080 0x4>; + #mux-control-cells = <1>; + mux-reg-masks = <0x0 0x3>; /* SERDES0 lane0 select */ + }; +}; + &oc_sram { reg = <0x00 0x70000000 0x00 0x40000>; ranges = <0x00 0x00 0x70000000 0x40000>; -- 2.17.1