From: "Stefan Dösinger" <stefandoesinger@gmail.com>
To: linux-arm-kernel@lists.infradead.org,
Navid Ghahremani <ghahramani.navid@gmail.com>
Cc: arnd@arndb.de, krzk@kernel.org,
Navid Ghahremani <ghahramani.navid@gmail.com>,
Mark Brown <broonie@kernel.org>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-spi@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 19/24] dt-bindings: spi: Add ZTE ZX family SPI flash controller binding
Date: Wed, 14 Oct 2026 22:33:01 +0200 [thread overview]
Message-ID: <0hKeGS29RSCCKJETWWv9dA@gmail.com> (raw)
In-Reply-To: <20261014072109.1759502-20-ghahramani.navid@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1494 bytes --]
Am Mittwoch, 14. Oktober 2026, 09:20:59 Mitteleuropäische Sommerzeit schrieb
Navid Ghahremani:
> + - zte,zx29-qspi
> + - zte,zx279128s-spifc
Unless there is a hardware difference that matters to the driver I think one
compatible should be enough. Probably zte,zx-qspi. Although since this
controller is very specific for flash chips zte,zx-spifc or zte,spifc are worthy
considerations too. As far as I can see this controller only has flash memory
ops and can't even send a generic byte stream.
Note that at least my board, and probably yours too, has a "normal" SPI
controller too. In my case it can talk to SPI displays or a SLIC analog phone
controller. It has a different hardware interface and needs a separate driver.
> +
> + clocks:
> + items:
> + - description: work clock, the source of the SPI clock
> + - description: register (APB) clock
> +
> + clock-names:
> + items:
> + - const: wclk
> + - const: pclk
> +
> +required:
> + - compatible
> + - reg
> + - clocks
> + - clock-names
I think the interrupt should be required by the binding too. The driver is
still free to ignore it, but the binding is supposed to describe the hardware,
not the driver.
My hardware has two DMA lines too. I don't know if they are always there. For
pragmatic reasons (the DMA controller is its own beast and for usability less
important than the flash controller) I'd make the DMA properties optional.
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 870 bytes --]
next prev parent reply other threads:[~2026-10-14 20:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20261014072109.1759502-1-ghahramani.navid@gmail.com>
2026-10-14 7:20 ` [PATCH v2 19/24] dt-bindings: spi: Add ZTE ZX family SPI flash controller binding Navid Ghahremani
2026-10-14 20:33 ` Stefan Dösinger [this message]
2026-10-14 7:21 ` [PATCH v2 20/24] spi: zx: Add ZTE ZX family SPI flash controller driver Navid Ghahremani
2026-10-14 19:28 ` Stefan Dösinger
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=0hKeGS29RSCCKJETWWv9dA@gmail.com \
--to=stefandoesinger@gmail.com \
--cc=arnd@arndb.de \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=ghahramani.navid@gmail.com \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.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