Re: [PATCH v2 09/12] dt-bindings: memory-controllers: Convert fsl,elbc to YAML
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- Subject: Re: [PATCH v2 09/12] dt-bindings: memory-controllers: Convert fsl,elbc to YAML
- From: J. Neuschäfer <j.ne@xxxxxxxxxx>
- Date: Sun, 16 Feb 2025 15:59:54 +0000
- Cc: Crystal Wood <oss@xxxxxxxxxxxx>, j.ne@xxxxxxxxxx, devicetree@xxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, Krzysztof Kozlowski <krzk@xxxxxxxxxx>, imx@xxxxxxxxxxxxxxx, Madhavan Srinivasan <maddy@xxxxxxxxxxxxx>, Michael Ellerman <mpe@xxxxxxxxxxxxxx>, Nicholas Piggin <npiggin@xxxxxxxxx>, Christophe Leroy <christophe.leroy@xxxxxxxxxx>, Naveen N Rao <naveen@xxxxxxxxxx>, Krzysztof Kozlowski <krzk+dt@xxxxxxxxxx>, Conor Dooley <conor+dt@xxxxxxxxxx>, Damien Le Moal <dlemoal@xxxxxxxxxx>, Niklas Cassel <cassel@xxxxxxxxxx>, Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, Lee Jones <lee@xxxxxxxxxx>, Vinod Koul <vkoul@xxxxxxxxxx>, Lorenzo Pieralisi <lpieralisi@xxxxxxxxxx>, Krzysztof Wilczyński <kw@xxxxxxxxx>, Manivannan Sadhasivam <manivannan.sadhasivam@xxxxxxxxxx>, Bjorn Helgaas <bhelgaas@xxxxxxxxxx>, J. Neuschäfer <j.neuschaefer@xxxxxxx>, Wim Van Sebroeck <wim@xxxxxxxxxxxxxxxxxx>, Guenter Roeck <linux@xxxxxxxxxxxx>, Mark Brown <broonie@xxxxxxxxxx>, Miquel Raynal <miquel.raynal@xxxxxxxxxxx>, Richard Weinberger <richard@xxxxxx>, Vignesh Raghavendra <vigneshr@xxxxxx>, linux-kernel@xxxxxxxxxxxxxxx, linux-ide@xxxxxxxxxxxxxxx, linux-crypto@xxxxxxxxxxxxxxx, dmaengine@xxxxxxxxxxxxxxx, linux-pci@xxxxxxxxxxxxxxx, linux-watchdog@xxxxxxxxxxxxxxx, linux-spi@xxxxxxxxxxxxxxx, linux-mtd@xxxxxxxxxxxxxxxxxxx, Li Yang <leoyang.li@xxxxxxx>, John Ogness <john.ogness@xxxxxxxxxxxxx>
- In-reply-to: <20250210215324.GA1040564-robh@kernel.org>
- References: <20250207-ppcyaml-v2-0-8137b0c42526@posteo.net> <20250207-ppcyaml-v2-9-8137b0c42526@posteo.net> <Z6kQpuQf5m-bXTyt@buserror.net> <20250210215324.GA1040564-robh@kernel.org>
On Mon, Feb 10, 2025 at 03:53:24PM -0600, Rob Herring wrote:
> On Sun, Feb 09, 2025 at 02:31:34PM -0600, Crystal Wood wrote:
> > On Fri, Feb 07, 2025 at 10:30:26PM +0100, J. Neuschäfer via B4 Relay wrote:
> > > From: "J. Neuschäfer" <j.ne@xxxxxxxxxx>
> > >
> > > Convert the Freescale localbus controller bindings from text form to
> > > YAML. The updated list of compatible strings reflects current usage
> > > in arch/powerpc/boot/dts/, except that many existing device trees
> > > erroneously specify "simple-bus" in addition to fsl,*elbc.
> > >
> > > Changes compared to the txt version:
> > > - removed the board-control (fsl,mpc8272ads-bcsr) node because it only
> > > appears in this example and nowhere else
> > > - added a new example with NAND flash
> > > - updated list of compatible strings
> > >
> > > Signed-off-by: J. Neuschäfer <j.ne@xxxxxxxxxx>
> > > ---
> > >
> > > V2:
> > > - fix order of properties in examples, according to dts coding style
> > > - move to Documentation/devicetree/bindings/memory-controllers
> > > - clarify the commit message a tiny bit
> > > - remove unnecessary multiline markers (|)
> > > - define address format in patternProperties
> > > - trim subject line (remove "binding")
> > > - remove use of "simple-bus", because it's technically incorrect
> >
> > While I admit I haven't been following recent developments in this area,
> > as someone who was involved when "simple-bus" was created (and was on the
> > ePAPR committee that standardized it) I'm surprised to hear simple-bus
> > being called "erroneous" or "technically incorrect" here.
>
> Erroneous because the binding did not say "simple-bus" was used. Not
> uncommon with the old .txt bindings.
>
> Generally, if a bus has control registers or resources like clocks, then
> we tend not to call them 'simple-bus'. And '"specific-bus",
> "simple-bus"' gives some problems around what driver if any do you
> bind to.
[...]
> > You'd probably need something like commit 3e25f800afb82bd9e5f8 ("memory:
> > fsl_ifc: populate child devices without relying on simple-bus") and the
> > subsequent fix in dd8adc713b1656 ("memory: fsl_ifc: populate child
> > nodes of buses and mfd devices")...
> >
> > I'm curious what the reasoning was for removing simple-bus from IFC. It
> > seems that the schema verification also played a role in that:
> > https://www.spinics.net/lists/devicetree/msg220418.html
>
> If a kernel change is needed to support changed .dts files, then we
> shouldn't be doing that here (being mature platforms). That would mean
> new DTB will not work with existing kernels.
Alright, I'll keep simple-bus in the eLBC binding for historical
compatibility.
Thank you both for your discussion.
J. Neuschäfer
[Index of Archives]
[Linux Kernel]
[Linux ARM (vger)]
[Linux ARM MSM]
[Linux Omap]
[Linux Arm]
[Linux Tegra]
[Fedora ARM]
[Linux for Samsung SOC]
[eCos]
[Linux Fastboot]
[Gcc Help]
[Git]
[DCCP]
[IETF Announce]
[Security]
[Linux MIPS]
[Yosemite Campsites]
|