Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp4228631ybl; Mon, 13 Jan 2020 10:00:25 -0800 (PST) X-Google-Smtp-Source: APXvYqznIBPL9FkkPOZm8eIx0CRb6YO809ZCPrxs0GgeUN1YMVYo+4AdN7lrMQgRuMPrOM7fKp6W X-Received: by 2002:a05:6830:2057:: with SMTP id f23mr14443483otp.110.1578938425646; Mon, 13 Jan 2020 10:00:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578938425; cv=none; d=google.com; s=arc-20160816; b=GlpvbbViQpHm09ZlSJyHGeAKKlCoHVVmwLM+zNR55b5sJglEYJtbJt8C+agmJI5iKM xwGpzHxoQ9//vjEYRpNPs8EN7sH7n39lXk179vRMfU90UJ8LJUHy4BP+LSWo/4LFVRQt fBPayaanRbhp6edTZTmrQcgJx8gl5vpFk5wsnBWP81QKD7kJlrgBHMcxxJ/6hV3KNv/X Rb3bislMc+IRAowK6NKlSRpttPVvqkD00CDVJA/BSBymtFjbRuewpCEh1svD12T17y4g Kyx+R0JFVBhjIswcaL7DUCBZAP0/EiAinLiJ2EzhTrmJq5Fbk0ud2xyZ2zf7AjaPICoe L+NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=j+5SzEBM8aFwj3h9+xLNsxFEaQuMZAqeuPMaaSr2eTw=; b=o+Fn5eU2RQEBcCGJ962ZoDfRpH7ZbSJ2kOqzTvDbD3ayU5b8vkO2ibB84HrhfiCRL1 HXkzKfLns0IXYxcMTpJO5BICxbo83+BD+G+tM9dFFIOVf0gTUnjzMVMP5Pazxy/X2Lb5 64GVg7oBbxZT2NaOZhX9eXkY7JDhXTaWqtl6Td0WxZuY9G97zpnP2gpQT7QrOQHOCOO3 12F5xtBNma1n30s+EAAf3xNjWOPD1Oj6LjY5UjMu3iGzTaNIEIAz+HmH8h8ifmbOh+VT wH8DSh+xduLE4svKXtRH5ebw5nUcEU8mbSY4Uc3FRrZMj7rc5YmHnUg26h86xw0nClnx ftWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TVamThhN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id w7si7025422otq.250.2020.01.13.10.00.12; Mon, 13 Jan 2020 10:00:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=TVamThhN; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728656AbgAMR7T (ORCPT + 99 others); Mon, 13 Jan 2020 12:59:19 -0500 Received: from mail.kernel.org ([198.145.29.99]:54122 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726435AbgAMR7T (ORCPT ); Mon, 13 Jan 2020 12:59:19 -0500 Received: from mail-qv1-f45.google.com (mail-qv1-f45.google.com [209.85.219.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2E9A321744; Mon, 13 Jan 2020 17:59:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578938358; bh=BvVwQDaXG7nwaYX7s05ct6eQ4sajxiQAfTIqBPjSazQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=TVamThhNpcOiouQ5EIgoTET4yaCryoc6Pao2h9UlS71C5yf1A+vYIZtyeIHNbHr+i ta/vR8+ga5cMTvxvM+Vg6JP5QpDwFZXGzXLuGw/l/e7ogDwkhmE1FFxF24YFj53zkO 9HWJvIe5Sm2rqowNSujmvVhaRUa7DB6yBtPOGR+0= Received: by mail-qv1-f45.google.com with SMTP id p2so4396027qvo.10; Mon, 13 Jan 2020 09:59:18 -0800 (PST) X-Gm-Message-State: APjAAAX1Rejcsrk1NRhudNDHzKFlmqdItSqifz6Byu2MM8dKGjqkOrAR WlOG+g68eKci8saDzeFBwocSOdjIogIwSA7kww== X-Received: by 2002:ad4:450a:: with SMTP id k10mr15796764qvu.136.1578938357304; Mon, 13 Jan 2020 09:59:17 -0800 (PST) MIME-Version: 1.0 References: <20191216095712.13266-14-kishon@ti.com> <20200102095631.1165-1-kishon@ti.com> In-Reply-To: <20200102095631.1165-1-kishon@ti.com> From: Rob Herring Date: Mon, 13 Jan 2020 11:59:06 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v5 13/14] dt-bindings: phy: Document WIZ (SERDES wrapper) bindings To: Kishon Vijay Abraham I Cc: Swapnil Kashinath Jakhade , Roger Quadros , Jyri Sarha , devicetree@vger.kernel.org, "linux-kernel@vger.kernel.org" , "moderated list:ARM/FREESCALE IMX / MXC ARM ARCHITECTURE" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 2, 2020 at 3:54 AM Kishon Vijay Abraham I wrote: > > Add DT binding documentation for WIZ (SERDES wrapper). WIZ is *NOT* a > PHY but a wrapper used to configure some of the input signals to the > SERDES. It is used with both Sierra(16G) and Torrent(10G) serdes. > > Signed-off-by: Kishon Vijay Abraham I > [jsarha@ti.com: Add separate compatible for Sierra(16G) and Torrent(10G) > SERDES] > Signed-off-by: Jyri Sarha > --- > Changes from v4: > *) Fixed the indentation as suggested by Rob v4 > > .../bindings/phy/ti,phy-j721e-wiz.yaml | 204 ++++++++++++++++++ > 1 file changed, 204 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml > > diff --git a/Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml b/Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml > new file mode 100644 > index 000000000000..e010ea46b88d > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.yaml > @@ -0,0 +1,204 @@ > +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) > +# Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com/ > +%YAML 1.2 > +--- > +$id: "http://devicetree.org/schemas/phy/ti,phy-j721e-wiz.yaml#" > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > + > +title: TI J721E WIZ (SERDES Wrapper) > + > +maintainers: > + - Kishon Vijay Abraham I > + > +properties: > + compatible: > + enum: > + - ti,j721e-wiz-16g > + - ti,j721e-wiz-10g > + > + power-domains: > + maxItems: 1 > + > + clocks: > + maxItems: 3 > + description: clock-specifier to represent input to the WIZ > + > + clock-names: > + items: > + - const: fck > + - const: core_ref_clk > + - const: ext_ref_clk > + > + num-lanes: > + minimum: 1 > + maximum: 4 > + > + "#address-cells": > + const: 1 > + > + "#size-cells": > + const: 1 > + > + "#reset-cells": > + const: 1 > + > + ranges: true > + > + assigned-clocks: > + maxItems: 2 > + > + assigned-clock-parents: > + maxItems: 2 > + > +patternProperties: > + "^pll[0|1]-refclk$": > + type: object > + description: | > + WIZ 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-cells": > + const: 0 > + > + assigned-clocks: > + maxItems: 1 > + > + assigned-clock-parents: > + maxItems: 1 > + > + required: > + - clocks > + - "#clock-cells" > + - assigned-clocks > + - assigned-clock-parents > + > + "^cmn-refclk1?-dig-div$": > + type: object > + description: > + WIZ node should have subnodes for each of the PMA common refclock > + provided by the SERDES. > + properties: > + clocks: > + maxItems: 1 > + description: Phandle to the clock node representing the input to the > + divider clock. > + > + "#clock-cells": > + const: 0 > + > + required: > + - clocks > + - "#clock-cells" > + > + "^refclk-dig$": > + type: object > + description: | > + WIZ node should have subnode for refclk_dig to select the reference > + clock source for the reference clock used in the PHY and PMA digital > + logic. > + properties: > + clocks: > + maxItems: 4 > + description: Phandle to four clock nodes representing the inputs to > + refclk_dig > + > + "#clock-cells": > + const: 0 > + > + assigned-clocks: > + maxItems: 1 > + > + assigned-clock-parents: > + maxItems: 1 > + > + required: > + - clocks > + - "#clock-cells" > + - assigned-clocks > + - assigned-clock-parents > + > + "^serdes@[0-9a-f]+$": > + type: object > + description: | > + WIZ node should have '1' subnode for the SERDES. It could be either > + Sierra SERDES or Torrent SERDES. Sierra SERDES should follow the > + bindings specified in > + Documentation/devicetree/bindings/phy/phy-cadence-sierra.txt > + Torrent SERDES should follow the bindings specified in > + Documentation/devicetree/bindings/phy/phy-cadence-dp.txt > + > +required: > + - compatible > + - power-domains > + - clocks > + - clock-names > + - num-lanes > + - "#address-cells" > + - "#size-cells" > + - "#reset-cells" > + - ranges > + > +examples: > + - | > + #include > + > + wiz@5000000 { > + compatible = "ti,j721e-wiz-16g"; > + #address-cells = <1>; > + #size-cells = <1>; > + power-domains = <&k3_pds 292 TI_SCI_PD_EXCLUSIVE>; > + clocks = <&k3_clks 292 5>, <&k3_clks 292 11>, <&dummy_cmn_refclk>; > + clock-names = "fck", "core_ref_clk", "ext_ref_clk"; > + assigned-clocks = <&k3_clks 292 11>, <&k3_clks 292 0>; > + assigned-clock-parents = <&k3_clks 292 15>, <&k3_clks 292 4>; > + num-lanes = <2>; > + #reset-cells = <1>; > + ranges = <0x5000000 0x0 0x5000000 0x10000>; This fails in linux-next: Documentation/devicetree/bindings/phy/ti,phy-j721e-wiz.example.dts:30.16-59: Warning (ranges_format): /example-0/wiz@50 00000:ranges: "ranges" property has invalid length (16 bytes) (parent #address-cells == 1, child #address-cells == 1, # size-cells == 1) Please fix. Rob