Skip to content

Commit fb73d66

Browse files
prabhakarladgeertu
authored andcommitted
dt-bindings: pinctrl: renesas: Document RZ/V2H(P) SoC
Add documentation for the pin controller found on the Renesas RZ/V2H(P) (R9A09G057) SoC. The RZ/V2H PFC varies slightly compared to the RZ/G2L family: - Additional bits need to be set during pinmuxing, - The GPIO pin count is different. Hence, a SoC-specific compatible string, 'renesas,r9a09g057-pinctrl', is added for the RZ/V2H(P) SoC. Also, add the 'renesas,output-impedance' property. The drive strength settings on RZ/V2H(P) depend on the different power rails coming out from the PMIC (connected via I2C). These power rails (required for drive strength) can be 1.2V, 1.8V, or 3.3V. Pins are grouped into 4 groups: Group 1: Impedance - 150/75/38/25 ohms (at 3.3V) - 130/65/33/22 ohms (at 1.8V) Group 2: Impedance - 50/40/33/25 ohms (at 1.8V) Group 3: Impedance - 150/75/37.5/25 ohms (at 3.3V) - 130/65/33/22 ohms (at 1.8V) Group 4: Impedance - 110/55/30/20 ohms (at 1.8V) - 150/75/38/25 ohms (at 1.2V) The 'renesas,output-impedance' property, as documented, can be [0, 1, 2, 3], these correspond to register bit values that can be set in the PFC_IOLH_mn register, which adjusts the drive strength value and is pin-dependent. As power rail information may not be available very early in the boot process, the 'renesas,output-impedance' property is added instead of reusing the 'output-impedance-ohms' property. Also, allow bias-disable, bias-pull-down and bias-pull-up properties as these can be used to configure the pins. Signed-off-by: Lad Prabhakar <[email protected]> Reviewed-by: Geert Uytterhoeven <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 951eaac commit fb73d66

File tree

1 file changed

+33
-4
lines changed

1 file changed

+33
-4
lines changed

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

Lines changed: 33 additions & 4 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,r9a09g057-pinctrl # RZ/V2H(P)
2930

3031
- items:
3132
- enum:
@@ -66,10 +67,14 @@ properties:
6667
maxItems: 1
6768

6869
resets:
69-
items:
70-
- description: GPIO_RSTN signal
71-
- description: GPIO_PORT_RESETN signal
72-
- description: GPIO_SPARE_RESETN signal
70+
oneOf:
71+
- items:
72+
- description: GPIO_RSTN signal
73+
- description: GPIO_PORT_RESETN signal
74+
- description: GPIO_SPARE_RESETN signal
75+
- items:
76+
- description: PFC main reset
77+
- description: Reset for the control register related to WDTUDFCA and WDTUDFFCM pins
7378

7479
additionalProperties:
7580
anyOf:
@@ -111,6 +116,16 @@ additionalProperties:
111116
output-high: true
112117
output-low: true
113118
line-name: true
119+
bias-disable: true
120+
bias-pull-down: true
121+
bias-pull-up: true
122+
renesas,output-impedance:
123+
description:
124+
Output impedance for pins on the RZ/V2H(P) SoC. The value provided by this
125+
property corresponds to register bit values that can be set in the PFC_IOLH_mn
126+
register, which adjusts the drive strength value and is pin-dependent.
127+
$ref: /schemas/types.yaml#/definitions/uint32
128+
enum: [0, 1, 2, 3]
114129

115130
- type: object
116131
additionalProperties:
@@ -119,6 +134,20 @@ additionalProperties:
119134
allOf:
120135
- $ref: pinctrl.yaml#
121136

137+
- if:
138+
properties:
139+
compatible:
140+
contains:
141+
const: renesas,r9a09g057-pinctrl
142+
then:
143+
properties:
144+
resets:
145+
maxItems: 2
146+
else:
147+
properties:
148+
resets:
149+
minItems: 3
150+
122151
required:
123152
- compatible
124153
- reg

0 commit comments

Comments
 (0)