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

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

Add pins, groups and functions for the 16-Bit Timer Pulse Unit outputs
on the R-Car R8A779A0 (V3U) SoC.

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

authored by

Ulrich Hecht and committed by
Geert Uytterhoeven
a5cda861 b3761cd6

+44
+44
drivers/pinctrl/renesas/pfc-r8a779a0.c
··· 2582 2582 TCLK4_MARK, 2583 2583 }; 2584 2584 2585 + /* - TPU ------------------------------------------------------------------- */ 2586 + static const unsigned int tpu_to0_pins[] = { 2587 + /* TPU0TO0 */ 2588 + RCAR_GP_PIN(2, 21), 2589 + }; 2590 + static const unsigned int tpu_to0_mux[] = { 2591 + TPU0TO0_MARK, 2592 + }; 2593 + static const unsigned int tpu_to1_pins[] = { 2594 + /* TPU0TO1 */ 2595 + RCAR_GP_PIN(2, 22), 2596 + }; 2597 + static const unsigned int tpu_to1_mux[] = { 2598 + TPU0TO1_MARK, 2599 + }; 2600 + static const unsigned int tpu_to2_pins[] = { 2601 + /* TPU0TO2 */ 2602 + RCAR_GP_PIN(3, 5), 2603 + }; 2604 + static const unsigned int tpu_to2_mux[] = { 2605 + TPU0TO2_MARK, 2606 + }; 2607 + static const unsigned int tpu_to3_pins[] = { 2608 + /* TPU0TO3 */ 2609 + RCAR_GP_PIN(3, 6), 2610 + }; 2611 + static const unsigned int tpu_to3_mux[] = { 2612 + TPU0TO3_MARK, 2613 + }; 2614 + 2585 2615 static const struct sh_pfc_pin_group pinmux_groups[] = { 2586 2616 SH_PFC_PIN_GROUP(avb0_link), 2587 2617 SH_PFC_PIN_GROUP(avb0_magic), ··· 2795 2765 SH_PFC_PIN_GROUP(tmu_tclk2_b), 2796 2766 SH_PFC_PIN_GROUP(tmu_tclk3), 2797 2767 SH_PFC_PIN_GROUP(tmu_tclk4), 2768 + 2769 + SH_PFC_PIN_GROUP(tpu_to0), 2770 + SH_PFC_PIN_GROUP(tpu_to1), 2771 + SH_PFC_PIN_GROUP(tpu_to2), 2772 + SH_PFC_PIN_GROUP(tpu_to3), 2798 2773 }; 2799 2774 2800 2775 static const char * const avb0_groups[] = { ··· 3112 3077 "tmu_tclk4", 3113 3078 }; 3114 3079 3080 + static const char * const tpu_groups[] = { 3081 + "tpu_to0", 3082 + "tpu_to1", 3083 + "tpu_to2", 3084 + "tpu_to3", 3085 + }; 3086 + 3115 3087 static const struct sh_pfc_function pinmux_functions[] = { 3116 3088 SH_PFC_FUNCTION(avb0), 3117 3089 SH_PFC_FUNCTION(avb1), ··· 3179 3137 SH_PFC_FUNCTION(scif_clk), 3180 3138 3181 3139 SH_PFC_FUNCTION(tmu), 3140 + 3141 + SH_PFC_FUNCTION(tpu), 3182 3142 }; 3183 3143 3184 3144 static const struct pinmux_cfg_reg pinmux_config_regs[] = {