Skip to content

Commit 23ef37d

Browse files
Fabrizio Castrodinguyen702
authored andcommitted
pinctrl: sh-pfc: r8a7791: Add tpu groups and function
This patch adds tpu groups and function to r8a7743/r8a7791/r8a7793. Signed-off-by: Fabrizio Castro <[email protected]> Reviewed-by: Biju Das <[email protected]> Signed-off-by: Geert Uytterhoeven <[email protected]> (cherry picked from commit 21047d5) Signed-off-by: Simon Horman <[email protected]> Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 119d6c1 commit 23ef37d

File tree

1 file changed

+40
-2
lines changed

1 file changed

+40
-2
lines changed

drivers/pinctrl/sh-pfc/pfc-r8a7791.c

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4145,6 +4145,32 @@ static const unsigned int ssi9_ctrl_b_mux[] = {
41454145
SSI_SCK9_B_MARK, SSI_WS9_B_MARK,
41464146
};
41474147

4148+
/* - TPU -------------------------------------------------------------------- */
4149+
static const unsigned int tpu_to0_pins[] = {
4150+
RCAR_GP_PIN(6, 14),
4151+
};
4152+
static const unsigned int tpu_to0_mux[] = {
4153+
TPU_TO0_MARK,
4154+
};
4155+
static const unsigned int tpu_to1_pins[] = {
4156+
RCAR_GP_PIN(1, 17),
4157+
};
4158+
static const unsigned int tpu_to1_mux[] = {
4159+
TPU_TO1_MARK,
4160+
};
4161+
static const unsigned int tpu_to2_pins[] = {
4162+
RCAR_GP_PIN(1, 18),
4163+
};
4164+
static const unsigned int tpu_to2_mux[] = {
4165+
TPU_TO2_MARK,
4166+
};
4167+
static const unsigned int tpu_to3_pins[] = {
4168+
RCAR_GP_PIN(1, 24),
4169+
};
4170+
static const unsigned int tpu_to3_mux[] = {
4171+
TPU_TO3_MARK,
4172+
};
4173+
41484174
/* - USB0 ------------------------------------------------------------------- */
41494175
static const unsigned int usb0_pins[] = {
41504176
RCAR_GP_PIN(7, 23), /* PWEN */
@@ -4431,7 +4457,7 @@ static const unsigned int vin2_clk_mux[] = {
44314457
};
44324458

44334459
static const struct {
4434-
struct sh_pfc_pin_group common[342];
4460+
struct sh_pfc_pin_group common[346];
44354461
struct sh_pfc_pin_group r8a779x[9];
44364462
} pinmux_groups = {
44374463
.common = {
@@ -4743,6 +4769,10 @@ static const struct {
47434769
SH_PFC_PIN_GROUP(ssi9_data_b),
47444770
SH_PFC_PIN_GROUP(ssi9_ctrl),
47454771
SH_PFC_PIN_GROUP(ssi9_ctrl_b),
4772+
SH_PFC_PIN_GROUP(tpu_to0),
4773+
SH_PFC_PIN_GROUP(tpu_to1),
4774+
SH_PFC_PIN_GROUP(tpu_to2),
4775+
SH_PFC_PIN_GROUP(tpu_to3),
47464776
SH_PFC_PIN_GROUP(usb0),
47474777
SH_PFC_PIN_GROUP(usb1),
47484778
VIN_DATA_PIN_GROUP(vin0_data, 24),
@@ -5278,6 +5308,13 @@ static const char * const ssi_groups[] = {
52785308
"ssi9_ctrl_b",
52795309
};
52805310

5311+
static const char * const tpu_groups[] = {
5312+
"tpu_to0",
5313+
"tpu_to1",
5314+
"tpu_to2",
5315+
"tpu_to3",
5316+
};
5317+
52815318
static const char * const usb0_groups[] = {
52825319
"usb0",
52835320
};
@@ -5327,7 +5364,7 @@ static const char * const vin2_groups[] = {
53275364
};
53285365

53295366
static const struct {
5330-
struct sh_pfc_function common[57];
5367+
struct sh_pfc_function common[58];
53315368
struct sh_pfc_function r8a779x[2];
53325369
} pinmux_functions = {
53335370
.common = {
@@ -5383,6 +5420,7 @@ static const struct {
53835420
SH_PFC_FUNCTION(sdhi1),
53845421
SH_PFC_FUNCTION(sdhi2),
53855422
SH_PFC_FUNCTION(ssi),
5423+
SH_PFC_FUNCTION(tpu),
53865424
SH_PFC_FUNCTION(usb0),
53875425
SH_PFC_FUNCTION(usb1),
53885426
SH_PFC_FUNCTION(vin0),

0 commit comments

Comments
 (0)