Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp681875pxb; Thu, 5 Nov 2020 10:07:22 -0800 (PST) X-Google-Smtp-Source: ABdhPJytS3DmXIdN0UzS12FBq5EhO/qnj5vLYcGMrKb/bMcpBmHvv16Cfc9Xk35ulS/hCQywBFuS X-Received: by 2002:a17:906:cc8c:: with SMTP id oq12mr3652157ejb.177.1604599642061; Thu, 05 Nov 2020 10:07:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604599642; cv=none; d=google.com; s=arc-20160816; b=aXtgH9HhpK2ZbBi68Y0BBX6+2XTcaAn0IiCcgW+a3bg+7+bh1bHXNYAFSC+/6pJToA HEHptw6uRzW8bR66Ij44h+vtvMIm13kO7G+UNtX5VYzESAhND4crQHby8PP8/64Msz5C qqjpG4HcaArsWihlp+d7f+Ja8AR/+2BvA5SFIp8eJBrlPiTtFXeqT6jbPwOer4ftcjjJ AwCdTFewGE9QGZaQGYNjIlSac+8dnXU4pYQHS6Wt4rxBoyQM+cA7El23uPPXIJJsx18I uIIfml8EP/bij75UoIrBG8e84O6ec7T9o6xoPHeatDSqxJAs25OxOC+LUj98M5RoZvzt Lucw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=oXCLaf3/tmMtFdlKf8NOILXkQGvPX5Ww/dhrD3bunx0=; b=z/MInWDj3Uwngc0fOpDWh5M+2eVatoR4yHTywHkRodsHavYr9Kb7SEn57xoOF/7rMk sTcZfYqYxBaXjCuAYLeP7lWYK4NpjRBAU3JFJhJ/bpaOyCLhfWB/dnN3vRmgMjhmpiyL 9xX4O+JqfeD+C3LOQheMigMjsH5KzO0agmqeyqt4J8R/YMs486N2T3S7oNZkool6elSU Ctz+uYwF20M3S8+AKyzGE2feBlVJ9uCw8ZTWsUxsW9Fo+uXaWWIDHLZQFe9WA6YPBY9W kPjXH+HjOebuEsQ1rdByI6Vv4DUt4HpvYeHulOSbcyzIGBhvomGarbmLbKU+QOdQ40I/ oXjg== ARC-Authentication-Results: i=1; mx.google.com; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k7si1752561edr.388.2020.11.05.10.06.58; Thu, 05 Nov 2020 10:07:22 -0800 (PST) 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; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731965AbgKESDM (ORCPT + 99 others); Thu, 5 Nov 2020 13:03:12 -0500 Received: from mail-ot1-f67.google.com ([209.85.210.67]:39857 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727275AbgKESDL (ORCPT ); Thu, 5 Nov 2020 13:03:11 -0500 Received: by mail-ot1-f67.google.com with SMTP id z16so2255107otq.6; Thu, 05 Nov 2020 10:03:10 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=oXCLaf3/tmMtFdlKf8NOILXkQGvPX5Ww/dhrD3bunx0=; b=hbJFlDxDKp3tZkqlM/lgoBzZlAsilWypmvSXTC7S2Kg5mvqmlU/975FY4VhkjUEssa vCoVIh0apk936hSBdhSOysKerF9kbGhiFXZLye+tfQInckZN4pndOrePcMBKKT6Hc00N r2rTMknUx2ElBgGxpK4vT2iN4Rs1erc9wnDKX1D2bSX66kHTdE9SQYs3Xy0Q0nXcOgkd 3/XLrJzmupsf0J9VY5sELJX+f52g0VOhHXheuuNp71b+thJpXX+iJfZzCOxrmO17udp+ x+hBP0+9TzQY41h9mTngTF/ewOFRQHehGP78COtFOhpnzSUAcHMSkqvR7AWsVQn9/BCO zMBg== X-Gm-Message-State: AOAM532MWORwFGVWw47HbW1ODvi9iZRwBVU0a/K62ExT297D3zzwRUG+ vqKqC4C8moYkuMPH5W1PAQ== X-Received: by 2002:a9d:27c9:: with SMTP id c67mr2000532otb.301.1604599389632; Thu, 05 Nov 2020 10:03:09 -0800 (PST) Received: from xps15 (24-155-109-49.dyn.grandenetworks.net. [24.155.109.49]) by smtp.gmail.com with ESMTPSA id g8sm526867oia.16.2020.11.05.10.03.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 05 Nov 2020 10:03:09 -0800 (PST) Received: (nullmailer pid 1560661 invoked by uid 1000); Thu, 05 Nov 2020 18:03:08 -0000 Date: Thu, 5 Nov 2020 12:03:08 -0600 From: Rob Herring To: Kishon Vijay Abraham I Cc: Vinod Koul , Philipp Zabel , Swapnil Kashinath Jakhade , Milind Parab , Yuti Suresh Amonkar , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH 1/9] dt-bindings: phy: cadence-sierra: Add bindings for the PLLs within SERDES Message-ID: <20201105180308.GA1540220@bogus> References: <20201103035556.21260-1-kishon@ti.com> <20201103035556.21260-2-kishon@ti.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201103035556.21260-2-kishon@ti.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Nov 03, 2020 at 09:25:48AM +0530, Kishon Vijay Abraham I wrote: > Add binding for the PLLs within SERDES. > > Signed-off-by: Kishon Vijay Abraham I > --- > .../bindings/phy/phy-cadence-sierra.yaml | 89 ++++++++++++++++++- > 1 file changed, 86 insertions(+), 3 deletions(-) > > diff --git a/Documentation/devicetree/bindings/phy/phy-cadence-sierra.yaml b/Documentation/devicetree/bindings/phy/phy-cadence-sierra.yaml > index d210843863df..f574b8ed358c 100644 > --- a/Documentation/devicetree/bindings/phy/phy-cadence-sierra.yaml > +++ b/Documentation/devicetree/bindings/phy/phy-cadence-sierra.yaml > @@ -49,12 +49,14 @@ properties: > const: serdes > > clocks: > - maxItems: 2 > + maxItems: 4 > > clock-names: > items: > - const: cmn_refclk_dig_div > - const: cmn_refclk1_dig_div > + - const: pll_cmnlc > + - const: pll_cmnlc1 > > cdns,autoconf: > type: boolean > @@ -107,6 +109,58 @@ patternProperties: > > additionalProperties: false > > + "^refrcv1?$": > + type: object > + description: | > + Reference receivers that enables routing external clocks to the alternate > + PLLCMNLC. > + properties: > + clocks: > + maxItems: 1 > + description: Phandle to clock nodes representing the input to the > + reference receiver. > + > + clock-names: > + items: > + - const: pll_refclk > + > + "#clock-cells": > + const: 0 > + > + required: > + - clocks > + - "#clock-cells" > + > + "^pll_cmnlc1?$": > + type: object > + description: | > + SERDES node should have subnodes for each of the PLLs present in > + the SERDES. > + properties: > + clocks: > + maxItems: 2 > + description: Phandle to clock nodes representing the two inputs to PLL. > + > + clock-names: > + items: > + - const: pll_refclk > + - const: refrcv > + > + "#clock-cells": > + const: 0 > + > + assigned-clocks: > + maxItems: 1 > + > + assigned-clock-parents: > + maxItems: 1 > + > + required: > + - clocks > + - "#clock-cells" > + - assigned-clocks > + - assigned-clock-parents > + > required: > - compatible > - "#address-cells" > @@ -130,10 +184,39 @@ examples: > reg = <0x0 0xfd240000 0x0 0x40000>; > resets = <&phyrst 0>, <&phyrst 1>; > reset-names = "sierra_reset", "sierra_apb"; > - clocks = <&cmn_refclk_dig_div>, <&cmn_refclk1_dig_div>; > - clock-names = "cmn_refclk_dig_div", "cmn_refclk1_dig_div"; > + clocks = <&cmn_refclk_dig_div>, <&cmn_refclk1_dig_div>, <&serdes_pll_cmnlc>, <&serdes_pll_cmnlc1>; > + clock-names = "cmn_refclk_dig_div", "cmn_refclk1_dig_div", "pll_cmnlc", "pll_cmnlc1"; > #address-cells = <1>; > #size-cells = <0>; > + > + serdes_refrcv: refrcv { > + clocks = <&pll0_refclk>; > + clock-names = "pll_refclk"; > + #clock-cells = <0>; > + }; > + > + serdes_refrcv1: refrcv1 { > + clocks = <&pll1_refclk>; > + clock-names = "pll_refclk"; > + #clock-cells = <0>; > + }; > + > + serdes_pll_cmnlc: pll_cmnlc { > + clocks = <&pll0_refclk>, <&serdes_refrcv1>; > + clock-names = "pll_refclk", "refrcv"; > + #clock-cells = <0>; > + assigned-clocks = <&serdes_pll_cmnlc>; Isn't assigned-clocks supposed to be one of the clocks in 'clocks'? > + assigned-clock-parents = <&pll0_refclk>; And this should not be a clock in 'clocks'... More generally, why do we need to expose all these details in DT? Rob