* [PATCH v3] ARM: dts: renesas: r9a06g032-rzn1d400-eb: enable GPIOs on CN12
@ 2026-08-17 10:30 Wolfram Sang
2026-08-17 10:46 ` sashiko-bot
0 siblings, 1 reply; 2+ messages in thread
From: Wolfram Sang @ 2026-08-17 10:30 UTC (permalink / raw)
To: linux-renesas-soc
Cc: Wolfram Sang, Geert Uytterhoeven, Magnus Damm, Rob Herring,
Krzysztof Kozlowski, Conor Dooley, devicetree
CN12 offers some GPIOs independently of switch settings. Add the nodes.
Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---
Changes since v2:
* dropped patch 1 because Geert already queued it
* renamed pin node to 'cn12'
* rely on default pin-bias and drive-strength
.../arm/boot/dts/renesas/r9a06g032-rzn1d400-eb.dts | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-eb.dts b/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-eb.dts
index 303b5926d8d1..eb7295504715 100644
--- a/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-eb.dts
+++ b/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-eb.dts
@@ -53,6 +53,11 @@ led@1 {
};
};
+&gpio2b {
+ pinctrl-0 = <&pins_cn12>;
+ pinctrl-names = "default";
+};
+
&i2c2 {
/* Sensors are different across revisions. All are LM75B compatible */
sensor@49 {
@@ -81,6 +86,15 @@ &pci_usb {
};
&pinctrl {
+ pins_cn12: pins-cn12 {
+ pinmux = <RZN1_PINMUX(164, RZN1_FUNC_GPIO)>,
+ <RZN1_PINMUX(165, RZN1_FUNC_GPIO)>,
+ <RZN1_PINMUX(166, RZN1_FUNC_GPIO)>,
+ <RZN1_PINMUX(167, RZN1_FUNC_GPIO)>,
+ <RZN1_PINMUX(168, RZN1_FUNC_GPIO)>,
+ <RZN1_PINMUX(169, RZN1_FUNC_GPIO)>;
+ };
+
pins_eth0: pins-eth0 {
pinmux = <RZN1_PINMUX(0, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>,
<RZN1_PINMUX(1, RZN1_FUNC_CLK_ETH_MII_RGMII_RMII)>,
--
2.47.3
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH v3] ARM: dts: renesas: r9a06g032-rzn1d400-eb: enable GPIOs on CN12
2026-08-17 10:30 [PATCH v3] ARM: dts: renesas: r9a06g032-rzn1d400-eb: enable GPIOs on CN12 Wolfram Sang
@ 2026-08-17 10:46 ` sashiko-bot
0 siblings, 0 replies; 2+ messages in thread
From: sashiko-bot @ 2026-08-17 10:46 UTC (permalink / raw)
To: Wolfram Sang; +Cc: robh, devicetree, wsa+renesas, conor+dt
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The `pinctrl-0` and `pinctrl-names` properties are incorrectly placed in the `&gpio2b` child port node instead of the parent `&gpio2` controller node, causing the pinmux configuration to be completely ignored at runtime.
--
--- Patch [1]: [PATCH v3] ARM: dts: renesas: r9a06g032-rzn1d400-eb: enable GPIOs on CN12 ---
commit 36b1187107fd9570845145160bae9fb449b21c31
Author: Wolfram Sang <wsa+renesas@sang-engineering.com>
ARM: dts: renesas: r9a06g032-rzn1d400-eb: enable GPIOs on CN12
This commit enables GPIOs on CN12 for the RZN1D400 evaluation board. It adds
the pinmux configurations for the CN12 pins and assigns them to the gpio2b
node.
> diff --git a/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-eb.dts b/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-eb.dts
> index 97a339b30d764..e5bff296ea4a9 100644
> --- a/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-eb.dts
> +++ b/arch/arm/boot/dts/renesas/r9a06g032-rzn1d400-eb.dts
> @@ -53,6 +53,11 @@ led@1 {
> };
> };
>
> +&gpio2b {
> + pinctrl-0 = <&pins_cn12>;
> + pinctrl-names = "default";
> +};
[Severity: Medium]
Will these pinctrl properties be ignored here?
The Linux device core parses devicetree pinctrl properties by calling
pinctrl_bind_pins() strictly during driver probing. Since the gpio-dwapb
driver binds to the parent gpio2 controller node, the child port nodes like
gpio2b are never probed as independent platform devices.
Because gpio2b bypasses the probe path, the pinctrl core will not process
these properties, leaving the pins unconfigured. Should these pinctrl
properties be placed in the parent &gpio2 node instead?
[ ... ]
--
Sashiko AI review · https://sashiko.dev/#/patchset/20260817103255.49565-2-wsa+renesas@sang-engineering.com?part=1
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-08-17 10:46 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-17 10:30 [PATCH v3] ARM: dts: renesas: r9a06g032-rzn1d400-eb: enable GPIOs on CN12 Wolfram Sang
2026-08-17 10:46 ` sashiko-bot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.