From: Conor Dooley <conor@kernel.org>
To: Frank Li <Frank.li@nxp.com>
Cc: "Bjorn Helgaas" <bhelgaas@google.com>,
"Lorenzo Pieralisi" <lpieralisi@kernel.org>,
"Krzysztof Wilczyński" <kw@linux.com>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzysztof.kozlowski+dt@linaro.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"open list:PCI SUBSYSTEM" <linux-pci@vger.kernel.org>,
"open list:OPEN FIRMWARE AND FLATTENED DEVICE TREE BINDINGS"
<devicetree@vger.kernel.org>,
"open list" <linux-kernel@vger.kernel.org>,
imx@lists.linux.dev
Subject: Re: [PATCH 1/1] dt-bindings: pci: layerscape-pci: Convert to yaml file
Date: Thu, 8 Feb 2024 19:44:59 +0000 [thread overview]
Message-ID: <20240208-revoke-doorman-5ba34f39c743@spud> (raw)
In-Reply-To: <ZcUs16+Z+I4m4q00@lizhi-Precision-Tower-5810>
[-- Attachment #1: Type: text/plain, Size: 3307 bytes --]
On Thu, Feb 08, 2024 at 02:34:47PM -0500, Frank Li wrote:
> On Thu, Feb 08, 2024 at 07:12:47PM +0000, Conor Dooley wrote:
> > On Wed, Feb 07, 2024 at 12:49:19PM -0500, Frank Li wrote:
> > > On Wed, Feb 07, 2024 at 05:17:55PM +0000, Conor Dooley wrote:
> > > > On Wed, Feb 07, 2024 at 01:24:02AM -0500, Frank Li wrote:
> > > > > +
> > > > > + This controller derives its clocks from the Reset Configuration Word (RCW)
> > > > > + which is used to describe the PLL settings at the time of chip-reset.
> > > > > +
> > > > > + Also as per the available Reference Manuals, there is no specific 'version'
> > > > > + register available in the Freescale PCIe controller register set,
> > > > > + which can allow determining the underlying DesignWare PCIe controller version
> > > > > + information.
> > > > > +
> > > > > +properties:
> > > > > + compatible:
> > > > > + enum:
> > > > > + - fsl,ls2088a-pcie-ep
> > > > > + - fsl,ls1088a-pcie-ep
> > > > > + - fsl,ls1046a-pcie-ep
> > > > > + - fsl,ls1028a-pcie-ep
> > > > > + - fsl,lx2160ar2-pcie-ep
> > > >
> > > > Where did the fallback compatible go?
> > >
> > > So far, no fallback compatible needed now. each devices already have its
> > > compatible string.
> >
> > It used to exist though, have you checked that u-boot or *bsd etc do not
> > use the fallback compatible? You also need to mention your justification
> > for removing it in the commit message.
>
> This commit just convert binding doc from txt to yaml. I just make sure
> which equal to what descript in txt.
The text binding does have a fallback compatible though:
EP mode:
"fsl,ls1028a-pcie-ep", "fsl,ls-pcie-ep"
So this is a change compared to the text binding, without any
justification for it being okay to do.
> If there are someting wrong in "uboot"
> or "bsd", we can fixed it later.
If other bits of software are using the fallback, you cannot remove it.
> I checked driver code. exited dts tree
> under kernel, which use unexited fallback compatible string
> "fsl, lx-pcie-ep", which should be removed at dts file.
What do you mean by "unexisted"? It was in the text binding, so it is
perfectly fine to have it in the dts. Given it has users, I don't think
you should be removing the fallback without a very good justification.
> > > > > + reg:
> > > > > + maxItems: 2
> > > > > +
> > > > > + reg-names:
> > > > > + items:
> > > > > + - const: regs
> > > > > + - const: addr_space
> > > >
> > > > The example uses "regs" and "config". Where did addr_space come from?
> > >
> > > Example just show pcie-host part. Not show pcie-ep part.
> > > pcie-ep part need 'addr_space'.
> >
> > Okay. Again, please mention where this is coming from.
>
> Ideally it comes from snsp,dwc-pcie-ep.yaml. but it is use 'dbi' instead
> of 'regs'. It needs extra effort to make driver code algin common
> snps,dwc-pcie-ep.yaml, and update exist all dts files.
>
> I think it will be deleted soon.
What I am looking for here is you to explain in the commit message that
the endpoint driver in linux and the dts have always used "addr_space".
Checking that there's not a u-boot or *bsd that uses "config" would also
be very helpful.
Thanks,
Conor.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next prev parent reply other threads:[~2024-02-08 19:45 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-07 6:24 [PATCH 1/1] dt-bindings: pci: layerscape-pci: Convert to yaml file Frank Li
2024-02-07 17:17 ` Conor Dooley
2024-02-07 17:49 ` Frank Li
2024-02-08 19:12 ` Conor Dooley
2024-02-08 19:34 ` Frank Li
2024-02-08 19:44 ` Conor Dooley [this message]
2024-02-08 20:20 ` Frank Li
2024-02-08 21:20 ` Conor Dooley
2024-02-08 21:34 ` Frank Li
2024-02-08 22:11 ` Conor Dooley
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=20240208-revoke-doorman-5ba34f39c743@spud \
--to=conor@kernel.org \
--cc=Frank.li@nxp.com \
--cc=bhelgaas@google.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=imx@lists.linux.dev \
--cc=krzysztof.kozlowski+dt@linaro.org \
--cc=kw@linux.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=lpieralisi@kernel.org \
--cc=robh@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