From: Alex Elder <elder@riscstar.com>
To: Vivian Wang <wangruikang@iscas.ac.cn>,
broonie@kernel.org, robh@kernel.org, krzk+dt@kernel.org,
conor+dt@kernel.org
Cc: dlan@gentoo.org, ziyao@disroot.org, linux-spi@vger.kernel.org,
devicetree@vger.kernel.org, paul.walmsley@sifive.com,
palmer@dabbelt.com, aou@eecs.berkeley.edu, alex@ghiti.fr,
p.zabel@pengutronix.de, spacemit@lists.linux.dev,
linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 3/3] riscv: dts: spacemit: define a SPI controller node
Date: Mon, 22 Sep 2025 10:42:12 -0500 [thread overview]
Message-ID: <3fe0ffbe-b4fa-4585-b2d6-2437ade84928@riscstar.com> (raw)
In-Reply-To: <50456256-fc9e-4de5-a512-5749b832dc3a@iscas.ac.cn>
On 9/19/25 9:57 PM, Vivian Wang wrote:
> On 9/19/25 23:59, Alex Elder wrote:
>
>> [...]
>>
>> diff --git a/arch/riscv/boot/dts/spacemit/k1.dtsi b/arch/riscv/boot/dts/spacemit/k1.dtsi
>> index 6cdcd80a7c83b..f8c37d16968e4 100644
>> --- a/arch/riscv/boot/dts/spacemit/k1.dtsi
>> +++ b/arch/riscv/boot/dts/spacemit/k1.dtsi
>> @@ -856,6 +856,22 @@ storage-bus {
>> #size-cells = <2>;
>> dma-ranges = <0x0 0x00000000 0x0 0x00000000 0x0 0x80000000>;
>>
>> + spi3: spi@d401c000 {
>> + compatible = "spacemit,k1-spi";
>> + reg = <0x0 0xd401c000 0x0 0x30>;
>> + #address-cells = <1>;
>> + #size-cells = <0>;
>> + clocks = <&syscon_apbc CLK_SSP3>,
>> + <&syscon_apbc CLK_SSP3_BUS>;
>> + clock-names = "core", "bus";
>> + resets = <&syscon_apbc RESET_SSP3>;
>> + interrupts = <55>;
>> + dmas = <&pdma 20>,
>> + <&pdma 19>;
>> + dma-names = "rx", "tx";
>> + status = "disabled";
>> + };
>> +
>
> Is storage-bus the right place for SPI? I'd have thought that SPI
> wouldn't need its own dma-ranges if it does DMA though &pdma.
>
> I know "dram_range4" is where SpacemiT put it but I'm not sure if that
> makes sense now.
You're right. It belongs in the dma-bus region. I will fix that in v3.
-Alex
>
> Vivian "dramforever" Wang
>
prev parent reply other threads:[~2025-09-22 15:42 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-19 15:59 [PATCH v2 0/3] spi: support the SpacemiT K1 SPI controller Alex Elder
2025-09-19 15:59 ` [PATCH v2 1/3] dt-bindings: spi: add SpacemiT K1 SPI support Alex Elder
2025-09-19 17:38 ` Conor Dooley
2025-09-19 20:47 ` Rob Herring (Arm)
2025-09-19 15:59 ` [PATCH v2 2/3] spi: spacemit: introduce SpacemiT K1 SPI controller driver Alex Elder
2025-09-20 3:52 ` Vivian Wang
2025-09-20 15:59 ` Alex Elder
2025-09-21 18:51 ` Vivian Wang
2025-09-21 18:58 ` Alex Elder
2025-09-22 15:42 ` Alex Elder
2025-09-21 3:15 ` Troy Mitchell
2025-09-21 19:11 ` Alex Elder
2025-09-19 15:59 ` [PATCH v2 3/3] riscv: dts: spacemit: define a SPI controller node Alex Elder
2025-09-20 2:57 ` Vivian Wang
2025-09-22 15:42 ` Alex Elder [this message]
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=3fe0ffbe-b4fa-4585-b2d6-2437ade84928@riscstar.com \
--to=elder@riscstar.com \
--cc=alex@ghiti.fr \
--cc=aou@eecs.berkeley.edu \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=dlan@gentoo.org \
--cc=krzk+dt@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-riscv@lists.infradead.org \
--cc=linux-spi@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=palmer@dabbelt.com \
--cc=paul.walmsley@sifive.com \
--cc=robh@kernel.org \
--cc=spacemit@lists.linux.dev \
--cc=wangruikang@iscas.ac.cn \
--cc=ziyao@disroot.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