From patchwork Thu Dec 10 13:07:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kishon Vijay Abraham I X-Patchwork-Id: 341043 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp5513560jai; Thu, 10 Dec 2020 05:10:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJw7pD9OcrxZoXLuggzFQYbccfwZJ99JGwpr0+sOWRe8maPw9urDqqswKolh3NxkNBo7GRnv X-Received: by 2002:a17:906:60d4:: with SMTP id f20mr6521917ejk.156.1607605841554; Thu, 10 Dec 2020 05:10:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607605841; cv=none; d=google.com; s=arc-20160816; b=PMK7hs4iEbRFsDwaZayVUrTpHdut2OPwClGHGMj2BhzEdbli3a4KQEsoG2a0Xt4Dq5 +N90j9Nv8loDQ7MOIps7oyIVJHFHL8WQMMNCEPZc4N6UAtBC83Dny06avZLHoOayJsQX lKjaD7IvV77+4VOUeP6PrVn5V2ikR6JCD1ZxwtmsiE1Zx6lJRIblK8u9loQaE2esgLt8 OCOyA0eAzrCRrHBnV2o/Qrn9XWiKsy3Rdyl652RJAFsGmaB6BWF9UQ6g069+29be8jwL evCDhgWZXIXnvrJC5PixEV8mfTzr52k7RdEuXpX/RNcCsgw9NsluMA0dPD/Wiu9N7cGg y4dA== 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=g4FQxyTpDwF7MlYtSxQmlhsaVo6WL162dER/S5RAuZhfrtR94D9vsNMUo6F1cJXv0p ReCdLkvd1lOXc7mkWE53IX0eIDKBav9WsLD2k49TwP//x+fro3PH5IXkDYiXtpuymm9c mTKzofuFrLMJAlpEU6em8ZHIMqeIJ/1ap2BWS6ROk+KjcIlQpGir0ikYiGvdVIH3qlRX cwDb1wM5aTSe2SSsvG+OXY8qub8iirE1X5gGs24nl251p2yen5BWcBx3Z7KEuhe0hCDx coNglSWL/n3rHpowfms//AeK6xMxdmRlbx9hsw/qAdpwiWFBcN6NasnMkMu9RmHkOC5a 9tnw== 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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 m10si2608734eja.453.2020.12.10.05.10.41; Thu, 10 Dec 2020 05:10:41 -0800 (PST) Received-SPF: pass (google.com: domain of devicetree-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 devicetree-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=devicetree-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 S2388990AbgLJNJ7 (ORCPT + 6 others); Thu, 10 Dec 2020 08:09:59 -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 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: devicetree@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(+) -- 2.17.1 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>;