Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2522313rdb; Wed, 4 Oct 2023 04:04:57 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG5iOjES0lRwPW7/qUhiEgKt1az/E8/ySq5W1q6T04GSFw2mdxwwR4IhuYIeWpApiC9AN4l X-Received: by 2002:a17:90a:12cd:b0:274:6d4e:e0d9 with SMTP id b13-20020a17090a12cd00b002746d4ee0d9mr1795671pjg.45.1696417496842; Wed, 04 Oct 2023 04:04:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696417496; cv=none; d=google.com; s=arc-20160816; b=ykexNYRJuFo/Hp9gjELhMwoWozX4bBbZIMcr4y6i8N9LqllRLMM3yoTC/a+2252/3m HR51r9AI2vjYJdnXo9GcYKqZWRe6IZWRCx2DFJNbcmx/yXDUww88LzQuE3FD3t3cL7x/ c7lS6UQh7CEDxSJ/G02wJYoQUSVgMiG9tsbsCTNm5fP/sRWi9HWUAVyzig0dU3QpTpdL NaUcCbV7hu1tmhxWPTSujBBz8MlZncgOoYi4HLiyHEV9Bdm0SsaliRi2b047TY8mEiBI je4Ok6Nwaey+bdriysEuRComfHBi2MWuM4zCJ/7z+nYSFUrGm8YWxokASCqx5h0qo9zX m2Yw== 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 :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ZuhTM4eIuKAH9nVuWPonCXaxsjUYIfHKZ3Pl97CJrpY=; fh=WUA79IYG7vJIv1JFvFA7hFNCnT/qWwIvrcvThyC7czU=; b=osLwlzmT8q6XiqUfKjayu+Bb60ogHSMxv4o4lUhRr+UqAHABD1vvDBuTx8BWEqETGl nUJzaPDJOami0AKw0n+7NzSAPaTXqgTKgq3l5QeapXszNeutXxERe8OcRRTZwAih9WmB 6Z8EbrOuTlxlO+Js753W3sCj4WZS6NHkgdOAHYe3D2fGNPKCpmNV4JIWCU+aQU6hJn25 AGMscIXZRJbnyLottZ8Ng2XJZHlaDm0laTtCkqBatH38qoK2PEzXMJc+QATm4Kzf7+n4 M5MPQlc82lbe7ElibHaChMaP4Jxdfz/bYC2wbmkLA85oMBotF+gZQEsZolS/hpS0fc9y ksKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="FW/WtSnp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 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 groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id ob1-20020a17090b390100b00267ba1c43adsi1336033pjb.101.2023.10.04.04.04.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 04:04:56 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="FW/WtSnp"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 39F978260F5B; Wed, 4 Oct 2023 04:04:47 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233281AbjJDLEj (ORCPT + 99 others); Wed, 4 Oct 2023 07:04:39 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43748 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241830AbjJDLEj (ORCPT ); Wed, 4 Oct 2023 07:04:39 -0400 Received: from fllv0015.ext.ti.com (fllv0015.ext.ti.com [198.47.19.141]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7ED4ACE; Wed, 4 Oct 2023 04:04:35 -0700 (PDT) Received: from fllv0034.itg.ti.com ([10.64.40.246]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 394B4IFs011799; Wed, 4 Oct 2023 06:04:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1696417458; bh=ZuhTM4eIuKAH9nVuWPonCXaxsjUYIfHKZ3Pl97CJrpY=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=FW/WtSnpc8S8R888JYkbixZbu7QnJd8h6WpdBcHHg+m2KTlVQdFTqBmlcz7P3UIuw CZeMYMCtBSND/NDRsLdYLFG6bwelNinV5nF8pOTZetO71aqCm5wAd0XTG+SiCliSbj 3jKPVme9JaA5V+YFm6ahl9vTAHfpH98aX0QBxdNs= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by fllv0034.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 394B4IXV051881 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 4 Oct 2023 06:04:18 -0500 Received: from DLEE105.ent.ti.com (157.170.170.35) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 4 Oct 2023 06:04:17 -0500 Received: from fllv0040.itg.ti.com (10.64.41.20) 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.2507.23 via Frontend Transport; Wed, 4 Oct 2023 06:04:17 -0500 Received: from [172.24.227.112] (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0040.itg.ti.com (8.15.2/8.15.2) with ESMTP id 394B4DCX016288; Wed, 4 Oct 2023 06:04:13 -0500 Message-ID: Date: Wed, 4 Oct 2023 16:34:12 +0530 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v10 2/5] arm64: dts: ti: k3-j784s4-main: Add WIZ and SERDES PHY nodes To: Nishanth Menon CC: , , , , , , , , , , , , , References: <20230927121157.278592-1-j-choudhary@ti.com> <20230927121157.278592-3-j-choudhary@ti.com> <20230927122503.cskdfnair5jtprdl@pennant> Content-Language: en-US From: Jayesh Choudhary In-Reply-To: <20230927122503.cskdfnair5jtprdl@pennant> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 04 Oct 2023 04:04:47 -0700 (PDT) Hello Nishanth, On 27/09/23 17:55, Nishanth Menon wrote: > On 17:41-20230927, Jayesh Choudhary wrote: >> From: Siddharth Vadapalli >> >> J784S4 SoC has 4 Serdes instances along with their respective WIZ >> instances. Add device-tree nodes for them and disable them by default. >> >> Signed-off-by: Siddharth Vadapalli >> [j-choudhary@ti.com: fix serdes_wiz clock order & disable serdes refclk] >> Signed-off-by: Jayesh Choudhary >> --- >> arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi | 164 +++++++++++++++++++++ >> 1 file changed, 164 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi >> index 6d9a5a91fa75..a0e4d8808693 100644 >> --- a/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi >> +++ b/arch/arm64/boot/dts/ti/k3-j784s4-main.dtsi >> @@ -6,9 +6,19 @@ >> */ >> >> #include >> +#include >> +#include >> >> #include "k3-serdes.h" >> >> +/ { >> + serdes_refclk: clock-serdes { >> + #clock-cells = <0>; >> + compatible = "fixed-clock"; >> + status = "disabled"; > > Document why disabled. - same for rest of default disabled nodes. Okay I will add a comment here that the clock is coming from the board but required here by serdes-wiz node. So keeping it disabled by default. For serdes and serdes-wiz node, since there are multiple instances, I will mention in the commit message that the nodes are incomplete and phy link is added in the board file. Hence disabled by default. Thanks, -Jayesh > >> + }; >> +}; >> + >> &cbass_main { >> msmc_ram: sram@70000000 { >> compatible = "mmio-sram"; >> @@ -709,6 +719,160 @@ main_sdhci1: mmc@4fb0000 { >> status = "disabled"; >> }; >> >> + serdes_wiz0: wiz@5060000 { >> + compatible = "ti,j784s4-wiz-10g"; >> + #address-cells = <1>; >> + #size-cells = <1>; >> + power-domains = <&k3_pds 404 TI_SCI_PD_EXCLUSIVE>; >> + clocks = <&k3_clks 404 2>, <&k3_clks 404 6>, <&serdes_refclk>, <&k3_clks 404 5>; >> + clock-names = "fck", "core_ref_clk", "ext_ref_clk", "core_ref1_clk"; >> + assigned-clocks = <&k3_clks 404 6>; >> + assigned-clock-parents = <&k3_clks 404 10>; >> + num-lanes = <4>; >> + #reset-cells = <1>; >> + #clock-cells = <1>; >> + ranges = <0x5060000 0x00 0x5060000 0x10000>; >> + status = "disabled"; >> + >> + serdes0: serdes@5060000 { >> + compatible = "ti,j721e-serdes-10g"; >> + reg = <0x05060000 0x010000>; >> + 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 404 6>, >> + <&k3_clks 404 6>, >> + <&k3_clks 404 6>; >> + #address-cells = <1>; >> + #size-cells = <0>; >> + #clock-cells = <1>; >> + status = "disabled"; >> + }; >> + }; >> + >> + serdes_wiz1: wiz@5070000 { >> + >