Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: sh-pfc: r8a7796: Add EtherAVB pins, groups and functions

This patch adds AVB_LINK, AVB_MAGIC, AVB_PHY_INT, AVB_MDC, AVB_AVTP_PPS,
AVB_AVTP_MATCH, AVB_AVTP_CAPTURE pins, groups and functions to R8A7796
SoC.

Signed-off-by: Takeshi Kihara <takeshi.kihara.df@renesas.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

authored by

Takeshi Kihara and committed by
Geert Uytterhoeven
9c99a63e 0f866a96

+87
+87
drivers/pinctrl/sh-pfc/pfc-r8a7796.c
··· 1490 1490 PINMUX_GPIO_GP_ALL(), 1491 1491 }; 1492 1492 1493 + /* - EtherAVB --------------------------------------------------------------- */ 1494 + static const unsigned int avb_link_pins[] = { 1495 + /* AVB_LINK */ 1496 + RCAR_GP_PIN(2, 12), 1497 + }; 1498 + static const unsigned int avb_link_mux[] = { 1499 + AVB_LINK_MARK, 1500 + }; 1501 + static const unsigned int avb_magic_pins[] = { 1502 + /* AVB_MAGIC_ */ 1503 + RCAR_GP_PIN(2, 10), 1504 + }; 1505 + static const unsigned int avb_magic_mux[] = { 1506 + AVB_MAGIC_MARK, 1507 + }; 1508 + static const unsigned int avb_phy_int_pins[] = { 1509 + /* AVB_PHY_INT */ 1510 + RCAR_GP_PIN(2, 11), 1511 + }; 1512 + static const unsigned int avb_phy_int_mux[] = { 1513 + AVB_PHY_INT_MARK, 1514 + }; 1515 + static const unsigned int avb_mdc_pins[] = { 1516 + /* AVB_MDC */ 1517 + RCAR_GP_PIN(2, 9), 1518 + }; 1519 + static const unsigned int avb_mdc_mux[] = { 1520 + AVB_MDC_MARK, 1521 + }; 1522 + static const unsigned int avb_avtp_pps_pins[] = { 1523 + /* AVB_AVTP_PPS */ 1524 + RCAR_GP_PIN(2, 6), 1525 + }; 1526 + static const unsigned int avb_avtp_pps_mux[] = { 1527 + AVB_AVTP_PPS_MARK, 1528 + }; 1529 + static const unsigned int avb_avtp_match_a_pins[] = { 1530 + /* AVB_AVTP_MATCH_A */ 1531 + RCAR_GP_PIN(2, 13), 1532 + }; 1533 + static const unsigned int avb_avtp_match_a_mux[] = { 1534 + AVB_AVTP_MATCH_A_MARK, 1535 + }; 1536 + static const unsigned int avb_avtp_capture_a_pins[] = { 1537 + /* AVB_AVTP_CAPTURE_A */ 1538 + RCAR_GP_PIN(2, 14), 1539 + }; 1540 + static const unsigned int avb_avtp_capture_a_mux[] = { 1541 + AVB_AVTP_CAPTURE_A_MARK, 1542 + }; 1543 + static const unsigned int avb_avtp_match_b_pins[] = { 1544 + /* AVB_AVTP_MATCH_B */ 1545 + RCAR_GP_PIN(1, 8), 1546 + }; 1547 + static const unsigned int avb_avtp_match_b_mux[] = { 1548 + AVB_AVTP_MATCH_B_MARK, 1549 + }; 1550 + static const unsigned int avb_avtp_capture_b_pins[] = { 1551 + /* AVB_AVTP_CAPTURE_B */ 1552 + RCAR_GP_PIN(1, 11), 1553 + }; 1554 + static const unsigned int avb_avtp_capture_b_mux[] = { 1555 + AVB_AVTP_CAPTURE_B_MARK, 1556 + }; 1557 + 1493 1558 /* - DRIF0 --------------------------------------------------------------- */ 1494 1559 static const unsigned int drif0_ctrl_a_pins[] = { 1495 1560 /* CLK, SYNC */ ··· 2243 2178 }; 2244 2179 2245 2180 static const struct sh_pfc_pin_group pinmux_groups[] = { 2181 + SH_PFC_PIN_GROUP(avb_link), 2182 + SH_PFC_PIN_GROUP(avb_magic), 2183 + SH_PFC_PIN_GROUP(avb_phy_int), 2184 + SH_PFC_PIN_GROUP(avb_mdc), 2185 + SH_PFC_PIN_GROUP(avb_avtp_pps), 2186 + SH_PFC_PIN_GROUP(avb_avtp_match_a), 2187 + SH_PFC_PIN_GROUP(avb_avtp_capture_a), 2188 + SH_PFC_PIN_GROUP(avb_avtp_match_b), 2189 + SH_PFC_PIN_GROUP(avb_avtp_capture_b), 2246 2190 SH_PFC_PIN_GROUP(drif0_ctrl_a), 2247 2191 SH_PFC_PIN_GROUP(drif0_data0_a), 2248 2192 SH_PFC_PIN_GROUP(drif0_data1_a), ··· 2344 2270 SH_PFC_PIN_GROUP(sdhi3_cd), 2345 2271 SH_PFC_PIN_GROUP(sdhi3_wp), 2346 2272 SH_PFC_PIN_GROUP(sdhi3_ds), 2273 + }; 2274 + 2275 + static const char * const avb_groups[] = { 2276 + "avb_link", 2277 + "avb_magic", 2278 + "avb_phy_int", 2279 + "avb_mdc", 2280 + "avb_avtp_pps", 2281 + "avb_avtp_match_a", 2282 + "avb_avtp_capture_a", 2283 + "avb_avtp_match_b", 2284 + "avb_avtp_capture_b", 2347 2285 }; 2348 2286 2349 2287 static const char * const drif0_groups[] = { ··· 2505 2419 }; 2506 2420 2507 2421 static const struct sh_pfc_function pinmux_functions[] = { 2422 + SH_PFC_FUNCTION(avb), 2508 2423 SH_PFC_FUNCTION(drif0), 2509 2424 SH_PFC_FUNCTION(drif1), 2510 2425 SH_PFC_FUNCTION(drif2),