Skip to content

Commit 5c7fb20

Browse files
bijudasgeertu
authored andcommitted
dt-bindings: pinctrl: renesas: Document RZ/G3E SoC
Add documentation for the pin controller found on the Renesas RZ/G3E (R9A09G047) SoC. The RZ/G3E PFC is similar to the RZ/V2H SoC but has more pins(P00-PS3). Acked-by: Conor Dooley <conor.dooley@microchip.com> Signed-off-by: Biju Das <biju.das.jz@bp.renesas.com> Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Link: https://lore.kernel.org/20241216195325.164212-3-biju.das.jz@bp.renesas.com Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent 25458fd commit 5c7fb20

File tree

2 files changed

+46
-2
lines changed

2 files changed

+46
-2
lines changed

Documentation/devicetree/bindings/pinctrl/renesas,rzg2l-pinctrl.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ properties:
2626
- renesas,r9a07g043-pinctrl # RZ/G2UL{Type-1,Type-2} and RZ/Five
2727
- renesas,r9a07g044-pinctrl # RZ/G2{L,LC}
2828
- renesas,r9a08g045-pinctrl # RZ/G3S
29+
- renesas,r9a09g047-pinctrl # RZ/G3E
2930
- renesas,r9a09g057-pinctrl # RZ/V2H(P)
3031

3132
- items:
@@ -125,7 +126,7 @@ additionalProperties:
125126
drive-push-pull: true
126127
renesas,output-impedance:
127128
description:
128-
Output impedance for pins on the RZ/V2H(P) SoC. The value provided by this
129+
Output impedance for pins on the RZ/{G3E,V2H(P)} SoC. The value provided by this
129130
property corresponds to register bit values that can be set in the PFC_IOLH_mn
130131
register, which adjusts the drive strength value and is pin-dependent.
131132
$ref: /schemas/types.yaml#/definitions/uint32
@@ -142,7 +143,9 @@ allOf:
142143
properties:
143144
compatible:
144145
contains:
145-
const: renesas,r9a09g057-pinctrl
146+
enum:
147+
- renesas,r9a09g047-pinctrl
148+
- renesas,r9a09g057-pinctrl
146149
then:
147150
properties:
148151
resets:
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2+
/*
3+
* This header provides constants for Renesas RZ/G3E family pinctrl bindings.
4+
*
5+
* Copyright (C) 2024 Renesas Electronics Corp.
6+
*
7+
*/
8+
9+
#ifndef __DT_BINDINGS_PINCTRL_RENESAS_R9A09G047_PINCTRL_H__
10+
#define __DT_BINDINGS_PINCTRL_RENESAS_R9A09G047_PINCTRL_H__
11+
12+
#include <dt-bindings/pinctrl/rzg2l-pinctrl.h>
13+
14+
/* RZG3E_Px = Offset address of PFC_P_mn - 0x20 */
15+
#define RZG3E_P0 0
16+
#define RZG3E_P1 1
17+
#define RZG3E_P2 2
18+
#define RZG3E_P3 3
19+
#define RZG3E_P4 4
20+
#define RZG3E_P5 5
21+
#define RZG3E_P6 6
22+
#define RZG3E_P7 7
23+
#define RZG3E_P8 8
24+
#define RZG3E_PA 10
25+
#define RZG3E_PB 11
26+
#define RZG3E_PC 12
27+
#define RZG3E_PD 13
28+
#define RZG3E_PE 14
29+
#define RZG3E_PF 15
30+
#define RZG3E_PG 16
31+
#define RZG3E_PH 17
32+
#define RZG3E_PJ 19
33+
#define RZG3E_PK 20
34+
#define RZG3E_PL 21
35+
#define RZG3E_PM 22
36+
#define RZG3E_PS 28
37+
38+
#define RZG3E_PORT_PINMUX(b, p, f) RZG2L_PORT_PINMUX(RZG3E_P##b, p, f)
39+
#define RZG3E_GPIO(port, pin) RZG2L_GPIO(RZG3E_P##port, pin)
40+
41+
#endif /* __DT_BINDINGS_PINCTRL_RENESAS_R9A09G047_PINCTRL_H__ */

0 commit comments

Comments
 (0)