Skip to content

Commit f83b588

Browse files
jbrun3tLinus Walleij
authored andcommitted
pinctrl: meson: axg: add tdm pins
Add the information related to the tdm pins of the A113D SoC Signed-off-by: Jerome Brunet <jbrunet@baylibre.com> Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent bf6f146 commit f83b588

1 file changed

Lines changed: 107 additions & 0 deletions

File tree

‎drivers/pinctrl/meson/pinctrl-meson-axg.c‎

Lines changed: 107 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,47 @@ static const unsigned int pdm_din1_pins[] = {GPIOA_16};
312312
static const unsigned int pdm_din2_pins[] = {GPIOA_17};
313313
static const unsigned int pdm_din3_pins[] = {GPIOA_18};
314314

315+
/* mclk */
316+
static const unsigned int mclk_c_pins[] = {GPIOA_0};
317+
static const unsigned int mclk_b_pins[] = {GPIOA_1};
318+
319+
/* tdm */
320+
static const unsigned int tdma_sclk_pins[] = {GPIOX_12};
321+
static const unsigned int tdma_sclk_slv_pins[] = {GPIOX_12};
322+
static const unsigned int tdma_fs_pins[] = {GPIOX_13};
323+
static const unsigned int tdma_fs_slv_pins[] = {GPIOX_13};
324+
static const unsigned int tdma_din0_pins[] = {GPIOX_14};
325+
static const unsigned int tdma_dout0_x14_pins[] = {GPIOX_14};
326+
static const unsigned int tdma_dout0_x15_pins[] = {GPIOX_15};
327+
static const unsigned int tdma_dout1_pins[] = {GPIOX_15};
328+
static const unsigned int tdma_din1_pins[] = {GPIOX_15};
329+
330+
static const unsigned int tdmc_sclk_pins[] = {GPIOA_2};
331+
static const unsigned int tdmc_sclk_slv_pins[] = {GPIOA_2};
332+
static const unsigned int tdmc_fs_pins[] = {GPIOA_3};
333+
static const unsigned int tdmc_fs_slv_pins[] = {GPIOA_3};
334+
static const unsigned int tdmc_din0_pins[] = {GPIOA_4};
335+
static const unsigned int tdmc_dout0_pins[] = {GPIOA_4};
336+
static const unsigned int tdmc_din1_pins[] = {GPIOA_5};
337+
static const unsigned int tdmc_dout1_pins[] = {GPIOA_5};
338+
static const unsigned int tdmc_din2_pins[] = {GPIOA_6};
339+
static const unsigned int tdmc_dout2_pins[] = {GPIOA_6};
340+
static const unsigned int tdmc_din3_pins[] = {GPIOA_7};
341+
static const unsigned int tdmc_dout3_pins[] = {GPIOA_7};
342+
343+
static const unsigned int tdmb_sclk_pins[] = {GPIOA_8};
344+
static const unsigned int tdmb_sclk_slv_pins[] = {GPIOA_8};
345+
static const unsigned int tdmb_fs_pins[] = {GPIOA_9};
346+
static const unsigned int tdmb_fs_slv_pins[] = {GPIOA_9};
347+
static const unsigned int tdmb_din0_pins[] = {GPIOA_10};
348+
static const unsigned int tdmb_dout0_pins[] = {GPIOA_10};
349+
static const unsigned int tdmb_din1_pins[] = {GPIOA_11};
350+
static const unsigned int tdmb_dout1_pins[] = {GPIOA_11};
351+
static const unsigned int tdmb_din2_pins[] = {GPIOA_12};
352+
static const unsigned int tdmb_dout2_pins[] = {GPIOA_12};
353+
static const unsigned int tdmb_din3_pins[] = {GPIOA_13};
354+
static const unsigned int tdmb_dout3_pins[] = {GPIOA_13};
355+
315356
static struct meson_pmx_group meson_axg_periphs_groups[] = {
316357
GPIO_GROUP(GPIOZ_0),
317358
GPIO_GROUP(GPIOZ_1),
@@ -495,6 +536,15 @@ static struct meson_pmx_group meson_axg_periphs_groups[] = {
495536
GROUP(eth_rx_dv_x, 4),
496537
GROUP(eth_mdio_x, 4),
497538
GROUP(eth_mdc_x, 4),
539+
GROUP(tdma_sclk, 1),
540+
GROUP(tdma_sclk_slv, 2),
541+
GROUP(tdma_fs, 1),
542+
GROUP(tdma_fs_slv, 2),
543+
GROUP(tdma_din0, 1),
544+
GROUP(tdma_dout0_x14, 2),
545+
GROUP(tdma_dout0_x15, 1),
546+
GROUP(tdma_dout1, 2),
547+
GROUP(tdma_din1, 3),
498548

499549
/* bank GPIOY */
500550
GROUP(eth_txd0_y, 1),
@@ -544,6 +594,32 @@ static struct meson_pmx_group meson_axg_periphs_groups[] = {
544594
GROUP(pdm_din1, 1),
545595
GROUP(pdm_din2, 1),
546596
GROUP(pdm_din3, 1),
597+
GROUP(mclk_c, 1),
598+
GROUP(mclk_b, 1),
599+
GROUP(tdmc_sclk, 1),
600+
GROUP(tdmc_sclk_slv, 2),
601+
GROUP(tdmc_fs, 1),
602+
GROUP(tdmc_fs_slv, 2),
603+
GROUP(tdmc_din0, 2),
604+
GROUP(tdmc_dout0, 1),
605+
GROUP(tdmc_din1, 2),
606+
GROUP(tdmc_dout1, 1),
607+
GROUP(tdmc_din2, 2),
608+
GROUP(tdmc_dout2, 1),
609+
GROUP(tdmc_din3, 2),
610+
GROUP(tdmc_dout3, 1),
611+
GROUP(tdmb_sclk, 1),
612+
GROUP(tdmb_sclk_slv, 2),
613+
GROUP(tdmb_fs, 1),
614+
GROUP(tdmb_fs_slv, 2),
615+
GROUP(tdmb_din0, 2),
616+
GROUP(tdmb_dout0, 1),
617+
GROUP(tdmb_din1, 2),
618+
GROUP(tdmb_dout1, 1),
619+
GROUP(tdmb_din2, 2),
620+
GROUP(tdmb_dout2, 1),
621+
GROUP(tdmb_din3, 2),
622+
GROUP(tdmb_dout3, 1),
547623
};
548624

549625
/* uart_ao_a */
@@ -845,6 +921,32 @@ static const char * const jtag_ao_groups[] = {
845921
"jtag_ao_tdi", "jtag_ao_tdo", "jtag_ao_clk", "jtag_ao_tms",
846922
};
847923

924+
static const char * const mclk_c_groups[] = {
925+
"mclk_c",
926+
};
927+
928+
static const char * const mclk_b_groups[] = {
929+
"mclk_b",
930+
};
931+
932+
static const char * const tdma_groups[] = {
933+
"tdma_sclk", "tdma_sclk_slv", "tdma_fs", "tdma_fs_slv",
934+
"tdma_din0", "tdma_dout0_x14", "tdma_dout0_x15", "tdma_dout1",
935+
"tdma_din1",
936+
};
937+
938+
static const char * const tdmc_groups[] = {
939+
"tdmc_sclk", "tdmc_sclk_slv", "tdmc_fs", "tdmc_fs_slv",
940+
"tdmc_din0", "tdmc_dout0", "tdmc_din1", "tdmc_dout1",
941+
"tdmc_din2", "tdmc_dout2", "tdmc_din3", "tdmc_dout3",
942+
};
943+
944+
static const char * const tdmb_groups[] = {
945+
"tdmb_sclk", "tdmb_sclk_slv", "tdmb_fs", "tdmb_fs_slv",
946+
"tdmb_din0", "tdmb_dout0", "tdmb_din1", "tdmb_dout1",
947+
"tdmb_din2", "tdmb_dout2", "tdmb_din3", "tdmb_dout3",
948+
};
949+
848950
static struct meson_pmx_func meson_axg_periphs_functions[] = {
849951
FUNCTION(gpio_periphs),
850952
FUNCTION(emmc),
@@ -870,6 +972,11 @@ static struct meson_pmx_func meson_axg_periphs_functions[] = {
870972
FUNCTION(spdif_in),
871973
FUNCTION(jtag_ee),
872974
FUNCTION(pdm),
975+
FUNCTION(mclk_b),
976+
FUNCTION(mclk_c),
977+
FUNCTION(tdma),
978+
FUNCTION(tdmb),
979+
FUNCTION(tdmc),
873980
};
874981

875982
static struct meson_pmx_func meson_axg_aobus_functions[] = {

0 commit comments

Comments
 (0)