Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp4468239pxb; Tue, 25 Jan 2022 10:57:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzrN+FFLv6HkWWjxTctTwMhVGhkl09UaK6yDnsjEIK1DUyQH32lPtYaKQs7CKyix04mGsNp X-Received: by 2002:a17:906:66cb:: with SMTP id k11mr16900114ejp.85.1643137025605; Tue, 25 Jan 2022 10:57:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643137025; cv=none; d=google.com; s=arc-20160816; b=1LF0HVhf/Fjjl8y90g5cxsqi0UZdqWgZm7ifyP1hOf+45GATf7S4Br3o1R/YFCgmYw n4k5u3ldr8CVzccz/rKV1VLlV+jSg/dJ9KoJt+jvn81mX1FIRuga7USBWNoxwQJhqZqE 27AzOPn+GiBjhMcmg0zk/X6DHSqwueYMT8mnWhD1aY8thIDIUl9rPZ99RbB+oHjtIIeK dxpfMSbJ1EOOBTLj8EiP2XEewIosckUrBVtYzmvjAesFrShwjTfqowdU7RVG6e8ypjWk 4Sza0jJftdtGCkrL0lY8NMYgoJxQQ/NfusvUxexzPNps7mTf9edqPu02jl4OI0uSOveK 7GPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:mime-version:references:in-reply-to :message-id:date:subject:cc:from:dkim-signature; bh=6EBktqnHJPduEi7KM4QfOLGkytmuyhIOPbDCjMbkRyw=; b=RcsLrTvPuHtwgSyCS5B3uScp579rk6A1zqjGeNPApaEBC8PD+lxsgzVHrxRdqAsbMc G4z3ham0GTmu09i4RR2t+uXqn3AOoojU3SPpkQMTrECExt+9FcLlkQ5QP80i8chpMNZ0 0dmp41tY3YbtIW6beZp/nVK00B47/8khff8oAvjUYNhDGlBo30eBnpEIVr0eHWuNUHTj seO/pjHusDutHqd5uOmQGC4SnToaXbJsJNYkGtf0AcfOJ7rha0maPc1m62nRXDttKTu4 ZjXf1sQax19lqJbWVAXPs24pGQTdwojl7KBdihAsyPuwppXvV2I+Qmtp2+HyQKmBujDs NrQQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@ti.com header.s=ti-com-17Q1 header.b=JJVVOiLy; 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=fail (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 i5si6343707ejo.776.2022.01.25.10.56.39; Tue, 25 Jan 2022 10:57:05 -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=fail header.i=@ti.com header.s=ti-com-17Q1 header.b=JJVVOiLy; 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=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1359705AbiAYNPx (ORCPT + 99 others); Tue, 25 Jan 2022 08:15:53 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:59908 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1575754AbiAYNLn (ORCPT ); Tue, 25 Jan 2022 08:11:43 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 20PDBMBN027541; Tue, 25 Jan 2022 07:11:22 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1643116282; bh=6EBktqnHJPduEi7KM4QfOLGkytmuyhIOPbDCjMbkRyw=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=JJVVOiLy0zc15kVJ2JCN2BRiAvBvdLC3L6MdraYWCK7kZ7KmRGXaNBfltHhcDINzz SKri3x7Ocmzr4xxYrKxrj3Gt+YqVqoNHDIbUiStEURwmn29BFWRfe8hLoP8nUd0Ip7 pS7FN+cvmXXYDmIZzSqyottWTYK2E/ymcJ5xUbzU= Received: from DLEE113.ent.ti.com (dlee113.ent.ti.com [157.170.170.24]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 20PDBM6L008645 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 25 Jan 2022 07:11:22 -0600 Received: from DLEE102.ent.ti.com (157.170.170.32) by DLEE113.ent.ti.com (157.170.170.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Tue, 25 Jan 2022 07:11:21 -0600 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE102.ent.ti.com (157.170.170.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14 via Frontend Transport; Tue, 25 Jan 2022 07:11:21 -0600 Received: from gsaswath-HP-ProBook-640-G5.dal.design.ti.com (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 20PDBE37032789; Tue, 25 Jan 2022 07:11:19 -0600 From: Aswath Govindraju CC: , , Rob Herring , Tero Kristo , Vignesh Raghavendra , Nishanth Menon , Aswath Govindraju Subject: [PATCH 2/6] arm64: dts: ti: k3-j721s2-main: Add SERDES and WIZ device tree node Date: Tue, 25 Jan 2022 18:41:09 +0530 Message-ID: <20220125131113.727-3-a-govindraju@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20220125131113.727-1-a-govindraju@ti.com> References: <20220125131113.727-1-a-govindraju@ti.com> MIME-Version: 1.0 Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 To: unlisted-recipients:; (no To-header on input) 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, eDP and USB. Signed-off-by: Aswath Govindraju --- arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi index e651f0af1aaa..ebd55032e59c 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi @@ -5,6 +5,13 @@ * Copyright (C) 2021 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"; @@ -33,6 +40,13 @@ #size-cells = <1>; ranges = <0x00 0x00 0x00104000 0x18000>; + serdes_ln_ctrl: mux-controller@80 { + compatible = "mmio-mux"; + #mux-control-cells = <1>; + mux-reg-masks = <0x80 0x3>, <0x84 0x3>, /* SERDES0 lane0/1 select */ + <0x88 0x3>, <0x8c 0x3>; /* SERDES0 lane2/3 select */ + }; + usb_serdes_mux: mux-controller@0 { compatible = "mmio-mux"; #mux-control-cells = <1>; @@ -725,6 +739,62 @@ }; }; + serdes_wiz0: wiz@5060000 { + compatible = "ti,j721e-wiz-10g"; + #address-cells = <1>; + #size-cells = <1>; + power-domains = <&k3_pds 365 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 365 0>, <&k3_clks 365 3>, <&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 365 3>; + assigned-clock-parents = <&k3_clks 365 7>; + + wiz0_pll0_refclk: pll0-refclk { + clocks = <&k3_clks 365 3>, <&serdes_refclk>; + clock-output-names = "wiz0_pll0_refclk"; + #clock-cells = <0>; + assigned-clocks = <&wiz0_pll0_refclk>; + assigned-clock-parents = <&k3_clks 365 3>; + }; + + wiz0_pll1_refclk: pll1-refclk { + clocks = <&k3_clks 365 3>, <&serdes_refclk>; + clock-output-names = "wiz0_pll1_refclk"; + #clock-cells = <0>; + assigned-clocks = <&wiz0_pll1_refclk>; + assigned-clock-parents = <&k3_clks 365 3>; + }; + + wiz0_refclk_dig: refclk-dig { + clocks = <&k3_clks 365 3>, <&serdes_refclk>; + clock-output-names = "wiz0_refclk_dig"; + #clock-cells = <0>; + assigned-clocks = <&wiz0_refclk_dig>; + assigned-clock-parents = <&k3_clks 365 3>; + }; + + 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>; + }; + }; + main_mcan0: can@2701000 { compatible = "bosch,m_can"; reg = <0x00 0x02701000 0x00 0x200>, -- 2.17.1