Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp316843pxj; Thu, 3 Jun 2021 07:26:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw9hFcJsGV7NJkEPlLOeIqK0AvFS0tsuvEOkbdXGWjQXcU/wVN9xe697DkACIlUKP5z3srM X-Received: by 2002:a17:906:c1c5:: with SMTP id bw5mr39091522ejb.552.1622730403847; Thu, 03 Jun 2021 07:26:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622730403; cv=none; d=google.com; s=arc-20160816; b=UOfYGOs+1QD5kt1L69Cq43bDSkJFJTQt4956FogHA1AfuFtZLFcgjndNvyN3M5I+xF f/sOa6q7FPM7vaOUUF1k41Ceg1DRLkAir8C820QBRhtHVnvygTsqzPBDh+Je/sInyjDy 5L6PX7D9OXqaFvMUj4P2zifO+nn3hebTHk/FNOQI9vyMvjPOQvvzKmtas9QUAYO9qkhq 0mgen/RoPBph9ZMh/EoBjo591fJ0cDdYYU3MqgqEw4Vak+4wJUIg5khbfSQWD7WMp9l8 DwZEEmaLtPALJFcQCTTxzjOkXx/KBaANX3FwI56HeGqYTlB0eblzAm7l5c/elil2Bn/f Lf3A== 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=muPDdN/ODbK6mqnODh4sYWPjOXyusLVgIiMEobpEM28=; b=iFRASfu4f52OGeG1msOpBeJnYUgljxmFYK/sDdDN9oQJSeqUf6DB/l1Pg9Ow3fhBC7 YDrr3Ljxklu9v4q9e8IY8A2Li3dILCS5aq/odZvv0wKFsNviRdSK4UYd3k9S8AicZHaU NpQsml0eHs1eoQEZMF3FX+ZXCg7LbUeFj34BPy3VKXux8aW9R5Di2dyqXDIm58TdsrGx guG3SLLO+4DcXqgXHi/Y6fcwRpbl7T0zJiN5j3GmmxjnYtZqqCx/he0ThYb1HPA8Ueem q4AMHQY12GV0yHNyDdamQuVu2WDG09TkN+a9SNibXPOFWI9MLAAABwlCJYynDIFq0IIe g+MA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=SQF94T70; 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 o8si2668385ejj.94.2021.06.03.07.26.20; Thu, 03 Jun 2021 07:26:43 -0700 (PDT) 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=SQF94T70; 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 S230319AbhFCOYx (ORCPT + 99 others); Thu, 3 Jun 2021 10:24:53 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:44220 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231582AbhFCOYw (ORCPT ); Thu, 3 Jun 2021 10:24:52 -0400 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 153EN2DA010874; Thu, 3 Jun 2021 09:23:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1622730182; bh=muPDdN/ODbK6mqnODh4sYWPjOXyusLVgIiMEobpEM28=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=SQF94T70h2YfFzU+IorhtR29Q4ij5gGI/sJyZ73tWLbtaFcQTf/sjIrEURAuOXsvN MeY24+ow1m3ucVA1G2Egq7kLjrdfz+yMj5Mo10rSJpbtzrRTsV/lh6jMZUwKT1DD72 wA8fNdzFWv1G8YcngrfdcoquOPjqDZHQUgIkiY9A= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 153EN2m9013767 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 3 Jun 2021 09:23:02 -0500 Received: from DLEE115.ent.ti.com (157.170.170.26) by DLEE100.ent.ti.com (157.170.170.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Thu, 3 Jun 2021 09:23:01 -0500 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.2176.2 via Frontend Transport; Thu, 3 Jun 2021 09:23:01 -0500 Received: from a0393678-ssd.dhcp.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 153EMpNG039957; Thu, 3 Jun 2021 09:22:57 -0500 From: Kishon Vijay Abraham I To: Nishanth Menon , Tero Kristo , Rob Herring CC: , , , Kishon Vijay Abraham I , Lokesh Vutla , Subject: [PATCH v4 1/5] arm64: dts: ti: k3-am64-main: Add SERDES DT node Date: Thu, 3 Jun 2021 19:52:47 +0530 Message-ID: <20210603142251.14563-2-kishon@ti.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210603142251.14563-1-kishon@ti.com> References: <20210603142251.14563-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 AM64 has one SERDES 10G instance. Add SERDES DT node for it. Signed-off-by: Kishon Vijay Abraham I --- arch/arm64/boot/dts/ti/k3-am64-main.dtsi | 61 ++++++++++++++++++++++++ 1 file changed, 61 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi index b2bcbf23eefd..7e1df8df6489 100644 --- a/arch/arm64/boot/dts/ti/k3-am64-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-am64-main.dtsi @@ -5,6 +5,17 @@ * Copyright (C) 2020-2021 Texas Instruments Incorporated - https://www.ti.com/ */ +#include +#include + +/ { + serdes_refclk: clock-cmnrefclk { + #clock-cells = <0>; + compatible = "fixed-clock"; + clock-frequency = <0>; + }; +}; + &cbass_main { oc_sram: sram@70000000 { compatible = "mmio-sram"; @@ -18,6 +29,20 @@ }; }; + main_conf: syscon@43000000 { + compatible = "ti,j721e-system-controller", "syscon", "simple-mfd"; + reg = <0x0 0x43000000 0x0 0x20000>; + #address-cells = <1>; + #size-cells = <1>; + ranges = <0x0 0x0 0x43000000 0x20000>; + + serdes_ln_ctrl: mux-controller { + compatible = "mmio-mux"; + #mux-control-cells = <1>; + mux-reg-masks = <0x4080 0x3>; /* SERDES0 lane0 select */ + }; + }; + gic500: interrupt-controller@1800000 { compatible = "arm,gic-v3"; #address-cells = <2>; @@ -672,4 +697,40 @@ ti,mbox-num-users = <4>; ti,mbox-num-fifos = <16>; }; + + serdes_wiz0: wiz@f000000 { + compatible = "ti,am64-wiz-10g"; + #address-cells = <1>; + #size-cells = <1>; + power-domains = <&k3_pds 162 TI_SCI_PD_EXCLUSIVE>; + clocks = <&k3_clks 162 0>, <&k3_clks 162 1>, <&serdes_refclk>; + clock-names = "fck", "core_ref_clk", "ext_ref_clk"; + num-lanes = <1>; + #reset-cells = <1>; + #clock-cells = <1>; + ranges = <0x0f000000 0x0 0x0f000000 0x00010000>; + + assigned-clocks = <&k3_clks 162 1>; + assigned-clock-parents = <&k3_clks 162 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 162 1>, + <&k3_clks 162 1>, + <&k3_clks 162 1>; + #address-cells = <1>; + #size-cells = <0>; + #clock-cells = <1>; + }; + }; }; -- 2.17.1