Skip to content

Commit 527890f

Browse files
Ulrich Hechtgeertu
authored andcommitted
pinctrl: sh-pfc: r8a77995: Add CAN FD support
This patch adds CAN FD[0-1] pinmux support to the r8a77995 SoC. Signed-off-by: Ulrich Hecht <[email protected]> Signed-off-by: Geert Uytterhoeven <[email protected]>
1 parent c45985d commit 527890f

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1098,6 +1098,22 @@ static const unsigned int can_clk_mux[] = {
10981098
CAN_CLK_MARK,
10991099
};
11001100

1101+
/* - CAN FD ----------------------------------------------------------------- */
1102+
static const unsigned int canfd0_data_pins[] = {
1103+
/* TX, RX */
1104+
RCAR_GP_PIN(4, 28), RCAR_GP_PIN(4, 31),
1105+
};
1106+
static const unsigned int canfd0_data_mux[] = {
1107+
CANFD0_TX_MARK, CANFD0_RX_MARK,
1108+
};
1109+
static const unsigned int canfd1_data_pins[] = {
1110+
/* TX, RX */
1111+
RCAR_GP_PIN(4, 30), RCAR_GP_PIN(4, 29),
1112+
};
1113+
static const unsigned int canfd1_data_mux[] = {
1114+
CANFD1_TX_MARK, CANFD1_RX_MARK,
1115+
};
1116+
11011117
/* - I2C -------------------------------------------------------------------- */
11021118
static const unsigned int i2c0_pins[] = {
11031119
/* SCL, SDA */
@@ -1550,6 +1566,8 @@ static const struct sh_pfc_pin_group pinmux_groups[] = {
15501566
SH_PFC_PIN_GROUP(can1_data_a),
15511567
SH_PFC_PIN_GROUP(can1_data_b),
15521568
SH_PFC_PIN_GROUP(can_clk),
1569+
SH_PFC_PIN_GROUP(canfd0_data),
1570+
SH_PFC_PIN_GROUP(canfd1_data),
15531571
SH_PFC_PIN_GROUP(i2c0),
15541572
SH_PFC_PIN_GROUP(i2c1),
15551573
SH_PFC_PIN_GROUP(i2c2_a),
@@ -1639,6 +1657,13 @@ static const char * const can_clk_groups[] = {
16391657
"can_clk",
16401658
};
16411659

1660+
static const char * const canfd0_groups[] = {
1661+
"canfd0_data",
1662+
};
1663+
static const char * const canfd1_groups[] = {
1664+
"canfd1_data",
1665+
};
1666+
16421667
static const char * const i2c0_groups[] = {
16431668
"i2c0",
16441669
};
@@ -1752,6 +1777,8 @@ static const struct sh_pfc_function pinmux_functions[] = {
17521777
SH_PFC_FUNCTION(can0),
17531778
SH_PFC_FUNCTION(can1),
17541779
SH_PFC_FUNCTION(can_clk),
1780+
SH_PFC_FUNCTION(canfd0),
1781+
SH_PFC_FUNCTION(canfd1),
17551782
SH_PFC_FUNCTION(i2c0),
17561783
SH_PFC_FUNCTION(i2c1),
17571784
SH_PFC_FUNCTION(i2c2),

0 commit comments

Comments
 (0)