From: Crystal Wood <oss@buserror.net>
To: Rob Herring <robh@kernel.org>
Cc: j.ne@posteo.net, devicetree@vger.kernel.org,
linuxppc-dev@lists.ozlabs.org,
Michael Ellerman <mpe@ellerman.id.au>,
Nicholas Piggin <npiggin@gmail.com>,
Christophe Leroy <christophe.leroy@csgroup.eu>,
Naveen N Rao <naveen@kernel.org>,
linux-kernel@vger.kernel.org, linux-mtd@lists.infradead.org
Subject: Re: [PATCH v2 09/12] dt-bindings: memory-controllers: Convert fsl,elbc to YAML
Date: Sun, 23 Feb 2025 17:45:49 -0600 [thread overview]
Message-ID: <Z7uzLeXiXIdVYNM5@buserror.net> (raw)
In-Reply-To: <20250210215324.GA1040564-robh@kernel.org>
On Mon, Feb 10, 2025 at 03:53:24PM -0600, Rob Herring wrote:
> 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.
Isn't the general idea that you bind to the first one in the list that
you have a driver for, since it goes from most to least specific?
> If you have chip selects, then you have config registers for those.
> Not really "simple" if you ask me. That being said, you could keep
> 'simple-bus' here. I would tend to err on making the schema match the
> actual .dts rather than updating the .dts files on older platforms like
> these.
By that definition I wonder how much truly qualifies. Even with
IMMR/CCSR, firmware needs to at least set the base register (which is
itself inside CCSR, so there's no way to avoid relying on knowledge of
what the firmware did, except on 8xx). Though I acknowledge that eLBC is
a stretch, with FCM and UPM being exceptions. FCM didn't exist in the
original LBC, and UPM was... kind of considered a fringe use case
until someone hooked NAND up to it. :-P
The point back then wasn't that such registers don't exist, but that the
OS can use the devices without having to care. But of course, there's
subjectivity there about what the OS might care about (e.g. UPM).
FWIW, on these chips (especially the later ones) there were all sorts of
things (in general, not specifically LBC-related) that firmware had to
set up to present a coherent system to the OS. Not all the choices made
there were great, but if we tried to describe all the gory details from
the start I'm sure we would have made an even bigger mess of it.
> > For non-NAND devices this bus generally meets the definition of "an
> > internal I/O bus that cannot be probed for devices" where "devices on the
> > bus can be accessed directly without additional configuration
> > required". NAND flash is an exception, but those devices have
> > compatibles that are specific to the bus controller.
>
> NAND bindings have evolved quite a bit if you haven't been paying
> attention.
I haven't, as I acknowledged... but I was describing how eLBC does it,
and just meant that we're not binding to drivers that don't know about
the bus in that case. The NAND control registers are part of eLBC/IFC,
not a separate block (the reg in the NAND node itself is just the SRAM
used as a buffer). I'm not sure what that would be expected to look like
these days.
-Crystal
next prev parent reply other threads:[~2025-02-24 0:27 UTC|newest]
Thread overview: 52+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-07 21:30 [PATCH v2 00/12] YAML conversion of several Freescale/PowerPC DT bindings J. Neuschäfer via B4 Relay
2025-02-07 21:30 ` [PATCH v2 01/12] dt-bindings: powerpc: Add Freescale/NXP MPC83xx SoCs J. Neuschäfer via B4 Relay
2025-02-07 21:30 ` [PATCH v2 02/12] dt-bindings: ata: Convert fsl,pq-sata to YAML J. Neuschäfer via B4 Relay
2025-02-07 23:17 ` Damien Le Moal
2025-02-07 21:30 ` [PATCH v2 03/12] dt-bindings: crypto: Convert fsl,sec-2.0 " J. Neuschäfer via B4 Relay
2025-02-10 19:30 ` [PATCH v2 03/12] dt-bindings: crypto: Convert fsl,sec-2.0 to YAMLy Frank Li
2025-02-12 19:33 ` [PATCH v2 03/12] dt-bindings: crypto: Convert fsl,sec-2.0 to YAML Rob Herring
2025-02-14 2:04 ` J. Neuschäfer
2025-02-07 21:30 ` [PATCH v2 04/12] dt-bindings: mfd: Convert fsl,mcu-mpc8349emitx " J. Neuschäfer via B4 Relay
2025-02-07 21:30 ` [PATCH v2 05/12] dt-bindings: dma: Convert fsl,elo*-dma " J. Neuschäfer via B4 Relay
2025-02-10 19:39 ` Frank Li
2025-02-14 12:35 ` J. Neuschäfer
2025-02-25 12:54 ` J. Neuschäfer
2025-02-12 19:38 ` Rob Herring
2025-02-07 21:30 ` [PATCH v2 06/12] dt-bindings: pci: Convert fsl,mpc83xx-pcie " J. Neuschäfer via B4 Relay
2025-02-07 23:44 ` Rob Herring (Arm)
2025-02-08 1:26 ` kernel test robot
2025-02-09 0:06 ` J. Neuschäfer
2025-02-10 21:25 ` Rob Herring
2025-02-07 21:30 ` [PATCH v2 07/12] dt-bindings: watchdog: Convert mpc8xxx-wdt " J. Neuschäfer via B4 Relay
2025-02-07 21:30 ` [PATCH v2 08/12] dt-bindings: spi: Convert Freescale SPI bindings " J. Neuschäfer via B4 Relay
2025-02-10 19:42 ` Frank Li
2025-02-12 19:43 ` Rob Herring
2025-02-07 21:30 ` [PATCH v2 09/12] dt-bindings: memory-controllers: Convert fsl,elbc " J. Neuschäfer via B4 Relay
2025-02-07 23:44 ` Rob Herring (Arm)
2025-02-09 17:28 ` J. Neuschäfer
2025-02-09 17:30 ` Krzysztof Kozlowski
2025-02-09 17:45 ` J. Neuschäfer
2025-02-09 20:31 ` Crystal Wood
2025-02-09 20:49 ` Crystal Wood
2025-02-10 11:31 ` J. Neuschäfer
2025-02-10 21:53 ` Rob Herring
2025-02-16 15:59 ` J. Neuschäfer
2025-02-23 23:45 ` Crystal Wood [this message]
2025-02-07 21:30 ` [PATCH v2 10/12] dt-bindings: memory-controllers: Add fsl,elbc-gpcm-uio J. Neuschäfer via B4 Relay
2025-02-10 19:45 ` Frank Li
2025-02-12 19:44 ` Rob Herring (Arm)
2025-02-07 21:30 ` [PATCH v2 11/12] dt-bindings: nand: Add fsl,elbc-fcm-nand J. Neuschäfer via B4 Relay
2025-02-07 23:45 ` Rob Herring (Arm)
2025-02-10 19:47 ` [PATCH v2 11/12] dt-bindings: nand: Add fsl,elbc-fcm-nandy Frank Li
2025-02-11 0:01 ` [PATCH v2 11/12] dt-bindings: nand: Add fsl,elbc-fcm-nand Rob Herring
2025-02-16 17:39 ` J. Neuschäfer
2025-02-07 21:30 ` [PATCH v2 12/12] dt-bindings: mtd: raw-nand-chip: Relax node name pattern J. Neuschäfer via B4 Relay
2025-02-10 8:27 ` Miquel Raynal
2025-02-16 18:12 ` J. Neuschäfer
2025-02-17 9:31 ` Miquel Raynal
2025-02-17 10:21 ` J. Neuschäfer
2025-02-07 21:38 ` [PATCH v2 00/12] YAML conversion of several Freescale/PowerPC DT bindings Mark Brown
2025-02-08 2:20 ` J. Neuschäfer
2025-02-10 12:59 ` Mark Brown
2025-02-10 15:57 ` J. Neuschäfer
2025-02-10 16:19 ` Mark Brown
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=Z7uzLeXiXIdVYNM5@buserror.net \
--to=oss@buserror.net \
--cc=christophe.leroy@csgroup.eu \
--cc=devicetree@vger.kernel.org \
--cc=j.ne@posteo.net \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mtd@lists.infradead.org \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=mpe@ellerman.id.au \
--cc=naveen@kernel.org \
--cc=npiggin@gmail.com \
--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;
as well as URLs for NNTP newsgroup(s).