Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp495882pxf; Wed, 7 Apr 2021 04:56:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVMN+9dYP6XbdFpqUpapdG3PialWFbMb8SH9EybVNIfxCO2HKqNXQPugf6PDr802J9S99w X-Received: by 2002:a02:7691:: with SMTP id z139mr3090046jab.107.1617796592420; Wed, 07 Apr 2021 04:56:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617796592; cv=none; d=google.com; s=arc-20160816; b=Cf9bHd6kCO/46XcZj/uwSjTMRC5lB4UOZfT4cjF5aXPtRDTDPLj7ZvwHHwNjrmjhgN q2FUEFTkkPrMy5P5Ftz14TLi0lxJAPOvVVhyFYn6k09aaHF3DoccdDLwJr9q5Bn84HfT WBeS72tiMIIAvL5G+u7kK+P3Z0VzuuiK6T+I2dycLb3z/a/bcVgU9awFsBz3lxnZN5GN y4W2cOxQjw3yu8Dt8wDS/HJFMrG82mUNaLsY0Bz3/+hxL87ax8d6gezi0gsfSKWrZSxX FNA26tORthWBCqFQyx5TqPHEszSDI75yLpBkPoA16U4Iep5eIFmu2fDSgkDUYKazQW2Z XjAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Q/jz6vulWvnwCL1uFn+Cr3yxMcztB0HWPUk2BbmlXmo=; b=t+qMaLiYY9qNhupKXuI1MBnufgsyVbK6nZjVVQ/QNmq7Lct9SmSHcyLWjqL7gSSlRc v3bVytj/CKT5mj1WKkMtmHZygcn8Thm6Z7j+5vPDv4iv6s4MzOlRvTHQFYcXtcW7m6zx gIDvadSy3+EAF8WbSQZqSTVu4SN7CtlrJH+TCxHs9BUGLkhPLWKnXo9UEaVoPw/yPZCO 2hY6+cZf7rvemBSErN6mDWLQiSKuTsTs1XojQYhUqhkjQvqritNMpVVEP52rntTz7vqE L6gyQEIO0KpwVGkb/pe1Oead9ErL1xST0pgEjH2i9/AkDu3cTis7dbhiQlBApI0bEF8P Xyuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=lAxTY7RF; 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 12si22824769ilx.50.2021.04.07.04.55.56; Wed, 07 Apr 2021 04:56:32 -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=lAxTY7RF; 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 S244850AbhDFStA (ORCPT + 99 others); Tue, 6 Apr 2021 14:49:00 -0400 Received: from fllv0015.ext.ti.com ([198.47.19.141]:46552 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240728AbhDFSs7 (ORCPT ); Tue, 6 Apr 2021 14:48:59 -0400 Received: from fllv0035.itg.ti.com ([10.64.41.0]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 136ImVOO093015; Tue, 6 Apr 2021 13:48:31 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1617734911; bh=Q/jz6vulWvnwCL1uFn+Cr3yxMcztB0HWPUk2BbmlXmo=; h=Date:From:To:CC:Subject:References:In-Reply-To; b=lAxTY7RFfAR0NVtCLSY3XQLd1V0imGpedADxjGR/G91DG3p2fFZyeTLhaPSbtP9P3 3jITUgQURv3VcGougfG7sBrBYj4rH2nN1r67LXnTy6TzwoLp+bwqXReqnwJ3aJ8NYi 54jVyqyiUo7quqOhK/uQWKZOQrJB3Ist+YYugTcg= Received: from DLEE109.ent.ti.com (dlee109.ent.ti.com [157.170.170.41]) by fllv0035.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 136ImVUW071802 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 6 Apr 2021 13:48:31 -0500 Received: from DLEE110.ent.ti.com (157.170.170.21) by DLEE109.ent.ti.com (157.170.170.41) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2176.2; Tue, 6 Apr 2021 13:48:31 -0500 Received: from lelv0327.itg.ti.com (10.180.67.183) by DLEE110.ent.ti.com (157.170.170.21) 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; Tue, 6 Apr 2021 13:48:31 -0500 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by lelv0327.itg.ti.com (8.15.2/8.15.2) with ESMTP id 136ImUd1076720; Tue, 6 Apr 2021 13:48:31 -0500 Date: Wed, 7 Apr 2021 00:18:30 +0530 From: Pratyush Yadav To: Laurent Pinchart CC: Mauro Carvalho Chehab , Rob Herring , Kishon Vijay Abraham I , Vinod Koul , Peter Ujfalusi , Maxime Ripard , Benoit Parrot , Hans Verkuil , Alexandre Courbot , Stanimir Varbanov , Helen Koike , Michael Tretter , Peter Chen , Chunfeng Yun , , , , , , Vignesh Raghavendra , Tomi Valkeinen Subject: Re: [PATCH 15/16] dt-bindings: phy: cdns,dphy: make clocks optional Message-ID: <20210406184828.ftxrrnrrvbprrlom@ti.com> References: <20210330173348.30135-1-p.yadav@ti.com> <20210330173348.30135-16-p.yadav@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20171215 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/04/21 01:31PM, Laurent Pinchart wrote: > Hi Pratyush, > > Thank you for the patch. > > On Tue, Mar 30, 2021 at 11:03:47PM +0530, Pratyush Yadav wrote: > > The clocks are not used by the DPHY when used in Rx mode so make them > > optional. > > Isn't there a main functional clock (DPHY_RX_MAIN_CLK in the J721E TRM) > that is needed in RX mode ? That clock is different from the clocks being used in this binding. The "psm" clock is for the PMA state machine (the internal state machine for the DPHY). The divider for this clock should be set such that the resultant clock is as close to 1 MHz as possible. This can be done either by programming the register value or by setting the correct value on the psm_clock_freq pin. On J721E the pin already has the correct value so there is no need for setting it via the register. The other clock is "pll_ref" which is used to set the input clock divider. Setting this divider is part of the DPHY TX programming sequence but is not part of the RX programming sequence. I'm not sure what exactly the divider does but I think it is supposed to divide the clock from the input stream to the TX DPHY to make sure the internal state machine is running at the correct speed. Anyway, it is not needed on the RX side because for that there is another register used (see cdns_dphy_rx_get_band_ctrl() in patch 4). The DPHY_RX_MAIN_CLK does eventually get divided into the PSM clock but it is not used directly. > > > Signed-off-by: Pratyush Yadav > > --- > > Documentation/devicetree/bindings/phy/cdns,dphy.yaml | 2 -- > > 1 file changed, 2 deletions(-) > > > > diff --git a/Documentation/devicetree/bindings/phy/cdns,dphy.yaml b/Documentation/devicetree/bindings/phy/cdns,dphy.yaml > > index d1bbf96a8250..0807ba68284d 100644 > > --- a/Documentation/devicetree/bindings/phy/cdns,dphy.yaml > > +++ b/Documentation/devicetree/bindings/phy/cdns,dphy.yaml > > @@ -33,8 +33,6 @@ properties: > > required: > > - compatible > > - reg > > - - clocks > > - - clock-names > > - "#phy-cells" > > > > additionalProperties: false > > -- > Regards, > > Laurent Pinchart -- Regards, Pratyush Yadav Texas Instruments Inc.