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

pinctrl: sh-pfc: r8a7792: Add MSIOF pin groups

Add MSIOF0/1 pin groups to the R8A7792 PFC driver.

Based on the original (and large) patch by Vladimir Barinov
<vladimir.barinov@cogentembedded.com>.

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>

authored by

Sergei Shtylyov and committed by
Geert Uytterhoeven
c3071689 446bd7dd

+82
+82
drivers/pinctrl/sh-pfc/pfc-r8a7792.c
··· 1034 1034 static const unsigned int lbsc_ex_cs5_mux[] = { 1035 1035 EX_CS5_N_MARK, 1036 1036 }; 1037 + /* - MSIOF0 ----------------------------------------------------------------- */ 1038 + static const unsigned int msiof0_clk_pins[] = { 1039 + /* SCK */ 1040 + RCAR_GP_PIN(10, 0), 1041 + }; 1042 + static const unsigned int msiof0_clk_mux[] = { 1043 + MSIOF0_SCK_MARK, 1044 + }; 1045 + static const unsigned int msiof0_sync_pins[] = { 1046 + /* SYNC */ 1047 + RCAR_GP_PIN(10, 1), 1048 + }; 1049 + static const unsigned int msiof0_sync_mux[] = { 1050 + MSIOF0_SYNC_MARK, 1051 + }; 1052 + static const unsigned int msiof0_rx_pins[] = { 1053 + /* RXD */ 1054 + RCAR_GP_PIN(10, 4), 1055 + }; 1056 + static const unsigned int msiof0_rx_mux[] = { 1057 + MSIOF0_RXD_MARK, 1058 + }; 1059 + static const unsigned int msiof0_tx_pins[] = { 1060 + /* TXD */ 1061 + RCAR_GP_PIN(10, 3), 1062 + }; 1063 + static const unsigned int msiof0_tx_mux[] = { 1064 + MSIOF0_TXD_MARK, 1065 + }; 1066 + /* - MSIOF1 ----------------------------------------------------------------- */ 1067 + static const unsigned int msiof1_clk_pins[] = { 1068 + /* SCK */ 1069 + RCAR_GP_PIN(10, 5), 1070 + }; 1071 + static const unsigned int msiof1_clk_mux[] = { 1072 + MSIOF1_SCK_MARK, 1073 + }; 1074 + static const unsigned int msiof1_sync_pins[] = { 1075 + /* SYNC */ 1076 + RCAR_GP_PIN(10, 6), 1077 + }; 1078 + static const unsigned int msiof1_sync_mux[] = { 1079 + MSIOF1_SYNC_MARK, 1080 + }; 1081 + static const unsigned int msiof1_rx_pins[] = { 1082 + /* RXD */ 1083 + RCAR_GP_PIN(10, 9), 1084 + }; 1085 + static const unsigned int msiof1_rx_mux[] = { 1086 + MSIOF1_RXD_MARK, 1087 + }; 1088 + static const unsigned int msiof1_tx_pins[] = { 1089 + /* TXD */ 1090 + RCAR_GP_PIN(10, 8), 1091 + }; 1092 + static const unsigned int msiof1_tx_mux[] = { 1093 + MSIOF1_TXD_MARK, 1094 + }; 1037 1095 /* - QSPI ------------------------------------------------------------------- */ 1038 1096 static const unsigned int qspi_ctrl_pins[] = { 1039 1097 /* SPCLK, SSL */ ··· 1666 1608 SH_PFC_PIN_GROUP(lbsc_ex_cs3), 1667 1609 SH_PFC_PIN_GROUP(lbsc_ex_cs4), 1668 1610 SH_PFC_PIN_GROUP(lbsc_ex_cs5), 1611 + SH_PFC_PIN_GROUP(msiof0_clk), 1612 + SH_PFC_PIN_GROUP(msiof0_sync), 1613 + SH_PFC_PIN_GROUP(msiof0_rx), 1614 + SH_PFC_PIN_GROUP(msiof0_tx), 1615 + SH_PFC_PIN_GROUP(msiof1_clk), 1616 + SH_PFC_PIN_GROUP(msiof1_sync), 1617 + SH_PFC_PIN_GROUP(msiof1_rx), 1618 + SH_PFC_PIN_GROUP(msiof1_tx), 1669 1619 SH_PFC_PIN_GROUP(qspi_ctrl), 1670 1620 SH_PFC_PIN_GROUP(qspi_data2), 1671 1621 SH_PFC_PIN_GROUP(qspi_data4), ··· 1800 1734 "lbsc_ex_cs5", 1801 1735 }; 1802 1736 1737 + static const char * const msiof0_groups[] = { 1738 + "msiof0_clk", 1739 + "msiof0_sync", 1740 + "msiof0_rx", 1741 + "msiof0_tx", 1742 + }; 1743 + 1744 + static const char * const msiof1_groups[] = { 1745 + "msiof1_clk", 1746 + "msiof1_sync", 1747 + "msiof1_rx", 1748 + "msiof1_tx", 1749 + }; 1750 + 1803 1751 static const char * const qspi_groups[] = { 1804 1752 "qspi_ctrl", 1805 1753 "qspi_data2", ··· 1920 1840 SH_PFC_FUNCTION(du1), 1921 1841 SH_PFC_FUNCTION(intc), 1922 1842 SH_PFC_FUNCTION(lbsc), 1843 + SH_PFC_FUNCTION(msiof0), 1844 + SH_PFC_FUNCTION(msiof1), 1923 1845 SH_PFC_FUNCTION(qspi), 1924 1846 SH_PFC_FUNCTION(scif0), 1925 1847 SH_PFC_FUNCTION(scif3),