From: Petar Stepanovic <pstepanovic@axiado.com>
To: Krzysztof Kozlowski <krzk@kernel.org>,
Tzu-Hao Wei <twei@axiado.com>, Swark Yang <syang@axiado.com>,
Prasad Bolisetty <pbolisetty@axiado.com>,
Linus Walleij <linusw@kernel.org>,
Bartosz Golaszewski <brgl@kernel.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Harshit Shah <hshah@axiado.com>,
SriNavmani A <srinavmani@axiado.com>,
Karthikeyan Mitran <kmitran@axiado.com>
Cc: linux-gpio@vger.kernel.org, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: gpio: Add Axiado SGPIO controller
Date: Wed, 5 Aug 2026 12:23:32 +0200 [thread overview]
Message-ID: <e9fb5dd2-3fd5-4dba-b26d-c47abe6885a5@axiado.com> (raw)
In-Reply-To: <986fac76-3bcd-4523-a902-701027aff1bf@kernel.org>
On 7/29/2026 10:03 AM, Krzysztof Kozlowski wrote:
> On 29/07/2026 09:02, Petar Stepanovic wrote:
>> ...
>>
>> +
>> + bus-frequency:
>> + description: SGPIO shift clock frequency in Hz
>> + minimum: 1
> Such property is not allowed. Why you cannot calculate it automatically?
|bus-frequency| specifies the required SGPIO shift-clock frequency, not the
input APB clock frequency.
Although the divider can be calculated automatically, the desired output
frequency cannot be determined from the APB clock alone. Similar to the I2C
bus frequency, the SGPIO communication speed is a board-level parameter that
must be selected to meet the timing requirements of the connected target
devices.
Different external SGPIO devices and board designs may require different
shift-clock frequencies because of device timing limits and signal-integrity
constraints.
The upstream ASPEED SGPIO binding uses the same approach: it provides the
APB clock through |clocks| and uses |bus-frequency| to select the required
SGPIO communication rate. The driver then calculates the corresponding
divider.
Is there a preferred generic property or another mechanism that should be
used for selecting the SGPIO shift-clock frequency?
>> ...
>>
>> +
>> + ngpios:
>> + description:
>> + Number of SGPIO positions. Each position provides one input GPIO and
>> + one output GPIO.
>> + enum: [128, 512]
>> +
>> +allOf:
>> + - if:
>> + properties:
>> + compatible:
>> + const: axiado,ax3000-sgpio
>> + then:
>> + properties:
>> + ngpios:
>> + const: 128
> else what? 3005 has 512? Then these are implied by compatible, no?
No, the exact number of GPIOs is not implied by the compatible string.
AX3000 supports any valid number of GPIOs up to 128, while AX3005 supports
any valid number up to 512, depending on the target configuration.
The current binding and driver incorrectly restrict |ngpios| to the fixed
values 128 and 512. I will remove this restriction and update the next
version to enforce the appropriate maximum for each compatible.
Best regards,
Petar
next prev parent reply other threads:[~2026-08-05 10:23 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-29 7:02 [PATCH v2 0/2] gpio: add support for Axiado SGPIO controller Petar Stepanovic
2026-07-29 7:02 ` [PATCH v2 1/2] dt-bindings: gpio: Add " Petar Stepanovic
2026-07-29 7:10 ` sashiko-bot
2026-07-29 8:03 ` Krzysztof Kozlowski
2026-08-05 10:23 ` Petar Stepanovic [this message]
2026-07-29 7:02 ` [PATCH v2 2/2] gpio: axiado: add SGPIO controller support Petar Stepanovic
2026-07-29 7:14 ` sashiko-bot
2026-07-29 20:28 ` Linus Walleij
2026-08-05 10:29 ` Petar Stepanovic
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=e9fb5dd2-3fd5-4dba-b26d-c47abe6885a5@axiado.com \
--to=pstepanovic@axiado.com \
--cc=brgl@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=hshah@axiado.com \
--cc=kmitran@axiado.com \
--cc=krzk+dt@kernel.org \
--cc=krzk@kernel.org \
--cc=linusw@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=pbolisetty@axiado.com \
--cc=robh@kernel.org \
--cc=srinavmani@axiado.com \
--cc=syang@axiado.com \
--cc=twei@axiado.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