From: Chunfeng Yun <chunfeng.yun@mediatek.com>
To: Jianjun Wang <jianjun.wang@mediatek.com>,
Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>,
Kishon Vijay Abraham I <kishon@ti.com>,
Vinod Koul <vkoul@kernel.org>, Rob Herring <robh+dt@kernel.org>,
"Matthias Brugger" <matthias.bgg@gmail.com>
Cc: <linux-arm-kernel@lists.infradead.org>,
<linux-mediatek@lists.infradead.org>,
<linux-phy@lists.infradead.org>, <devicetree@vger.kernel.org>,
<linux-kernel@vger.kernel.org>, <rex-bc.chen@mediatek.com>,
<randy.wu@mediatek.com>, <jieyy.yang@mediatek.com>,
<chuanjia.liu@mediatek.com>, <qizhong.cheng@mediatek.com>,
<jian.yang@mediatek.com>
Subject: Re: [PATCH 2/2] dt-bindings: phy: mediatek: Add YAML schema for PCIe PHY
Date: Tue, 15 Mar 2022 11:15:08 +0800 [thread overview]
Message-ID: <5a797c608b6eb29e6fba41fafc5f78f75b4ba1d3.camel@mediatek.com> (raw)
In-Reply-To: <e7765c888e6fc8eb4b15fa01d19afda335b16c26.camel@mediatek.com>
On Mon, 2022-03-14 at 09:42 +0800, Jianjun Wang wrote:
> Hi Krzysztof,
>
> On Fri, 2022-03-11 at 15:28 +0100, Krzysztof Kozlowski wrote:
> > On 11/03/2022 14:35, Jianjun Wang wrote:
> > > Add YAML schema documentation for PCIe PHY on MediaTek chipsets.
> > >
> > > Signed-off-by: Jianjun Wang <jianjun.wang@mediatek.com>
> > > ---
> > > .../bindings/phy/mediatek,pcie-phy.yaml | 71
> > > +++++++++++++++++++
> > > 1 file changed, 71 insertions(+)
> > > create mode 100644
> > > Documentation/devicetree/bindings/phy/mediatek,pcie-phy.yaml
> > >
> > > diff --git a/Documentation/devicetree/bindings/phy/mediatek,pcie-
> > > phy.yaml b/Documentation/devicetree/bindings/phy/mediatek,pcie-
> > > phy.yaml
> > > new file mode 100644
> > > index 000000000000..da15b4bf3117
> > > --- /dev/null
> > > +++ b/Documentation/devicetree/bindings/phy/mediatek,pcie-
> > > phy.yaml
> > > @@ -0,0 +1,71 @@
> > > +# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
> > > +%YAML 1.2
> > > +---
> > > +$id: http://devicetree.org/schemas/phy/mediatek,pcie-phy.yaml#
> > > +$schema: http://devicetree.org/meta-schemas/core.yaml#
> > > +
> > > +title: MediaTek PCIe PHY Device Tree Binding
> >
> > Title is for hardware, so s/Device Tree Binding//
> >
> > > +
> > > +maintainers:
> > > + - Jianjun Wang <jianjun.wang@mediatek.com>
> > > +
> > > +description: |
> > > + The PCIe PHY supports physical layer functionality for PCIe
> > > Gen3
> > > port.
> > > +
> > > +properties:
> > > + compatible:
> > > + const: mediatek,pcie-phy
> >
> > Is it going to be exactly one pcie-phy for all Mediatek chipsets
> > for
> > next years? Are you sure about that? It sounds highly unlikely....
>
> We have only one pcie-phy for now, but if this is not recommended, I
> will replace it with a specific name in the next version, thanks for
> your review.
Prefer to add specific ones
>
> Thanks.
>
> >
> > > +
> > > + reg:
> > > + maxItems: 1
> > > +
> > > + reg-names:
> > > + items:
> > > + - const: sif
> > > +
> > > + "#phy-cells":
> > > + const: 0
> > > +
> > > + nvmem-cells:
> > > + maxItems: 7
> > > + description:
> > > + Phandles to nvmem cell that contains the efuse data, if
> > > unspecified,
> > > + default value is used.
> > > +
> > > + nvmem-cell-names:
> > > + items:
> > > + - const: glb_intr
> > > + - const: tx_ln0_pmos
> > > + - const: tx_ln0_nmos
> > > + - const: rx_ln0
> > > + - const: tx_ln1_pmos
> > > + - const: tx_ln1_nmos
> > > + - const: rx_ln1
> > > +
> > > +required:
> > > + - compatible
> > > + - reg
> > > + - reg-names
> > > + - "#phy-cells"
> > > +
> > > +additionalProperties: false
> > > +
> > > +examples:
> > > + - |
> > > + pciephy: phy@11e80000 {
> > > + compatible = "mediatek,pcie-phy";
> > > + #phy-cells = <0>;
> > > + reg = <0x11e80000 0x10000>;
> > > + reg-names = "sif";
> > > + nvmem-cells = <&pciephy_glb_intr>,
> > > + <&pciephy_tx_ln0_pmos>,
> > > + <&pciephy_tx_ln0_nmos>,
> > > + <&pciephy_rx_ln0>,
> > > + <&pciephy_tx_ln1_pmos>,
> > > + <&pciephy_tx_ln1_nmos>,
> > > + <&pciephy_rx_ln1>;
> > > + nvmem-cell-names = "glb_intr", "tx_ln0_pmos",
> > > + "tx_ln0_nmos", "rx_ln0",
> > > + "tx_ln1_pmos", "tx_ln1_nmos",
> > > + "rx_ln1";
> > > + };
> >
> >
> > Best regards,
> > Krzysztof
>
>
prev parent reply other threads:[~2022-03-15 3:15 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-03-11 13:35 [PATCH 0/2] phy: mediatek: Add PCIe PHY driver Jianjun Wang
2022-03-11 13:35 ` [PATCH 1/2] " Jianjun Wang
2022-03-17 7:49 ` Chen-Yu Tsai
2022-03-17 9:34 ` Jianjun Wang
2022-03-11 13:35 ` [PATCH 2/2] dt-bindings: phy: mediatek: Add YAML schema for PCIe PHY Jianjun Wang
2022-03-11 14:28 ` Krzysztof Kozlowski
2022-03-14 1:42 ` Jianjun Wang
2022-03-15 3:15 ` Chunfeng Yun [this message]
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=5a797c608b6eb29e6fba41fafc5f78f75b4ba1d3.camel@mediatek.com \
--to=chunfeng.yun@mediatek.com \
--cc=chuanjia.liu@mediatek.com \
--cc=devicetree@vger.kernel.org \
--cc=jian.yang@mediatek.com \
--cc=jianjun.wang@mediatek.com \
--cc=jieyy.yang@mediatek.com \
--cc=kishon@ti.com \
--cc=krzysztof.kozlowski@canonical.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=linux-phy@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=qizhong.cheng@mediatek.com \
--cc=randy.wu@mediatek.com \
--cc=rex-bc.chen@mediatek.com \
--cc=robh+dt@kernel.org \
--cc=vkoul@kernel.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).