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>
This commit is contained in:
Phuc Pham 2025-05-26 17:40:29 +07:00 committed by Fabio Baltieri
commit da26dbd08a
3 changed files with 23 additions and 1 deletions

View file

@ -0,0 +1,16 @@
/*
* Copyright (c) 2025 Renesas Electronics Corporation
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/dt-bindings/gpio/gpio.h>
#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-rzg2-common.h>
&pinctrl {
/omit-if-no-ref/ scif0_pins: scif0 {
scif0-pinmux {
pinmux = <RZG_PINMUX(PORT_06, 3, 6)>, /* RXD */
<RZG_PINMUX(PORT_06, 4, 6)>; /* TXD */
};
};
};

View file

@ -32,6 +32,12 @@
};
soc {
pinctrl: pin-controller@41030000 {
compatible = "renesas,rzg-pinctrl";
reg = <0x41030000 DT_SIZE_K(64)>;
reg-names = "pinctrl";
};
scif0: serial@4004b800 {
compatible = "renesas,rz-scif-uart";
channel = <0>;

View file

@ -10,7 +10,7 @@ description: |
The pre-defined combinations for the RZ/G variants are defined in the below headers
- pinctrl-rzg-common.h for RZ/G3S
- pinctrl-rzg2-common.h for RZ/G2L, RZ/G2LC
- pinctrl-rzg2-common.h for RZ/G2L, RZ/G2LC, RZ/G2UL
#include <zephyr/dt-bindings/pinctrl/renesas/pinctrl-rzg(2)-common.h>
example_pins: device_pin {