Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp778039ybg; Wed, 10 Jun 2020 13:29:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjSAysJlr17W+B2MJStCrdB5bk3Rjdsj+6UjZYJVFkTGHn4K36U+tbNbJx9Fx4bfpXwLEI X-Received: by 2002:a05:6402:1481:: with SMTP id e1mr4077358edv.113.1591820977895; Wed, 10 Jun 2020 13:29:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591820977; cv=none; d=google.com; s=arc-20160816; b=OJye1rGhFbuEXf4UFt+yMeseRC63gG+S+OdaTud+PzOgE6bFVFDZarsDC3/ttczYZF iquJeoI93LIrzBcKv7y2tTQ+u1swWDrhpN4Jfsk7M5kUnFLmv9XDLEFRXalfxpJdQ7rN YTANL0wmkteiCspLvlaOiTcBpwpf8R91S9Cw2FWuQk4eDEAz9wUsDi/SmkWIkQMV6YGi WbyiFDLbucdHMvEBT0GgEzLSheYA5ezXhLt0TYXGf6G+nxUUdtdVAA3kBtVRGDayru9S KFU2B6DLcZ4QoTm8YKem/hf5I4TTy1U6wbM/jt58f71mtKy/0F74Sr3DK49qUg2d3tMW 6Qww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=dLb7+PK/r7ZuXzs/JmtPoYfJOAKaZP0F2k4snoGnWsU=; b=QrZKQgZAWYmNFy96VYbSPfGc/E0ZJoBOtJ9cdWZLZzZzZGTnaYImRK/eweLjy55BcJ tKj1BGCwzQS6AeMFyIsGOncOkvqF4WJfpxo0argLYcKyn3Er0BwqrMcm7G1h7/mC4bdU eh2Us3Gqu1trY44gK2vnoAGCziOZsnRlfcr2/S5WZPINpgGksnicWJ7INWwQWsUwhZB+ 3rg+e6XX1TOwLi6ElLXTKZbkvmozxtXPiTQsBCILy0/F8vcBhXWhNts7rXENfMJONyjS 4HkT0z+IwQvga2AHe1/LfN0N8N2BbGj/IbRE+Ja15/8FXNS7qrh+bFt67JiaB01o7cX5 Oa7w== 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 d15si665859ejt.482.2020.06.10.13.29.15; Wed, 10 Jun 2020 13:29:37 -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; 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 S1726419AbgFJU0m (ORCPT + 99 others); Wed, 10 Jun 2020 16:26:42 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:37607 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726207AbgFJU0m (ORCPT ); Wed, 10 Jun 2020 16:26:42 -0400 Received: by mail-io1-f67.google.com with SMTP id r2so3838750ioo.4; Wed, 10 Jun 2020 13:26:40 -0700 (PDT) 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=dLb7+PK/r7ZuXzs/JmtPoYfJOAKaZP0F2k4snoGnWsU=; b=k+c8qYuPb25cGW4peDqRuSLPhG8c1ugseYt1knsjVyCpHHAohFnoUXXVSrrss+/KhJ klBbGFksueffg1H7P/KlWzFkA2bpjR3wW+TDdqnPpWKan+6PtHeHGrdicSdwH/h1Jrhx 934o3wdOZ9Pq7gP2xETitp1p2QCZwbeSbDMaI6aNkN4yteo05tYT2JTfRKOpifBMdyGd /LYtB+Kf9UUyjuq7pGqPCuHufIoWewysa+bq5oBYDofbk4uWfA/0YFunBMaeA7wsECX6 0fIrF5HHErTZjiRnRAJaMTp/4e4YuCbvnaq28vfRruFqcK6XagC/Zyli2QqnqmHOOmQz ve8w== X-Gm-Message-State: AOAM531ISWY+AFZqD5yIVlV5XDUIXezVHaQZ+ZeHHMeT9P2CKjGGlZzj aXmr0bQOIID9VV4LlcEAKw== X-Received: by 2002:a6b:ab82:: with SMTP id u124mr3783659ioe.137.1591820800305; Wed, 10 Jun 2020 13:26:40 -0700 (PDT) Received: from xps15 ([64.188.179.251]) by smtp.gmail.com with ESMTPSA id y12sm414686ili.83.2020.06.10.13.26.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Jun 2020 13:26:39 -0700 (PDT) Received: (nullmailer pid 3654596 invoked by uid 1000); Wed, 10 Jun 2020 20:26:38 -0000 Date: Wed, 10 Jun 2020 14:26:38 -0600 From: Rob Herring To: Ansuel Smith Cc: Bjorn Andersson , Andy Gross , Kishon Vijay Abraham I , Mark Rutland , linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org Subject: Re: [PATCH v6 2/2] devicetree: bindings: phy: Document ipq806x dwc3 qcom phy Message-ID: <20200610202638.GA3649967@bogus> References: <20200603132237.6036-1-ansuelsmth@gmail.com> <20200603132237.6036-2-ansuelsmth@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200603132237.6036-2-ansuelsmth@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jun 03, 2020 at 03:22:35PM +0200, Ansuel Smith wrote: > Document dwc3 qcom phy hs and ss phy bindings needed to correctly > inizialize and use usb on ipq806x SoC. > > Signed-off-by: Ansuel Smith > --- > v6: > * Add maximum value > v5: > * Fix dt_binding_check error > v4: > * Add qcom to specific bindings > v3: > * Use explicit reg instead of regmap > > .../bindings/phy/qcom,ipq806x-usb-phy-hs.yaml | 58 ++++++++++++++ > .../bindings/phy/qcom,ipq806x-usb-phy-ss.yaml | 76 +++++++++++++++++++ > 2 files changed, 134 insertions(+) > create mode 100644 Documentation/devicetree/bindings/phy/qcom,ipq806x-usb-phy-hs.yaml > create mode 100644 Documentation/devicetree/bindings/phy/qcom,ipq806x-usb-phy-ss.yaml > > diff --git a/Documentation/devicetree/bindings/phy/qcom,ipq806x-usb-phy-hs.yaml b/Documentation/devicetree/bindings/phy/qcom,ipq806x-usb-phy-hs.yaml > new file mode 100644 > index 000000000000..c019de7478e3 > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/qcom,ipq806x-usb-phy-hs.yaml > @@ -0,0 +1,58 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/phy/qcom,ipq806x-usb-phy-hs.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm ipq806x usb DWC3 HS PHY CONTROLLER > + > +maintainers: > + - Ansuel Smith > + > +description: > + DWC3 PHY nodes are defined to describe on-chip Synopsis Physical layer > + controllers used in ipq806x. Each DWC3 PHY controller should have its > + own node. > + > +properties: > + compatible: > + const: qcom,ipq806x-usb-phy-hs > + > + "#phy-cells": > + const: 0 > + > + reg: > + maxItems: 1 > + > + clocks: > + minItems: 1 > + maxItems: 2 > + > + clock-names: > + minItems: 1 > + maxItems: 2 > + description: | > + - "ref" Is required > + - "xo" Optional external reference clock This is just saying what the schema says. Drop it. > + items: > + - const: ref > + - const: xo > + > +required: > + - compatible > + - "#phy-cells" > + - reg > + - clocks > + - clock-names > + > +examples: > + - | > + #include > + > + hs_phy_0: phy@110f8800 { > + compatible = "qcom,ipq806x-usb-phy-hs"; > + reg = <0x110f8800 0x30>; > + clocks = <&gcc USB30_0_UTMI_CLK>; > + clock-names = "ref"; > + #phy-cells = <0>; > + }; > diff --git a/Documentation/devicetree/bindings/phy/qcom,ipq806x-usb-phy-ss.yaml b/Documentation/devicetree/bindings/phy/qcom,ipq806x-usb-phy-ss.yaml > new file mode 100644 > index 000000000000..3696a8d7a5c7 > --- /dev/null > +++ b/Documentation/devicetree/bindings/phy/qcom,ipq806x-usb-phy-ss.yaml > @@ -0,0 +1,76 @@ > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > +%YAML 1.2 > +--- > +$id: http://devicetree.org/schemas/phy/qcom,ipq806x-usb-phy-ss.yaml# > +$schema: http://devicetree.org/meta-schemas/core.yaml# > + > +title: Qualcomm ipq806x usb DWC3 SS PHY CONTROLLER > + > +maintainers: > + - Ansuel Smith > + > +description: > + DWC3 PHY nodes are defined to describe on-chip Synopsis Physical layer > + controllers used in ipq806x. Each DWC3 PHY controller should have its > + own node. > + > +properties: > + compatible: > + const: qcom,ipq806x-usb-phy-ss > + > + "#phy-cells": > + const: 0 > + > + reg: > + maxItems: 1 > + > + clocks: > + minItems: 1 > + maxItems: 2 > + > + clock-names: > + minItems: 1 > + maxItems: 2 > + items: > + - const: ref > + - const: xo > + > + qcom,rx-eq: > + description: Override value for rx_eq. > + default: 4 > + maximum: 7 > + allOf: You can drop 'allOf' now and just do $ref directly. > + - $ref: /schemas/types.yaml#/definitions/uint32 > + > + qcom,tx-deamp-3_5db: > + description: Override value for transmit preemphasis. > + default: 23 > + maximum: 63 > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 > + > + qcom,mpll: > + description: Override value for mpll. > + default: 0 > + maximum: 7 > + allOf: > + - $ref: /schemas/types.yaml#/definitions/uint32 > + > +required: > + - compatible > + - "#phy-cells" > + - reg > + - clocks > + - clock-names > + > +examples: > + - | > + #include > + > + ss_phy_0: phy@110f8830 { > + compatible = "qcom,ipq806x-usb-phy-ss"; > + reg = <0x110f8830 0x30>; > + clocks = <&gcc USB30_0_MASTER_CLK>; > + clock-names = "ref"; > + #phy-cells = <0>; > + }; > -- > 2.25.1 >