Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13780703pxu; Mon, 4 Jan 2021 04:26:41 -0800 (PST) X-Google-Smtp-Source: ABdhPJzZ0fywffM5pOP2Q9HpDxA9HSorH2+BgV5ZknuLqBNTARmoZJFFYglPlF6jZgHEck1cfr5b X-Received: by 2002:a17:906:49c2:: with SMTP id w2mr18251459ejv.12.1609763201309; Mon, 04 Jan 2021 04:26:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609763201; cv=none; d=google.com; s=arc-20160816; b=BlFYog0dv7zj3ezIclEJkNisRkhvYSkMCaaZE5f4AACg85BSe7ga4Y+G0yUTjWZc+3 E1TpvjaX8Bbgh8BO0NQrsvE/F9PvZY3hOAIxq5z7LK+ejWbwqyNDc/NvIay9k33bj6N2 xXXkjO2VS/L5rTmTiGFKJANtQR+1GPSiOLiXZxnhzczYeYHOb2DFpzpT+CKeN2tVHljd NvKkQvBrb+pbYWOSbEbLpAMit7csKZUXKreKBxyOMa1KHQiXcO59oQRW/Zstf/Wa+eIA Wgb7sjUSg/UMmQFTnmjLlUzKFHIsXsEJ8X1HHl0A4NDMgFqXXjHr5C1Z026Q2U2WLPiO DojA== 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=bcKpGUBe0fOJfXDJUBX9rPDmhCuFi5ZCwNpQdzadubE=; b=WH7nNbpYY+gEUlKEyXT9aL3Fu2WN1k7R2RuVJxbZ5ySWfvQTy5kBthek4U4ml6vhed tglfBvxAlhvLmhS0qqEgPJ+jhFnV6LfPDmLKTJRpR6XAfTCXDNhpYFvoG8+IjxipldjA F7hMXR/eSTYAK+S+7NMsR2+YKHdJLdpH8xT1pRmjCZGswrJAGYEft3vUBU5KoB447dBL 2wep9HZA3gtpyO6ra+rrlmmrso31B+eQKrwOAexqw/KQ4lSZKg6hKZCwwK93FRtAbF8x b59MRgeO3zQcVHgxQKPN1uHN5UIEP+9Jt6A/VRqyMWCsd9dVTeEyopgJ8cRHImib2lQZ f9mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=WcRsXGJC; 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 s7si29221415edx.227.2021.01.04.04.26.18; Mon, 04 Jan 2021 04:26:41 -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=WcRsXGJC; 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 S1726731AbhADMXb (ORCPT + 99 others); Mon, 4 Jan 2021 07:23:31 -0500 Received: from fllv0016.ext.ti.com ([198.47.19.142]:52844 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725921AbhADMXa (ORCPT ); Mon, 4 Jan 2021 07:23:30 -0500 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 104CMlcJ092723; Mon, 4 Jan 2021 06:22:47 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1609762967; bh=bcKpGUBe0fOJfXDJUBX9rPDmhCuFi5ZCwNpQdzadubE=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=WcRsXGJC7qI+Iugod/lEHKg25OtIHn2Lox8+seU3OwHDoeG1z9iOwS4V01vtc/NFJ AELod16DhKEp2moNhl6PKEB8lHL9hTvWTvzMt2pOk/O/XrRzgDGxoxaiNAxL75NqIA 80LO7htfDSt/0pXc23PVNHChPXsS70GJ6rl1JepA= Received: from DLEE105.ent.ti.com (dlee105.ent.ti.com [157.170.170.35]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 104CMlQR055757 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 4 Jan 2021 06:22:47 -0600 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE105.ent.ti.com (157.170.170.35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 4 Jan 2021 06:22:46 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE115.ent.ti.com (157.170.170.26) 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; Mon, 4 Jan 2021 06:22:46 -0600 Received: from a0393678-ssd.ent.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 104CMZhP002211; Mon, 4 Jan 2021 06:22:44 -0600 From: Kishon Vijay Abraham I To: Nishanth Menon , Rob Herring , Kishon Vijay Abraham I CC: , , Subject: [PATCH v3 3/6] arm64: dts: ti: k3-j7200-main: Add SERDES and WIZ device tree node Date: Mon, 4 Jan 2021 17:52:29 +0530 Message-ID: <20210104122232.24071-4-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210104122232.24071-1-kishon@ti.com> References: <20210104122232.24071-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 (SERDES wrapper) 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 | 63 +++++++++++++++++++++++ 1 file changed, 63 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..fbe4cd1e6e09 100644 --- a/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j7200-main.dtsi @@ -5,6 +5,13 @@ * Copyright (C) 2020 Texas Instruments Incorporated - https://www.ti.com/ */ +/ { + serdes_refclk: serdes-refclk { + #clock-cells = <0>; + compatible = "fixed-clock"; + }; +}; + &cbass_main { msmc_ram: sram@70000000 { compatible = "mmio-sram"; @@ -531,6 +538,62 @@ dma-coherent; }; + 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