aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsuhiro Suzuki <suzuki.katsuhiro@socionext.com>2018-04-26 21:49:05 -0400
committerLinus Walleij <linus.walleij@linaro.org>2018-05-02 08:36:31 -0400
commitfdab33d5d286d45636c80149ae5440c26965c440 (patch)
treec59ae99834f1bd2230b2824892bb6c4f301364ae
parente8349221a0487353bce30116593bfa116595b5b5 (diff)
pinctrl: uniphier: add LD11 MPEG2-TS I/O pin-mux settings
The MPEG2-TS input/output core both accepts serial TS and parallel TS. The serial TS interface uses following pins: hscin0_s : HS0DOUT[0-3] hscin1_s : HS0DOUT[4-7] hscin2_s : HS1BCLKIN, HS1SYNCIN, HS1VALIN, HS1DIN0 hscout0_s: HS0DOUT[0-3] hscout1_s: HS0DOUT[4-7] And the parallel TS interface uses following pins: hscin0_p : HS0BCLKIN, HS0SYNCIN, HS0VALIN, HS0DIN[0-7] hscin1_p : HS1BCLKIN, HS1SYNCIN, HS1VALIN, HS1DIN[0-7] hscout0_p: HS0BCLKOUT, HS0SYNCOUT, HS0VALOUT, HS0DOUT[0-7] Signed-off-by: Katsuhiro Suzuki <suzuki.katsuhiro@socionext.com> Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c49
1 files changed, 49 insertions, 0 deletions
diff --git a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c
index 0976fbfecd50..58825f68b58b 100644
--- a/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c
+++ b/drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c
@@ -481,6 +481,31 @@ static const int emmc_dat8_muxvals[] = {0, 0, 0, 0};
481static const unsigned ether_rmii_pins[] = {6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 481static const unsigned ether_rmii_pins[] = {6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
482 16, 17}; 482 16, 17};
483static const int ether_rmii_muxvals[] = {4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4}; 483static const int ether_rmii_muxvals[] = {4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4};
484static const unsigned hscin0_ci_pins[] = {102, 103, 104, 105, 106, 107, 108,
485 109, 110, 111, 112};
486static const int hscin0_ci_muxvals[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
487static const unsigned hscin0_p_pins[] = {102, 103, 104, 105, 106, 107, 108, 109,
488 110, 111, 112};
489static const int hscin0_p_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
490static const unsigned hscin0_s_pins[] = {116, 117, 118, 119};
491static const int hscin0_s_muxvals[] = {3, 3, 3, 3};
492static const unsigned hscin1_p_pins[] = {124, 125, 126, 127, 128, 129, 130, 131,
493 132, 133, 134};
494static const int hscin1_p_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
495static const unsigned hscin1_s_pins[] = {120, 121, 122, 123};
496static const int hscin1_s_muxvals[] = {3, 3, 3, 3};
497static const unsigned hscin2_s_pins[] = {124, 125, 126, 127};
498static const int hscin2_s_muxvals[] = {3, 3, 3, 3};
499static const unsigned hscout0_ci_pins[] = {113, 114, 115, 116, 117, 118, 119,
500 120, 121, 122, 123};
501static const int hscout0_ci_muxvals[] = {1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1};
502static const unsigned hscout0_p_pins[] = {113, 114, 115, 116, 117, 118, 119,
503 120, 121, 122, 123};
504static const int hscout0_p_muxvals[] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};
505static const unsigned hscout0_s_pins[] = {116, 117, 118, 119};
506static const int hscout0_s_muxvals[] = {4, 4, 4, 4};
507static const unsigned hscout1_s_pins[] = {120, 121, 122, 123};
508static const int hscout1_s_muxvals[] = {4, 4, 4, 4};
484static const unsigned i2c0_pins[] = {63, 64}; 509static const unsigned i2c0_pins[] = {63, 64};
485static const int i2c0_muxvals[] = {0, 0}; 510static const int i2c0_muxvals[] = {0, 0};
486static const unsigned i2c1_pins[] = {65, 66}; 511static const unsigned i2c1_pins[] = {65, 66};
@@ -556,6 +581,16 @@ static const struct uniphier_pinctrl_group uniphier_ld11_groups[] = {
556 UNIPHIER_PINCTRL_GROUP(emmc), 581 UNIPHIER_PINCTRL_GROUP(emmc),
557 UNIPHIER_PINCTRL_GROUP(emmc_dat8), 582 UNIPHIER_PINCTRL_GROUP(emmc_dat8),
558 UNIPHIER_PINCTRL_GROUP(ether_rmii), 583 UNIPHIER_PINCTRL_GROUP(ether_rmii),
584 UNIPHIER_PINCTRL_GROUP(hscin0_ci),
585 UNIPHIER_PINCTRL_GROUP(hscin0_p),
586 UNIPHIER_PINCTRL_GROUP(hscin0_s),
587 UNIPHIER_PINCTRL_GROUP(hscin1_p),
588 UNIPHIER_PINCTRL_GROUP(hscin1_s),
589 UNIPHIER_PINCTRL_GROUP(hscin2_s),
590 UNIPHIER_PINCTRL_GROUP(hscout0_ci),
591 UNIPHIER_PINCTRL_GROUP(hscout0_p),
592 UNIPHIER_PINCTRL_GROUP(hscout0_s),
593 UNIPHIER_PINCTRL_GROUP(hscout1_s),
559 UNIPHIER_PINCTRL_GROUP(i2c0), 594 UNIPHIER_PINCTRL_GROUP(i2c0),
560 UNIPHIER_PINCTRL_GROUP(i2c1), 595 UNIPHIER_PINCTRL_GROUP(i2c1),
561 UNIPHIER_PINCTRL_GROUP(i2c3), 596 UNIPHIER_PINCTRL_GROUP(i2c3),
@@ -583,6 +618,15 @@ static const char * const aout1_groups[] = {"aout1"};
583static const char * const aoutiec1_groups[] = {"aoutiec1"}; 618static const char * const aoutiec1_groups[] = {"aoutiec1"};
584static const char * const emmc_groups[] = {"emmc", "emmc_dat8"}; 619static const char * const emmc_groups[] = {"emmc", "emmc_dat8"};
585static const char * const ether_rmii_groups[] = {"ether_rmii"}; 620static const char * const ether_rmii_groups[] = {"ether_rmii"};
621static const char * const hscin0_groups[] = {"hscin0_ci",
622 "hscin0_p",
623 "hscin0_s"};
624static const char * const hscin1_groups[] = {"hscin1_p", "hscin1_s"};
625static const char * const hscin2_groups[] = {"hscin2_s"};
626static const char * const hscout0_groups[] = {"hscout0_ci",
627 "hscout0_p",
628 "hscout0_s"};
629static const char * const hscout1_groups[] = {"hscout1_s"};
586static const char * const i2c0_groups[] = {"i2c0"}; 630static const char * const i2c0_groups[] = {"i2c0"};
587static const char * const i2c1_groups[] = {"i2c1"}; 631static const char * const i2c1_groups[] = {"i2c1"};
588static const char * const i2c3_groups[] = {"i2c3"}; 632static const char * const i2c3_groups[] = {"i2c3"};
@@ -603,6 +647,11 @@ static const struct uniphier_pinmux_function uniphier_ld11_functions[] = {
603 UNIPHIER_PINMUX_FUNCTION(aoutiec1), 647 UNIPHIER_PINMUX_FUNCTION(aoutiec1),
604 UNIPHIER_PINMUX_FUNCTION(emmc), 648 UNIPHIER_PINMUX_FUNCTION(emmc),
605 UNIPHIER_PINMUX_FUNCTION(ether_rmii), 649 UNIPHIER_PINMUX_FUNCTION(ether_rmii),
650 UNIPHIER_PINMUX_FUNCTION(hscin0),
651 UNIPHIER_PINMUX_FUNCTION(hscin1),
652 UNIPHIER_PINMUX_FUNCTION(hscin2),
653 UNIPHIER_PINMUX_FUNCTION(hscout0),
654 UNIPHIER_PINMUX_FUNCTION(hscout1),
606 UNIPHIER_PINMUX_FUNCTION(i2c0), 655 UNIPHIER_PINMUX_FUNCTION(i2c0),
607 UNIPHIER_PINMUX_FUNCTION(i2c1), 656 UNIPHIER_PINMUX_FUNCTION(i2c1),
608 UNIPHIER_PINMUX_FUNCTION(i2c3), 657 UNIPHIER_PINMUX_FUNCTION(i2c3),