From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.6 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,UNPARSEABLE_RELAY,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 85A5BC32771 for ; Sat, 4 Jan 2020 21:24:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 58A2324650 for ; Sat, 4 Jan 2020 21:24:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1578173076; bh=jwi2dj5IW+krgeYs+eGWPIKkZTbgLBpUUfqX7WKMmOA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=D0rD85TNtZ91Ct92RPlymstOfOOXoKALzAuDBVHfT2beF5tmWN9ERRBlea0cUazcy fL51q9KfIuHXVpWdj8PZlU9/9f/kUiJUhY1Ix7uk0iwwZ/tiNJM9FW1V7cb0mgThvQ /L53MKHYfFTC3dnmNNDhNt3KhXis4b3bxX6HMW6s= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726240AbgADVYf (ORCPT ); Sat, 4 Jan 2020 16:24:35 -0500 Received: from mail-il1-f195.google.com ([209.85.166.195]:37283 "EHLO mail-il1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726204AbgADVYf (ORCPT ); Sat, 4 Jan 2020 16:24:35 -0500 Received: by mail-il1-f195.google.com with SMTP id t8so39393887iln.4 for ; Sat, 04 Jan 2020 13:24:35 -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:user-agent; bh=3WyWVG0AV1etUHsC9L0mRRBH/xbmVRwK43x0QSdsR04=; b=A5qxjvwiCtgjYnUPCT/9ypF0o0lBXZhgVPh7IlYCEjxsEby1sRxY3jSa259orVCSIV HlYfLvcYXVQA+m42g6Hwbc/KlDThJryhhIONuE+OxL/coECEulZJst0Av30uoAtOlIh6 cN77PQjP19rltofdyB7WE7Syz5hH/c4JNnJ0DS+8Ri1cakIH67BfuH1DzOITBj1LBgk/ cHEtgQRXsB5RyuFaCeWjurQdlifjoC+49/0/lntlMuBLbsNCyHJ2kPrk0UKugU+p22jU oiKwI+iAGcgoIK9h2ThDAC5pMazHknU8WTxYc1gUdp+2kYyc/ICPLBENUUBYjv2w0Bft ZGMw== X-Gm-Message-State: APjAAAXJ4oZN0iD9HE3YX/j41LyPIsBa0AzA+JLCC3w4eXT0ZXCA7Bfi 02/VL+ASuUsVaDZW19PJp/Bjqxs= X-Google-Smtp-Source: APXvYqwGzhmNd3X1f9VjCbLGrOBh0somvDr7R/B/3kuFxeAq9vOovJlO2CClhNnz6HURle1Gwh64Hg== X-Received: by 2002:a92:d5c3:: with SMTP id d3mr80413200ilq.250.1578173074236; Sat, 04 Jan 2020 13:24:34 -0800 (PST) Received: from rob-hp-laptop ([64.188.179.251]) by smtp.gmail.com with ESMTPSA id f2sm4867715iok.20.2020.01.04.13.24.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 Jan 2020 13:24:33 -0800 (PST) Received: from rob (uid 1000) (envelope-from rob@rob-hp-laptop) id 2219a3 by rob-hp-laptop (DragonFly Mail Agent v0.11); Sat, 04 Jan 2020 14:24:32 -0700 Date: Sat, 4 Jan 2020 14:24:32 -0700 From: Rob Herring To: Jyri Sarha Cc: Yuti Amonkar , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kishon@ti.com, mark.rutland@arm.com, maxime@cerno.tech, tomi.valkeinen@ti.com, praneeth@ti.com, mparab@cadence.com, sjakhade@cadence.com Subject: Re: [PATCH v2 01/14] dt-bindings: phy: Convert Cadence MHDP PHY bindings to YAML. Message-ID: <20200104212432.GA2584@bogus> References: <1577114139-14984-1-git-send-email-yamonkar@cadence.com> <1577114139-14984-2-git-send-email-yamonkar@cadence.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org On Tue, Dec 31, 2019 at 02:24:07PM +0200, Jyri Sarha wrote: > On 23/12/2019 17:15, Yuti Amonkar wrote: > > - Convert the MHDP PHY devicetree bindings to yaml schemas. > > - Rename DP PHY to have generic Torrent PHY nomrnclature. > > - Rename compatible string from "cdns,dp-phy" to "cdns,torrent-phy". > > This will not affect ABI as the driver has never been functional, > > and therefore do not exist in any active use case > > > > Signed-off-by: Yuti Amonkar > > --- > > .../devicetree/bindings/phy/phy-cadence-dp.txt | 30 ---------- > > .../bindings/phy/phy-cadence-torrent.yaml | 64 ++++++++++++++++++++++ > > 2 files changed, 64 insertions(+), 30 deletions(-) > > delete mode 100644 Documentation/devicetree/bindings/phy/phy-cadence-dp.txt > > create mode 100644 Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml > > > > diff --git a/Documentation/devicetree/bindings/phy/phy-cadence-dp.txt b/Documentation/devicetree/bindings/phy/phy-cadence-dp.txt > > deleted file mode 100644 > > index 7f49fd54e..0000000 > > --- a/Documentation/devicetree/bindings/phy/phy-cadence-dp.txt > > +++ /dev/null > > @@ -1,30 +0,0 @@ > > -Cadence MHDP DisplayPort SD0801 PHY binding > > -=========================================== > > - > > -This binding describes the Cadence SD0801 PHY hardware included with > > -the Cadence MHDP DisplayPort controller. > > - > > -------------------------------------------------------------------------------- > > -Required properties (controller (parent) node): > > -- compatible : Should be "cdns,dp-phy" > > -- reg : Defines the following sets of registers in the parent > > - mhdp device: > > - - Offset of the DPTX PHY configuration registers > > - - Offset of the SD0801 PHY configuration registers > > -- #phy-cells : from the generic PHY bindings, must be 0. > > - > > -Optional properties: > > -- num_lanes : Number of DisplayPort lanes to use (1, 2 or 4) > > -- max_bit_rate : Maximum DisplayPort link bit rate to use, in Mbps (2160, > > - 2430, 2700, 3240, 4320, 5400 or 8100) > > -------------------------------------------------------------------------------- > > - > > -Example: > > - dp_phy: phy@f0fb030a00 { > > - compatible = "cdns,dp-phy"; > > - reg = <0xf0 0xfb030a00 0x0 0x00000040>, > > - <0xf0 0xfb500000 0x0 0x00100000>; > > - num_lanes = <4>; > > - max_bit_rate = <8100>; > > - #phy-cells = <0>; > > - }; > > diff --git a/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml > > new file mode 100644 > > index 0000000..3587312 > > --- /dev/null > > +++ b/Documentation/devicetree/bindings/phy/phy-cadence-torrent.yaml > > @@ -0,0 +1,64 @@ > > +%YAML 1.2 > > +--- > > +$id: "http://devicetree.org/schemas/phy/phy-cadence-torrent.yaml#" > > +$schema: "http://devicetree.org/meta-schemas/core.yaml#" > > + > > +title: Cadence Torrent SD0801 PHY binding for DisplayPort > > + > > +description: > > + This binding describes the Cadence SD0801 PHY hardware included with > > + the Cadence MHDP DisplayPort controller. > > + > > +maintainers: > > + - Swapnil Jakhade > > + - Yuti Amonkar > > + > > +properties: > > + compatible: > > + const: cdns,torrent-phy > > + > > + reg: > > + items: > > + - description: Offset of the DPTX PHY configuration registers. > > Isn't it possible to use torrent-phy in a configuration that does not > have dptx? Shouldn't the "dptx_phy" reg entry be optional? > > BTW, I have no idea how to indicate in a yaml binding that some named > reg-entry is mandatory, and another is optional... anybody? Or is it > just something to explain in the description? If it is the last entry (which is preferred), then you just need a 'minItems: 1' in here. If it is the first entry which is the case here, then you need 2 entries under a oneOf: oneOf: - items: - description: Offset of the SD0801 PHY configuration registers. - items: - description: Offset of the DPTX PHY configuration registers. - description: Offset of the SD0801 PHY configuration registers. Otherwise, the schema looks fine to me. Rob