Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp704367ybz; Wed, 15 Apr 2020 17:06:28 -0700 (PDT) X-Google-Smtp-Source: APiQypKbWFCikhZHRXphr8lsphY67SFidEP3hbv6jnnxaBZ2IvEqit1ebafZ5T/ERfR/6IbP4hRD X-Received: by 2002:a17:906:400a:: with SMTP id v10mr7078819ejj.300.1586995587787; Wed, 15 Apr 2020 17:06:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586995587; cv=none; d=google.com; s=arc-20160816; b=wANJjQffClPThim6QpKAD4OFa8w8qNrXC32tlbsVAlHHwBZcYVsRzZXfDTMJZAAXPP uEwt4PgalD4Ul6j/fKheB+AGrkQ55Ie+J906otQPUquB4WXLH4mK6T0x/tqlk+2I8MOA W6e2N85MVZrZCC/6X+rJfmx6ccwFGikroD88JAkNnGdEl10x+PyHGzBCTccyNo9HQIil vG6NjhFTJJNCHnWLSicT0TrL8Wxm32M5YPcy+J//fyrOguH5/u5Kw3jASO+prXm7yWLp smhVew2wVHbnrcHZnu1MYtIIw47xdHIa0iF/QBS2aymUYQ1AjYO2UHo1muSJa7BeMDXh RUuA== 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=0uBWv5RpTR6v6RdvLAyXKWal/9BoEsHsE6M1+hHT9Ps=; b=al6w5wEUndqxresk+9n8nsI825qoAi1BIxR9ugMpGh4cZ1sOt1Sa5DqgbXbIeGi737 k52R9BtZQafM08+B4N8NmzWifySiKBMVVYg2kjTO8c3vsYrwKuHdnpPqZ9fLqg+XqxwT tJYZXv80C53MEgtdgDQOZqwnJqygPwejS8jCh/YNulN8/wAGjN7CokvzPWN624HXYRZY uyZ32d3ahhPM4XifFvupc2BREiRiO6wXGzOPGupNWWjUqpBi+PIj/l2hPXRagn0GghOR Jpcccc5pmOmNv8PdQc7Ng5vimq2igMdPj9s8KizhkuhiIE+0hOLiR+uIUL4f1kqjzYiV 24CQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ahglTXwg; 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 p17si6597702ejd.260.2020.04.15.17.06.04; Wed, 15 Apr 2020 17:06:27 -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=@kernel.org header.s=default header.b=ahglTXwg; 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 S2636312AbgDONya (ORCPT + 99 others); Wed, 15 Apr 2020 09:54:30 -0400 Received: from mail.kernel.org ([198.145.29.99]:41648 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2636302AbgDONyS (ORCPT ); Wed, 15 Apr 2020 09:54:18 -0400 Received: from mail-qt1-f172.google.com (mail-qt1-f172.google.com [209.85.160.172]) (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 F28F020857; Wed, 15 Apr 2020 13:54:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1586958857; bh=B15MaIVrWewq/916Cap1EesX1id/d+R6e9kbZ3N8wiQ=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=ahglTXwgdwXbfVZcOtNDx1KsOOau6yffgj9Ih4cOkgwpTOrX6P2BqHNUuEFbN3D6O cz/UpstDmxXC01/8iUOi130PdlpRtglOr1msICrVlCTAeRYNZF4ynxNf7Y70si0NH9 PIba5HxCfXgGfkb3kepnhfJp+Xp2FxifyyJBkdiE= Received: by mail-qt1-f172.google.com with SMTP id w29so12806665qtv.3; Wed, 15 Apr 2020 06:54:16 -0700 (PDT) X-Gm-Message-State: AGi0Puav4lMPZxenCWTac/sq/rgfxBTtaAeIlkGVSbOGPomDzE3KB0IS A8AZ8C0ZBvOYPaca7AkTELtYjCxTf5Qmatgiyw== X-Received: by 2002:ac8:7cba:: with SMTP id z26mr11595071qtv.143.1586958855988; Wed, 15 Apr 2020 06:54:15 -0700 (PDT) MIME-Version: 1.0 References: <20200403002608.946-1-ansuelsmth@gmail.com> <20200403002608.946-2-ansuelsmth@gmail.com> <20200414173838.GA29176@bogus> <00bb01d61321$05bf9b20$113ed160$@gmail.com> In-Reply-To: <00bb01d61321$05bf9b20$113ed160$@gmail.com> From: Rob Herring Date: Wed, 15 Apr 2020 08:54:04 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH 2/2] devicetree: bindings: phy: Document dwc3 qcom phy To: Ansuel Smith Cc: Andy Gross , Bjorn Andersson , Kishon Vijay Abraham I , Mark Rutland , linux-arm-msm , "linux-kernel@vger.kernel.org" , devicetree@vger.kernel.org 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 Wed, Apr 15, 2020 at 7:26 AM wrote: > > > On Fri, Apr 03, 2020 at 02:26:05AM +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 > > > --- > > > .../bindings/phy/qcom,dwc3-hs-usb-phy.yaml | 65 > > +++++++++++++++++++ > > > .../bindings/phy/qcom,dwc3-ss-usb-phy.yaml | 65 > > +++++++++++++++++++ > > > 2 files changed, 130 insertions(+) > > > create mode 100644 > > Documentation/devicetree/bindings/phy/qcom,dwc3-hs-usb-phy.yaml > > > create mode 100644 > > Documentation/devicetree/bindings/phy/qcom,dwc3-ss-usb-phy.yaml > > > > > > diff --git a/Documentation/devicetree/bindings/phy/qcom,dwc3-hs-usb- > > phy.yaml b/Documentation/devicetree/bindings/phy/qcom,dwc3-hs-usb- > > phy.yaml > > > new file mode 100644 > > > index 000000000000..0bb59e3c2ab8 > > > --- /dev/null > > > +++ b/Documentation/devicetree/bindings/phy/qcom,dwc3-hs-usb- > > phy.yaml > > > @@ -0,0 +1,65 @@ > > > +# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause > > > +%YAML 1.2 > > > +--- > > > +$id: http://devicetree.org/schemas/phy/qcom,dwc3-hs-usb-phy.yaml# > > > +$schema: http://devicetree.org/meta-schemas/core.yaml# > > > + > > > +title: Qualcomm DWC3 HS PHY CONTROLLER > > > + > > > +maintainers: > > > + - Ansuel Smith > > > + > > > +description: > > > + DWC3 PHY nodes are defined to describe on-chip Synopsis Physical > > layer > > > + controllers. Each DWC3 PHY controller should have its own node. > > > + > > > +properties: > > > + compatible: > > > + const: qcom,dwc3-hs-usb-phy > > > + > > > + "#phy-cells": > > > + const: 0 > > > + > > > + regmap: > > > + maxItems: 1 > > > + description: phandle to usb3 dts definition > > > + > > > + clocks: > > > + minItems: 1 > > > + maxItems: 2 > > > + > > > + clock-names: > > > + minItems: 1 > > > + maxItems: 2 > > > + description: | > > > + - "ref" Is required > > > + - "xo" Optional external reference clock > > > + items: > > > + - const: ref > > > + - const: xo > > > + > > > +required: > > > + - compatible > > > + - "#phy-cells" > > > + - regmap > > > + - clocks > > > + - clock-names > > > + > > > +examples: > > > + - | > > > + #include > > > + > > > + hs_phy_0: hs_phy_0 { > > > + compatible = "qcom,dwc3-hs-usb-phy"; > > > + regmap = <&usb3_0>; > > > > If the registers for the phy are part of 'qcom,dwc3' then make this node > > a child of it. > > > > Making this node a child of qcom,dwc3 cause malfunction of the driver. Fix the driver then. Rob