0001
0002
0003
0004
0005
0006 #include <linux/module.h>
0007 #include <linux/of.h>
0008 #include <linux/platform_device.h>
0009 #include <linux/pinctrl/pinctrl.h>
0010
0011 #include "pinctrl-msm.h"
0012
0013 #define FUNCTION(fname) \
0014 [msm_mux_##fname] = { \
0015 .name = #fname, \
0016 .groups = fname##_groups, \
0017 .ngroups = ARRAY_SIZE(fname##_groups), \
0018 }
0019
0020 #define REG_BASE 0x0
0021 #define REG_SIZE 0x1000
0022 #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
0023 { \
0024 .name = "gpio" #id, \
0025 .pins = gpio##id##_pins, \
0026 .npins = (unsigned)ARRAY_SIZE(gpio##id##_pins), \
0027 .funcs = (int[]){ \
0028 msm_mux_gpio, \
0029 msm_mux_##f1, \
0030 msm_mux_##f2, \
0031 msm_mux_##f3, \
0032 msm_mux_##f4, \
0033 msm_mux_##f5, \
0034 msm_mux_##f6, \
0035 msm_mux_##f7, \
0036 msm_mux_##f8, \
0037 msm_mux_##f9 \
0038 }, \
0039 .nfuncs = 10, \
0040 .ctl_reg = REG_BASE + REG_SIZE * id, \
0041 .io_reg = REG_BASE + 0x4 + REG_SIZE * id, \
0042 .intr_cfg_reg = REG_BASE + 0x8 + REG_SIZE * id, \
0043 .intr_status_reg = REG_BASE + 0xc + REG_SIZE * id, \
0044 .intr_target_reg = REG_BASE + 0x8 + REG_SIZE * id, \
0045 .mux_bit = 2, \
0046 .pull_bit = 0, \
0047 .drv_bit = 6, \
0048 .oe_bit = 9, \
0049 .in_bit = 0, \
0050 .out_bit = 1, \
0051 .intr_enable_bit = 0, \
0052 .intr_status_bit = 0, \
0053 .intr_target_bit = 5, \
0054 .intr_target_kpss_val = 3, \
0055 .intr_raw_status_bit = 4, \
0056 .intr_polarity_bit = 1, \
0057 .intr_detection_bit = 2, \
0058 .intr_detection_width = 2, \
0059 }
0060
0061 #define SDC_QDSD_PINGROUP(pg_name, ctl, pull, drv) \
0062 { \
0063 .name = #pg_name, \
0064 .pins = pg_name##_pins, \
0065 .npins = (unsigned)ARRAY_SIZE(pg_name##_pins), \
0066 .ctl_reg = ctl, \
0067 .io_reg = 0, \
0068 .intr_cfg_reg = 0, \
0069 .intr_status_reg = 0, \
0070 .intr_target_reg = 0, \
0071 .mux_bit = -1, \
0072 .pull_bit = pull, \
0073 .drv_bit = drv, \
0074 .oe_bit = -1, \
0075 .in_bit = -1, \
0076 .out_bit = -1, \
0077 .intr_enable_bit = -1, \
0078 .intr_status_bit = -1, \
0079 .intr_target_bit = -1, \
0080 .intr_raw_status_bit = -1, \
0081 .intr_polarity_bit = -1, \
0082 .intr_detection_bit = -1, \
0083 .intr_detection_width = -1, \
0084 }
0085 static const struct pinctrl_pin_desc msm8996_pins[] = {
0086 PINCTRL_PIN(0, "GPIO_0"),
0087 PINCTRL_PIN(1, "GPIO_1"),
0088 PINCTRL_PIN(2, "GPIO_2"),
0089 PINCTRL_PIN(3, "GPIO_3"),
0090 PINCTRL_PIN(4, "GPIO_4"),
0091 PINCTRL_PIN(5, "GPIO_5"),
0092 PINCTRL_PIN(6, "GPIO_6"),
0093 PINCTRL_PIN(7, "GPIO_7"),
0094 PINCTRL_PIN(8, "GPIO_8"),
0095 PINCTRL_PIN(9, "GPIO_9"),
0096 PINCTRL_PIN(10, "GPIO_10"),
0097 PINCTRL_PIN(11, "GPIO_11"),
0098 PINCTRL_PIN(12, "GPIO_12"),
0099 PINCTRL_PIN(13, "GPIO_13"),
0100 PINCTRL_PIN(14, "GPIO_14"),
0101 PINCTRL_PIN(15, "GPIO_15"),
0102 PINCTRL_PIN(16, "GPIO_16"),
0103 PINCTRL_PIN(17, "GPIO_17"),
0104 PINCTRL_PIN(18, "GPIO_18"),
0105 PINCTRL_PIN(19, "GPIO_19"),
0106 PINCTRL_PIN(20, "GPIO_20"),
0107 PINCTRL_PIN(21, "GPIO_21"),
0108 PINCTRL_PIN(22, "GPIO_22"),
0109 PINCTRL_PIN(23, "GPIO_23"),
0110 PINCTRL_PIN(24, "GPIO_24"),
0111 PINCTRL_PIN(25, "GPIO_25"),
0112 PINCTRL_PIN(26, "GPIO_26"),
0113 PINCTRL_PIN(27, "GPIO_27"),
0114 PINCTRL_PIN(28, "GPIO_28"),
0115 PINCTRL_PIN(29, "GPIO_29"),
0116 PINCTRL_PIN(30, "GPIO_30"),
0117 PINCTRL_PIN(31, "GPIO_31"),
0118 PINCTRL_PIN(32, "GPIO_32"),
0119 PINCTRL_PIN(33, "GPIO_33"),
0120 PINCTRL_PIN(34, "GPIO_34"),
0121 PINCTRL_PIN(35, "GPIO_35"),
0122 PINCTRL_PIN(36, "GPIO_36"),
0123 PINCTRL_PIN(37, "GPIO_37"),
0124 PINCTRL_PIN(38, "GPIO_38"),
0125 PINCTRL_PIN(39, "GPIO_39"),
0126 PINCTRL_PIN(40, "GPIO_40"),
0127 PINCTRL_PIN(41, "GPIO_41"),
0128 PINCTRL_PIN(42, "GPIO_42"),
0129 PINCTRL_PIN(43, "GPIO_43"),
0130 PINCTRL_PIN(44, "GPIO_44"),
0131 PINCTRL_PIN(45, "GPIO_45"),
0132 PINCTRL_PIN(46, "GPIO_46"),
0133 PINCTRL_PIN(47, "GPIO_47"),
0134 PINCTRL_PIN(48, "GPIO_48"),
0135 PINCTRL_PIN(49, "GPIO_49"),
0136 PINCTRL_PIN(50, "GPIO_50"),
0137 PINCTRL_PIN(51, "GPIO_51"),
0138 PINCTRL_PIN(52, "GPIO_52"),
0139 PINCTRL_PIN(53, "GPIO_53"),
0140 PINCTRL_PIN(54, "GPIO_54"),
0141 PINCTRL_PIN(55, "GPIO_55"),
0142 PINCTRL_PIN(56, "GPIO_56"),
0143 PINCTRL_PIN(57, "GPIO_57"),
0144 PINCTRL_PIN(58, "GPIO_58"),
0145 PINCTRL_PIN(59, "GPIO_59"),
0146 PINCTRL_PIN(60, "GPIO_60"),
0147 PINCTRL_PIN(61, "GPIO_61"),
0148 PINCTRL_PIN(62, "GPIO_62"),
0149 PINCTRL_PIN(63, "GPIO_63"),
0150 PINCTRL_PIN(64, "GPIO_64"),
0151 PINCTRL_PIN(65, "GPIO_65"),
0152 PINCTRL_PIN(66, "GPIO_66"),
0153 PINCTRL_PIN(67, "GPIO_67"),
0154 PINCTRL_PIN(68, "GPIO_68"),
0155 PINCTRL_PIN(69, "GPIO_69"),
0156 PINCTRL_PIN(70, "GPIO_70"),
0157 PINCTRL_PIN(71, "GPIO_71"),
0158 PINCTRL_PIN(72, "GPIO_72"),
0159 PINCTRL_PIN(73, "GPIO_73"),
0160 PINCTRL_PIN(74, "GPIO_74"),
0161 PINCTRL_PIN(75, "GPIO_75"),
0162 PINCTRL_PIN(76, "GPIO_76"),
0163 PINCTRL_PIN(77, "GPIO_77"),
0164 PINCTRL_PIN(78, "GPIO_78"),
0165 PINCTRL_PIN(79, "GPIO_79"),
0166 PINCTRL_PIN(80, "GPIO_80"),
0167 PINCTRL_PIN(81, "GPIO_81"),
0168 PINCTRL_PIN(82, "GPIO_82"),
0169 PINCTRL_PIN(83, "GPIO_83"),
0170 PINCTRL_PIN(84, "GPIO_84"),
0171 PINCTRL_PIN(85, "GPIO_85"),
0172 PINCTRL_PIN(86, "GPIO_86"),
0173 PINCTRL_PIN(87, "GPIO_87"),
0174 PINCTRL_PIN(88, "GPIO_88"),
0175 PINCTRL_PIN(89, "GPIO_89"),
0176 PINCTRL_PIN(90, "GPIO_90"),
0177 PINCTRL_PIN(91, "GPIO_91"),
0178 PINCTRL_PIN(92, "GPIO_92"),
0179 PINCTRL_PIN(93, "GPIO_93"),
0180 PINCTRL_PIN(94, "GPIO_94"),
0181 PINCTRL_PIN(95, "GPIO_95"),
0182 PINCTRL_PIN(96, "GPIO_96"),
0183 PINCTRL_PIN(97, "GPIO_97"),
0184 PINCTRL_PIN(98, "GPIO_98"),
0185 PINCTRL_PIN(99, "GPIO_99"),
0186 PINCTRL_PIN(100, "GPIO_100"),
0187 PINCTRL_PIN(101, "GPIO_101"),
0188 PINCTRL_PIN(102, "GPIO_102"),
0189 PINCTRL_PIN(103, "GPIO_103"),
0190 PINCTRL_PIN(104, "GPIO_104"),
0191 PINCTRL_PIN(105, "GPIO_105"),
0192 PINCTRL_PIN(106, "GPIO_106"),
0193 PINCTRL_PIN(107, "GPIO_107"),
0194 PINCTRL_PIN(108, "GPIO_108"),
0195 PINCTRL_PIN(109, "GPIO_109"),
0196 PINCTRL_PIN(110, "GPIO_110"),
0197 PINCTRL_PIN(111, "GPIO_111"),
0198 PINCTRL_PIN(112, "GPIO_112"),
0199 PINCTRL_PIN(113, "GPIO_113"),
0200 PINCTRL_PIN(114, "GPIO_114"),
0201 PINCTRL_PIN(115, "GPIO_115"),
0202 PINCTRL_PIN(116, "GPIO_116"),
0203 PINCTRL_PIN(117, "GPIO_117"),
0204 PINCTRL_PIN(118, "GPIO_118"),
0205 PINCTRL_PIN(119, "GPIO_119"),
0206 PINCTRL_PIN(120, "GPIO_120"),
0207 PINCTRL_PIN(121, "GPIO_121"),
0208 PINCTRL_PIN(122, "GPIO_122"),
0209 PINCTRL_PIN(123, "GPIO_123"),
0210 PINCTRL_PIN(124, "GPIO_124"),
0211 PINCTRL_PIN(125, "GPIO_125"),
0212 PINCTRL_PIN(126, "GPIO_126"),
0213 PINCTRL_PIN(127, "GPIO_127"),
0214 PINCTRL_PIN(128, "GPIO_128"),
0215 PINCTRL_PIN(129, "GPIO_129"),
0216 PINCTRL_PIN(130, "GPIO_130"),
0217 PINCTRL_PIN(131, "GPIO_131"),
0218 PINCTRL_PIN(132, "GPIO_132"),
0219 PINCTRL_PIN(133, "GPIO_133"),
0220 PINCTRL_PIN(134, "GPIO_134"),
0221 PINCTRL_PIN(135, "GPIO_135"),
0222 PINCTRL_PIN(136, "GPIO_136"),
0223 PINCTRL_PIN(137, "GPIO_137"),
0224 PINCTRL_PIN(138, "GPIO_138"),
0225 PINCTRL_PIN(139, "GPIO_139"),
0226 PINCTRL_PIN(140, "GPIO_140"),
0227 PINCTRL_PIN(141, "GPIO_141"),
0228 PINCTRL_PIN(142, "GPIO_142"),
0229 PINCTRL_PIN(143, "GPIO_143"),
0230 PINCTRL_PIN(144, "GPIO_144"),
0231 PINCTRL_PIN(145, "GPIO_145"),
0232 PINCTRL_PIN(146, "GPIO_146"),
0233 PINCTRL_PIN(147, "GPIO_147"),
0234 PINCTRL_PIN(148, "GPIO_148"),
0235 PINCTRL_PIN(149, "GPIO_149"),
0236 PINCTRL_PIN(150, "SDC1_CLK"),
0237 PINCTRL_PIN(151, "SDC1_CMD"),
0238 PINCTRL_PIN(152, "SDC1_DATA"),
0239 PINCTRL_PIN(153, "SDC2_CLK"),
0240 PINCTRL_PIN(154, "SDC2_CMD"),
0241 PINCTRL_PIN(155, "SDC2_DATA"),
0242 PINCTRL_PIN(156, "SDC1_RCLK"),
0243 };
0244
0245 #define DECLARE_MSM_GPIO_PINS(pin) \
0246 static const unsigned int gpio##pin##_pins[] = { pin }
0247 DECLARE_MSM_GPIO_PINS(0);
0248 DECLARE_MSM_GPIO_PINS(1);
0249 DECLARE_MSM_GPIO_PINS(2);
0250 DECLARE_MSM_GPIO_PINS(3);
0251 DECLARE_MSM_GPIO_PINS(4);
0252 DECLARE_MSM_GPIO_PINS(5);
0253 DECLARE_MSM_GPIO_PINS(6);
0254 DECLARE_MSM_GPIO_PINS(7);
0255 DECLARE_MSM_GPIO_PINS(8);
0256 DECLARE_MSM_GPIO_PINS(9);
0257 DECLARE_MSM_GPIO_PINS(10);
0258 DECLARE_MSM_GPIO_PINS(11);
0259 DECLARE_MSM_GPIO_PINS(12);
0260 DECLARE_MSM_GPIO_PINS(13);
0261 DECLARE_MSM_GPIO_PINS(14);
0262 DECLARE_MSM_GPIO_PINS(15);
0263 DECLARE_MSM_GPIO_PINS(16);
0264 DECLARE_MSM_GPIO_PINS(17);
0265 DECLARE_MSM_GPIO_PINS(18);
0266 DECLARE_MSM_GPIO_PINS(19);
0267 DECLARE_MSM_GPIO_PINS(20);
0268 DECLARE_MSM_GPIO_PINS(21);
0269 DECLARE_MSM_GPIO_PINS(22);
0270 DECLARE_MSM_GPIO_PINS(23);
0271 DECLARE_MSM_GPIO_PINS(24);
0272 DECLARE_MSM_GPIO_PINS(25);
0273 DECLARE_MSM_GPIO_PINS(26);
0274 DECLARE_MSM_GPIO_PINS(27);
0275 DECLARE_MSM_GPIO_PINS(28);
0276 DECLARE_MSM_GPIO_PINS(29);
0277 DECLARE_MSM_GPIO_PINS(30);
0278 DECLARE_MSM_GPIO_PINS(31);
0279 DECLARE_MSM_GPIO_PINS(32);
0280 DECLARE_MSM_GPIO_PINS(33);
0281 DECLARE_MSM_GPIO_PINS(34);
0282 DECLARE_MSM_GPIO_PINS(35);
0283 DECLARE_MSM_GPIO_PINS(36);
0284 DECLARE_MSM_GPIO_PINS(37);
0285 DECLARE_MSM_GPIO_PINS(38);
0286 DECLARE_MSM_GPIO_PINS(39);
0287 DECLARE_MSM_GPIO_PINS(40);
0288 DECLARE_MSM_GPIO_PINS(41);
0289 DECLARE_MSM_GPIO_PINS(42);
0290 DECLARE_MSM_GPIO_PINS(43);
0291 DECLARE_MSM_GPIO_PINS(44);
0292 DECLARE_MSM_GPIO_PINS(45);
0293 DECLARE_MSM_GPIO_PINS(46);
0294 DECLARE_MSM_GPIO_PINS(47);
0295 DECLARE_MSM_GPIO_PINS(48);
0296 DECLARE_MSM_GPIO_PINS(49);
0297 DECLARE_MSM_GPIO_PINS(50);
0298 DECLARE_MSM_GPIO_PINS(51);
0299 DECLARE_MSM_GPIO_PINS(52);
0300 DECLARE_MSM_GPIO_PINS(53);
0301 DECLARE_MSM_GPIO_PINS(54);
0302 DECLARE_MSM_GPIO_PINS(55);
0303 DECLARE_MSM_GPIO_PINS(56);
0304 DECLARE_MSM_GPIO_PINS(57);
0305 DECLARE_MSM_GPIO_PINS(58);
0306 DECLARE_MSM_GPIO_PINS(59);
0307 DECLARE_MSM_GPIO_PINS(60);
0308 DECLARE_MSM_GPIO_PINS(61);
0309 DECLARE_MSM_GPIO_PINS(62);
0310 DECLARE_MSM_GPIO_PINS(63);
0311 DECLARE_MSM_GPIO_PINS(64);
0312 DECLARE_MSM_GPIO_PINS(65);
0313 DECLARE_MSM_GPIO_PINS(66);
0314 DECLARE_MSM_GPIO_PINS(67);
0315 DECLARE_MSM_GPIO_PINS(68);
0316 DECLARE_MSM_GPIO_PINS(69);
0317 DECLARE_MSM_GPIO_PINS(70);
0318 DECLARE_MSM_GPIO_PINS(71);
0319 DECLARE_MSM_GPIO_PINS(72);
0320 DECLARE_MSM_GPIO_PINS(73);
0321 DECLARE_MSM_GPIO_PINS(74);
0322 DECLARE_MSM_GPIO_PINS(75);
0323 DECLARE_MSM_GPIO_PINS(76);
0324 DECLARE_MSM_GPIO_PINS(77);
0325 DECLARE_MSM_GPIO_PINS(78);
0326 DECLARE_MSM_GPIO_PINS(79);
0327 DECLARE_MSM_GPIO_PINS(80);
0328 DECLARE_MSM_GPIO_PINS(81);
0329 DECLARE_MSM_GPIO_PINS(82);
0330 DECLARE_MSM_GPIO_PINS(83);
0331 DECLARE_MSM_GPIO_PINS(84);
0332 DECLARE_MSM_GPIO_PINS(85);
0333 DECLARE_MSM_GPIO_PINS(86);
0334 DECLARE_MSM_GPIO_PINS(87);
0335 DECLARE_MSM_GPIO_PINS(88);
0336 DECLARE_MSM_GPIO_PINS(89);
0337 DECLARE_MSM_GPIO_PINS(90);
0338 DECLARE_MSM_GPIO_PINS(91);
0339 DECLARE_MSM_GPIO_PINS(92);
0340 DECLARE_MSM_GPIO_PINS(93);
0341 DECLARE_MSM_GPIO_PINS(94);
0342 DECLARE_MSM_GPIO_PINS(95);
0343 DECLARE_MSM_GPIO_PINS(96);
0344 DECLARE_MSM_GPIO_PINS(97);
0345 DECLARE_MSM_GPIO_PINS(98);
0346 DECLARE_MSM_GPIO_PINS(99);
0347 DECLARE_MSM_GPIO_PINS(100);
0348 DECLARE_MSM_GPIO_PINS(101);
0349 DECLARE_MSM_GPIO_PINS(102);
0350 DECLARE_MSM_GPIO_PINS(103);
0351 DECLARE_MSM_GPIO_PINS(104);
0352 DECLARE_MSM_GPIO_PINS(105);
0353 DECLARE_MSM_GPIO_PINS(106);
0354 DECLARE_MSM_GPIO_PINS(107);
0355 DECLARE_MSM_GPIO_PINS(108);
0356 DECLARE_MSM_GPIO_PINS(109);
0357 DECLARE_MSM_GPIO_PINS(110);
0358 DECLARE_MSM_GPIO_PINS(111);
0359 DECLARE_MSM_GPIO_PINS(112);
0360 DECLARE_MSM_GPIO_PINS(113);
0361 DECLARE_MSM_GPIO_PINS(114);
0362 DECLARE_MSM_GPIO_PINS(115);
0363 DECLARE_MSM_GPIO_PINS(116);
0364 DECLARE_MSM_GPIO_PINS(117);
0365 DECLARE_MSM_GPIO_PINS(118);
0366 DECLARE_MSM_GPIO_PINS(119);
0367 DECLARE_MSM_GPIO_PINS(120);
0368 DECLARE_MSM_GPIO_PINS(121);
0369 DECLARE_MSM_GPIO_PINS(122);
0370 DECLARE_MSM_GPIO_PINS(123);
0371 DECLARE_MSM_GPIO_PINS(124);
0372 DECLARE_MSM_GPIO_PINS(125);
0373 DECLARE_MSM_GPIO_PINS(126);
0374 DECLARE_MSM_GPIO_PINS(127);
0375 DECLARE_MSM_GPIO_PINS(128);
0376 DECLARE_MSM_GPIO_PINS(129);
0377 DECLARE_MSM_GPIO_PINS(130);
0378 DECLARE_MSM_GPIO_PINS(131);
0379 DECLARE_MSM_GPIO_PINS(132);
0380 DECLARE_MSM_GPIO_PINS(133);
0381 DECLARE_MSM_GPIO_PINS(134);
0382 DECLARE_MSM_GPIO_PINS(135);
0383 DECLARE_MSM_GPIO_PINS(136);
0384 DECLARE_MSM_GPIO_PINS(137);
0385 DECLARE_MSM_GPIO_PINS(138);
0386 DECLARE_MSM_GPIO_PINS(139);
0387 DECLARE_MSM_GPIO_PINS(140);
0388 DECLARE_MSM_GPIO_PINS(141);
0389 DECLARE_MSM_GPIO_PINS(142);
0390 DECLARE_MSM_GPIO_PINS(143);
0391 DECLARE_MSM_GPIO_PINS(144);
0392 DECLARE_MSM_GPIO_PINS(145);
0393 DECLARE_MSM_GPIO_PINS(146);
0394 DECLARE_MSM_GPIO_PINS(147);
0395 DECLARE_MSM_GPIO_PINS(148);
0396 DECLARE_MSM_GPIO_PINS(149);
0397
0398 static const unsigned int sdc1_clk_pins[] = { 150 };
0399 static const unsigned int sdc1_cmd_pins[] = { 151 };
0400 static const unsigned int sdc1_data_pins[] = { 152 };
0401 static const unsigned int sdc2_clk_pins[] = { 153 };
0402 static const unsigned int sdc2_cmd_pins[] = { 154 };
0403 static const unsigned int sdc2_data_pins[] = { 155 };
0404 static const unsigned int sdc1_rclk_pins[] = { 156 };
0405
0406 enum msm8996_functions {
0407 msm_mux_adsp_ext,
0408 msm_mux_atest_bbrx0,
0409 msm_mux_atest_bbrx1,
0410 msm_mux_atest_char,
0411 msm_mux_atest_char0,
0412 msm_mux_atest_char1,
0413 msm_mux_atest_char2,
0414 msm_mux_atest_char3,
0415 msm_mux_atest_gpsadc0,
0416 msm_mux_atest_gpsadc1,
0417 msm_mux_atest_tsens,
0418 msm_mux_atest_tsens2,
0419 msm_mux_atest_usb1,
0420 msm_mux_atest_usb10,
0421 msm_mux_atest_usb11,
0422 msm_mux_atest_usb12,
0423 msm_mux_atest_usb13,
0424 msm_mux_atest_usb2,
0425 msm_mux_atest_usb20,
0426 msm_mux_atest_usb21,
0427 msm_mux_atest_usb22,
0428 msm_mux_atest_usb23,
0429 msm_mux_audio_ref,
0430 msm_mux_bimc_dte0,
0431 msm_mux_bimc_dte1,
0432 msm_mux_blsp10_spi,
0433 msm_mux_blsp11_i2c_scl_b,
0434 msm_mux_blsp11_i2c_sda_b,
0435 msm_mux_blsp11_uart_rx_b,
0436 msm_mux_blsp11_uart_tx_b,
0437 msm_mux_blsp1_spi,
0438 msm_mux_blsp2_spi,
0439 msm_mux_blsp_i2c1,
0440 msm_mux_blsp_i2c10,
0441 msm_mux_blsp_i2c11,
0442 msm_mux_blsp_i2c12,
0443 msm_mux_blsp_i2c2,
0444 msm_mux_blsp_i2c3,
0445 msm_mux_blsp_i2c4,
0446 msm_mux_blsp_i2c5,
0447 msm_mux_blsp_i2c6,
0448 msm_mux_blsp_i2c7,
0449 msm_mux_blsp_i2c8,
0450 msm_mux_blsp_i2c9,
0451 msm_mux_blsp_spi1,
0452 msm_mux_blsp_spi10,
0453 msm_mux_blsp_spi11,
0454 msm_mux_blsp_spi12,
0455 msm_mux_blsp_spi2,
0456 msm_mux_blsp_spi3,
0457 msm_mux_blsp_spi4,
0458 msm_mux_blsp_spi5,
0459 msm_mux_blsp_spi6,
0460 msm_mux_blsp_spi7,
0461 msm_mux_blsp_spi8,
0462 msm_mux_blsp_spi9,
0463 msm_mux_blsp_uart1,
0464 msm_mux_blsp_uart10,
0465 msm_mux_blsp_uart11,
0466 msm_mux_blsp_uart12,
0467 msm_mux_blsp_uart2,
0468 msm_mux_blsp_uart3,
0469 msm_mux_blsp_uart4,
0470 msm_mux_blsp_uart5,
0471 msm_mux_blsp_uart6,
0472 msm_mux_blsp_uart7,
0473 msm_mux_blsp_uart8,
0474 msm_mux_blsp_uart9,
0475 msm_mux_blsp_uim1,
0476 msm_mux_blsp_uim10,
0477 msm_mux_blsp_uim11,
0478 msm_mux_blsp_uim12,
0479 msm_mux_blsp_uim2,
0480 msm_mux_blsp_uim3,
0481 msm_mux_blsp_uim4,
0482 msm_mux_blsp_uim5,
0483 msm_mux_blsp_uim6,
0484 msm_mux_blsp_uim7,
0485 msm_mux_blsp_uim8,
0486 msm_mux_blsp_uim9,
0487 msm_mux_btfm_slimbus,
0488 msm_mux_cam_mclk,
0489 msm_mux_cci_async,
0490 msm_mux_cci_i2c,
0491 msm_mux_cci_timer0,
0492 msm_mux_cci_timer1,
0493 msm_mux_cci_timer2,
0494 msm_mux_cci_timer3,
0495 msm_mux_cci_timer4,
0496 msm_mux_cri_trng,
0497 msm_mux_cri_trng0,
0498 msm_mux_cri_trng1,
0499 msm_mux_dac_calib0,
0500 msm_mux_dac_calib1,
0501 msm_mux_dac_calib10,
0502 msm_mux_dac_calib11,
0503 msm_mux_dac_calib12,
0504 msm_mux_dac_calib13,
0505 msm_mux_dac_calib14,
0506 msm_mux_dac_calib15,
0507 msm_mux_dac_calib16,
0508 msm_mux_dac_calib17,
0509 msm_mux_dac_calib18,
0510 msm_mux_dac_calib19,
0511 msm_mux_dac_calib2,
0512 msm_mux_dac_calib20,
0513 msm_mux_dac_calib21,
0514 msm_mux_dac_calib22,
0515 msm_mux_dac_calib23,
0516 msm_mux_dac_calib24,
0517 msm_mux_dac_calib25,
0518 msm_mux_dac_calib26,
0519 msm_mux_dac_calib3,
0520 msm_mux_dac_calib4,
0521 msm_mux_dac_calib5,
0522 msm_mux_dac_calib6,
0523 msm_mux_dac_calib7,
0524 msm_mux_dac_calib8,
0525 msm_mux_dac_calib9,
0526 msm_mux_dac_gpio,
0527 msm_mux_dbg_out,
0528 msm_mux_ddr_bist,
0529 msm_mux_edp_hot,
0530 msm_mux_edp_lcd,
0531 msm_mux_gcc_gp1_clk_a,
0532 msm_mux_gcc_gp1_clk_b,
0533 msm_mux_gcc_gp2_clk_a,
0534 msm_mux_gcc_gp2_clk_b,
0535 msm_mux_gcc_gp3_clk_a,
0536 msm_mux_gcc_gp3_clk_b,
0537 msm_mux_gsm_tx,
0538 msm_mux_hdmi_cec,
0539 msm_mux_hdmi_ddc,
0540 msm_mux_hdmi_hot,
0541 msm_mux_hdmi_rcv,
0542 msm_mux_isense_dbg,
0543 msm_mux_ldo_en,
0544 msm_mux_ldo_update,
0545 msm_mux_lpass_slimbus,
0546 msm_mux_m_voc,
0547 msm_mux_mdp_vsync,
0548 msm_mux_mdp_vsync_p_b,
0549 msm_mux_mdp_vsync_s_b,
0550 msm_mux_modem_tsync,
0551 msm_mux_mss_lte,
0552 msm_mux_nav_dr,
0553 msm_mux_nav_pps,
0554 msm_mux_pa_indicator,
0555 msm_mux_pci_e0,
0556 msm_mux_pci_e1,
0557 msm_mux_pci_e2,
0558 msm_mux_pll_bypassnl,
0559 msm_mux_pll_reset,
0560 msm_mux_pri_mi2s,
0561 msm_mux_prng_rosc,
0562 msm_mux_pwr_crypto,
0563 msm_mux_pwr_modem,
0564 msm_mux_pwr_nav,
0565 msm_mux_qdss_cti,
0566 msm_mux_qdss_cti_trig_in_a,
0567 msm_mux_qdss_cti_trig_in_b,
0568 msm_mux_qdss_cti_trig_out_a,
0569 msm_mux_qdss_cti_trig_out_b,
0570 msm_mux_qdss_stm0,
0571 msm_mux_qdss_stm1,
0572 msm_mux_qdss_stm10,
0573 msm_mux_qdss_stm11,
0574 msm_mux_qdss_stm12,
0575 msm_mux_qdss_stm13,
0576 msm_mux_qdss_stm14,
0577 msm_mux_qdss_stm15,
0578 msm_mux_qdss_stm16,
0579 msm_mux_qdss_stm17,
0580 msm_mux_qdss_stm18,
0581 msm_mux_qdss_stm19,
0582 msm_mux_qdss_stm2,
0583 msm_mux_qdss_stm20,
0584 msm_mux_qdss_stm21,
0585 msm_mux_qdss_stm22,
0586 msm_mux_qdss_stm23,
0587 msm_mux_qdss_stm24,
0588 msm_mux_qdss_stm25,
0589 msm_mux_qdss_stm26,
0590 msm_mux_qdss_stm27,
0591 msm_mux_qdss_stm28,
0592 msm_mux_qdss_stm29,
0593 msm_mux_qdss_stm3,
0594 msm_mux_qdss_stm30,
0595 msm_mux_qdss_stm31,
0596 msm_mux_qdss_stm4,
0597 msm_mux_qdss_stm5,
0598 msm_mux_qdss_stm6,
0599 msm_mux_qdss_stm7,
0600 msm_mux_qdss_stm8,
0601 msm_mux_qdss_stm9,
0602 msm_mux_qdss_traceclk_a,
0603 msm_mux_qdss_traceclk_b,
0604 msm_mux_qdss_tracectl_a,
0605 msm_mux_qdss_tracectl_b,
0606 msm_mux_qdss_tracedata_11,
0607 msm_mux_qdss_tracedata_12,
0608 msm_mux_qdss_tracedata_a,
0609 msm_mux_qdss_tracedata_b,
0610 msm_mux_qspi0,
0611 msm_mux_qspi1,
0612 msm_mux_qspi2,
0613 msm_mux_qspi3,
0614 msm_mux_qspi_clk,
0615 msm_mux_qspi_cs,
0616 msm_mux_qua_mi2s,
0617 msm_mux_sd_card,
0618 msm_mux_sd_write,
0619 msm_mux_sdc40,
0620 msm_mux_sdc41,
0621 msm_mux_sdc42,
0622 msm_mux_sdc43,
0623 msm_mux_sdc4_clk,
0624 msm_mux_sdc4_cmd,
0625 msm_mux_sec_mi2s,
0626 msm_mux_spkr_i2s,
0627 msm_mux_ssbi1,
0628 msm_mux_ssbi2,
0629 msm_mux_ssc_irq,
0630 msm_mux_ter_mi2s,
0631 msm_mux_tsense_pwm1,
0632 msm_mux_tsense_pwm2,
0633 msm_mux_tsif1_clk,
0634 msm_mux_tsif1_data,
0635 msm_mux_tsif1_en,
0636 msm_mux_tsif1_error,
0637 msm_mux_tsif1_sync,
0638 msm_mux_tsif2_clk,
0639 msm_mux_tsif2_data,
0640 msm_mux_tsif2_en,
0641 msm_mux_tsif2_error,
0642 msm_mux_tsif2_sync,
0643 msm_mux_uim1,
0644 msm_mux_uim2,
0645 msm_mux_uim3,
0646 msm_mux_uim4,
0647 msm_mux_uim_batt,
0648 msm_mux_vfr_1,
0649 msm_mux_gpio,
0650 msm_mux_NA,
0651 };
0652
0653 static const char * const gpio_groups[] = {
0654 "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
0655 "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
0656 "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
0657 "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
0658 "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
0659 "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
0660 "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
0661 "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
0662 "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
0663 "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69", "gpio70",
0664 "gpio71", "gpio72", "gpio73", "gpio74", "gpio75", "gpio76", "gpio77",
0665 "gpio78", "gpio79", "gpio80", "gpio81", "gpio82", "gpio83", "gpio84",
0666 "gpio85", "gpio86", "gpio87", "gpio88", "gpio89", "gpio90", "gpio91",
0667 "gpio92", "gpio93", "gpio94", "gpio95", "gpio96", "gpio97", "gpio98",
0668 "gpio99", "gpio100", "gpio101", "gpio102", "gpio103", "gpio104",
0669 "gpio105", "gpio106", "gpio107", "gpio108", "gpio109", "gpio110",
0670 "gpio111", "gpio112", "gpio113", "gpio114", "gpio115", "gpio116",
0671 "gpio117", "gpio118", "gpio119", "gpio120", "gpio121", "gpio122",
0672 "gpio123", "gpio124", "gpio125", "gpio126", "gpio127", "gpio128",
0673 "gpio129", "gpio130", "gpio131", "gpio132", "gpio133", "gpio134",
0674 "gpio135", "gpio136", "gpio137", "gpio138", "gpio139", "gpio140",
0675 "gpio141", "gpio142", "gpio143", "gpio144", "gpio145", "gpio146",
0676 "gpio147", "gpio148", "gpio149"
0677 };
0678
0679
0680 static const char * const blsp_uart1_groups[] = {
0681 "gpio0", "gpio1", "gpio2", "gpio3",
0682 };
0683 static const char * const blsp_spi1_groups[] = {
0684 "gpio0", "gpio1", "gpio2", "gpio3",
0685 };
0686 static const char * const blsp_i2c1_groups[] = {
0687 "gpio2", "gpio3",
0688 };
0689 static const char * const blsp_uim1_groups[] = {
0690 "gpio0", "gpio1",
0691 };
0692 static const char * const atest_tsens_groups[] = {
0693 "gpio3",
0694 };
0695 static const char * const bimc_dte1_groups[] = {
0696 "gpio3", "gpio5",
0697 };
0698 static const char * const blsp_spi8_groups[] = {
0699 "gpio4", "gpio5", "gpio6", "gpio7",
0700 };
0701 static const char * const blsp_uart8_groups[] = {
0702 "gpio4", "gpio5", "gpio6", "gpio7",
0703 };
0704 static const char * const blsp_uim8_groups[] = {
0705 "gpio4", "gpio5",
0706 };
0707 static const char * const qdss_cti_trig_out_b_groups[] = {
0708 "gpio4",
0709 };
0710 static const char * const dac_calib0_groups[] = {
0711 "gpio4", "gpio41",
0712 };
0713 static const char * const bimc_dte0_groups[] = {
0714 "gpio4", "gpio6",
0715 };
0716 static const char * const qdss_cti_trig_in_b_groups[] = {
0717 "gpio5",
0718 };
0719 static const char * const dac_calib1_groups[] = {
0720 "gpio5", "gpio42",
0721 };
0722 static const char * const dac_calib2_groups[] = {
0723 "gpio6", "gpio43",
0724 };
0725 static const char * const atest_tsens2_groups[] = {
0726 "gpio7",
0727 };
0728 static const char * const blsp_spi10_groups[] = {
0729 "gpio8", "gpio9", "gpio10", "gpio11",
0730 };
0731 static const char * const blsp_uart10_groups[] = {
0732 "gpio8", "gpio9", "gpio10", "gpio11",
0733 };
0734 static const char * const blsp_uim10_groups[] = {
0735 "gpio8", "gpio9",
0736 };
0737 static const char * const atest_bbrx1_groups[] = {
0738 "gpio8",
0739 };
0740 static const char * const atest_usb12_groups[] = {
0741 "gpio9",
0742 };
0743 static const char * const mdp_vsync_groups[] = {
0744 "gpio10", "gpio11", "gpio12",
0745 };
0746 static const char * const edp_lcd_groups[] = {
0747 "gpio10",
0748 };
0749 static const char * const blsp_i2c10_groups[] = {
0750 "gpio10", "gpio11",
0751 };
0752 static const char * const atest_usb11_groups[] = {
0753 "gpio10",
0754 };
0755 static const char * const atest_gpsadc0_groups[] = {
0756 "gpio11",
0757 };
0758 static const char * const edp_hot_groups[] = {
0759 "gpio11",
0760 };
0761 static const char * const atest_usb10_groups[] = {
0762 "gpio11",
0763 };
0764 static const char * const m_voc_groups[] = {
0765 "gpio12",
0766 };
0767 static const char * const dac_gpio_groups[] = {
0768 "gpio12",
0769 };
0770 static const char * const atest_char_groups[] = {
0771 "gpio12",
0772 };
0773 static const char * const cam_mclk_groups[] = {
0774 "gpio13", "gpio14", "gpio15", "gpio16",
0775 };
0776 static const char * const pll_bypassnl_groups[] = {
0777 "gpio13",
0778 };
0779 static const char * const qdss_stm7_groups[] = {
0780 "gpio13",
0781 };
0782 static const char * const blsp_i2c8_groups[] = {
0783 "gpio6", "gpio7",
0784 };
0785 static const char * const atest_usb1_groups[] = {
0786 "gpio7",
0787 };
0788 static const char * const atest_usb13_groups[] = {
0789 "gpio8",
0790 };
0791 static const char * const atest_bbrx0_groups[] = {
0792 "gpio9",
0793 };
0794 static const char * const atest_gpsadc1_groups[] = {
0795 "gpio10",
0796 };
0797 static const char * const qdss_tracedata_b_groups[] = {
0798 "gpio13", "gpio14", "gpio15", "gpio16", "gpio17", "gpio18", "gpio19",
0799 "gpio21", "gpio22", "gpio23", "gpio26", "gpio29", "gpio57", "gpio58",
0800 "gpio92", "gpio93",
0801 };
0802 static const char * const pll_reset_groups[] = {
0803 "gpio14",
0804 };
0805 static const char * const qdss_stm6_groups[] = {
0806 "gpio14",
0807 };
0808 static const char * const qdss_stm5_groups[] = {
0809 "gpio15",
0810 };
0811 static const char * const qdss_stm4_groups[] = {
0812 "gpio16",
0813 };
0814 static const char * const atest_usb2_groups[] = {
0815 "gpio16",
0816 };
0817 static const char * const dac_calib3_groups[] = {
0818 "gpio17", "gpio44",
0819 };
0820 static const char * const cci_i2c_groups[] = {
0821 "gpio17", "gpio18", "gpio19", "gpio20",
0822 };
0823 static const char * const qdss_stm3_groups[] = {
0824 "gpio17",
0825 };
0826 static const char * const atest_usb23_groups[] = {
0827 "gpio17",
0828 };
0829 static const char * const atest_char3_groups[] = {
0830 "gpio17",
0831 };
0832 static const char * const dac_calib4_groups[] = {
0833 "gpio18", "gpio45",
0834 };
0835 static const char * const qdss_stm2_groups[] = {
0836 "gpio18",
0837 };
0838 static const char * const atest_usb22_groups[] = {
0839 "gpio18",
0840 };
0841 static const char * const atest_char2_groups[] = {
0842 "gpio18",
0843 };
0844 static const char * const dac_calib5_groups[] = {
0845 "gpio19", "gpio46",
0846 };
0847 static const char * const qdss_stm1_groups[] = {
0848 "gpio19",
0849 };
0850 static const char * const atest_usb21_groups[] = {
0851 "gpio19",
0852 };
0853 static const char * const atest_char1_groups[] = {
0854 "gpio19",
0855 };
0856 static const char * const dac_calib6_groups[] = {
0857 "gpio20", "gpio47",
0858 };
0859 static const char * const dbg_out_groups[] = {
0860 "gpio20",
0861 };
0862 static const char * const qdss_stm0_groups[] = {
0863 "gpio20",
0864 };
0865 static const char * const atest_usb20_groups[] = {
0866 "gpio20",
0867 };
0868 static const char * const atest_char0_groups[] = {
0869 "gpio20",
0870 };
0871 static const char * const dac_calib7_groups[] = {
0872 "gpio21", "gpio48",
0873 };
0874 static const char * const cci_timer0_groups[] = {
0875 "gpio21",
0876 };
0877 static const char * const qdss_stm13_groups[] = {
0878 "gpio21",
0879 };
0880 static const char * const dac_calib8_groups[] = {
0881 "gpio22", "gpio49",
0882 };
0883 static const char * const cci_timer1_groups[] = {
0884 "gpio22",
0885 };
0886 static const char * const qdss_stm12_groups[] = {
0887 "gpio22",
0888 };
0889 static const char * const dac_calib9_groups[] = {
0890 "gpio23", "gpio50",
0891 };
0892 static const char * const cci_timer2_groups[] = {
0893 "gpio23",
0894 };
0895 static const char * const qdss_stm11_groups[] = {
0896 "gpio23",
0897 };
0898 static const char * const dac_calib10_groups[] = {
0899 "gpio24", "gpio51",
0900 };
0901 static const char * const cci_timer3_groups[] = {
0902 "gpio24",
0903 };
0904 static const char * const cci_async_groups[] = {
0905 "gpio24", "gpio25", "gpio26",
0906 };
0907 static const char * const blsp1_spi_groups[] = {
0908 "gpio24", "gpio27", "gpio28", "gpio90",
0909 };
0910 static const char * const qdss_stm10_groups[] = {
0911 "gpio24",
0912 };
0913 static const char * const qdss_cti_trig_in_a_groups[] = {
0914 "gpio24",
0915 };
0916 static const char * const dac_calib11_groups[] = {
0917 "gpio25", "gpio52",
0918 };
0919 static const char * const cci_timer4_groups[] = {
0920 "gpio25",
0921 };
0922 static const char * const blsp_spi6_groups[] = {
0923 "gpio25", "gpio26", "gpio27", "gpio28",
0924 };
0925 static const char * const blsp_uart6_groups[] = {
0926 "gpio25", "gpio26", "gpio27", "gpio28",
0927 };
0928 static const char * const blsp_uim6_groups[] = {
0929 "gpio25", "gpio26",
0930 };
0931 static const char * const blsp2_spi_groups[] = {
0932 "gpio25", "gpio29", "gpio30",
0933 };
0934 static const char * const qdss_stm9_groups[] = {
0935 "gpio25",
0936 };
0937 static const char * const qdss_cti_trig_out_a_groups[] = {
0938 "gpio25",
0939 };
0940 static const char * const dac_calib12_groups[] = {
0941 "gpio26", "gpio53",
0942 };
0943 static const char * const qdss_stm8_groups[] = {
0944 "gpio26",
0945 };
0946 static const char * const dac_calib13_groups[] = {
0947 "gpio27", "gpio54",
0948 };
0949 static const char * const blsp_i2c6_groups[] = {
0950 "gpio27", "gpio28",
0951 };
0952 static const char * const qdss_tracectl_a_groups[] = {
0953 "gpio27",
0954 };
0955 static const char * const dac_calib14_groups[] = {
0956 "gpio28", "gpio55",
0957 };
0958 static const char * const qdss_traceclk_a_groups[] = {
0959 "gpio28",
0960 };
0961 static const char * const dac_calib15_groups[] = {
0962 "gpio29", "gpio56",
0963 };
0964 static const char * const dac_calib16_groups[] = {
0965 "gpio30", "gpio57",
0966 };
0967 static const char * const hdmi_rcv_groups[] = {
0968 "gpio30",
0969 };
0970 static const char * const dac_calib17_groups[] = {
0971 "gpio31", "gpio58",
0972 };
0973 static const char * const pwr_modem_groups[] = {
0974 "gpio31",
0975 };
0976 static const char * const hdmi_cec_groups[] = {
0977 "gpio31",
0978 };
0979 static const char * const pwr_nav_groups[] = {
0980 "gpio32",
0981 };
0982 static const char * const dac_calib18_groups[] = {
0983 "gpio32", "gpio59",
0984 };
0985 static const char * const hdmi_ddc_groups[] = {
0986 "gpio32", "gpio33",
0987 };
0988 static const char * const pwr_crypto_groups[] = {
0989 "gpio33",
0990 };
0991 static const char * const dac_calib19_groups[] = {
0992 "gpio33", "gpio60",
0993 };
0994 static const char * const dac_calib20_groups[] = {
0995 "gpio34", "gpio61",
0996 };
0997 static const char * const hdmi_hot_groups[] = {
0998 "gpio34",
0999 };
1000 static const char * const dac_calib21_groups[] = {
1001 "gpio35", "gpio62",
1002 };
1003 static const char * const pci_e0_groups[] = {
1004 "gpio35", "gpio36",
1005 };
1006 static const char * const dac_calib22_groups[] = {
1007 "gpio36", "gpio63",
1008 };
1009 static const char * const dac_calib23_groups[] = {
1010 "gpio37", "gpio64",
1011 };
1012 static const char * const blsp_i2c2_groups[] = {
1013 "gpio43", "gpio44",
1014 };
1015 static const char * const blsp_spi3_groups[] = {
1016 "gpio45", "gpio46", "gpio47", "gpio48",
1017 };
1018 static const char * const blsp_uart3_groups[] = {
1019 "gpio45", "gpio46", "gpio47", "gpio48",
1020 };
1021 static const char * const blsp_uim3_groups[] = {
1022 "gpio45", "gpio46",
1023 };
1024 static const char * const blsp_i2c3_groups[] = {
1025 "gpio47", "gpio48",
1026 };
1027 static const char * const dac_calib24_groups[] = {
1028 "gpio38", "gpio65",
1029 };
1030 static const char * const dac_calib25_groups[] = {
1031 "gpio39", "gpio66",
1032 };
1033 static const char * const tsif1_sync_groups[] = {
1034 "gpio39",
1035 };
1036 static const char * const sd_write_groups[] = {
1037 "gpio40",
1038 };
1039 static const char * const tsif1_error_groups[] = {
1040 "gpio40",
1041 };
1042 static const char * const blsp_spi2_groups[] = {
1043 "gpio41", "gpio42", "gpio43", "gpio44",
1044 };
1045 static const char * const blsp_uart2_groups[] = {
1046 "gpio41", "gpio42", "gpio43", "gpio44",
1047 };
1048 static const char * const blsp_uim2_groups[] = {
1049 "gpio41", "gpio42",
1050 };
1051 static const char * const qdss_cti_groups[] = {
1052 "gpio41", "gpio42", "gpio100", "gpio101",
1053 };
1054 static const char * const uim3_groups[] = {
1055 "gpio49", "gpio50", "gpio51", "gpio52",
1056 };
1057 static const char * const blsp_spi9_groups[] = {
1058 "gpio49", "gpio50", "gpio51", "gpio52",
1059 };
1060 static const char * const blsp_uart9_groups[] = {
1061 "gpio49", "gpio50", "gpio51", "gpio52",
1062 };
1063 static const char * const blsp_uim9_groups[] = {
1064 "gpio49", "gpio50",
1065 };
1066 static const char * const blsp10_spi_groups[] = {
1067 "gpio49", "gpio50", "gpio51", "gpio52", "gpio88",
1068 };
1069 static const char * const blsp_i2c9_groups[] = {
1070 "gpio51", "gpio52",
1071 };
1072 static const char * const blsp_spi7_groups[] = {
1073 "gpio53", "gpio54", "gpio55", "gpio56",
1074 };
1075 static const char * const blsp_uart7_groups[] = {
1076 "gpio53", "gpio54", "gpio55", "gpio56",
1077 };
1078 static const char * const blsp_uim7_groups[] = {
1079 "gpio53", "gpio54",
1080 };
1081 static const char * const qdss_tracedata_a_groups[] = {
1082 "gpio53", "gpio54", "gpio63", "gpio64", "gpio65", "gpio66", "gpio67",
1083 "gpio74", "gpio75", "gpio76", "gpio77", "gpio85", "gpio86", "gpio87",
1084 "gpio89", "gpio90",
1085 };
1086 static const char * const blsp_i2c7_groups[] = {
1087 "gpio55", "gpio56",
1088 };
1089 static const char * const qua_mi2s_groups[] = {
1090 "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
1091 };
1092 static const char * const gcc_gp1_clk_a_groups[] = {
1093 "gpio57",
1094 };
1095 static const char * const uim4_groups[] = {
1096 "gpio58", "gpio59", "gpio60", "gpio61",
1097 };
1098 static const char * const blsp_spi11_groups[] = {
1099 "gpio58", "gpio59", "gpio60", "gpio61",
1100 };
1101 static const char * const blsp_uart11_groups[] = {
1102 "gpio58", "gpio59", "gpio60", "gpio61",
1103 };
1104 static const char * const blsp_uim11_groups[] = {
1105 "gpio58", "gpio59",
1106 };
1107 static const char * const gcc_gp2_clk_a_groups[] = {
1108 "gpio58",
1109 };
1110 static const char * const gcc_gp3_clk_a_groups[] = {
1111 "gpio59",
1112 };
1113 static const char * const blsp_i2c11_groups[] = {
1114 "gpio60", "gpio61",
1115 };
1116 static const char * const cri_trng0_groups[] = {
1117 "gpio60",
1118 };
1119 static const char * const cri_trng1_groups[] = {
1120 "gpio61",
1121 };
1122 static const char * const cri_trng_groups[] = {
1123 "gpio62",
1124 };
1125 static const char * const qdss_stm18_groups[] = {
1126 "gpio63",
1127 };
1128 static const char * const pri_mi2s_groups[] = {
1129 "gpio64", "gpio65", "gpio66", "gpio67", "gpio68",
1130 };
1131 static const char * const qdss_stm17_groups[] = {
1132 "gpio64",
1133 };
1134 static const char * const blsp_spi4_groups[] = {
1135 "gpio65", "gpio66", "gpio67", "gpio68",
1136 };
1137 static const char * const blsp_uart4_groups[] = {
1138 "gpio65", "gpio66", "gpio67", "gpio68",
1139 };
1140 static const char * const blsp_uim4_groups[] = {
1141 "gpio65", "gpio66",
1142 };
1143 static const char * const qdss_stm16_groups[] = {
1144 "gpio65",
1145 };
1146 static const char * const qdss_stm15_groups[] = {
1147 "gpio66",
1148 };
1149 static const char * const dac_calib26_groups[] = {
1150 "gpio67",
1151 };
1152 static const char * const blsp_i2c4_groups[] = {
1153 "gpio67", "gpio68",
1154 };
1155 static const char * const qdss_stm14_groups[] = {
1156 "gpio67",
1157 };
1158 static const char * const spkr_i2s_groups[] = {
1159 "gpio69", "gpio70", "gpio71", "gpio72",
1160 };
1161 static const char * const audio_ref_groups[] = {
1162 "gpio69",
1163 };
1164 static const char * const lpass_slimbus_groups[] = {
1165 "gpio70", "gpio71", "gpio72",
1166 };
1167 static const char * const isense_dbg_groups[] = {
1168 "gpio70",
1169 };
1170 static const char * const tsense_pwm1_groups[] = {
1171 "gpio71",
1172 };
1173 static const char * const tsense_pwm2_groups[] = {
1174 "gpio71",
1175 };
1176 static const char * const btfm_slimbus_groups[] = {
1177 "gpio73", "gpio74",
1178 };
1179 static const char * const ter_mi2s_groups[] = {
1180 "gpio74", "gpio75", "gpio76", "gpio77", "gpio78",
1181 };
1182 static const char * const qdss_stm22_groups[] = {
1183 "gpio74",
1184 };
1185 static const char * const qdss_stm21_groups[] = {
1186 "gpio75",
1187 };
1188 static const char * const qdss_stm20_groups[] = {
1189 "gpio76",
1190 };
1191 static const char * const qdss_stm19_groups[] = {
1192 "gpio77",
1193 };
1194 static const char * const ssc_irq_groups[] = {
1195 "gpio78", "gpio79", "gpio80", "gpio117", "gpio118", "gpio119",
1196 "gpio120", "gpio121", "gpio122", "gpio123", "gpio124", "gpio125",
1197 };
1198 static const char * const gcc_gp1_clk_b_groups[] = {
1199 "gpio78",
1200 };
1201 static const char * const sec_mi2s_groups[] = {
1202 "gpio79", "gpio80", "gpio81", "gpio82", "gpio83",
1203 };
1204 static const char * const blsp_spi5_groups[] = {
1205 "gpio81", "gpio82", "gpio83", "gpio84",
1206 };
1207 static const char * const blsp_uart5_groups[] = {
1208 "gpio81", "gpio82", "gpio83", "gpio84",
1209 };
1210 static const char * const blsp_uim5_groups[] = {
1211 "gpio81", "gpio82",
1212 };
1213 static const char * const gcc_gp2_clk_b_groups[] = {
1214 "gpio81",
1215 };
1216 static const char * const gcc_gp3_clk_b_groups[] = {
1217 "gpio82",
1218 };
1219 static const char * const blsp_i2c5_groups[] = {
1220 "gpio83", "gpio84",
1221 };
1222 static const char * const blsp_spi12_groups[] = {
1223 "gpio85", "gpio86", "gpio87", "gpio88",
1224 };
1225 static const char * const blsp_uart12_groups[] = {
1226 "gpio85", "gpio86", "gpio87", "gpio88",
1227 };
1228 static const char * const blsp_uim12_groups[] = {
1229 "gpio85", "gpio86",
1230 };
1231 static const char * const qdss_stm25_groups[] = {
1232 "gpio85",
1233 };
1234 static const char * const qdss_stm31_groups[] = {
1235 "gpio86",
1236 };
1237 static const char * const blsp_i2c12_groups[] = {
1238 "gpio87", "gpio88",
1239 };
1240 static const char * const qdss_stm30_groups[] = {
1241 "gpio87",
1242 };
1243 static const char * const qdss_stm29_groups[] = {
1244 "gpio88",
1245 };
1246 static const char * const tsif1_clk_groups[] = {
1247 "gpio89",
1248 };
1249 static const char * const qdss_stm28_groups[] = {
1250 "gpio89",
1251 };
1252 static const char * const tsif1_en_groups[] = {
1253 "gpio90",
1254 };
1255 static const char * const tsif1_data_groups[] = {
1256 "gpio91",
1257 };
1258 static const char * const sdc4_cmd_groups[] = {
1259 "gpio91",
1260 };
1261 static const char * const qdss_stm27_groups[] = {
1262 "gpio91",
1263 };
1264 static const char * const qdss_traceclk_b_groups[] = {
1265 "gpio91",
1266 };
1267 static const char * const tsif2_error_groups[] = {
1268 "gpio92",
1269 };
1270 static const char * const sdc43_groups[] = {
1271 "gpio92",
1272 };
1273 static const char * const vfr_1_groups[] = {
1274 "gpio92",
1275 };
1276 static const char * const qdss_stm26_groups[] = {
1277 "gpio92",
1278 };
1279 static const char * const tsif2_clk_groups[] = {
1280 "gpio93",
1281 };
1282 static const char * const sdc4_clk_groups[] = {
1283 "gpio93",
1284 };
1285 static const char * const qdss_stm24_groups[] = {
1286 "gpio93",
1287 };
1288 static const char * const tsif2_en_groups[] = {
1289 "gpio94",
1290 };
1291 static const char * const sdc42_groups[] = {
1292 "gpio94",
1293 };
1294 static const char * const qdss_stm23_groups[] = {
1295 "gpio94",
1296 };
1297 static const char * const qdss_tracectl_b_groups[] = {
1298 "gpio94",
1299 };
1300 static const char * const sd_card_groups[] = {
1301 "gpio95",
1302 };
1303 static const char * const tsif2_data_groups[] = {
1304 "gpio95",
1305 };
1306 static const char * const sdc41_groups[] = {
1307 "gpio95",
1308 };
1309 static const char * const tsif2_sync_groups[] = {
1310 "gpio96",
1311 };
1312 static const char * const sdc40_groups[] = {
1313 "gpio96",
1314 };
1315 static const char * const mdp_vsync_p_b_groups[] = {
1316 "gpio97",
1317 };
1318 static const char * const ldo_en_groups[] = {
1319 "gpio97",
1320 };
1321 static const char * const mdp_vsync_s_b_groups[] = {
1322 "gpio98",
1323 };
1324 static const char * const ldo_update_groups[] = {
1325 "gpio98",
1326 };
1327 static const char * const blsp11_uart_tx_b_groups[] = {
1328 "gpio100",
1329 };
1330 static const char * const blsp11_uart_rx_b_groups[] = {
1331 "gpio101",
1332 };
1333 static const char * const blsp11_i2c_sda_b_groups[] = {
1334 "gpio102",
1335 };
1336 static const char * const prng_rosc_groups[] = {
1337 "gpio102",
1338 };
1339 static const char * const blsp11_i2c_scl_b_groups[] = {
1340 "gpio103",
1341 };
1342 static const char * const uim2_groups[] = {
1343 "gpio105", "gpio106", "gpio107", "gpio108",
1344 };
1345 static const char * const uim1_groups[] = {
1346 "gpio109", "gpio110", "gpio111", "gpio112",
1347 };
1348 static const char * const uim_batt_groups[] = {
1349 "gpio113",
1350 };
1351 static const char * const pci_e2_groups[] = {
1352 "gpio114", "gpio115", "gpio116",
1353 };
1354 static const char * const pa_indicator_groups[] = {
1355 "gpio116",
1356 };
1357 static const char * const adsp_ext_groups[] = {
1358 "gpio118",
1359 };
1360 static const char * const ddr_bist_groups[] = {
1361 "gpio121", "gpio122", "gpio123", "gpio124",
1362 };
1363 static const char * const qdss_tracedata_11_groups[] = {
1364 "gpio123",
1365 };
1366 static const char * const qdss_tracedata_12_groups[] = {
1367 "gpio124",
1368 };
1369 static const char * const modem_tsync_groups[] = {
1370 "gpio128",
1371 };
1372 static const char * const nav_dr_groups[] = {
1373 "gpio128",
1374 };
1375 static const char * const nav_pps_groups[] = {
1376 "gpio128",
1377 };
1378 static const char * const pci_e1_groups[] = {
1379 "gpio130", "gpio131", "gpio132",
1380 };
1381 static const char * const gsm_tx_groups[] = {
1382 "gpio134", "gpio135",
1383 };
1384 static const char * const qspi_cs_groups[] = {
1385 "gpio138", "gpio141",
1386 };
1387 static const char * const ssbi2_groups[] = {
1388 "gpio139",
1389 };
1390 static const char * const ssbi1_groups[] = {
1391 "gpio140",
1392 };
1393 static const char * const mss_lte_groups[] = {
1394 "gpio144", "gpio145",
1395 };
1396 static const char * const qspi_clk_groups[] = {
1397 "gpio145",
1398 };
1399 static const char * const qspi0_groups[] = {
1400 "gpio146",
1401 };
1402 static const char * const qspi1_groups[] = {
1403 "gpio147",
1404 };
1405 static const char * const qspi2_groups[] = {
1406 "gpio148",
1407 };
1408 static const char * const qspi3_groups[] = {
1409 "gpio149",
1410 };
1411
1412 static const struct msm_function msm8996_functions[] = {
1413 FUNCTION(adsp_ext),
1414 FUNCTION(atest_bbrx0),
1415 FUNCTION(atest_bbrx1),
1416 FUNCTION(atest_char),
1417 FUNCTION(atest_char0),
1418 FUNCTION(atest_char1),
1419 FUNCTION(atest_char2),
1420 FUNCTION(atest_char3),
1421 FUNCTION(atest_gpsadc0),
1422 FUNCTION(atest_gpsadc1),
1423 FUNCTION(atest_tsens),
1424 FUNCTION(atest_tsens2),
1425 FUNCTION(atest_usb1),
1426 FUNCTION(atest_usb10),
1427 FUNCTION(atest_usb11),
1428 FUNCTION(atest_usb12),
1429 FUNCTION(atest_usb13),
1430 FUNCTION(atest_usb2),
1431 FUNCTION(atest_usb20),
1432 FUNCTION(atest_usb21),
1433 FUNCTION(atest_usb22),
1434 FUNCTION(atest_usb23),
1435 FUNCTION(audio_ref),
1436 FUNCTION(bimc_dte0),
1437 FUNCTION(bimc_dte1),
1438 FUNCTION(blsp10_spi),
1439 FUNCTION(blsp11_i2c_scl_b),
1440 FUNCTION(blsp11_i2c_sda_b),
1441 FUNCTION(blsp11_uart_rx_b),
1442 FUNCTION(blsp11_uart_tx_b),
1443 FUNCTION(blsp1_spi),
1444 FUNCTION(blsp2_spi),
1445 FUNCTION(blsp_i2c1),
1446 FUNCTION(blsp_i2c10),
1447 FUNCTION(blsp_i2c11),
1448 FUNCTION(blsp_i2c12),
1449 FUNCTION(blsp_i2c2),
1450 FUNCTION(blsp_i2c3),
1451 FUNCTION(blsp_i2c4),
1452 FUNCTION(blsp_i2c5),
1453 FUNCTION(blsp_i2c6),
1454 FUNCTION(blsp_i2c7),
1455 FUNCTION(blsp_i2c8),
1456 FUNCTION(blsp_i2c9),
1457 FUNCTION(blsp_spi1),
1458 FUNCTION(blsp_spi10),
1459 FUNCTION(blsp_spi11),
1460 FUNCTION(blsp_spi12),
1461 FUNCTION(blsp_spi2),
1462 FUNCTION(blsp_spi3),
1463 FUNCTION(blsp_spi4),
1464 FUNCTION(blsp_spi5),
1465 FUNCTION(blsp_spi6),
1466 FUNCTION(blsp_spi7),
1467 FUNCTION(blsp_spi8),
1468 FUNCTION(blsp_spi9),
1469 FUNCTION(blsp_uart1),
1470 FUNCTION(blsp_uart10),
1471 FUNCTION(blsp_uart11),
1472 FUNCTION(blsp_uart12),
1473 FUNCTION(blsp_uart2),
1474 FUNCTION(blsp_uart3),
1475 FUNCTION(blsp_uart4),
1476 FUNCTION(blsp_uart5),
1477 FUNCTION(blsp_uart6),
1478 FUNCTION(blsp_uart7),
1479 FUNCTION(blsp_uart8),
1480 FUNCTION(blsp_uart9),
1481 FUNCTION(blsp_uim1),
1482 FUNCTION(blsp_uim10),
1483 FUNCTION(blsp_uim11),
1484 FUNCTION(blsp_uim12),
1485 FUNCTION(blsp_uim2),
1486 FUNCTION(blsp_uim3),
1487 FUNCTION(blsp_uim4),
1488 FUNCTION(blsp_uim5),
1489 FUNCTION(blsp_uim6),
1490 FUNCTION(blsp_uim7),
1491 FUNCTION(blsp_uim8),
1492 FUNCTION(blsp_uim9),
1493 FUNCTION(btfm_slimbus),
1494 FUNCTION(cam_mclk),
1495 FUNCTION(cci_async),
1496 FUNCTION(cci_i2c),
1497 FUNCTION(cci_timer0),
1498 FUNCTION(cci_timer1),
1499 FUNCTION(cci_timer2),
1500 FUNCTION(cci_timer3),
1501 FUNCTION(cci_timer4),
1502 FUNCTION(cri_trng),
1503 FUNCTION(cri_trng0),
1504 FUNCTION(cri_trng1),
1505 FUNCTION(dac_calib0),
1506 FUNCTION(dac_calib1),
1507 FUNCTION(dac_calib10),
1508 FUNCTION(dac_calib11),
1509 FUNCTION(dac_calib12),
1510 FUNCTION(dac_calib13),
1511 FUNCTION(dac_calib14),
1512 FUNCTION(dac_calib15),
1513 FUNCTION(dac_calib16),
1514 FUNCTION(dac_calib17),
1515 FUNCTION(dac_calib18),
1516 FUNCTION(dac_calib19),
1517 FUNCTION(dac_calib2),
1518 FUNCTION(dac_calib20),
1519 FUNCTION(dac_calib21),
1520 FUNCTION(dac_calib22),
1521 FUNCTION(dac_calib23),
1522 FUNCTION(dac_calib24),
1523 FUNCTION(dac_calib25),
1524 FUNCTION(dac_calib26),
1525 FUNCTION(dac_calib3),
1526 FUNCTION(dac_calib4),
1527 FUNCTION(dac_calib5),
1528 FUNCTION(dac_calib6),
1529 FUNCTION(dac_calib7),
1530 FUNCTION(dac_calib8),
1531 FUNCTION(dac_calib9),
1532 FUNCTION(dac_gpio),
1533 FUNCTION(dbg_out),
1534 FUNCTION(ddr_bist),
1535 FUNCTION(edp_hot),
1536 FUNCTION(edp_lcd),
1537 FUNCTION(gcc_gp1_clk_a),
1538 FUNCTION(gcc_gp1_clk_b),
1539 FUNCTION(gcc_gp2_clk_a),
1540 FUNCTION(gcc_gp2_clk_b),
1541 FUNCTION(gcc_gp3_clk_a),
1542 FUNCTION(gcc_gp3_clk_b),
1543 FUNCTION(gpio),
1544 FUNCTION(gsm_tx),
1545 FUNCTION(hdmi_cec),
1546 FUNCTION(hdmi_ddc),
1547 FUNCTION(hdmi_hot),
1548 FUNCTION(hdmi_rcv),
1549 FUNCTION(isense_dbg),
1550 FUNCTION(ldo_en),
1551 FUNCTION(ldo_update),
1552 FUNCTION(lpass_slimbus),
1553 FUNCTION(m_voc),
1554 FUNCTION(mdp_vsync),
1555 FUNCTION(mdp_vsync_p_b),
1556 FUNCTION(mdp_vsync_s_b),
1557 FUNCTION(modem_tsync),
1558 FUNCTION(mss_lte),
1559 FUNCTION(nav_dr),
1560 FUNCTION(nav_pps),
1561 FUNCTION(pa_indicator),
1562 FUNCTION(pci_e0),
1563 FUNCTION(pci_e1),
1564 FUNCTION(pci_e2),
1565 FUNCTION(pll_bypassnl),
1566 FUNCTION(pll_reset),
1567 FUNCTION(pri_mi2s),
1568 FUNCTION(prng_rosc),
1569 FUNCTION(pwr_crypto),
1570 FUNCTION(pwr_modem),
1571 FUNCTION(pwr_nav),
1572 FUNCTION(qdss_cti),
1573 FUNCTION(qdss_cti_trig_in_a),
1574 FUNCTION(qdss_cti_trig_in_b),
1575 FUNCTION(qdss_cti_trig_out_a),
1576 FUNCTION(qdss_cti_trig_out_b),
1577 FUNCTION(qdss_stm0),
1578 FUNCTION(qdss_stm1),
1579 FUNCTION(qdss_stm10),
1580 FUNCTION(qdss_stm11),
1581 FUNCTION(qdss_stm12),
1582 FUNCTION(qdss_stm13),
1583 FUNCTION(qdss_stm14),
1584 FUNCTION(qdss_stm15),
1585 FUNCTION(qdss_stm16),
1586 FUNCTION(qdss_stm17),
1587 FUNCTION(qdss_stm18),
1588 FUNCTION(qdss_stm19),
1589 FUNCTION(qdss_stm2),
1590 FUNCTION(qdss_stm20),
1591 FUNCTION(qdss_stm21),
1592 FUNCTION(qdss_stm22),
1593 FUNCTION(qdss_stm23),
1594 FUNCTION(qdss_stm24),
1595 FUNCTION(qdss_stm25),
1596 FUNCTION(qdss_stm26),
1597 FUNCTION(qdss_stm27),
1598 FUNCTION(qdss_stm28),
1599 FUNCTION(qdss_stm29),
1600 FUNCTION(qdss_stm3),
1601 FUNCTION(qdss_stm30),
1602 FUNCTION(qdss_stm31),
1603 FUNCTION(qdss_stm4),
1604 FUNCTION(qdss_stm5),
1605 FUNCTION(qdss_stm6),
1606 FUNCTION(qdss_stm7),
1607 FUNCTION(qdss_stm8),
1608 FUNCTION(qdss_stm9),
1609 FUNCTION(qdss_traceclk_a),
1610 FUNCTION(qdss_traceclk_b),
1611 FUNCTION(qdss_tracectl_a),
1612 FUNCTION(qdss_tracectl_b),
1613 FUNCTION(qdss_tracedata_11),
1614 FUNCTION(qdss_tracedata_12),
1615 FUNCTION(qdss_tracedata_a),
1616 FUNCTION(qdss_tracedata_b),
1617 FUNCTION(qspi0),
1618 FUNCTION(qspi1),
1619 FUNCTION(qspi2),
1620 FUNCTION(qspi3),
1621 FUNCTION(qspi_clk),
1622 FUNCTION(qspi_cs),
1623 FUNCTION(qua_mi2s),
1624 FUNCTION(sd_card),
1625 FUNCTION(sd_write),
1626 FUNCTION(sdc40),
1627 FUNCTION(sdc41),
1628 FUNCTION(sdc42),
1629 FUNCTION(sdc43),
1630 FUNCTION(sdc4_clk),
1631 FUNCTION(sdc4_cmd),
1632 FUNCTION(sec_mi2s),
1633 FUNCTION(spkr_i2s),
1634 FUNCTION(ssbi1),
1635 FUNCTION(ssbi2),
1636 FUNCTION(ssc_irq),
1637 FUNCTION(ter_mi2s),
1638 FUNCTION(tsense_pwm1),
1639 FUNCTION(tsense_pwm2),
1640 FUNCTION(tsif1_clk),
1641 FUNCTION(tsif1_data),
1642 FUNCTION(tsif1_en),
1643 FUNCTION(tsif1_error),
1644 FUNCTION(tsif1_sync),
1645 FUNCTION(tsif2_clk),
1646 FUNCTION(tsif2_data),
1647 FUNCTION(tsif2_en),
1648 FUNCTION(tsif2_error),
1649 FUNCTION(tsif2_sync),
1650 FUNCTION(uim1),
1651 FUNCTION(uim2),
1652 FUNCTION(uim3),
1653 FUNCTION(uim4),
1654 FUNCTION(uim_batt),
1655 FUNCTION(vfr_1),
1656 };
1657
1658 static const struct msm_pingroup msm8996_groups[] = {
1659 PINGROUP(0, blsp_spi1, blsp_uart1, blsp_uim1, NA, NA, NA, NA, NA, NA),
1660 PINGROUP(1, blsp_spi1, blsp_uart1, blsp_uim1, NA, NA, NA, NA, NA, NA),
1661 PINGROUP(2, blsp_spi1, blsp_uart1, blsp_i2c1, NA, NA, NA, NA, NA, NA),
1662 PINGROUP(3, blsp_spi1, blsp_uart1, blsp_i2c1, NA, atest_tsens,
1663 bimc_dte1, NA, NA, NA),
1664 PINGROUP(4, blsp_spi8, blsp_uart8, blsp_uim8, NA, qdss_cti_trig_out_b,
1665 dac_calib0, bimc_dte0, NA, NA),
1666 PINGROUP(5, blsp_spi8, blsp_uart8, blsp_uim8, NA, qdss_cti_trig_in_b,
1667 dac_calib1, bimc_dte1, NA, NA),
1668 PINGROUP(6, blsp_spi8, blsp_uart8, blsp_i2c8, NA, dac_calib2,
1669 bimc_dte0, NA, NA, NA),
1670 PINGROUP(7, blsp_spi8, blsp_uart8, blsp_i2c8, NA, atest_tsens2,
1671 atest_usb1, NA, NA, NA),
1672 PINGROUP(8, blsp_spi10, blsp_uart10, blsp_uim10, NA, atest_bbrx1,
1673 atest_usb13, NA, NA, NA),
1674 PINGROUP(9, blsp_spi10, blsp_uart10, blsp_uim10, atest_bbrx0,
1675 atest_usb12, NA, NA, NA, NA),
1676 PINGROUP(10, mdp_vsync, blsp_spi10, blsp_uart10, blsp_i2c10,
1677 atest_gpsadc1, atest_usb11, NA, NA, NA),
1678 PINGROUP(11, mdp_vsync, blsp_spi10, blsp_uart10, blsp_i2c10,
1679 atest_gpsadc0, atest_usb10, NA, NA, NA),
1680 PINGROUP(12, mdp_vsync, m_voc, dac_gpio, atest_char, NA, NA, NA, NA,
1681 NA),
1682 PINGROUP(13, cam_mclk, pll_bypassnl, qdss_stm7, qdss_tracedata_b, NA,
1683 NA, NA, NA, NA),
1684 PINGROUP(14, cam_mclk, pll_reset, qdss_stm6, qdss_tracedata_b, NA, NA,
1685 NA, NA, NA),
1686 PINGROUP(15, cam_mclk, qdss_stm5, qdss_tracedata_b, NA, NA, NA, NA, NA,
1687 NA),
1688 PINGROUP(16, cam_mclk, qdss_stm4, qdss_tracedata_b, NA, atest_usb2, NA,
1689 NA, NA, NA),
1690 PINGROUP(17, cci_i2c, qdss_stm3, qdss_tracedata_b, dac_calib3,
1691 atest_usb23, atest_char3, NA, NA, NA),
1692 PINGROUP(18, cci_i2c, qdss_stm2, qdss_tracedata_b, dac_calib4,
1693 atest_usb22, atest_char2, NA, NA, NA),
1694 PINGROUP(19, cci_i2c, qdss_stm1, qdss_tracedata_b, dac_calib5,
1695 atest_usb21, atest_char1, NA, NA, NA),
1696 PINGROUP(20, cci_i2c, dbg_out, qdss_stm0, dac_calib6, atest_usb20,
1697 atest_char0, NA, NA, NA),
1698 PINGROUP(21, cci_timer0, qdss_stm13, qdss_tracedata_b, dac_calib7, NA,
1699 NA, NA, NA, NA),
1700 PINGROUP(22, cci_timer1, qdss_stm12, qdss_tracedata_b, dac_calib8, NA,
1701 NA, NA, NA, NA),
1702 PINGROUP(23, cci_timer2, blsp1_spi, qdss_stm11, qdss_tracedata_b,
1703 dac_calib9, NA, NA, NA, NA),
1704 PINGROUP(24, cci_timer3, cci_async, blsp1_spi, qdss_stm10,
1705 qdss_cti_trig_in_a, dac_calib10, NA, NA, NA),
1706 PINGROUP(25, cci_timer4, cci_async, blsp_spi6, blsp_uart6, blsp_uim6,
1707 blsp2_spi, qdss_stm9, qdss_cti_trig_out_a, dac_calib11),
1708 PINGROUP(26, cci_async, blsp_spi6, blsp_uart6, blsp_uim6, qdss_stm8,
1709 qdss_tracedata_b, dac_calib12, NA, NA),
1710 PINGROUP(27, blsp_spi6, blsp_uart6, blsp_i2c6, blsp1_spi,
1711 qdss_tracectl_a, dac_calib13, NA, NA, NA),
1712 PINGROUP(28, blsp_spi6, blsp_uart6, blsp_i2c6, blsp1_spi,
1713 qdss_traceclk_a, dac_calib14, NA, NA, NA),
1714 PINGROUP(29, blsp2_spi, NA, qdss_tracedata_b, dac_calib15, NA, NA, NA,
1715 NA, NA),
1716 PINGROUP(30, hdmi_rcv, blsp2_spi, dac_calib16, NA, NA, NA, NA, NA, NA),
1717 PINGROUP(31, hdmi_cec, pwr_modem, dac_calib17, NA, NA, NA, NA, NA, NA),
1718 PINGROUP(32, hdmi_ddc, pwr_nav, NA, dac_calib18, NA, NA, NA, NA, NA),
1719 PINGROUP(33, hdmi_ddc, pwr_crypto, NA, dac_calib19, NA, NA, NA, NA, NA),
1720 PINGROUP(34, hdmi_hot, NA, dac_calib20, NA, NA, NA, NA, NA, NA),
1721 PINGROUP(35, pci_e0, NA, dac_calib21, NA, NA, NA, NA, NA, NA),
1722 PINGROUP(36, pci_e0, NA, dac_calib22, NA, NA, NA, NA, NA, NA),
1723 PINGROUP(37, NA, dac_calib23, NA, NA, NA, NA, NA, NA, NA),
1724 PINGROUP(38, NA, dac_calib24, NA, NA, NA, NA, NA, NA, NA),
1725 PINGROUP(39, tsif1_sync, NA, dac_calib25, NA, NA, NA, NA, NA, NA),
1726 PINGROUP(40, sd_write, tsif1_error, NA, NA, NA, NA, NA, NA, NA),
1727 PINGROUP(41, blsp_spi2, blsp_uart2, blsp_uim2, NA, qdss_cti,
1728 dac_calib0, NA, NA, NA),
1729 PINGROUP(42, blsp_spi2, blsp_uart2, blsp_uim2, NA, qdss_cti,
1730 dac_calib1, NA, NA, NA),
1731 PINGROUP(43, blsp_spi2, blsp_uart2, blsp_i2c2, NA, dac_calib2, NA, NA,
1732 NA, NA),
1733 PINGROUP(44, blsp_spi2, blsp_uart2, blsp_i2c2, NA, dac_calib3, NA, NA,
1734 NA, NA),
1735 PINGROUP(45, blsp_spi3, blsp_uart3, blsp_uim3, NA, dac_calib4, NA, NA,
1736 NA, NA),
1737 PINGROUP(46, blsp_spi3, blsp_uart3, blsp_uim3, NA, dac_calib5, NA, NA,
1738 NA, NA),
1739 PINGROUP(47, blsp_spi3, blsp_uart3, blsp_i2c3, dac_calib6, NA, NA, NA,
1740 NA, NA),
1741 PINGROUP(48, blsp_spi3, blsp_uart3, blsp_i2c3, dac_calib7, NA, NA, NA,
1742 NA, NA),
1743 PINGROUP(49, uim3, blsp_spi9, blsp_uart9, blsp_uim9, blsp10_spi,
1744 dac_calib8, NA, NA, NA),
1745 PINGROUP(50, uim3, blsp_spi9, blsp_uart9, blsp_uim9, blsp10_spi,
1746 dac_calib9, NA, NA, NA),
1747 PINGROUP(51, uim3, blsp_spi9, blsp_uart9, blsp_i2c9, blsp10_spi,
1748 dac_calib10, NA, NA, NA),
1749 PINGROUP(52, uim3, blsp_spi9, blsp_uart9, blsp_i2c9,
1750 blsp10_spi, dac_calib11, NA, NA, NA),
1751 PINGROUP(53, blsp_spi7, blsp_uart7, blsp_uim7, NA, qdss_tracedata_a,
1752 dac_calib12, NA, NA, NA),
1753 PINGROUP(54, blsp_spi7, blsp_uart7, blsp_uim7, NA, NA,
1754 qdss_tracedata_a, dac_calib13, NA, NA),
1755 PINGROUP(55, blsp_spi7, blsp_uart7, blsp_i2c7, NA, dac_calib14, NA, NA,
1756 NA, NA),
1757 PINGROUP(56, blsp_spi7, blsp_uart7, blsp_i2c7, NA, dac_calib15, NA, NA,
1758 NA, NA),
1759 PINGROUP(57, qua_mi2s, gcc_gp1_clk_a, NA, qdss_tracedata_b,
1760 dac_calib16, NA, NA, NA, NA),
1761 PINGROUP(58, qua_mi2s, uim4, blsp_spi11, blsp_uart11, blsp_uim11,
1762 gcc_gp2_clk_a, NA, qdss_tracedata_b, dac_calib17),
1763 PINGROUP(59, qua_mi2s, uim4, blsp_spi11, blsp_uart11, blsp_uim11,
1764 gcc_gp3_clk_a, NA, dac_calib18, NA),
1765 PINGROUP(60, qua_mi2s, uim4, blsp_spi11, blsp_uart11, blsp_i2c11,
1766 cri_trng0, NA, dac_calib19, NA),
1767 PINGROUP(61, qua_mi2s, uim4, blsp_spi11, blsp_uart11,
1768 blsp_i2c11, cri_trng1, NA, dac_calib20, NA),
1769 PINGROUP(62, qua_mi2s, cri_trng, NA, dac_calib21, NA, NA, NA, NA, NA),
1770 PINGROUP(63, qua_mi2s, NA, NA, qdss_stm18, qdss_tracedata_a,
1771 dac_calib22, NA, NA, NA),
1772 PINGROUP(64, pri_mi2s, NA, qdss_stm17, qdss_tracedata_a, dac_calib23,
1773 NA, NA, NA, NA),
1774 PINGROUP(65, pri_mi2s, blsp_spi4, blsp_uart4, blsp_uim4, NA,
1775 qdss_stm16, qdss_tracedata_a, dac_calib24, NA),
1776 PINGROUP(66, pri_mi2s, blsp_spi4, blsp_uart4, blsp_uim4, NA,
1777 qdss_stm15, qdss_tracedata_a, dac_calib25, NA),
1778 PINGROUP(67, pri_mi2s, blsp_spi4, blsp_uart4, blsp_i2c4, qdss_stm14,
1779 qdss_tracedata_a, dac_calib26, NA, NA),
1780 PINGROUP(68, pri_mi2s, blsp_spi4, blsp_uart4, blsp_i2c4, NA, NA, NA,
1781 NA, NA),
1782 PINGROUP(69, spkr_i2s, audio_ref, NA, NA, NA, NA, NA, NA, NA),
1783 PINGROUP(70, lpass_slimbus, spkr_i2s, isense_dbg, NA, NA, NA, NA, NA,
1784 NA),
1785 PINGROUP(71, lpass_slimbus, spkr_i2s, tsense_pwm1, tsense_pwm2, NA, NA,
1786 NA, NA, NA),
1787 PINGROUP(72, lpass_slimbus, spkr_i2s, NA, NA, NA, NA, NA, NA, NA),
1788 PINGROUP(73, btfm_slimbus, NA, NA, NA, NA, NA, NA, NA, NA),
1789 PINGROUP(74, btfm_slimbus, ter_mi2s, qdss_stm22, qdss_tracedata_a, NA,
1790 NA, NA, NA, NA),
1791 PINGROUP(75, ter_mi2s, qdss_stm21, qdss_tracedata_a, NA, NA, NA, NA,
1792 NA, NA),
1793 PINGROUP(76, ter_mi2s, qdss_stm20, qdss_tracedata_a, NA, NA, NA, NA,
1794 NA, NA),
1795 PINGROUP(77, ter_mi2s, qdss_stm19, qdss_tracedata_a, NA, NA, NA, NA,
1796 NA, NA),
1797 PINGROUP(78, ter_mi2s, gcc_gp1_clk_b, NA, NA, NA, NA, NA, NA, NA),
1798 PINGROUP(79, sec_mi2s, NA, NA, NA, NA, NA, NA, NA, NA),
1799 PINGROUP(80, sec_mi2s, NA, NA, NA, NA, NA, NA, NA, NA),
1800 PINGROUP(81, sec_mi2s, blsp_spi5, blsp_uart5, blsp_uim5, gcc_gp2_clk_b,
1801 NA, NA, NA, NA),
1802 PINGROUP(82, sec_mi2s, blsp_spi5, blsp_uart5, blsp_uim5, gcc_gp3_clk_b,
1803 NA, NA, NA, NA),
1804 PINGROUP(83, sec_mi2s, blsp_spi5, blsp_uart5, blsp_i2c5, NA, NA, NA,
1805 NA, NA),
1806 PINGROUP(84, blsp_spi5, blsp_uart5, blsp_i2c5, NA, NA, NA, NA, NA, NA),
1807 PINGROUP(85, blsp_spi12, blsp_uart12, blsp_uim12, NA, qdss_stm25,
1808 qdss_tracedata_a, NA, NA, NA),
1809 PINGROUP(86, blsp_spi12, blsp_uart12, blsp_uim12, NA, NA, qdss_stm31,
1810 qdss_tracedata_a, NA, NA),
1811 PINGROUP(87, blsp_spi12, blsp_uart12, blsp_i2c12, NA, qdss_stm30,
1812 qdss_tracedata_a, NA, NA, NA),
1813 PINGROUP(88, blsp_spi12, blsp_uart12, blsp_i2c12, blsp10_spi, NA,
1814 qdss_stm29, NA, NA, NA),
1815 PINGROUP(89, tsif1_clk, qdss_stm28, qdss_tracedata_a, NA, NA, NA, NA,
1816 NA, NA),
1817 PINGROUP(90, tsif1_en, blsp1_spi, qdss_tracedata_a, NA, NA, NA, NA, NA,
1818 NA),
1819 PINGROUP(91, tsif1_data, sdc4_cmd, qdss_stm27, qdss_traceclk_b, NA, NA,
1820 NA, NA, NA),
1821 PINGROUP(92, tsif2_error, sdc43, vfr_1, qdss_stm26, qdss_tracedata_b,
1822 NA, NA, NA, NA),
1823 PINGROUP(93, tsif2_clk, sdc4_clk, NA, qdss_stm24, qdss_tracedata_b, NA,
1824 NA, NA, NA),
1825 PINGROUP(94, tsif2_en, sdc42, NA, qdss_stm23, qdss_tracectl_b, NA, NA,
1826 NA, NA),
1827 PINGROUP(95, tsif2_data, sdc41, NA, NA, NA, NA, NA, NA, NA),
1828 PINGROUP(96, tsif2_sync, sdc40, NA, NA, NA, NA, NA, NA, NA),
1829 PINGROUP(97, NA, NA, mdp_vsync_p_b, ldo_en, NA, NA, NA, NA, NA),
1830 PINGROUP(98, NA, NA, mdp_vsync_s_b, ldo_update, NA, NA, NA, NA, NA),
1831 PINGROUP(99, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1832 PINGROUP(100, NA, NA, blsp11_uart_tx_b, qdss_cti, NA, NA, NA, NA, NA),
1833 PINGROUP(101, NA, blsp11_uart_rx_b, qdss_cti, NA, NA, NA, NA, NA, NA),
1834 PINGROUP(102, NA, blsp11_i2c_sda_b, prng_rosc, NA, NA, NA, NA, NA, NA),
1835 PINGROUP(103, NA, blsp11_i2c_scl_b, NA, NA, NA, NA, NA, NA, NA),
1836 PINGROUP(104, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1837 PINGROUP(105, uim2, NA, NA, NA, NA, NA, NA, NA, NA),
1838 PINGROUP(106, uim2, NA, NA, NA, NA, NA, NA, NA, NA),
1839 PINGROUP(107, uim2, NA, NA, NA, NA, NA, NA, NA, NA),
1840 PINGROUP(108, uim2, NA, NA, NA, NA, NA, NA, NA, NA),
1841 PINGROUP(109, uim1, NA, NA, NA, NA, NA, NA, NA, NA),
1842 PINGROUP(110, uim1, NA, NA, NA, NA, NA, NA, NA, NA),
1843 PINGROUP(111, uim1, NA, NA, NA, NA, NA, NA, NA, NA),
1844 PINGROUP(112, uim1, NA, NA, NA, NA, NA, NA, NA, NA),
1845 PINGROUP(113, uim_batt, NA, NA, NA, NA, NA, NA, NA, NA),
1846 PINGROUP(114, NA, pci_e2, NA, NA, NA, NA, NA, NA, NA),
1847 PINGROUP(115, NA, pci_e2, NA, NA, NA, NA, NA, NA, NA),
1848 PINGROUP(116, NA, pa_indicator, NA, NA, NA, NA, NA, NA, NA),
1849 PINGROUP(117, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1850 PINGROUP(118, adsp_ext, NA, NA, NA, NA, NA, NA, NA, NA),
1851 PINGROUP(119, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1852 PINGROUP(120, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1853 PINGROUP(121, ddr_bist, NA, NA, NA, NA, NA, NA, NA, NA),
1854 PINGROUP(122, ddr_bist, NA, NA, NA, NA, NA, NA, NA, NA),
1855 PINGROUP(123, ddr_bist, qdss_tracedata_11, NA, NA, NA, NA, NA, NA, NA),
1856 PINGROUP(124, ddr_bist, qdss_tracedata_12, NA, NA, NA, NA, NA, NA, NA),
1857 PINGROUP(125, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1858 PINGROUP(126, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1859 PINGROUP(127, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1860 PINGROUP(128, NA, modem_tsync, nav_dr, nav_pps, NA, NA, NA, NA, NA),
1861 PINGROUP(129, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1862 PINGROUP(130, pci_e1, NA, NA, NA, NA, NA, NA, NA, NA),
1863 PINGROUP(131, pci_e1, NA, NA, NA, NA, NA, NA, NA, NA),
1864 PINGROUP(132, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1865 PINGROUP(133, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1866 PINGROUP(134, gsm_tx, NA, NA, NA, NA, NA, NA, NA, NA),
1867 PINGROUP(135, gsm_tx, NA, NA, NA, NA, NA, NA, NA, NA),
1868 PINGROUP(136, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1869 PINGROUP(137, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1870 PINGROUP(138, NA, qspi_cs, NA, NA, NA, NA, NA, NA, NA),
1871 PINGROUP(139, NA, ssbi2, NA, NA, NA, NA, NA, NA, NA),
1872 PINGROUP(140, NA, ssbi1, NA, NA, NA, NA, NA, NA, NA),
1873 PINGROUP(141, NA, qspi_cs, NA, NA, NA, NA, NA, NA, NA),
1874 PINGROUP(142, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1875 PINGROUP(143, NA, NA, NA, NA, NA, NA, NA, NA, NA),
1876 PINGROUP(144, mss_lte, NA, NA, NA, NA, NA, NA, NA, NA),
1877 PINGROUP(145, mss_lte, qspi_clk, NA, NA, NA, NA, NA, NA, NA),
1878 PINGROUP(146, NA, qspi0, NA, NA, NA, NA, NA, NA, NA),
1879 PINGROUP(147, NA, qspi1, NA, NA, NA, NA, NA, NA, NA),
1880 PINGROUP(148, NA, qspi2, NA, NA, NA, NA, NA, NA, NA),
1881 PINGROUP(149, NA, qspi3, NA, NA, NA, NA, NA, NA, NA),
1882 SDC_QDSD_PINGROUP(sdc1_clk, 0x12c000, 13, 6),
1883 SDC_QDSD_PINGROUP(sdc1_cmd, 0x12c000, 11, 3),
1884 SDC_QDSD_PINGROUP(sdc1_data, 0x12c000, 9, 0),
1885 SDC_QDSD_PINGROUP(sdc2_clk, 0x12d000, 14, 6),
1886 SDC_QDSD_PINGROUP(sdc2_cmd, 0x12d000, 11, 3),
1887 SDC_QDSD_PINGROUP(sdc2_data, 0x12d000, 9, 0),
1888 SDC_QDSD_PINGROUP(sdc1_rclk, 0x12c000, 15, 0),
1889 };
1890
1891 static const struct msm_pinctrl_soc_data msm8996_pinctrl = {
1892 .pins = msm8996_pins,
1893 .npins = ARRAY_SIZE(msm8996_pins),
1894 .functions = msm8996_functions,
1895 .nfunctions = ARRAY_SIZE(msm8996_functions),
1896 .groups = msm8996_groups,
1897 .ngroups = ARRAY_SIZE(msm8996_groups),
1898 .ngpios = 150,
1899 };
1900
1901 static int msm8996_pinctrl_probe(struct platform_device *pdev)
1902 {
1903 return msm_pinctrl_probe(pdev, &msm8996_pinctrl);
1904 }
1905
1906 static const struct of_device_id msm8996_pinctrl_of_match[] = {
1907 { .compatible = "qcom,msm8996-pinctrl", },
1908 { }
1909 };
1910
1911 static struct platform_driver msm8996_pinctrl_driver = {
1912 .driver = {
1913 .name = "msm8996-pinctrl",
1914 .of_match_table = msm8996_pinctrl_of_match,
1915 },
1916 .probe = msm8996_pinctrl_probe,
1917 .remove = msm_pinctrl_remove,
1918 };
1919
1920 static int __init msm8996_pinctrl_init(void)
1921 {
1922 return platform_driver_register(&msm8996_pinctrl_driver);
1923 }
1924 arch_initcall(msm8996_pinctrl_init);
1925
1926 static void __exit msm8996_pinctrl_exit(void)
1927 {
1928 platform_driver_unregister(&msm8996_pinctrl_driver);
1929 }
1930 module_exit(msm8996_pinctrl_exit);
1931
1932 MODULE_DESCRIPTION("Qualcomm msm8996 pinctrl driver");
1933 MODULE_LICENSE("GPL v2");
1934 MODULE_DEVICE_TABLE(of, msm8996_pinctrl_of_match);