Message ID | 20201126172154.25625-11-uli+renesas@fpond.eu (mailing list archive) |
---|---|
State | Superseded |
Delegated to: | Geert Uytterhoeven |
Headers | show |
Series | pinctrl: renesas: R8A779A0 (V3U) device support | expand |
Hi Uli, On Thu, Nov 26, 2020 at 6:22 PM Ulrich Hecht <uli+renesas@fpond.eu> wrote: > This patch adds TMU TCLK1-4 pins, groups and functions to the R8A779A0 > (V3U) SoC. > > Signed-off-by: Ulrich Hecht <uli+renesas@fpond.eu> Thanks for your patch! > --- > drivers/pinctrl/renesas/pfc-r8a779a0.c | 47 ++++++++++++++++++++++++++ > 1 file changed, 47 insertions(+) > > diff --git a/drivers/pinctrl/renesas/pfc-r8a779a0.c b/drivers/pinctrl/renesas/pfc-r8a779a0.c > index a83b6fa9ab9e..4aa725b3fbca 100644 > --- a/drivers/pinctrl/renesas/pfc-r8a779a0.c > +++ b/drivers/pinctrl/renesas/pfc-r8a779a0.c > @@ -2502,6 +2502,39 @@ static const unsigned int scif_clk_mux[] = { > SCIF_CLK_MARK, > }; > > +/* - TMU -------------------------------------------------------------------- */ > +static const unsigned int tmu_tclk1_pins[] = { > + /* TCLK1 */ > + RCAR_GP_PIN(2, 23), > +}; > +static const unsigned int tmu_tclk1_mux[] = { > + TCLK1_MARK, > +}; According to the R-Car V3U Pin Multiplex Table, there are two sets. The above definition corresponds to set A. Set B is available on pin GP1_23. > + > +static const unsigned int tmu_tclk2_pins[] = { > + /* TCLK2 */ > + RCAR_GP_PIN(2, 24), > +}; > +static const unsigned int tmu_tclk2_mux[] = { > + TCLK2_MARK, > +}; According to the R-Car V3U Pin Multiplex Table, there are two sets. The above definition corresponds to set A. Set B is available on pin GP2_10. Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds
diff --git a/drivers/pinctrl/renesas/pfc-r8a779a0.c b/drivers/pinctrl/renesas/pfc-r8a779a0.c index a83b6fa9ab9e..4aa725b3fbca 100644 --- a/drivers/pinctrl/renesas/pfc-r8a779a0.c +++ b/drivers/pinctrl/renesas/pfc-r8a779a0.c @@ -2502,6 +2502,39 @@ static const unsigned int scif_clk_mux[] = { SCIF_CLK_MARK, }; +/* - TMU -------------------------------------------------------------------- */ +static const unsigned int tmu_tclk1_pins[] = { + /* TCLK1 */ + RCAR_GP_PIN(2, 23), +}; +static const unsigned int tmu_tclk1_mux[] = { + TCLK1_MARK, +}; + +static const unsigned int tmu_tclk2_pins[] = { + /* TCLK2 */ + RCAR_GP_PIN(2, 24), +}; +static const unsigned int tmu_tclk2_mux[] = { + TCLK2_MARK, +}; + +static const unsigned int tmu_tclk3_pins[] = { + /* TCLK3 */ + RCAR_GP_PIN(2, 11), +}; +static const unsigned int tmu_tclk3_mux[] = { + TCLK3_MARK, +}; + +static const unsigned int tmu_tclk4_pins[] = { + /* TCLK4 */ + RCAR_GP_PIN(2, 12), +}; +static const unsigned int tmu_tclk4_mux[] = { + TCLK4_MARK, +}; + static const struct sh_pfc_pin_group pinmux_groups[] = { SH_PFC_PIN_GROUP(avb0_link), SH_PFC_PIN_GROUP(avb0_magic), @@ -2666,6 +2699,11 @@ static const struct sh_pfc_pin_group pinmux_groups[] = { SH_PFC_PIN_GROUP(scif4_clk), SH_PFC_PIN_GROUP(scif4_ctrl), SH_PFC_PIN_GROUP(scif_clk), + + SH_PFC_PIN_GROUP(tmu_tclk1), + SH_PFC_PIN_GROUP(tmu_tclk2), + SH_PFC_PIN_GROUP(tmu_tclk3), + SH_PFC_PIN_GROUP(tmu_tclk4), }; static const char * const avb0_groups[] = { @@ -2952,6 +2990,13 @@ static const char * const scif_clk_groups[] = { "scif_clk", }; +static const char * const tmu_groups[] = { + "tmu_tclk1", + "tmu_tclk2", + "tmu_tclk3", + "tmu_tclk4", +}; + static const struct sh_pfc_function pinmux_functions[] = { SH_PFC_FUNCTION(avb0), SH_PFC_FUNCTION(avb1), @@ -3008,6 +3053,8 @@ static const struct sh_pfc_function pinmux_functions[] = { SH_PFC_FUNCTION(scif3), SH_PFC_FUNCTION(scif4), SH_PFC_FUNCTION(scif_clk), + + SH_PFC_FUNCTION(tmu), }; static const struct pinmux_cfg_reg pinmux_config_regs[] = {
This patch adds TMU TCLK1-4 pins, groups and functions to the R8A779A0 (V3U) SoC. Signed-off-by: Ulrich Hecht <uli+renesas@fpond.eu> --- drivers/pinctrl/renesas/pfc-r8a779a0.c | 47 ++++++++++++++++++++++++++ 1 file changed, 47 insertions(+)