From: Matthias Kaehlcke <mka@chromium.org>
To: Stephen Boyd <swboyd@chromium.org>
Cc: Andy Gross <agross@kernel.org>,
Bjorn Andersson <bjorn.andersson@linaro.org>,
Doug Anderson <dianders@chromium.org>,
Kishon Vijay Abraham I <kishon@ti.com>,
Mark Rutland <mark.rutland@arm.com>,
Rob Herring <robh+dt@kernel.org>,
Sandeep Maheswaram <sanm@codeaurora.org>,
linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org,
devicetree@vger.kernel.org, Manu Gautam <mgautam@codeaurora.org>,
Tanmay Shah <tanmay@codeaurora.org>,
robdclark@gmail.com, abhinavk@codeaurora.org,
nganji@codeaurora.org, jsanka@codeaurora.org,
aravindh@codeaurora.org, hoegsberg@google.com,
dri-devel@lists.freedesktop.org
Subject: Re: [PATCH v5 1/3] dt-bindings: phy: qcom,qmp: Convert QMP PHY bindings to yaml
Date: Wed, 29 Apr 2020 12:19:49 -0700 [thread overview]
Message-ID: <20200429191949.GV4525@google.com> (raw)
In-Reply-To: <20200423171436.GJ199755@google.com>
Hi Sandeep,
On Thu, Apr 23, 2020 at 10:14:36AM -0700, Matthias Kaehlcke wrote:
> Hi Sandeep,
>
> On Tue, Apr 14, 2020 at 02:21:17PM -0700, Stephen Boyd wrote:
> > Quoting Sandeep Maheswaram (2020-04-01 23:38:52)
> > > Convert QMP PHY bindings to DT schema format using json-schema.
> > >
> > > Signed-off-by: Sandeep Maheswaram <sanm@codeaurora.org>
> > > ---
> > > .../devicetree/bindings/phy/qcom,qmp-phy.yaml | 332 +++++++++++++++++++++
> > > .../devicetree/bindings/phy/qcom-qmp-phy.txt | 242 ---------------
> > > 2 files changed, 332 insertions(+), 242 deletions(-)
> > > create mode 100644 Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
> > > delete mode 100644 Documentation/devicetree/bindings/phy/qcom-qmp-phy.txt
> > >
> > > diff --git a/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
> > > new file mode 100644
> > > index 0000000..18a8985
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/phy/qcom,qmp-phy.yaml
> > > @@ -0,0 +1,332 @@
> > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> > > +
> > > +%YAML 1.2
> > > +---
> > > +$id: "http://devicetree.org/schemas/phy/qcom,qmp-phy.yaml#"
> > > +$schema: "http://devicetree.org/meta-schemas/core.yaml#"
> > > +
> > > +title: Qualcomm QMP PHY controller
> > > +
> > > +maintainers:
> > > + - Manu Gautam <mgautam@codeaurora.org>
> > > +
> > > +description:
> > > + QMP phy controller supports physical layer functionality for a number of
> > > + controllers on Qualcomm chipsets, such as, PCIe, UFS, and USB.
> > > +
> > > +properties:
> > > + compatible:
> > > + enum:
> > > + - qcom,ipq8074-qmp-pcie-phy
> > > + - qcom,msm8996-qmp-pcie-phy
> > > + - qcom,msm8996-qmp-ufs-phy
> > > + - qcom,msm8996-qmp-usb3-phy
> > > + - qcom,msm8998-qmp-pcie-phy
> > > + - qcom,msm8998-qmp-ufs-phy
> > > + - qcom,msm8998-qmp-usb3-phy
> > > + - qcom,sdm845-qhp-pcie-phy
> > > + - qcom,sdm845-qmp-pcie-phy
> > > + - qcom,sdm845-qmp-ufs-phy
> > > + - qcom,sdm845-qmp-usb3-phy
> > > + - qcom,sdm845-qmp-usb3-uni-phy
> > > + - qcom,sm8150-qmp-ufs-phy
> > > +
> > > + reg:
> > > + minItems: 1
> > > + items:
> > > + - description: Address and length of PHY's common serdes block.
> > > + - description: Address and length of the DP_COM control block.
> >
> > This DP_COM block is only for one compatible. Is it possible to split
> > that compatible out of this binding so we can enforce the reg property
> > being either one or two items?
> >
> > In addition, I don't quite understand how this binding is supposed to
> > work with the DP phy that sits inside qcom,sdm845-qmp-usb3-phy and then
> > gets muxed out on the USB pins on sdm845 and sc7180 SoCs. Can you fill
> > me in on how we plan to share the pins between the two phys so that all
> > the combinations of DP and USB over the type-c pins will work here? My
> > understanding is that the pins that are controlled by this hardware
> > block are basically a full USB type-c connector pinout[1] (except that
> > D+/D- isn't there and the VBUS and CC lines go to the PMIC). Either way,
> > we get the TX1/2 and RX1/2 pins to use, so we can do 4x lanes of DP or
> > 2x lanes DP and 2x lanes of USB. There's also a type-c orientation
> > flipper bit that can flip the DP and USB phy lanes to the correct TX/RX
> > pins on the SoC. And then the DP phy has a lane remapper to change the
> > logical DP lane to the physical DP lane. It's a complex piece of
> > hardware that isn't fully represented by this binding.
> >
> > [1] https://en.wikipedia.org/wiki/USB-C#/media/File:USB_Type-C_Receptacle_Pinout.svg
>
> Could you please answer Stephen's questions? It would be great to move
> forward and get support for SC7180 landed.
You posted v6, which does the split Stephen asked for, but you didn't answer
his question about the pin sharing. Since this is an existing binding there
is probably no reason to block it from landing, but it would still be good
to clarify this.
Thanks
Matthias
next prev parent reply other threads:[~2020-04-29 19:19 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-02 6:38 [PATCH v5 0/3] Add QMP V3 USB3 PHY support for SC7180 Sandeep Maheswaram
2020-04-02 6:38 ` [PATCH v5 1/3] dt-bindings: phy: qcom,qmp: Convert QMP PHY bindings to yaml Sandeep Maheswaram
2020-04-14 16:51 ` Rob Herring
2020-04-14 21:21 ` Stephen Boyd
2020-04-23 17:14 ` Matthias Kaehlcke
2020-04-29 19:19 ` Matthias Kaehlcke [this message]
2020-04-02 6:38 ` [PATCH v5 2/3] dt-bindings: phy: qcom,qmp: Add support for SC7180 Sandeep Maheswaram
2020-04-14 20:56 ` Stephen Boyd
2020-04-02 6:38 ` [PATCH v5 3/3] phy: qcom-qmp: Add QMP V3 USB3 PHY " Sandeep Maheswaram
2020-04-14 20:56 ` Stephen Boyd
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200429191949.GV4525@google.com \
--to=mka@chromium.org \
--cc=abhinavk@codeaurora.org \
--cc=agross@kernel.org \
--cc=aravindh@codeaurora.org \
--cc=bjorn.andersson@linaro.org \
--cc=devicetree@vger.kernel.org \
--cc=dianders@chromium.org \
--cc=dri-devel@lists.freedesktop.org \
--cc=hoegsberg@google.com \
--cc=jsanka@codeaurora.org \
--cc=kishon@ti.com \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mgautam@codeaurora.org \
--cc=nganji@codeaurora.org \
--cc=robdclark@gmail.com \
--cc=robh+dt@kernel.org \
--cc=sanm@codeaurora.org \
--cc=swboyd@chromium.org \
--cc=tanmay@codeaurora.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).