Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2447660pxj; Mon, 17 May 2021 01:32:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJztWqiYzgng982s0xgGBF3ri3EsnCQ0oIqz2ntSO/Xgt8/HmPt7a4K5WlfrtwpTlqQpiJrn X-Received: by 2002:a17:906:3712:: with SMTP id d18mr26858416ejc.155.1621240365304; Mon, 17 May 2021 01:32:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621240365; cv=none; d=google.com; s=arc-20160816; b=VY6VApWgCzFqSxklM/7H9/EBJhuFjC7Kj/wQ5fAhTejuf7wFvmY+hM5UGlkim6P0sv OblB6F/cboyE+/QBJeQdsYf2O9EjeG3qzDGSladOv0cBnIUthjwMBsE248OP7kJEVLko Zv4wkOxuZ04SyAtizlSJkjeB0AfoygCCvegGnSbMFYDpTzPw7Hpg691zfsU2gO/vvmJb 1xot0GdoI7wwOqrYTcKUSxJn75rghZYWjsG7WDqCS0+hG1updGbL+uGf5Laq42mccMat Y7MZ93Ukn86ye0ftiyLwcTqvJRBleJHPOo8U7kFvlUPXbPM5+QUktcog0GG/yQQaEC8K Km+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=5+GQXpK8pVkLU17QoqgTrmAgiNWs/zpijoNBJuK5Now=; b=dV7t97MZmecElO7APpPxc6ZV1n+ArGQ2JIfttintJ61q25YrcLEaYoluaCZ8AdQkXm 9yOLRfEm08KpOQxayOghLoJ6dPI5RqgVfzA2X6TGyrfrua5Votu0gb+zJkuvMKFtinPj Kuhmdr8DRon7GuiQ7PJkkcMuA/Klzi/XWngsxRhnlpHkb61KBMbl+fVJSL4j8fssZS9n DHsbR/jqD9u04OVy8T4mrm2eHk1tKv++h5J/D9ovBY2nadjQKOMISFgMwyPeW9iQ/cBl f4ntLIy1TU35SC3EyD9z0z8LqFeTr5Exzzcq14LscB1hWG1EHn7+KmLUGuXmsr637ofP MLNQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=L0hBS7HT; 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 gn34si13467862ejc.363.2021.05.17.01.32.21; Mon, 17 May 2021 01:32:45 -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=L0hBS7HT; 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 S232261AbhEQIcS (ORCPT + 99 others); Mon, 17 May 2021 04:32:18 -0400 Received: from fllv0016.ext.ti.com ([198.47.19.142]:50512 "EHLO fllv0016.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229755AbhEQIcR (ORCPT ); Mon, 17 May 2021 04:32:17 -0400 Received: from lelv0266.itg.ti.com ([10.180.67.225]) by fllv0016.ext.ti.com (8.15.2/8.15.2) with ESMTP id 14H8UukX001313; Mon, 17 May 2021 03:30:56 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1621240256; bh=5+GQXpK8pVkLU17QoqgTrmAgiNWs/zpijoNBJuK5Now=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=L0hBS7HT3nisWCzsrk816R8uPjpayQoFk3lP+fkvDl5wzzH5XZ8VvlvTtBwJuD/Et FLtfGL//iZ+PK/BFrjO3cJ7PRyNMDh7tK822XPQTjuPcliXdbED5slyTF49T835HSF TA2vrJlAoInGTwmzIhSGbUE5NjJoU5LJI4bXKvvA= Received: from DLEE100.ent.ti.com (dlee100.ent.ti.com [157.170.170.30]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 14H8Uu0J056190 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 17 May 2021 03:30:56 -0500 Received: from DLEE111.ent.ti.com (157.170.170.22) 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; Mon, 17 May 2021 03:30:56 -0500 Received: from lelv0326.itg.ti.com (10.180.67.84) by DLEE111.ent.ti.com (157.170.170.22) 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; Mon, 17 May 2021 03:30:56 -0500 Received: from [10.250.232.247] (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0326.itg.ti.com (8.15.2/8.15.2) with ESMTP id 14H8Uq8p086445; Mon, 17 May 2021 03:30:53 -0500 Subject: Re: [PATCH 1/4] arm64: dts: ti: k3-j721e-main: Fix external refclk input to SERDES To: Nishanth Menon CC: Tero Kristo , Rob Herring , , , , Lokesh Vutla References: <20210512151209.27560-1-kishon@ti.com> <20210512151209.27560-2-kishon@ti.com> <20210512185157.q5sr2xqf3w5igfte@imagines> <68c95cf1-84fa-2194-7bb1-e3c60e7f1fc0@ti.com> <20210513140137.5uvftgtsku3xfobz@engraving> From: Kishon Vijay Abraham I Message-ID: <81b7dc76-0918-0a95-5715-cf701e638bbe@ti.com> Date: Mon, 17 May 2021 14:00:51 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20210513140137.5uvftgtsku3xfobz@engraving> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Nishanth, On 13/05/21 7:31 pm, Nishanth Menon wrote: > On 17:41-20210513, Kishon Vijay Abraham I wrote: >> Hi Nishanth, >> >> On 13/05/21 12:21 am, Nishanth Menon wrote: >>> On 20:42-20210512, Kishon Vijay Abraham I wrote: >>>> Rename the external refclk inputs to the SERDES from >>>> dummy_cmn_refclk/dummy_cmn_refclk1 to cmn_refclk/cmn_refclk1 >>>> respectively. Also move the external refclk DT nodes outside the >>>> cbass_main DT node. Since in j721e common processor board, only the >>>> cmn_refclk1 is connected to 100MHz clock, fix the clock frequency. >>>> >>>> Fixes: afd094ebe69f ("arm64: dts: ti: k3-j721e-main: Add WIZ and SERDES PHY nodes") >>> >>> Assume we want this part of 5.13 fixes? >> >> This doesn't fix any functionality. Okay for me to go in 5.14 along with >> the rest of the series. > > >>> >>>> Signed-off-by: Kishon Vijay Abraham I >>>> --- >>>> .../dts/ti/k3-j721e-common-proc-board.dts | 4 ++ >>>> arch/arm64/boot/dts/ti/k3-j721e-main.dtsi | 58 ++++++++++--------- >>>> 2 files changed, 34 insertions(+), 28 deletions(-) >>>> >>>> diff --git a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts >>>> index 60764366e22b..86f7ab511ee8 100644 >>>> --- a/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts >>>> +++ b/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dts >>>> @@ -635,6 +635,10 @@ >>>> status = "disabled"; >>>> }; >>>> >>>> +&cmn_refclk1 { >>>> + clock-frequency = <100000000>; >>>> +}; >>>> + >>>> &serdes0 { >>>> serdes0_pcie_link: link@0 { >>>> reg = <0>; >>>> diff --git a/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi b/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi >>>> index c2aa45a3ac79..002a0c1520ee 100644 >>>> --- a/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi >>>> +++ b/arch/arm64/boot/dts/ti/k3-j721e-main.dtsi >>>> @@ -8,6 +8,20 @@ >>>> #include >>>> #include >>>> >>>> +/ { >>>> + cmn_refclk: cmn-refclk { >>>> + #clock-cells = <0>; >>>> + compatible = "fixed-clock"; >>>> + clock-frequency = <0>; >>>> + }; >>>> + >>>> + cmn_refclk1: cmn-refclk1 { >>> >>> Just curious: why cant we use the standard nodenames with clock? >> >> We can use standard names here. Is there any defined nodename for >> clocks? clk or clock? Don't see $nodename defined for clocks in >> dt-schema repository. > > Looking at the fixed-clock example, lets go with clock Since I have two clocks here adding clock@0 and clock@1 introduces the following error. /home/a0393678/repos/linux-wip/arch/arm64/boot/dts/ti/k3-j721e-common-proc-board.dt.yaml: /: clock@0: 'anyOf' conditional failed, one must be fixed: 'reg' is a required property 'ranges' is a required property The current "fixed-clock" binding doesn't allow adding "reg" property. We'll stick to non standard names? or do you think the binding has to be fixed? Thanks Kishon