Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4770426pxu; Thu, 10 Dec 2020 05:13:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJyynTN0Wk8AqhBqq57xsAcZxmcFPZcuurOx4EcvR5ekzTh1rL6kjpoIS42RR98p3EpKT7e0 X-Received: by 2002:a50:8b22:: with SMTP id l31mr6727535edl.149.1607606004604; Thu, 10 Dec 2020 05:13:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607606004; cv=none; d=google.com; s=arc-20160816; b=jfjyZ6pT5uLFmZ5lo7C9efjrMlppSzYyARthRJ/4X9oxPd0zqvkxOTRZb+e6gjDn/r ajOh7fp/mbTaUClH+AXicVQ3Ph/Mt3DPxEiwSgqx+E1wP3MvZyY7mcyQ+81WM3Y54I1t Crd7GJ2izWHXNObVFE6olDvPeIDWxwEmghDIAJ9PZ/C14noRPAZEL5w6gCljYPu/k940 d+vE6HHSH8BqrMv4DKhzQyn+RrZJ1OZQzoA/gAXici3WN3jya/I4zBcfldnWD2tBLd6S kimtR6e+tF4TBMdl3pNT/RHKTu+I6b1YXZiXaOTPljKaxa07IZnFINtxEKww9p7GrfWh utpA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=syVIG7vsUIv2CSv7+0oqv+2xb8IcK/qDwSTOzju6pE8=; b=uWCTtdiJYZovD+h9IzPHvEcVjJ93uNKTBJqGmOlaEMeYF9V1mz/seR7FQ+GIkLfH5X X0PRAJJ5x7WrXuTPh7mAzgxc+1b5ZA1ArDk/jxRT0gvbhyeN7WkUw6S4hMXmf17N4Z5T I4HDI4Ei9mlx9yZO7RLceM8OVUn5MdJuI7M/acPHnD5iwFzu1XGvbZl7ooxsD9aejmKu ypkipBhM82bZoS+hb9ozEBWRYdlwxLyK+7MVakST1QGruVS1CVJNteIf+KjCsHU0bmPo aSGuKSqJ/nycplgievkxST721MWipA40heB20BL17cgyH9s51IN8DSGph00fQPy9AHQ9 XhpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lXE0dlYM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 63si2745022edn.339.2020.12.10.05.13.02; Thu, 10 Dec 2020 05:13:24 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lXE0dlYM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388576AbgLJNKU (ORCPT + 99 others); Thu, 10 Dec 2020 08:10:20 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:49894 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388978AbgLJNJv (ORCPT ); Thu, 10 Dec 2020 08:09:51 -0500 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0BAD8CRY053012; Thu, 10 Dec 2020 07:08:12 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1607605692; bh=syVIG7vsUIv2CSv7+0oqv+2xb8IcK/qDwSTOzju6pE8=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=lXE0dlYMlo7BExPaUoUsCMpjB/TVjVkdrxw9RECN9uL3yIK9rrDS08hv9TU/pXzeY uQ3HcE0UdAw+zFpZIi9F2tYFMaICL0uWIrv8m4XMnlm3A/4dB3L+SwDNvhKsSmt/QN 1vRK/D2JV/cTISpb4ASgjzrK3bbqqPHHFuYsTpsY= 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 0BAD8Cio004005 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 10 Dec 2020 07:08:12 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) 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.1979.3; Thu, 10 Dec 2020 07:08:12 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE107.ent.ti.com (10.64.6.28) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Thu, 10 Dec 2020 07:08:12 -0600 Received: from a0393678-ssd.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0BAD7rai098988; Thu, 10 Dec 2020 07:08:07 -0600 From: Kishon Vijay Abraham I To: Tero Kristo , Nishanth Menon , Rob Herring , Kishon Vijay Abraham I CC: , , Subject: [PATCH v2 3/6] arm64: dts: ti: k3-j7200-main: Add DT for WIZ and SERDES Date: Thu, 10 Dec 2020 18:37:44 +0530 Message-ID: <20201210130747.25436-4-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201210130747.25436-1-kishon@ti.com> References: <20201210130747.25436-1-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Add dt node for the single instance of WIZ and SERDES module shared by PCIe, CPSW (SGMII/QSGMII) and USB. Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-j7200-main.dtsi | 61 +++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi b/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi index b0094212aa82..ae5abf59a7d4 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi @@ -531,6 +531,67 @@ dma-coherent; }; + serdes_refclk: serdes_refclk { + #clock-cells = <0>; + compatible = "fixed-clock"; + }; + + serdes_wiz0: wiz@5060000 { + compatible = "ti,j721e-wiz-10g"; + #address-cells = <1>; + #size-cells = <1>; + power-domains = <&k3_pds 292 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 292 11>, <&k3_clks 292 85>, <&serdes_refclk>; + clock-names = "fck", "core_ref_clk", "ext_ref_clk"; + num-lanes = <4>; + #reset-cells = <1>; + ranges = <0x5060000 0x0 0x5060000 0x10000>; + + assigned-clocks = <&k3_clks 292 85>; + assigned-clock-parents = <&k3_clks 292 89>; + + wiz0_pll0_refclk: pll0-refclk { + clocks = <&k3_clks 292 85>, <&serdes_refclk>; + clock-output-names = "wiz0_pll0_refclk"; + #clock-cells = <0>; + assigned-clocks = <&wiz0_pll0_refclk>; + assigned-clock-parents = <&k3_clks 292 85>; + }; + + wiz0_pll1_refclk: pll1-refclk { + clocks = <&k3_clks 292 85>, <&serdes_refclk>; + clock-output-names = "wiz0_pll1_refclk"; + #clock-cells = <0>; + assigned-clocks = <&wiz0_pll1_refclk>; + assigned-clock-parents = <&k3_clks 292 85>; + }; + + wiz0_refclk_dig: refclk-dig { + clocks = <&k3_clks 292 85>, <&serdes_refclk>; + clock-output-names = "wiz0_refclk_dig"; + #clock-cells = <0>; + assigned-clocks = <&wiz0_refclk_dig>; + assigned-clock-parents = <&k3_clks 292 85>; + }; + + wiz0_cmn_refclk_dig_div: cmn-refclk-dig-div { + clocks = <&wiz0_refclk_dig>; + #clock-cells = <0>; + }; + + serdes0: serdes@5060000 { + compatible = "ti,j721e-serdes-10g"; + reg = <0x05060000 0x00010000>; + reg-names = "torrent_phy"; + resets = <&serdes_wiz0 0>; + reset-names = "torrent_reset"; + clocks = <&wiz0_pll0_refclk>; + clock-names = "refclk"; + #address-cells = <1>; + #size-cells = <0>; + }; + }; + usbss0: cdns-usb@4104000 { compatible = "ti,j721e-usb"; reg = <0x00 0x4104000 0x00 0x100>; -- 2.17.1