Skip to content

Commit da26dbd

Browse files
Phuc Phamfabiobaltieri
authored andcommitted
drivers: pinctrl: Add support for Renesas RZ/G2UL
Add pinctrl support for Renesas RZ/G2UL Signed-off-by: Phuc Pham <phuc.pham.xr@bp.renesas.com> Signed-off-by: Nhut Nguyen <nhut.nguyen.kc@renesas.com>
1 parent 82b4a05 commit da26dbd

File tree

3 files changed

+23
-1
lines changed

3 files changed

+23
-1
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Copyright (c) 2025 Renesas Electronics Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
#include <zephyr/dt-bindings/gpio/gpio.h>
7+
#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-rzg2-common.h>
8+
9+
&pinctrl {
10+
/omit-if-no-ref/ scif0_pins: scif0 {
11+
scif0-pinmux {
12+
pinmux = <RZG_PINMUX(PORT_06, 3, 6)>, /* RXD */
13+
<RZG_PINMUX(PORT_06, 4, 6)>; /* TXD */
14+
};
15+
};
16+
};

dts/arm/renesas/rz/rzg/r9a07g043.dtsi

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@
3232
};
3333

3434
soc {
35+
pinctrl: pin-controller@41030000 {
36+
compatible = "renesas,rzg-pinctrl";
37+
reg = <0x41030000 DT_SIZE_K(64)>;
38+
reg-names = "pinctrl";
39+
};
40+
3541
scif0: serial@4004b800 {
3642
compatible = "renesas,rz-scif-uart";
3743
channel = <0>;

dts/bindings/pinctrl/renesas,rzg-pinctrl.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ description: |
1010
1111
The pre-defined combinations for the RZ/G variants are defined in the below headers
1212
- pinctrl-rzg-common.h for RZ/G3S
13-
- pinctrl-rzg2-common.h for RZ/G2L, RZ/G2LC
13+
- pinctrl-rzg2-common.h for RZ/G2L, RZ/G2LC, RZ/G2UL
1414
1515
#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-rzg(2)-common.h>
1616
example_pins: device_pin {

0 commit comments

Comments
 (0)