From: Xianwei Zhao <xianwei.zhao@amlogic.com>
To: Mark Brown <broonie@kernel.org>
Cc: Sunny Luo <sunny.luo@amlogic.com>, Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
linux-amlogic@lists.infradead.org, linux-spi@vger.kernel.org,
devicetree@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/4] spi: dt-bindings: amlogic: spisg: Document A9-specific properties
Date: Fri, 31 Jul 2026 11:15:35 +0800 [thread overview]
Message-ID: <cd9e63b8-7c64-4a69-b772-014b03c9e3b1@amlogic.com> (raw)
In-Reply-To: <db111663-27a2-4299-a692-6154f1f842ca@sirena.org.uk>
Hi Mark,
Thanks for your review.
On 2026/7/30 21:22, Mark Brown wrote:
> Subject:
> Re: [PATCH v2 1/4] spi: dt-bindings: amlogic: spisg: Document
> A9-specific properties
> From:
> Mark Brown <broonie@kernel.org>
> Date:
> 2026/7/30 21:22
>
> To:
> xianwei.zhao@amlogic.com
> CC:
> Sunny Luo <sunny.luo@amlogic.com>, Rob Herring <robh@kernel.org>,
> Krzysztof Kozlowski <krzk+dt@kernel.org>, Conor Dooley
> <conor+dt@kernel.org>, linux-amlogic@lists.infradead.org,
> linux-spi@vger.kernel.org, devicetree@vger.kernel.org,
> linux-kernel@vger.kernel.org
>
>
>
> On Thu, Jul 23, 2026 at 06:43:42AM +0000, Xianwei Zhao via B4 Relay wrote:
>> From: Xianwei Zhao<xianwei.zhao@amlogic.com>
>> Document the Amlogic A9 SPISG controller and its additional
>> Device Tree properties.
>> Add the "amlogic,a9-spisg" compatible string and define the
>> A9-specific "amlogic,mo-idle-output" and "amlogic,word-gap"
>> properties, which configure the MOSI idle output level and
>> the inter-word gap, respectively.
>> @@ -35,6 +34,23 @@ properties:
>> resets:
>> maxItems: 1
>>
>> + amlogic,mo-idle-output:
>> + description: |
>> + Controls the MOSI output level when the controller is idle.
>> + 0 - Drive MOSI low
>> + 1 - Drive MOSI high
>> + 2 - Follow the last transmitted bit
>> + $ref: /schemas/types.yaml#/definitions/uint32
>> + enum: [0, 1, 2]
>> + default: 0
>> +
>> + amlogic,word-gap:
>> + description: |
>> + Number of idle clock cycles inserted between consecutive SPI words.
>> + $ref: /schemas/types.yaml#/definitions/uint32
>> + enum: [0, 1, 2, 3]
>> + default: 1
> I'd expect these to be per-device properties, not per controller. The
> word_gap sounds a lot like the existing word_delay feature we have - if
> it's different it'd be good to be clear why.
You're right. There is no functional difference from the existing
word_delay support. I'll drop this controller-specific DT property and
handle the hardware word gap through the existing word_delay mechanism
in the transfer path instead.
_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic
next prev parent reply other threads:[~2026-07-31 3:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-23 6:43 [PATCH v2 0/4] spi: add support for Amlogic A9 Xianwei Zhao via B4 Relay
2026-07-23 6:43 ` [PATCH v2 1/4] spi: dt-bindings: amlogic: spisg: Document A9-specific properties Xianwei Zhao via B4 Relay
2026-07-23 6:51 ` sashiko-bot
2026-07-24 8:33 ` Krzysztof Kozlowski
2026-07-30 13:22 ` Mark Brown
2026-07-31 3:15 ` Xianwei Zhao [this message]
2026-07-23 6:43 ` [PATCH v2 2/4] spi: amlogic: spisg: Fix transfer size limit and timeout handling Xianwei Zhao via B4 Relay
2026-07-23 7:02 ` sashiko-bot
2026-07-23 6:43 ` [PATCH v2 3/4] spi: amlogic: spisg: Fix the incorrect keep_ss of the last descriptor Xianwei Zhao via B4 Relay
2026-07-23 6:54 ` sashiko-bot
2026-07-23 6:43 ` [PATCH v2 4/4] spi: amlogic: spisg: Add support for A9 controller features Xianwei Zhao via B4 Relay
2026-07-23 6:56 ` sashiko-bot
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=cd9e63b8-7c64-4a69-b772-014b03c9e3b1@amlogic.com \
--to=xianwei.zhao@amlogic.com \
--cc=broonie@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-amlogic@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-spi@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sunny.luo@amlogic.com \
/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
all inboxes | Powered by JetHome®