Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7209973rwb; Wed, 23 Nov 2022 03:47:46 -0800 (PST) X-Google-Smtp-Source: AA0mqf4e/nG11IlLTIGTEsSycq9rR74FyMFAGepMoI5DiUkm9Io4W1Gf6YJRQwnNnpOU2ekcElW9 X-Received: by 2002:a65:4586:0:b0:476:f119:40b2 with SMTP id o6-20020a654586000000b00476f11940b2mr25418502pgq.330.1669204066680; Wed, 23 Nov 2022 03:47:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669204066; cv=none; d=google.com; s=arc-20160816; b=dgUKfDqNB2S6rc5blygfsK2zyodSVuxcchH8aotOVRPsdiNkgi85CVXaHd2cgc4Ysn HAZTPCFYNxNJmTyLrUd/yKU8tsZShu0etPHg3ifXdNC+e0JOefSKdG4+AuCpmsxsjGg1 ehGG8A8yFRRg1UId40bGb8hHog1esl71nqCdmflRQf/NWWNazBBh074D+iPegekt+nMC Ds/WzhVn3T3PPtZzqhz0Cd0hnMrPM/VLF7nXUN73zYxlhSxSvkWAWCP/t7zUkT3H2C3k gCUIv94hkTFlyU8GrV6KA1gy7/BjO2p+JfBs/sYBOLLQYgjq8jow7ZPn5Qn6drh6xGHq cX5g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=KfO6PqNKjgJto3U2SMjCBIkvYlCrtdNKy02McM1fDUs=; b=B2OWiplXDy2fPs1zFetf06XbMfbXNi7YnLCseW3qP/sdSTtE1c+h+0bM5k2O+WpqEX O+AwtHL+SC8nQyden55vfKSsyFnLPZHDImI+9OvuRtb6fc08uKayXBW7qvTePsRIyr8O wayevUa2izXa37ylIonL5C+obMWjrEkcIY2SZsp9lWOzWP6j4JFKtxxJSQYz0I6wxwNc RyTA4qMPJOLIw8o2VJyaBi54zGsOqVSk83m/nEKL1MWGV3hkSUztxyPFs8ck2LYi4LLc 5w1Lizkj5nPUyYYBPQVPu79b/LAJkJgu75V7MK0OGs6qrjP2KwcgezSGicRboCNHvMVI Pebw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=ethbXwDD; 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-20020a63e703000000b0047701a23907si15950716pgi.252.2022.11.23.03.47.26; Wed, 23 Nov 2022 03:47:46 -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=ethbXwDD; 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 S237250AbiKWKuY (ORCPT + 88 others); Wed, 23 Nov 2022 05:50:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51306 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237218AbiKWKuB (ORCPT ); Wed, 23 Nov 2022 05:50:01 -0500 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D1B8168B29; Wed, 23 Nov 2022 02:36:13 -0800 (PST) Received: from lelv0265.itg.ti.com ([10.180.67.224]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 2ANAZa6G002161; Wed, 23 Nov 2022 04:35:36 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1669199736; bh=KfO6PqNKjgJto3U2SMjCBIkvYlCrtdNKy02McM1fDUs=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=ethbXwDDQ5FQ+s/ToXovNgL7VCwXSd0GI8D5IgM72Mqm7RfVQk0hs6Px3fUeI32qz +kGOU9+zlKbl1ump9UUz8WBpbtDClDy2EUNA7YdVE1qEHTqWhs5MjhTXD6MLoX2x6r YZcm5LsqVeuizntwv49xP/zGn9T6MIBSpuPFNhkk= Received: from DLEE104.ent.ti.com (dlee104.ent.ti.com [157.170.170.34]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 2ANAZar3003648 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 23 Nov 2022 04:35:36 -0600 Received: from DLEE112.ent.ti.com (157.170.170.23) by DLEE104.ent.ti.com (157.170.170.34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.16; Wed, 23 Nov 2022 04:35:36 -0600 Received: from fllv0040.itg.ti.com (10.64.41.20) by DLEE112.ent.ti.com (157.170.170.23) 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; Wed, 23 Nov 2022 04:35:36 -0600 Received: from [10.24.69.79] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 2ANAZWSj116439; Wed, 23 Nov 2022 04:35:33 -0600 Message-ID: <4173e0c6-61d9-5b79-44ec-317870de070b@ti.com> Date: Wed, 23 Nov 2022 16:05:31 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: [PATCH v7 2/8] arm64: dts: ti: k3-j721s2-main: Add SERDES and WIZ device tree node Content-Language: en-US To: Matt Ranostay , , , , , , , CC: , , References: <20221122101616.770050-1-mranostay@ti.com> <20221122101616.770050-3-mranostay@ti.com> From: Ravi Gunasekaran In-Reply-To: <20221122101616.770050-3-mranostay@ti.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit 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,NICE_REPLY_A, 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 On 22/11/22 3:46 pm, Matt Ranostay wrote: > 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..2858ba589d54 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,j721s2-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>, Reviewed-by: Ravi Gunasekaran -- Regards, Ravi