Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1508941rwb; Fri, 18 Nov 2022 21:05:44 -0800 (PST) X-Google-Smtp-Source: AA0mqf5ZB+XrbmAiASKp3aj37CxC7mQZgqUCj3gy/sKUQ+VS0S9TJOOFUD+5ueuCNbR+JzOspuTJ X-Received: by 2002:a17:902:b58c:b0:187:85d:2517 with SMTP id a12-20020a170902b58c00b00187085d2517mr2636865pls.35.1668834343824; Fri, 18 Nov 2022 21:05:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668834343; cv=none; d=google.com; s=arc-20160816; b=nK3FrhUu+ZTFZlUXNH/e00zhsk0BggzuEDwz6WTH1g5kT4OgbOBsYO19ZAIPB42hh8 oetCFfdWbaIpcpafUFSOB12qIYYYN5TWOHknSMw40ufihAnoUwbWMTeTSmD8ehW699oa jxeUeiZTFV4ctm7Yw/uejGp1EiDyaKsyFJLrUNC/qrllYHboalJD8SmKeZJ+leBCAL2n kQY0Z9MbEH5BXrKxzUgq4MNAFIbWuANerzOe7zODwsM5vEWY0ULEZwwYRXyYEf4gFqlt nrqn4wz7Dr+BIpkXxWL6z6JOGNfNdVyyN+5SrEI+FrCeHcymPaOS6k7ePB87YCb5H0xC sRVQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nTXKFoxeOAhEe33MRGywHIvIOBS8b2DvlT1+7cUv9js=; b=boyzLG74sJ3TLPNDpwYhEFyfegBNwDvoOSwfVHZGqll+Ke7bqGI7fKX0b4RdfY8Fkp b4t9Z5Y8t0meMGcsyIPIns3LEaPFS8KBLRyY3by6V++wKTQCo7hOz9RQrqsK2bRlrZCb lOf1u2Km5NI3ZcaZNymqSoj93ToDFLgr8ZAYNyD2YEH5warpLjQ1GiIArP8HQoRdzw6u 5YTjqAo9syWj4QJws850ikgx3fIdUWYoVhsZSiAqzfiMEy+YYfAENwOnU/LcZM854oyg rQvioksRLy0xBeyJkvVOAza4OPGoUo/dJB+YARwa90KLixjaXdOc591ZDR5zG3581rNu yPwg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Y9+G4wOi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b3-20020a170902d50300b0017efeb31274si6330610plg.507.2022.11.18.21.05.32; Fri, 18 Nov 2022 21:05:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=Y9+G4wOi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S232651AbiKSEKG (ORCPT + 90 others); Fri, 18 Nov 2022 23:10:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231300AbiKSEJl (ORCPT ); Fri, 18 Nov 2022 23:09:41 -0500 Received: from fllv0016.ext.ti.com (fllv0016.ext.ti.com [198.47.19.142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6979E73415; Fri, 18 Nov 2022 20:09:39 -0800 (PST) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2AJ49KS3042814; Fri, 18 Nov 2022 22:09:20 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1668830960; bh=nTXKFoxeOAhEe33MRGywHIvIOBS8b2DvlT1+7cUv9js=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=Y9+G4wOig9vNW/BgRD/JDixJOZcMpankEO/qw/MTbRx4hw/4o9ClWivQ7J2lXyc36 MhOIOH/0Va320BjV/JZvufV0mMYMILvrU45q14PkEmPeEtBXZp4oYYg0kI0NlIkCzs Alnt2q1SZGnYTMqe7IeQ+XjNYb5UqBy+FDbvPlyU= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2AJ49KNa002111 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Fri, 18 Nov 2022 22:09:20 -0600 Received: from DFLE110.ent.ti.com (10.64.6.31) by DFLE100.ent.ti.com (10.64.6.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Fri, 18 Nov 2022 22:09:19 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DFLE110.ent.ti.com (10.64.6.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16 via Frontend Transport; Fri, 18 Nov 2022 22:09:19 -0600 Received: from localhost (ileaxei01-snat.itg.ti.com [10.180.69.5]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2AJ49G3S118696; Fri, 18 Nov 2022 22:09:18 -0600 From: Matt Ranostay To: , , , , , , CC: , , Subject: [PATCH v6 2/8] arm64: dts: ti: k3-j721s2-main: Add SERDES and WIZ device tree node Date: Fri, 18 Nov 2022 20:09:00 -0800 Message-ID: <20221119040906.9495-3-mranostay@ti.com> X-Mailer: git-send-email 2.38.GIT In-Reply-To: <20221119040906.9495-1-mranostay@ti.com> References: <20221119040906.9495-1-mranostay@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net 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: Matt Ranostay --- arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi | 54 ++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi index b4869bff4f22..adbb172658b9 100644 --- a/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi +++ b/arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi @@ -5,6 +5,17 @@ * Copyright (C) 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 { msmc_ram: sram@70000000 { compatible = "mmio-sram"; @@ -38,6 +49,13 @@ usb_serdes_mux: mux-controller-0 { #mux-control-cells = <1>; mux-reg-masks = <0x0 0x8000000>; /* USB0 to SERDES0 lane 1/3 mux */ }; + + 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 */ + }; }; gic500: interrupt-controller@1800000 { @@ -787,6 +805,42 @@ usb0: usb@6000000 { }; }; + serdes_wiz0: wiz@5060000 { + compatible = "ti,am64-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>; + #clock-cells = <1>; + ranges = <0x5060000 0x0 0x5060000 0x10000>; + + assigned-clocks = <&k3_clks 365 3>; + assigned-clock-parents = <&k3_clks 365 7>; + + serdes0: serdes@5060000 { + compatible = "ti,j721e-serdes-10g"; + reg = <0x05060000 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 365 3>, + <&k3_clks 365 3>, + <&k3_clks 365 3>; + #address-cells = <1>; + #size-cells = <0>; + #clock-cells = <1>; + }; + }; + main_mcan0: can@2701000 { compatible = "bosch,m_can"; reg = <0x00 0x02701000 0x00 0x200>, -- 2.38.GIT