Received: by 2002:ab2:6991:0:b0:1f7:f6c3:9cb1 with SMTP id v17csp466012lqo; Wed, 8 May 2024 05:35:37 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWxK+7qQtSD/kpJlx2nNbReiPdvl4iUMSprR5agvdHHE2iGWjEJtaUCzBMiqaERAz0o6cgNiMZefxPdTK+ZNb5Gxss0ilm3Wt9bbLzWqQ== X-Google-Smtp-Source: AGHT+IHxCrQGeMW3qNJvYgqN5oRULPxr5I9TOomBOYU5CblFe4mUeRgsQ7thrH3v10QRS0+r6Ycl X-Received: by 2002:a05:622a:290:b0:43a:e9a6:47e2 with SMTP id d75a77b69052e-43dbf4e7d60mr21717521cf.36.1715171737694; Wed, 08 May 2024 05:35:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715171737; cv=pass; d=google.com; s=arc-20160816; b=uq0kDWMNQB9slnDJpydcyxhnykUZcO+YiWIABGUAlHtdMr7oAdfBAqwUegp4ZoUkNS SvBxARMZrfiJzxIS9RcwUa4IWI1/HqDr/iD6XzPlmCegm4AgYwlz2r8OeP2oX+VsSn2h yr128dGson4h95papXJRApONRfF99mRl0nL22xjjena2XUxGpS3J7J35ZK/4eZwQhYq8 buO51i1QFmXS0APzc+X/wFxYhmtVo949Tb/urURW7zMTcr+3fNMM2vE5HHdtwkLaVP9y 2ziwqz4yEr2xcqJ3oKE6F+4E4XB612BtUN8X5TbTvM3eZezMueRm/s8x2uzi4AfRRorc E6eg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=yHR2bzsPIYHNIgrn3KJGdKIw3Nu3pQhsAXQh/+rbFXs=; fh=VVrO1iG08LrYkp7FzTRz41hw7+5mIJS1ocCYLnQR0kQ=; b=ZrfJSy6lSJ8lgJQKYXMJW1BXdr1SMia7KZTAAiIwrX2/Ox5Bqsqw779dhf3vQVDrlZ b4WXg5J0GQ/dl15QnkvZrc2EMN7fZjLwm/B+G4ekx8yi+wM5JH0VdY6A6cj4ZPs6908n C3syrenYe8u8R50Lf5P4ZSSjjuarp1Mk7HU6lxTdevcE2+0TjfNAboCThwtEBNWZ3JXi BOhSyYtbOBrHkDpfIK9ixu+57hf8MaQYD1ffIGx10/XpL95dTusn3DLt1Dt5AfwacLCC KFU4dh8QzxMh0K8i4iUxh0PdmgOAv1sbq+J7CKAdn+jNIIUVDUoV79iojaZsiADHd20z FISQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="KI1vs2J/"; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-173223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173223-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id x7-20020ac85f07000000b0043c5df6f318si14022632qta.100.2024.05.08.05.35.37 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 May 2024 05:35:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-173223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b="KI1vs2J/"; arc=pass (i=1 spf=pass spfdomain=ti.com dkim=pass dkdomain=ti.com dmarc=pass fromdomain=ti.com); spf=pass (google.com: domain of linux-kernel+bounces-173223-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-173223-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 6DCC01C22EA5 for ; Wed, 8 May 2024 12:35:37 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4B5FC347B6; Wed, 8 May 2024 12:35:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b="KI1vs2J/" Received: from lelv0142.ext.ti.com (lelv0142.ext.ti.com [198.47.23.249]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BF4C554FBE; Wed, 8 May 2024 12:35:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.47.23.249 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715171718; cv=none; b=cEGHQE+6gZakRXAtZoxpOMCiNkGeDVqeFGXduRnkIX6HpKKVtG4DV8i6bkW7ESU2+rPxMGH1VDt/PDOmmBV3QFunO3tclTBvfWDVrJIPiTq/BsTCeOdzjEYfApTj40TlxQWW1eWD91n6zsSEBg+xlOaDo+h55l/cKMgRNSvXEHE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715171718; c=relaxed/simple; bh=2Etf+3oMm8wPJG4pw3INs5sFZubsOVqMVAIhncRw1Tc=; h=Message-ID:Date:MIME-Version:Subject:To:CC:References:From: In-Reply-To:Content-Type; b=dy9eVk8Uz7IjYixhD+Mj0MWdbUBuUWKkTQSMj+bfWG2N0f+k4GKbnpL65d4vuoK/MY6jTI5wGifbaParTRNLr3VqURhAvgB5RhI9aKhZEH8Xa00z+DPnsdWWXjI+EtgNvPIoK9b3j1V0gXa/xfQCCaivgchhMTJeB0i1myv2hkQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com; spf=pass smtp.mailfrom=ti.com; dkim=pass (1024-bit key) header.d=ti.com header.i=@ti.com header.b=KI1vs2J/; arc=none smtp.client-ip=198.47.23.249 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=ti.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ti.com Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0142.ext.ti.com (8.15.2/8.15.2) with ESMTP id 448CYwNu024030; Wed, 8 May 2024 07:34:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1715171698; bh=yHR2bzsPIYHNIgrn3KJGdKIw3Nu3pQhsAXQh/+rbFXs=; h=Date:Subject:To:CC:References:From:In-Reply-To; b=KI1vs2J/Q6NjOdoLtKFjUeMz6uru7mGS+xEBTOidoKQ5yxO86IEdoN+H5PAxJeQcb d+B4T3N0KZkQquLc4VCX1AySyJ4jnoUYPI3JtP+1XGTa7piHlagyR8ve5pIcrn6cUC aaIt/tXw2Sfap3wRhtvCrUiQdLAyqYYs/JDOy/cI= Received: from DFLE112.ent.ti.com (dfle112.ent.ti.com [10.64.6.33]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 448CYwCe025812 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 8 May 2024 07:34:58 -0500 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE112.ent.ti.com (10.64.6.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 8 May 2024 07:34:58 -0500 Received: from lelvsmtp6.itg.ti.com (10.180.75.249) by DFLE101.ent.ti.com (10.64.6.22) 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, 8 May 2024 07:34:58 -0500 Received: from [172.24.227.88] (uda0500640.dhcp.ti.com [172.24.227.88]) by lelvsmtp6.itg.ti.com (8.15.2/8.15.2) with ESMTP id 448CYsH3086002; Wed, 8 May 2024 07:34:55 -0500 Message-ID: <588e4d0a-78c6-553f-3c40-0d248f4c92f9@ti.com> Date: Wed, 8 May 2024 18:04:53 +0530 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH 1/3] arm64: dts: ti: k3-j722s: Add support for SERDES0 Content-Language: en-US To: Roger Quadros , , CC: , , , , , , , , Ravi Gunasekaran References: <20240429120932.11456-1-r-gunasekaran@ti.com> <20240429120932.11456-2-r-gunasekaran@ti.com> <41047a89-2787-422f-a643-3e2d850da6dd@kernel.org> From: Ravi Gunasekaran In-Reply-To: <41047a89-2787-422f-a643-3e2d850da6dd@kernel.org> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 On 5/8/24 5:29 PM, Roger Quadros wrote: > > > On 29/04/2024 15:09, Ravi Gunasekaran wrote: >> Add SERDES0 and its wrapper description to support USB3 >> and SGMII interfaces. >> >> Signed-off-by: Ravi Gunasekaran >> --- >> arch/arm64/boot/dts/ti/k3-j722s.dtsi | 54 ++++++++++++++++++++++++++++ >> 1 file changed, 54 insertions(+) >> >> diff --git a/arch/arm64/boot/dts/ti/k3-j722s.dtsi b/arch/arm64/boot/dts/ti/k3-j722s.dtsi >> index c75744edb143..beba5a3ea6cc 100644 >> --- a/arch/arm64/boot/dts/ti/k3-j722s.dtsi >> +++ b/arch/arm64/boot/dts/ti/k3-j722s.dtsi >> @@ -9,6 +9,7 @@ >> #include >> #include >> #include >> +#include >> >> #include "k3-am62p5.dtsi" >> >> @@ -75,6 +76,50 @@ >> <0x00 0x78000000 0x00 0x78000000 0x00 0x00008000>, >> <0x00 0x78100000 0x00 0x78100000 0x00 0x00008000>; >> }; >> + >> + serdes_refclk: clock-cmnrefclk { > > What could be the generic name here? > How about phy-clk or serdes-clk? I searched for "fixed-clock" and wide range of naming conventions is followed. >> + compatible = "fixed-clock"; >> + #clock-cells = <0>; >> + clock-frequency = <0>; >> + }; >> + >> + serdes_wiz0: wiz@f000000 { > > Should generic name be phy? Since serdes is used for both USB and PCIe, I can go with "phy". > >> + compatible = "ti,am64-wiz-10g"; >> + ranges = <0x0f000000 0x0 0x0f000000 0x00010000>; >> + #address-cells = <1>; >> + #size-cells = <1>; >> + power-domains = <&k3_pds 279 TI_SCI_PD_EXCLUSIVE>; >> + clocks = <&k3_clks 279 0>, <&k3_clks 279 1>, <&serdes_refclk>; >> + clock-names = "fck", "core_ref_clk", "ext_ref_clk"; >> + num-lanes = <1>; >> + #reset-cells = <1>; >> + #clock-cells = <1>; >> + >> + assigned-clocks = <&k3_clks 279 1>; >> + assigned-clock-parents = <&k3_clks 279 5>; >> + >> + serdes0: serdes@f000000 { > > here too? I could use "phy" here as well. https://elixir.bootlin.com/linux/latest/source/arch/arm64/boot/dts/qcom/sa8775p.dtsi#L1853 https://elixir.bootlin.com/linux/latest/source/arch/arm64/boot/dts/renesas/r8a779f0.dtsi#L563 > >> + compatible = "ti,j721e-serdes-10g"; [...] > -- Regards, Ravi