Skip to content

Commit b4e10c3

Browse files
committed
Merge tag 'renesas-pinctrl-for-v6.7-tag2' of git://git.kernel.org/pub/scm/linux/kernel/git/geert/renesas-drivers into devel
pinctrl: renesas: Updates for v6.7 (take two) - Add pin groups for the Local Bus State Controller (LBSC) on R-Car M1A, - Add support for the RZ/G3S (R9A08G045) SoC, - Miscellaneous fixes and improvements. Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2 parents c341ac6 + 583d807 commit b4e10c3

File tree

4 files changed

+613
-151
lines changed

4 files changed

+613
-151
lines changed

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ properties:
2525
- enum:
2626
- renesas,r9a07g043-pinctrl # RZ/G2UL{Type-1,Type-2} and RZ/Five
2727
- renesas,r9a07g044-pinctrl # RZ/G2{L,LC}
28+
- renesas,r9a08g045-pinctrl # RZ/G3S
2829

2930
- items:
3031
- enum:
@@ -78,6 +79,21 @@ additionalProperties:
7879
- $ref: pincfg-node.yaml#
7980
- $ref: pinmux-node.yaml#
8081

82+
- if:
83+
properties:
84+
compatible:
85+
contains:
86+
enum:
87+
- renesas,r9a08g045-pinctrl
88+
then:
89+
properties:
90+
drive-strength: false
91+
output-impedance-ohms: false
92+
slew-rate: false
93+
else:
94+
properties:
95+
drive-strength-microamp: false
96+
8197
description:
8298
Pin controller client devices use pin configuration subnodes (children
8399
and grandchildren) for desired pin configuration.
@@ -92,6 +108,10 @@ additionalProperties:
92108
pins: true
93109
drive-strength:
94110
enum: [ 2, 4, 8, 12 ]
111+
drive-strength-microamp:
112+
enum: [ 1900, 2200, 4000, 4400, 4500, 4700, 5200, 5300, 5700,
113+
5800, 6000, 6050, 6100, 6550, 6800, 7000, 8000, 9000,
114+
10000 ]
95115
output-impedance-ohms:
96116
enum: [ 33, 50, 66, 100 ]
97117
power-source:

drivers/pinctrl/renesas/pfc-r8a7778.c

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,6 +1424,24 @@ I2C_PFC_MUX(i2c3_b, SDA3_B, SCL3_B);
14241424
I2C_PFC_PIN(i2c3_c, RCAR_GP_PIN(1, 22), RCAR_GP_PIN(1, 23));
14251425
I2C_PFC_MUX(i2c3_c, SDA3_C, SCL3_C);
14261426

1427+
/* - LBSC ------------------------------------------------------------------- */
1428+
SH_PFC_PINS(lbsc_cs0, PIN_CS0);
1429+
SH_PFC_MUX1(lbsc_cs0, CS0);
1430+
SH_PFC_PINS(lbsc_cs1, PIN_CS1_A26);
1431+
SH_PFC_MUX1(lbsc_cs1, CS1_A26);
1432+
SH_PFC_PINS(lbsc_ex_cs0, RCAR_GP_PIN(1, 3));
1433+
SH_PFC_MUX1(lbsc_ex_cs0, EX_CS0);
1434+
SH_PFC_PINS(lbsc_ex_cs1, RCAR_GP_PIN(1, 4));
1435+
SH_PFC_MUX1(lbsc_ex_cs1, EX_CS1);
1436+
SH_PFC_PINS(lbsc_ex_cs2, RCAR_GP_PIN(1, 5));
1437+
SH_PFC_MUX1(lbsc_ex_cs2, EX_CS2);
1438+
SH_PFC_PINS(lbsc_ex_cs3, RCAR_GP_PIN(1, 6));
1439+
SH_PFC_MUX1(lbsc_ex_cs3, EX_CS3);
1440+
SH_PFC_PINS(lbsc_ex_cs4, RCAR_GP_PIN(1, 7));
1441+
SH_PFC_MUX1(lbsc_ex_cs4, EX_CS4);
1442+
SH_PFC_PINS(lbsc_ex_cs5, RCAR_GP_PIN(1, 8));
1443+
SH_PFC_MUX1(lbsc_ex_cs5, EX_CS5);
1444+
14271445
/* - MMC macro -------------------------------------------------------------- */
14281446
#define MMC_PFC_PINS(name, args...) SH_PFC_PINS(name, args)
14291447
#define MMC_PFC_CTRL(name, clk, cmd) SH_PFC_MUX2(name, clk, cmd)
@@ -1724,6 +1742,14 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
17241742
SH_PFC_PIN_GROUP(i2c3_a),
17251743
SH_PFC_PIN_GROUP(i2c3_b),
17261744
SH_PFC_PIN_GROUP(i2c3_c),
1745+
SH_PFC_PIN_GROUP(lbsc_cs0),
1746+
SH_PFC_PIN_GROUP(lbsc_cs1),
1747+
SH_PFC_PIN_GROUP(lbsc_ex_cs0),
1748+
SH_PFC_PIN_GROUP(lbsc_ex_cs1),
1749+
SH_PFC_PIN_GROUP(lbsc_ex_cs2),
1750+
SH_PFC_PIN_GROUP(lbsc_ex_cs3),
1751+
SH_PFC_PIN_GROUP(lbsc_ex_cs4),
1752+
SH_PFC_PIN_GROUP(lbsc_ex_cs5),
17271753
SH_PFC_PIN_GROUP(mmc_ctrl),
17281754
BUS_DATA_PIN_GROUP(mmc_data, 1),
17291755
BUS_DATA_PIN_GROUP(mmc_data, 4),
@@ -1897,6 +1923,17 @@ static const char * const i2c3_groups[] = {
18971923
"i2c3_c",
18981924
};
18991925

1926+
static const char * const lbsc_groups[] = {
1927+
"lbsc_cs0",
1928+
"lbsc_cs1",
1929+
"lbsc_ex_cs0",
1930+
"lbsc_ex_cs1",
1931+
"lbsc_ex_cs2",
1932+
"lbsc_ex_cs3",
1933+
"lbsc_ex_cs4",
1934+
"lbsc_ex_cs5",
1935+
};
1936+
19001937
static const char * const mmc_groups[] = {
19011938
"mmc_ctrl",
19021939
"mmc_data1",
@@ -2049,6 +2086,7 @@ static const struct sh_pfc_function pinmux_functions[] = {
20492086
SH_PFC_FUNCTION(i2c1),
20502087
SH_PFC_FUNCTION(i2c2),
20512088
SH_PFC_FUNCTION(i2c3),
2089+
SH_PFC_FUNCTION(lbsc),
20522090
SH_PFC_FUNCTION(mmc),
20532091
SH_PFC_FUNCTION(scif_clk),
20542092
SH_PFC_FUNCTION(scif0),

0 commit comments

Comments
 (0)