Skip to content

Commit 0d68d46

Browse files
bijudasgeertu
authored andcommitted
pinctrl: sh-pfc: r8a7794: Add i2c5 pin groups and function
Add i2c5 pin groups and function to r8a7745 PFC driver. Signed-off-by: Biju Das <[email protected]> Reviewed-by: Fabrizio Castro <[email protected]> Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent 64dbebc commit 0d68d46

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

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

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2228,6 +2228,35 @@ static const unsigned int i2c4_e_pins[] = {
22282228
static const unsigned int i2c4_e_mux[] = {
22292229
I2C4_SCL_E_MARK, I2C4_SDA_E_MARK,
22302230
};
2231+
/* - I2C5 ------------------------------------------------------------------- */
2232+
static const unsigned int i2c5_pins[] = {
2233+
/* SCL, SDA */
2234+
RCAR_GP_PIN(4, 14), RCAR_GP_PIN(4, 15),
2235+
};
2236+
static const unsigned int i2c5_mux[] = {
2237+
I2C5_SCL_MARK, I2C5_SDA_MARK,
2238+
};
2239+
static const unsigned int i2c5_b_pins[] = {
2240+
/* SCL, SDA */
2241+
RCAR_GP_PIN(0, 14), RCAR_GP_PIN(0, 15),
2242+
};
2243+
static const unsigned int i2c5_b_mux[] = {
2244+
I2C5_SCL_B_MARK, I2C5_SDA_B_MARK,
2245+
};
2246+
static const unsigned int i2c5_c_pins[] = {
2247+
/* SCL, SDA */
2248+
RCAR_GP_PIN(4, 31), RCAR_GP_PIN(4, 30),
2249+
};
2250+
static const unsigned int i2c5_c_mux[] = {
2251+
I2C5_SCL_C_MARK, I2C5_SDA_C_MARK,
2252+
};
2253+
static const unsigned int i2c5_d_pins[] = {
2254+
/* SCL, SDA */
2255+
RCAR_GP_PIN(3, 13), RCAR_GP_PIN(3, 14),
2256+
};
2257+
static const unsigned int i2c5_d_mux[] = {
2258+
I2C5_SCL_D_MARK, I2C5_SDA_D_MARK,
2259+
};
22312260
/* - INTC ------------------------------------------------------------------- */
22322261
static const unsigned int intc_irq0_pins[] = {
22332262
/* IRQ0 */
@@ -3821,6 +3850,10 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
38213850
SH_PFC_PIN_GROUP(i2c4_c),
38223851
SH_PFC_PIN_GROUP(i2c4_d),
38233852
SH_PFC_PIN_GROUP(i2c4_e),
3853+
SH_PFC_PIN_GROUP(i2c5),
3854+
SH_PFC_PIN_GROUP(i2c5_b),
3855+
SH_PFC_PIN_GROUP(i2c5_c),
3856+
SH_PFC_PIN_GROUP(i2c5_d),
38243857
SH_PFC_PIN_GROUP(intc_irq0),
38253858
SH_PFC_PIN_GROUP(intc_irq1),
38263859
SH_PFC_PIN_GROUP(intc_irq2),
@@ -4196,6 +4229,13 @@ static const char * const i2c4_groups[] = {
41964229
"i2c4_e",
41974230
};
41984231

4232+
static const char * const i2c5_groups[] = {
4233+
"i2c5",
4234+
"i2c5_b",
4235+
"i2c5_c",
4236+
"i2c5_d",
4237+
};
4238+
41994239
static const char * const intc_groups[] = {
42004240
"intc_irq0",
42014241
"intc_irq1",
@@ -4537,6 +4577,7 @@ static const struct sh_pfc_function pinmux_functions[] = {
45374577
SH_PFC_FUNCTION(i2c2),
45384578
SH_PFC_FUNCTION(i2c3),
45394579
SH_PFC_FUNCTION(i2c4),
4580+
SH_PFC_FUNCTION(i2c5),
45404581
SH_PFC_FUNCTION(intc),
45414582
SH_PFC_FUNCTION(mmc),
45424583
SH_PFC_FUNCTION(msiof0),

0 commit comments

Comments
 (0)