From: sashiko-bot@kernel.org
To: "Fil Dunsky" <filipp.dunsky@gmail.com>
Cc: devicetree@vger.kernel.org, linux-gpio@vger.kernel.org,
linux-watchdog@vger.kernel.org, robh@kernel.org,
conor+dt@kernel.org
Subject: Re: [PATCH v2 03/11] dt-bindings: gpio: Add Cortina Systems CS7542 GPIO controller
Date: Tue, 13 Oct 2026 03:53:29 +0000 [thread overview]
Message-ID: <sashiko-outbox-168930@kernel.org> (raw)
In-Reply-To: <20261013-b4-cs75xx-s2-v2-3-94f8c0a90cda@gmail.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] dt-bindings: gpio: direct mapping of shared global control block
--
commit f730ed90fa497531db852f78666a6a8d9be45f40
Author: Fil Dunsky <filipp.dunsky@gmail.com>
dt-bindings: gpio: Add Cortina Systems CS7542 GPIO controller
This commit introduces a device tree binding for the Cortina Systems CS75xx
GPIO controller. It specifies five banks of 32 GPIO lines, each with its
own interrupt. The pins are shared between GPIO and peripheral functions
configured via a multiplexing register within a global control block.
> diff --git a/Documentation/devicetree/bindings/gpio/cortina,cs7542-gpio.yaml b/Documentation/devicetree/bindings/gpio/cortina,cs7542-gpio.yaml
> new file mode 100644
> --- /dev/null
> +++ b/Documentation/devicetree/bindings/gpio/cortina,cs7542-gpio.yaml
[ ... ]
> +properties:
> + compatible:
> + const: cortina,cs7542-gpio
> +
> + reg:
> + items:
> + - description: GPIO bank registers
> + - description: GPIO_MUX register of the bank
[Severity: Medium]
Does directly mapping the shared global control block in the reg property
risk resource request collisions at runtime?
If multiple drivers attempt to map the shared global control block, it can
lead to request_mem_region failures. Additionally, handling pin multiplexing
directly in the GPIO controller binding appears to bypass the pinctrl
subsystem.
Should the global control block be defined as a syscon node instead, with
the GPIO controller referencing it via a phandle (for example,
cortina,syscon = <&gcb>)? This would allow safe register modifications,
leaving pin multiplexing logic to be managed by the pinctrl subsystem.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261013-b4-cs75xx-s2-v2-0-94f8c0a90cda@gmail.com?part=3
next prev parent reply other threads:[~2026-10-13 3:53 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-10-13 3:46 [PATCH v2 00/11] Cortina Systems CS75xx: interrupt controller, GPIO, I2C and TWD watchdog Fil Dunsky via B4 Relay
2026-10-13 3:46 ` [PATCH v2 01/11] dt-bindings: interrupt-controller: Add Cortina Systems CS7542 peripheral interrupt controller Fil Dunsky via B4 Relay
2026-10-13 3:47 ` [PATCH v2 02/11] irqchip: Add Cortina Systems CS75xx " Fil Dunsky via B4 Relay
2026-10-13 3:47 ` [PATCH v2 03/11] dt-bindings: gpio: Add Cortina Systems CS7542 GPIO controller Fil Dunsky via B4 Relay
2026-10-13 3:53 ` sashiko-bot [this message]
2026-10-13 3:47 ` [PATCH v2 04/11] gpio: Add Cortina Systems CS75xx GPIO driver Fil Dunsky via B4 Relay
2026-10-13 3:58 ` sashiko-bot
2026-10-13 3:47 ` [PATCH v2 05/11] dt-bindings: i2c: Add Cortina Systems CS7542 I2C controller Fil Dunsky via B4 Relay
2026-10-13 3:47 ` [PATCH v2 06/11] i2c: Add Cortina Systems CS75xx I2C controller driver Fil Dunsky via B4 Relay
2026-10-13 4:04 ` sashiko-bot
2026-10-13 3:47 ` [PATCH v2 07/11] watchdog: Add ARM TWD (MPCore private) watchdog driver Fil Dunsky via B4 Relay
2026-10-13 4:10 ` sashiko-bot
2026-10-13 3:47 ` [PATCH v2 08/11] ARM: dts: cortina: cs7542: Add interrupt controller, GPIO and I2C Fil Dunsky via B4 Relay
2026-10-13 3:47 ` [PATCH v2 09/11] ARM: dts: cortina: almondplus: Add reset button and enable I2C Fil Dunsky via B4 Relay
2026-10-13 3:47 ` [PATCH v2 10/11] ARM: multi_v7_defconfig: Enable Cortina Systems CS75xx GPIO, I2C and TWD watchdog Fil Dunsky via B4 Relay
2026-10-13 6:13 ` Krzysztof Kozlowski
2026-10-13 6:19 ` Fil Dunsky
2026-10-13 3:47 ` [PATCH v2 11/11] MAINTAINERS: Add Cortina Systems CS75xx interrupt controller, GPIO and I2C Fil Dunsky via B4 Relay
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=sashiko-outbox-168930@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=filipp.dunsky@gmail.com \
--cc=linux-gpio@vger.kernel.org \
--cc=linux-watchdog@vger.kernel.org \
--cc=robh@kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
/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