[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <68d134ce.050a0220.375eef.da87@mx.google.com>
Date: Mon, 22 Sep 2025 13:36:40 +0200
From: Christian Marangi <ansuelsmth@...il.com>
To: AngeloGioacchino Del Regno <angelogioacchino.delregno@...labora.com>
Cc: Ryder Lee <ryder.lee@...iatek.com>,
Jianjun Wang <jianjun.wang@...iatek.com>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Lorenzo Pieralisi <lpieralisi@...nel.org>,
Krzysztof WilczyĆski <kwilczynski@...nel.org>,
Manivannan Sadhasivam <mani@...nel.org>,
Rob Herring <robh@...nel.org>,
Krzysztof Kozlowski <krzk+dt@...nel.org>,
Conor Dooley <conor+dt@...nel.org>,
Matthias Brugger <matthias.bgg@...il.com>,
linux-pci@...r.kernel.org, linux-mediatek@...ts.infradead.org,
devicetree@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, upstream@...oha.com
Subject: Re: [PATCH 1/2] dt-bindings: PCI: mediatek-gen3: Add support for
Airoha AN7583
On Mon, Sep 22, 2025 at 01:34:06PM +0200, AngeloGioacchino Del Regno wrote:
> Il 20/09/25 11:25, Christian Marangi ha scritto:
> > Introduce Airoha AN7583 SoC compatible in mediatek-gen3 PCIe controller
> > binding.
> >
> > This differ from the Airoha EN7581 SoC by the fact that only one Gen3
> > PCIe controller is present on the SoC.
> >
> > Signed-off-by: Christian Marangi <ansuelsmth@...il.com>
> > ---
> > .../bindings/pci/mediatek-pcie-gen3.yaml | 21 +++++++++++++++++++
> > 1 file changed, 21 insertions(+)
> >
> > diff --git a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml
> > index 0278845701ce..3f556d1327a6 100644
> > --- a/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml
> > +++ b/Documentation/devicetree/bindings/pci/mediatek-pcie-gen3.yaml
> > @@ -59,6 +59,7 @@ properties:
> > - const: mediatek,mt8192-pcie
> > - const: mediatek,mt8196-pcie
>
> "an" comes before "en", please move it here.
>
> Also, for consistency with all of the other compatibles, this should be just
> "airoha,an7583-pcie": please rename it.
>
Thanks for the review. The "gen3" wasn't added randomly. On AN7583 they
put both gen2 and gen3 PCIe. One line is gen3, the other gen2. So either
we differenciate for gen2 or we add the gen3 tag.
I decided to add it here to follow the naming pattern with
mediatek-pcie-gen3.
If you have better idea on this, I'm all open.
> > - const: airoha,en7581-pcie
> > + - const: airoha,an7583-pcie-gen3
>
>
>
> > reg:
> > maxItems: 1
> > @@ -298,6 +299,26 @@ allOf:
> > - const: phy-lane1
> > - const: phy-lane2
> > + - if:
> > + properties:
> > + compatible:
> > + const: airoha,an7583-pcie-gen3
>
> same for this if block, please put it before en7583.
>
> Everything else looks good.
>
> Cheers,
> Angelo
>
> > + then:
> > + properties:
> > + clocks:
> > + maxItems: 1
> > +
> > + clock-names:
> > + items:
> > + - const: sys-ck
> > +
> > + resets:
> > + minItems: 1
> > +
> > + reset-names:
> > + items:
> > + - const: phy-lane0
> > +
> > unevaluatedProperties: false
> > examples:
>
>
>
--
Ansuel
Powered by blists - more mailing lists