Skip to content

Commit fa21cbe

Browse files
mwgonzalezlinusw
authored andcommitted
pinctrl: msm8998: Squash TSIF pins together
TSIF is the Transport Stream Interface. First, rename tsif1 to tsif0, and tsif2 to tsif1. Then squash all 5 tsif0 pins into a single function. Same for tsif1. Signed-off-by: Marc Gonzalez <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Bjorn Andersson <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
1 parent 0ce242a commit fa21cbe

File tree

2 files changed

+20
-61
lines changed

2 files changed

+20
-61
lines changed

Documentation/devicetree/bindings/pinctrl/qcom,msm8998-pinctrl.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,8 @@ to specify in a pin configuration subnode:
132132
qlink_request, qua_mi2s, sd_card, sd_write, sdc40, sdc41,
133133
sdc42, sdc43, sdc4_clk, sdc4_cmd, sec_mi2s, sp_cmu,
134134
spkr_i2s, ssbi1, ssc_irq, ter_mi2s, tgu_ch0, tgu_ch1,
135-
tsense_pwm1, tsense_pwm2, tsif1_clk, tsif1_data, tsif1_en,
136-
tsif1_error, tsif1_sync, tsif2_clk, tsif2_data, tsif2_en,
137-
tsif2_error, tsif2_sync, uim1_clk, uim1_data, uim1_present,
135+
tsense_pwm1, tsense_pwm2, tsif0, tsif1,
136+
uim1_clk, uim1_data, uim1_present,
138137
uim1_reset, uim2_clk, uim2_data, uim2_present, uim2_reset,
139138
uim_batt, usb_phy, vfr_1, vsense_clkout, vsense_data0,
140139
vsense_data1, vsense_mode, wlan1_adc0, wlan1_adc1,

drivers/pinctrl/qcom/pinctrl-msm8998.c

Lines changed: 18 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -581,16 +581,8 @@ enum msm8998_functions {
581581
msm_mux_tgu_ch1,
582582
msm_mux_tsense_pwm1,
583583
msm_mux_tsense_pwm2,
584-
msm_mux_tsif1_clk,
585-
msm_mux_tsif1_data,
586-
msm_mux_tsif1_en,
587-
msm_mux_tsif1_error,
588-
msm_mux_tsif1_sync,
589-
msm_mux_tsif2_clk,
590-
msm_mux_tsif2_data,
591-
msm_mux_tsif2_en,
592-
msm_mux_tsif2_error,
593-
msm_mux_tsif2_sync,
584+
msm_mux_tsif0,
585+
msm_mux_tsif1,
594586
msm_mux_uim1_clk,
595587
msm_mux_uim1_data,
596588
msm_mux_uim1_present,
@@ -692,9 +684,6 @@ static const char * const atest_usb13_groups[] = {
692684
static const char * const bimc_dte1_groups[] = {
693685
"gpio8", "gpio10",
694686
};
695-
static const char * const tsif1_sync_groups[] = {
696-
"gpio9",
697-
};
698687
static const char * const wlan1_adc0_groups[] = {
699688
"gpio9",
700689
};
@@ -863,9 +852,6 @@ static const char * const lpass_slimbus_groups[] = {
863852
static const char * const sd_write_groups[] = {
864853
"gpio40",
865854
};
866-
static const char * const tsif1_error_groups[] = {
867-
"gpio40",
868-
};
869855
static const char * const blsp_spi6_groups[] = {
870856
"gpio41", "gpio42", "gpio43", "gpio44",
871857
};
@@ -1048,11 +1034,8 @@ static const char * const blsp_uim2_b_groups[] = {
10481034
static const char * const blsp_i2c5_groups[] = {
10491035
"gpio87", "gpio88",
10501036
};
1051-
static const char * const tsif1_clk_groups[] = {
1052-
"gpio89",
1053-
};
1054-
static const char * const tsif1_en_groups[] = {
1055-
"gpio90",
1037+
static const char * const tsif0_groups[] = {
1038+
"gpio9", "gpio40", "gpio89", "gpio90", "gpio91",
10561039
};
10571040
static const char * const mdp_vsync0_groups[] = {
10581041
"gpio90",
@@ -1075,48 +1058,33 @@ static const char * const tgu_ch0_groups[] = {
10751058
static const char * const qdss_cti1_b_groups[] = {
10761059
"gpio90", "gpio91",
10771060
};
1078-
static const char * const tsif1_data_groups[] = {
1079-
"gpio91",
1080-
};
10811061
static const char * const sdc4_cmd_groups[] = {
10821062
"gpio91",
10831063
};
10841064
static const char * const tgu_ch1_groups[] = {
10851065
"gpio91",
10861066
};
1087-
static const char * const tsif2_error_groups[] = {
1088-
"gpio92",
1067+
static const char * const tsif1_groups[] = {
1068+
"gpio92", "gpio93", "gpio94", "gpio95", "gpio96",
10891069
};
10901070
static const char * const sdc43_groups[] = {
10911071
"gpio92",
10921072
};
10931073
static const char * const vfr_1_groups[] = {
10941074
"gpio92",
10951075
};
1096-
static const char * const tsif2_clk_groups[] = {
1097-
"gpio93",
1098-
};
10991076
static const char * const sdc4_clk_groups[] = {
11001077
"gpio93",
11011078
};
1102-
static const char * const tsif2_en_groups[] = {
1103-
"gpio94",
1104-
};
11051079
static const char * const sdc42_groups[] = {
11061080
"gpio94",
11071081
};
11081082
static const char * const sd_card_groups[] = {
11091083
"gpio95",
11101084
};
1111-
static const char * const tsif2_data_groups[] = {
1112-
"gpio95",
1113-
};
11141085
static const char * const sdc41_groups[] = {
11151086
"gpio95",
11161087
};
1117-
static const char * const tsif2_sync_groups[] = {
1118-
"gpio96",
1119-
};
11201088
static const char * const sdc40_groups[] = {
11211089
"gpio96",
11221090
};
@@ -1355,16 +1323,8 @@ static const struct msm_function msm8998_functions[] = {
13551323
FUNCTION(tgu_ch1),
13561324
FUNCTION(tsense_pwm1),
13571325
FUNCTION(tsense_pwm2),
1358-
FUNCTION(tsif1_clk),
1359-
FUNCTION(tsif1_data),
1360-
FUNCTION(tsif1_en),
1361-
FUNCTION(tsif1_error),
1362-
FUNCTION(tsif1_sync),
1363-
FUNCTION(tsif2_clk),
1364-
FUNCTION(tsif2_data),
1365-
FUNCTION(tsif2_en),
1366-
FUNCTION(tsif2_error),
1367-
FUNCTION(tsif2_sync),
1326+
FUNCTION(tsif0),
1327+
FUNCTION(tsif1),
13681328
FUNCTION(uim1_clk),
13691329
FUNCTION(uim1_data),
13701330
FUNCTION(uim1_present),
@@ -1396,7 +1356,7 @@ static const struct msm_pingroup msm8998_groups[] = {
13961356
PINGROUP(6, WEST, blsp_spi8, blsp_uart8_a, blsp_i2c8, _, _, _, _, _, _),
13971357
PINGROUP(7, WEST, blsp_spi8, blsp_uart8_a, blsp_i2c8, ddr_bist, _, atest_tsens2, atest_usb1, _, _),
13981358
PINGROUP(8, EAST, blsp_spi4, blsp_uart1_b, blsp_uim1_b, _, ddr_bist, _, wlan1_adc1, atest_usb13, bimc_dte1),
1399-
PINGROUP(9, EAST, blsp_spi4, blsp_uart1_b, blsp_uim1_b, tsif1_sync, ddr_bist, _, wlan1_adc0, atest_usb12, bimc_dte0),
1359+
PINGROUP(9, EAST, blsp_spi4, blsp_uart1_b, blsp_uim1_b, tsif0, ddr_bist, _, wlan1_adc0, atest_usb12, bimc_dte0),
14001360
PINGROUP(10, EAST, mdp_vsync_a, blsp_spi4, blsp_uart1_b, blsp_i2c4, ddr_bist, atest_gpsadc1, wlan2_adc1, atest_usb11, bimc_dte1),
14011361
PINGROUP(11, EAST, mdp_vsync_a, edp_lcd, blsp_spi4, blsp_uart1_b, blsp_i2c4, dbg_out, atest_gpsadc0, wlan2_adc0, atest_usb10),
14021362
PINGROUP(12, EAST, mdp_vsync, m_voc, _, _, _, _, _, _, _),
@@ -1427,7 +1387,7 @@ static const struct msm_pingroup msm8998_groups[] = {
14271387
PINGROUP(37, NORTH, agera_pll, _, _, _, _, _, _, _, _),
14281388
PINGROUP(38, WEST, usb_phy, _, _, _, _, _, _, _, _),
14291389
PINGROUP(39, WEST, lpass_slimbus, _, _, _, _, _, _, _, _),
1430-
PINGROUP(40, EAST, sd_write, tsif1_error, _, _, _, _, _, _, _),
1390+
PINGROUP(40, EAST, sd_write, tsif0, _, _, _, _, _, _, _),
14311391
PINGROUP(41, EAST, blsp_spi6, blsp_uart3_b, blsp_uim3_b, _, qdss, _, _, _, _),
14321392
PINGROUP(42, EAST, blsp_spi6, blsp_uart3_b, blsp_uim3_b, _, qdss, _, _, _, _),
14331393
PINGROUP(43, EAST, blsp_spi6, blsp_uart3_b, blsp_i2c6, _, qdss, _, _, _, _),
@@ -1476,14 +1436,14 @@ static const struct msm_pingroup msm8998_groups[] = {
14761436
PINGROUP(86, EAST, blsp_spi5, blsp_uart2_b, blsp_uim2_b, _, _, _, _, _, _),
14771437
PINGROUP(87, EAST, blsp_spi5, blsp_uart2_b, blsp_i2c5, _, _, _, _, _, _),
14781438
PINGROUP(88, EAST, blsp_spi5, blsp_uart2_b, blsp_i2c5, _, _, _, _, _, _),
1479-
PINGROUP(89, EAST, tsif1_clk, phase_flag, _, _, _, _, _, _, _),
1480-
PINGROUP(90, EAST, tsif1_en, mdp_vsync0, mdp_vsync1, mdp_vsync2, mdp_vsync3, blsp1_spi, tgu_ch0, qdss_cti1_b, _),
1481-
PINGROUP(91, EAST, tsif1_data, sdc4_cmd, tgu_ch1, phase_flag, qdss_cti1_b, _, _, _, _),
1482-
PINGROUP(92, EAST, tsif2_error, sdc43, vfr_1, phase_flag, _, _, _, _, _),
1483-
PINGROUP(93, EAST, tsif2_clk, sdc4_clk, _, qdss, _, _, _, _, _),
1484-
PINGROUP(94, EAST, tsif2_en, sdc42, _, _, _, _, _, _, _),
1485-
PINGROUP(95, EAST, tsif2_data, sdc41, _, _, _, _, _, _, _),
1486-
PINGROUP(96, EAST, tsif2_sync, sdc40, phase_flag, _, _, _, _, _, _),
1439+
PINGROUP(89, EAST, tsif0, phase_flag, _, _, _, _, _, _, _),
1440+
PINGROUP(90, EAST, tsif0, mdp_vsync0, mdp_vsync1, mdp_vsync2, mdp_vsync3, blsp1_spi, tgu_ch0, qdss_cti1_b, _),
1441+
PINGROUP(91, EAST, tsif0, sdc4_cmd, tgu_ch1, phase_flag, qdss_cti1_b, _, _, _, _),
1442+
PINGROUP(92, EAST, tsif1, sdc43, vfr_1, phase_flag, _, _, _, _, _),
1443+
PINGROUP(93, EAST, tsif1, sdc4_clk, _, qdss, _, _, _, _, _),
1444+
PINGROUP(94, EAST, tsif1, sdc42, _, _, _, _, _, _, _),
1445+
PINGROUP(95, EAST, tsif1, sdc41, _, _, _, _, _, _, _),
1446+
PINGROUP(96, EAST, tsif1, sdc40, phase_flag, _, _, _, _, _, _),
14871447
PINGROUP(97, WEST, _, mdp_vsync_b, ldo_en, _, _, _, _, _, _),
14881448
PINGROUP(98, WEST, _, mdp_vsync_b, ldo_update, _, _, _, _, _, _),
14891449
PINGROUP(99, WEST, _, _, _, _, _, _, _, _, _),

0 commit comments

Comments
 (0)