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

pinctrl: renesas: r8a779a0: Add TMU pins, groups and functions

This patch adds TMU TCLK1-4 pins, groups and functions to the R8A779A0
(V3U) SoC.

Signed-off-by: Ulrich Hecht <uli+renesas@fpond.eu>
Link: https://lore.kernel.org/r/20210112165929.31002-12-uli+renesas@fpond.eu
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

authored by

Ulrich Hecht and committed by
Geert Uytterhoeven
b3761cd6 a6a51403

+65
+65
drivers/pinctrl/renesas/pfc-r8a779a0.c
··· 2535 2535 SCIF_CLK_MARK, 2536 2536 }; 2537 2537 2538 + /* - TMU -------------------------------------------------------------------- */ 2539 + static const unsigned int tmu_tclk1_a_pins[] = { 2540 + /* TCLK1 */ 2541 + RCAR_GP_PIN(2, 23), 2542 + }; 2543 + static const unsigned int tmu_tclk1_a_mux[] = { 2544 + TCLK1_A_MARK, 2545 + }; 2546 + static const unsigned int tmu_tclk1_b_pins[] = { 2547 + /* TCLK1 */ 2548 + RCAR_GP_PIN(1, 23), 2549 + }; 2550 + static const unsigned int tmu_tclk1_b_mux[] = { 2551 + TCLK1_B_MARK, 2552 + }; 2553 + 2554 + static const unsigned int tmu_tclk2_a_pins[] = { 2555 + /* TCLK2 */ 2556 + RCAR_GP_PIN(2, 24), 2557 + }; 2558 + static const unsigned int tmu_tclk2_a_mux[] = { 2559 + TCLK2_A_MARK, 2560 + }; 2561 + static const unsigned int tmu_tclk2_b_pins[] = { 2562 + /* TCLK2 */ 2563 + RCAR_GP_PIN(2, 10), 2564 + }; 2565 + static const unsigned int tmu_tclk2_b_mux[] = { 2566 + TCLK2_B_MARK, 2567 + }; 2568 + 2569 + static const unsigned int tmu_tclk3_pins[] = { 2570 + /* TCLK3 */ 2571 + RCAR_GP_PIN(2, 11), 2572 + }; 2573 + static const unsigned int tmu_tclk3_mux[] = { 2574 + TCLK3_MARK, 2575 + }; 2576 + 2577 + static const unsigned int tmu_tclk4_pins[] = { 2578 + /* TCLK4 */ 2579 + RCAR_GP_PIN(2, 12), 2580 + }; 2581 + static const unsigned int tmu_tclk4_mux[] = { 2582 + TCLK4_MARK, 2583 + }; 2584 + 2538 2585 static const struct sh_pfc_pin_group pinmux_groups[] = { 2539 2586 SH_PFC_PIN_GROUP(avb0_link), 2540 2587 SH_PFC_PIN_GROUP(avb0_magic), ··· 2758 2711 SH_PFC_PIN_GROUP(scif4_clk), 2759 2712 SH_PFC_PIN_GROUP(scif4_ctrl), 2760 2713 SH_PFC_PIN_GROUP(scif_clk), 2714 + 2715 + SH_PFC_PIN_GROUP(tmu_tclk1_a), 2716 + SH_PFC_PIN_GROUP(tmu_tclk1_b), 2717 + SH_PFC_PIN_GROUP(tmu_tclk2_a), 2718 + SH_PFC_PIN_GROUP(tmu_tclk2_b), 2719 + SH_PFC_PIN_GROUP(tmu_tclk3), 2720 + SH_PFC_PIN_GROUP(tmu_tclk4), 2761 2721 }; 2762 2722 2763 2723 static const char * const avb0_groups[] = { ··· 3068 3014 "scif_clk", 3069 3015 }; 3070 3016 3017 + static const char * const tmu_groups[] = { 3018 + "tmu_tclk1_a", 3019 + "tmu_tclk1_b", 3020 + "tmu_tclk2_a", 3021 + "tmu_tclk2_b", 3022 + "tmu_tclk3", 3023 + "tmu_tclk4", 3024 + }; 3025 + 3071 3026 static const struct sh_pfc_function pinmux_functions[] = { 3072 3027 SH_PFC_FUNCTION(avb0), 3073 3028 SH_PFC_FUNCTION(avb1), ··· 3135 3072 SH_PFC_FUNCTION(scif3), 3136 3073 SH_PFC_FUNCTION(scif4), 3137 3074 SH_PFC_FUNCTION(scif_clk), 3075 + 3076 + SH_PFC_FUNCTION(tmu), 3138 3077 }; 3139 3078 3140 3079 static const struct pinmux_cfg_reg pinmux_config_regs[] = {