pinctrl-ipq8074.c 26 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069
  1. // SPDX-License-Identifier: GPL-2.0-only
  2. /*
  3. * Copyright (c) 2017, The Linux Foundation. All rights reserved.
  4. */
  5. #include <linux/module.h>
  6. #include <linux/of.h>
  7. #include <linux/platform_device.h>
  8. #include <linux/pinctrl/pinctrl.h>
  9. #include "pinctrl-msm.h"
  10. #define FUNCTION(fname) \
  11. [msm_mux_##fname] = { \
  12. .name = #fname, \
  13. .groups = fname##_groups, \
  14. .ngroups = ARRAY_SIZE(fname##_groups), \
  15. }
  16. #define REG_SIZE 0x1000
  17. #define PINGROUP(id, f1, f2, f3, f4, f5, f6, f7, f8, f9) \
  18. { \
  19. .name = "gpio" #id, \
  20. .pins = gpio##id##_pins, \
  21. .npins = (unsigned int)ARRAY_SIZE(gpio##id##_pins), \
  22. .funcs = (int[]){ \
  23. msm_mux_gpio, /* gpio mode */ \
  24. msm_mux_##f1, \
  25. msm_mux_##f2, \
  26. msm_mux_##f3, \
  27. msm_mux_##f4, \
  28. msm_mux_##f5, \
  29. msm_mux_##f6, \
  30. msm_mux_##f7, \
  31. msm_mux_##f8, \
  32. msm_mux_##f9 \
  33. }, \
  34. .nfuncs = 10, \
  35. .ctl_reg = REG_SIZE * id, \
  36. .io_reg = 0x4 + REG_SIZE * id, \
  37. .intr_cfg_reg = 0x8 + REG_SIZE * id, \
  38. .intr_status_reg = 0xc + REG_SIZE * id, \
  39. .intr_target_reg = 0x8 + REG_SIZE * id, \
  40. .mux_bit = 2, \
  41. .pull_bit = 0, \
  42. .drv_bit = 6, \
  43. .oe_bit = 9, \
  44. .in_bit = 0, \
  45. .out_bit = 1, \
  46. .intr_enable_bit = 0, \
  47. .intr_status_bit = 0, \
  48. .intr_target_bit = 5, \
  49. .intr_target_kpss_val = 3, \
  50. .intr_raw_status_bit = 4, \
  51. .intr_polarity_bit = 1, \
  52. .intr_detection_bit = 2, \
  53. .intr_detection_width = 2, \
  54. }
  55. static const struct pinctrl_pin_desc ipq8074_pins[] = {
  56. PINCTRL_PIN(0, "GPIO_0"),
  57. PINCTRL_PIN(1, "GPIO_1"),
  58. PINCTRL_PIN(2, "GPIO_2"),
  59. PINCTRL_PIN(3, "GPIO_3"),
  60. PINCTRL_PIN(4, "GPIO_4"),
  61. PINCTRL_PIN(5, "GPIO_5"),
  62. PINCTRL_PIN(6, "GPIO_6"),
  63. PINCTRL_PIN(7, "GPIO_7"),
  64. PINCTRL_PIN(8, "GPIO_8"),
  65. PINCTRL_PIN(9, "GPIO_9"),
  66. PINCTRL_PIN(10, "GPIO_10"),
  67. PINCTRL_PIN(11, "GPIO_11"),
  68. PINCTRL_PIN(12, "GPIO_12"),
  69. PINCTRL_PIN(13, "GPIO_13"),
  70. PINCTRL_PIN(14, "GPIO_14"),
  71. PINCTRL_PIN(15, "GPIO_15"),
  72. PINCTRL_PIN(16, "GPIO_16"),
  73. PINCTRL_PIN(17, "GPIO_17"),
  74. PINCTRL_PIN(18, "GPIO_18"),
  75. PINCTRL_PIN(19, "GPIO_19"),
  76. PINCTRL_PIN(20, "GPIO_20"),
  77. PINCTRL_PIN(21, "GPIO_21"),
  78. PINCTRL_PIN(22, "GPIO_22"),
  79. PINCTRL_PIN(23, "GPIO_23"),
  80. PINCTRL_PIN(24, "GPIO_24"),
  81. PINCTRL_PIN(25, "GPIO_25"),
  82. PINCTRL_PIN(26, "GPIO_26"),
  83. PINCTRL_PIN(27, "GPIO_27"),
  84. PINCTRL_PIN(28, "GPIO_28"),
  85. PINCTRL_PIN(29, "GPIO_29"),
  86. PINCTRL_PIN(30, "GPIO_30"),
  87. PINCTRL_PIN(31, "GPIO_31"),
  88. PINCTRL_PIN(32, "GPIO_32"),
  89. PINCTRL_PIN(33, "GPIO_33"),
  90. PINCTRL_PIN(34, "GPIO_34"),
  91. PINCTRL_PIN(35, "GPIO_35"),
  92. PINCTRL_PIN(36, "GPIO_36"),
  93. PINCTRL_PIN(37, "GPIO_37"),
  94. PINCTRL_PIN(38, "GPIO_38"),
  95. PINCTRL_PIN(39, "GPIO_39"),
  96. PINCTRL_PIN(40, "GPIO_40"),
  97. PINCTRL_PIN(41, "GPIO_41"),
  98. PINCTRL_PIN(42, "GPIO_42"),
  99. PINCTRL_PIN(43, "GPIO_43"),
  100. PINCTRL_PIN(44, "GPIO_44"),
  101. PINCTRL_PIN(45, "GPIO_45"),
  102. PINCTRL_PIN(46, "GPIO_46"),
  103. PINCTRL_PIN(47, "GPIO_47"),
  104. PINCTRL_PIN(48, "GPIO_48"),
  105. PINCTRL_PIN(49, "GPIO_49"),
  106. PINCTRL_PIN(50, "GPIO_50"),
  107. PINCTRL_PIN(51, "GPIO_51"),
  108. PINCTRL_PIN(52, "GPIO_52"),
  109. PINCTRL_PIN(53, "GPIO_53"),
  110. PINCTRL_PIN(54, "GPIO_54"),
  111. PINCTRL_PIN(55, "GPIO_55"),
  112. PINCTRL_PIN(56, "GPIO_56"),
  113. PINCTRL_PIN(57, "GPIO_57"),
  114. PINCTRL_PIN(58, "GPIO_58"),
  115. PINCTRL_PIN(59, "GPIO_59"),
  116. PINCTRL_PIN(60, "GPIO_60"),
  117. PINCTRL_PIN(61, "GPIO_61"),
  118. PINCTRL_PIN(62, "GPIO_62"),
  119. PINCTRL_PIN(63, "GPIO_63"),
  120. PINCTRL_PIN(64, "GPIO_64"),
  121. PINCTRL_PIN(65, "GPIO_65"),
  122. PINCTRL_PIN(66, "GPIO_66"),
  123. PINCTRL_PIN(67, "GPIO_67"),
  124. PINCTRL_PIN(68, "GPIO_68"),
  125. PINCTRL_PIN(69, "GPIO_69"),
  126. };
  127. #define DECLARE_MSM_GPIO_PINS(pin) \
  128. static const unsigned int gpio##pin##_pins[] = { pin }
  129. DECLARE_MSM_GPIO_PINS(0);
  130. DECLARE_MSM_GPIO_PINS(1);
  131. DECLARE_MSM_GPIO_PINS(2);
  132. DECLARE_MSM_GPIO_PINS(3);
  133. DECLARE_MSM_GPIO_PINS(4);
  134. DECLARE_MSM_GPIO_PINS(5);
  135. DECLARE_MSM_GPIO_PINS(6);
  136. DECLARE_MSM_GPIO_PINS(7);
  137. DECLARE_MSM_GPIO_PINS(8);
  138. DECLARE_MSM_GPIO_PINS(9);
  139. DECLARE_MSM_GPIO_PINS(10);
  140. DECLARE_MSM_GPIO_PINS(11);
  141. DECLARE_MSM_GPIO_PINS(12);
  142. DECLARE_MSM_GPIO_PINS(13);
  143. DECLARE_MSM_GPIO_PINS(14);
  144. DECLARE_MSM_GPIO_PINS(15);
  145. DECLARE_MSM_GPIO_PINS(16);
  146. DECLARE_MSM_GPIO_PINS(17);
  147. DECLARE_MSM_GPIO_PINS(18);
  148. DECLARE_MSM_GPIO_PINS(19);
  149. DECLARE_MSM_GPIO_PINS(20);
  150. DECLARE_MSM_GPIO_PINS(21);
  151. DECLARE_MSM_GPIO_PINS(22);
  152. DECLARE_MSM_GPIO_PINS(23);
  153. DECLARE_MSM_GPIO_PINS(24);
  154. DECLARE_MSM_GPIO_PINS(25);
  155. DECLARE_MSM_GPIO_PINS(26);
  156. DECLARE_MSM_GPIO_PINS(27);
  157. DECLARE_MSM_GPIO_PINS(28);
  158. DECLARE_MSM_GPIO_PINS(29);
  159. DECLARE_MSM_GPIO_PINS(30);
  160. DECLARE_MSM_GPIO_PINS(31);
  161. DECLARE_MSM_GPIO_PINS(32);
  162. DECLARE_MSM_GPIO_PINS(33);
  163. DECLARE_MSM_GPIO_PINS(34);
  164. DECLARE_MSM_GPIO_PINS(35);
  165. DECLARE_MSM_GPIO_PINS(36);
  166. DECLARE_MSM_GPIO_PINS(37);
  167. DECLARE_MSM_GPIO_PINS(38);
  168. DECLARE_MSM_GPIO_PINS(39);
  169. DECLARE_MSM_GPIO_PINS(40);
  170. DECLARE_MSM_GPIO_PINS(41);
  171. DECLARE_MSM_GPIO_PINS(42);
  172. DECLARE_MSM_GPIO_PINS(43);
  173. DECLARE_MSM_GPIO_PINS(44);
  174. DECLARE_MSM_GPIO_PINS(45);
  175. DECLARE_MSM_GPIO_PINS(46);
  176. DECLARE_MSM_GPIO_PINS(47);
  177. DECLARE_MSM_GPIO_PINS(48);
  178. DECLARE_MSM_GPIO_PINS(49);
  179. DECLARE_MSM_GPIO_PINS(50);
  180. DECLARE_MSM_GPIO_PINS(51);
  181. DECLARE_MSM_GPIO_PINS(52);
  182. DECLARE_MSM_GPIO_PINS(53);
  183. DECLARE_MSM_GPIO_PINS(54);
  184. DECLARE_MSM_GPIO_PINS(55);
  185. DECLARE_MSM_GPIO_PINS(56);
  186. DECLARE_MSM_GPIO_PINS(57);
  187. DECLARE_MSM_GPIO_PINS(58);
  188. DECLARE_MSM_GPIO_PINS(59);
  189. DECLARE_MSM_GPIO_PINS(60);
  190. DECLARE_MSM_GPIO_PINS(61);
  191. DECLARE_MSM_GPIO_PINS(62);
  192. DECLARE_MSM_GPIO_PINS(63);
  193. DECLARE_MSM_GPIO_PINS(64);
  194. DECLARE_MSM_GPIO_PINS(65);
  195. DECLARE_MSM_GPIO_PINS(66);
  196. DECLARE_MSM_GPIO_PINS(67);
  197. DECLARE_MSM_GPIO_PINS(68);
  198. DECLARE_MSM_GPIO_PINS(69);
  199. enum ipq8074_functions {
  200. msm_mux_atest_char,
  201. msm_mux_atest_char0,
  202. msm_mux_atest_char1,
  203. msm_mux_atest_char2,
  204. msm_mux_atest_char3,
  205. msm_mux_audio_rxbclk,
  206. msm_mux_audio_rxd,
  207. msm_mux_audio_rxfsync,
  208. msm_mux_audio_rxmclk,
  209. msm_mux_audio_txbclk,
  210. msm_mux_audio_txd,
  211. msm_mux_audio_txfsync,
  212. msm_mux_audio_txmclk,
  213. msm_mux_blsp0_i2c,
  214. msm_mux_blsp0_spi,
  215. msm_mux_blsp0_uart,
  216. msm_mux_blsp1_i2c,
  217. msm_mux_blsp1_spi,
  218. msm_mux_blsp1_uart,
  219. msm_mux_blsp2_i2c,
  220. msm_mux_blsp2_spi,
  221. msm_mux_blsp2_uart,
  222. msm_mux_blsp3_i2c,
  223. msm_mux_blsp3_spi,
  224. msm_mux_blsp3_spi0,
  225. msm_mux_blsp3_spi1,
  226. msm_mux_blsp3_spi2,
  227. msm_mux_blsp3_spi3,
  228. msm_mux_blsp3_uart,
  229. msm_mux_blsp4_i2c0,
  230. msm_mux_blsp4_i2c1,
  231. msm_mux_blsp4_spi0,
  232. msm_mux_blsp4_spi1,
  233. msm_mux_blsp4_uart0,
  234. msm_mux_blsp4_uart1,
  235. msm_mux_blsp5_i2c,
  236. msm_mux_blsp5_spi,
  237. msm_mux_blsp5_uart,
  238. msm_mux_burn0,
  239. msm_mux_burn1,
  240. msm_mux_cri_trng,
  241. msm_mux_cri_trng0,
  242. msm_mux_cri_trng1,
  243. msm_mux_cxc0,
  244. msm_mux_cxc1,
  245. msm_mux_dbg_out,
  246. msm_mux_gcc_plltest,
  247. msm_mux_gcc_tlmm,
  248. msm_mux_gpio,
  249. msm_mux_ldo_en,
  250. msm_mux_ldo_update,
  251. msm_mux_led0,
  252. msm_mux_led1,
  253. msm_mux_led2,
  254. msm_mux_mac0_sa0,
  255. msm_mux_mac0_sa1,
  256. msm_mux_mac1_sa0,
  257. msm_mux_mac1_sa1,
  258. msm_mux_mac1_sa2,
  259. msm_mux_mac1_sa3,
  260. msm_mux_mac2_sa0,
  261. msm_mux_mac2_sa1,
  262. msm_mux_mdc,
  263. msm_mux_mdio,
  264. msm_mux_pcie0_clk,
  265. msm_mux_pcie0_rst,
  266. msm_mux_pcie0_wake,
  267. msm_mux_pcie1_clk,
  268. msm_mux_pcie1_rst,
  269. msm_mux_pcie1_wake,
  270. msm_mux_pcm_drx,
  271. msm_mux_pcm_dtx,
  272. msm_mux_pcm_fsync,
  273. msm_mux_pcm_pclk,
  274. msm_mux_pcm_zsi0,
  275. msm_mux_pcm_zsi1,
  276. msm_mux_prng_rosc,
  277. msm_mux_pta1_0,
  278. msm_mux_pta1_1,
  279. msm_mux_pta1_2,
  280. msm_mux_pta2_0,
  281. msm_mux_pta2_1,
  282. msm_mux_pta2_2,
  283. msm_mux_pwm0,
  284. msm_mux_pwm1,
  285. msm_mux_pwm2,
  286. msm_mux_pwm3,
  287. msm_mux_qdss_cti_trig_in_a0,
  288. msm_mux_qdss_cti_trig_in_a1,
  289. msm_mux_qdss_cti_trig_in_b0,
  290. msm_mux_qdss_cti_trig_in_b1,
  291. msm_mux_qdss_cti_trig_out_a0,
  292. msm_mux_qdss_cti_trig_out_a1,
  293. msm_mux_qdss_cti_trig_out_b0,
  294. msm_mux_qdss_cti_trig_out_b1,
  295. msm_mux_qdss_traceclk_a,
  296. msm_mux_qdss_traceclk_b,
  297. msm_mux_qdss_tracectl_a,
  298. msm_mux_qdss_tracectl_b,
  299. msm_mux_qdss_tracedata_a,
  300. msm_mux_qdss_tracedata_b,
  301. msm_mux_qpic,
  302. msm_mux_rx0,
  303. msm_mux_rx1,
  304. msm_mux_rx2,
  305. msm_mux_sd_card,
  306. msm_mux_sd_write,
  307. msm_mux_tsens_max,
  308. msm_mux_wci2a,
  309. msm_mux_wci2b,
  310. msm_mux_wci2c,
  311. msm_mux_wci2d,
  312. msm_mux_NA,
  313. };
  314. static const char * const qpic_groups[] = {
  315. "gpio0", /* LCD_TE */
  316. "gpio1", /* BUSY_N */
  317. "gpio2", /* LCD_RS_N */
  318. "gpio3", /* WE_N */
  319. "gpio4", /* OE_N */
  320. "gpio5", /* DATA[0] */
  321. "gpio6", /* DATA[1] */
  322. "gpio7", /* DATA[2] */
  323. "gpio8", /* DATA[3] */
  324. "gpio9", /* CS_CSR_LCD */
  325. "gpio10", /* CLE */
  326. "gpio11", /* NAND_CS_N */
  327. "gpio12", /* DATA[4] */
  328. "gpio13", /* DATA[5] */
  329. "gpio14", /* DATA[6] */
  330. "gpio15", /* DATA[7] */
  331. "gpio16", /* DATA[8] */
  332. "gpio17", /* ALE */
  333. };
  334. static const char * const blsp5_i2c_groups[] = {
  335. "gpio0", "gpio2",
  336. };
  337. static const char * const blsp5_spi_groups[] = {
  338. "gpio0", "gpio2", "gpio9", "gpio16",
  339. };
  340. static const char * const wci2a_groups[] = {
  341. "gpio0", "gpio2",
  342. };
  343. static const char * const blsp3_spi3_groups[] = {
  344. "gpio0", "gpio2", "gpio9",
  345. };
  346. static const char * const burn0_groups[] = {
  347. "gpio0",
  348. };
  349. static const char * const pcm_zsi0_groups[] = {
  350. "gpio1",
  351. };
  352. static const char * const blsp5_uart_groups[] = {
  353. "gpio0", "gpio2", "gpio9", "gpio16",
  354. };
  355. static const char * const mac1_sa2_groups[] = {
  356. "gpio1", "gpio11",
  357. };
  358. static const char * const blsp3_spi0_groups[] = {
  359. "gpio1", "gpio3", "gpio4",
  360. };
  361. static const char * const burn1_groups[] = {
  362. "gpio1",
  363. };
  364. static const char * const mac0_sa1_groups[] = {
  365. "gpio3", "gpio4",
  366. };
  367. static const char * const qdss_cti_trig_out_b0_groups[] = {
  368. "gpio3",
  369. };
  370. static const char * const qdss_cti_trig_in_b0_groups[] = {
  371. "gpio4",
  372. };
  373. static const char * const blsp4_uart0_groups[] = {
  374. "gpio5", "gpio6", "gpio7", "gpio8",
  375. };
  376. static const char * const blsp4_i2c0_groups[] = {
  377. "gpio5", "gpio6",
  378. };
  379. static const char * const blsp4_spi0_groups[] = {
  380. "gpio5", "gpio6", "gpio7", "gpio8",
  381. };
  382. static const char * const mac2_sa1_groups[] = {
  383. "gpio5", "gpio6",
  384. };
  385. static const char * const qdss_cti_trig_out_b1_groups[] = {
  386. "gpio5",
  387. };
  388. static const char * const qdss_cti_trig_in_b1_groups[] = {
  389. "gpio6",
  390. };
  391. static const char * const cxc0_groups[] = {
  392. "gpio9", "gpio16",
  393. };
  394. static const char * const mac1_sa3_groups[] = {
  395. "gpio9", "gpio16",
  396. };
  397. static const char * const qdss_cti_trig_in_a1_groups[] = {
  398. "gpio9",
  399. };
  400. static const char * const qdss_cti_trig_out_a1_groups[] = {
  401. "gpio10",
  402. };
  403. static const char * const wci2c_groups[] = {
  404. "gpio11", "gpio17",
  405. };
  406. static const char * const qdss_cti_trig_in_a0_groups[] = {
  407. "gpio11",
  408. };
  409. static const char * const qdss_cti_trig_out_a0_groups[] = {
  410. "gpio12",
  411. };
  412. static const char * const qdss_traceclk_b_groups[] = {
  413. "gpio14",
  414. };
  415. static const char * const qdss_tracectl_b_groups[] = {
  416. "gpio15",
  417. };
  418. static const char * const pcm_zsi1_groups[] = {
  419. "gpio16",
  420. };
  421. static const char * const qdss_tracedata_b_groups[] = {
  422. "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21", "gpio22",
  423. "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28", "gpio29",
  424. "gpio30", "gpio31",
  425. };
  426. static const char * const led0_groups[] = {
  427. "gpio18",
  428. };
  429. static const char * const pwm0_groups[] = {
  430. "gpio18", "gpio21", "gpio25", "gpio29", "gpio63",
  431. };
  432. static const char * const led1_groups[] = {
  433. "gpio19",
  434. };
  435. static const char * const pwm1_groups[] = {
  436. "gpio19", "gpio22", "gpio26", "gpio30", "gpio64",
  437. };
  438. static const char * const led2_groups[] = {
  439. "gpio20",
  440. };
  441. static const char * const pwm2_groups[] = {
  442. "gpio20", "gpio23", "gpio27", "gpio31", "gpio66",
  443. };
  444. static const char * const blsp4_uart1_groups[] = {
  445. "gpio21", "gpio22", "gpio23", "gpio24",
  446. };
  447. static const char * const blsp4_i2c1_groups[] = {
  448. "gpio21", "gpio22",
  449. };
  450. static const char * const blsp4_spi1_groups[] = {
  451. "gpio21", "gpio22", "gpio23", "gpio24",
  452. };
  453. static const char * const wci2d_groups[] = {
  454. "gpio21", "gpio22",
  455. };
  456. static const char * const mac1_sa1_groups[] = {
  457. "gpio21", "gpio22",
  458. };
  459. static const char * const blsp3_spi2_groups[] = {
  460. "gpio21", "gpio22", "gpio23",
  461. };
  462. static const char * const pwm3_groups[] = {
  463. "gpio24", "gpio28", "gpio32", "gpio67",
  464. };
  465. static const char * const audio_txmclk_groups[] = {
  466. "gpio25",
  467. };
  468. static const char * const audio_txbclk_groups[] = {
  469. "gpio26",
  470. };
  471. static const char * const audio_txfsync_groups[] = {
  472. "gpio27",
  473. };
  474. static const char * const audio_txd_groups[] = {
  475. "gpio28",
  476. };
  477. static const char * const audio_rxmclk_groups[] = {
  478. "gpio29",
  479. };
  480. static const char * const atest_char0_groups[] = {
  481. "gpio29",
  482. };
  483. static const char * const audio_rxbclk_groups[] = {
  484. "gpio30",
  485. };
  486. static const char * const atest_char1_groups[] = {
  487. "gpio30",
  488. };
  489. static const char * const audio_rxfsync_groups[] = {
  490. "gpio31",
  491. };
  492. static const char * const atest_char2_groups[] = {
  493. "gpio31",
  494. };
  495. static const char * const audio_rxd_groups[] = {
  496. "gpio32",
  497. };
  498. static const char * const atest_char3_groups[] = {
  499. "gpio32",
  500. };
  501. static const char * const pcm_drx_groups[] = {
  502. "gpio33",
  503. };
  504. static const char * const mac1_sa0_groups[] = {
  505. "gpio33", "gpio34",
  506. };
  507. static const char * const mac0_sa0_groups[] = {
  508. "gpio33", "gpio34",
  509. };
  510. static const char * const pcm_dtx_groups[] = {
  511. "gpio34",
  512. };
  513. static const char * const pcm_fsync_groups[] = {
  514. "gpio35",
  515. };
  516. static const char * const mac2_sa0_groups[] = {
  517. "gpio35", "gpio36",
  518. };
  519. static const char * const qdss_traceclk_a_groups[] = {
  520. "gpio35",
  521. };
  522. static const char * const pcm_pclk_groups[] = {
  523. "gpio36",
  524. };
  525. static const char * const qdss_tracectl_a_groups[] = {
  526. "gpio36",
  527. };
  528. static const char * const atest_char_groups[] = {
  529. "gpio37",
  530. };
  531. static const char * const qdss_tracedata_a_groups[] = {
  532. "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42", "gpio43",
  533. "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49", "gpio50",
  534. "gpio51", "gpio52",
  535. };
  536. static const char * const blsp0_uart_groups[] = {
  537. "gpio38", "gpio39", "gpio40", "gpio41",
  538. };
  539. static const char * const blsp0_i2c_groups[] = {
  540. "gpio38", "gpio39",
  541. };
  542. static const char * const blsp0_spi_groups[] = {
  543. "gpio38", "gpio39", "gpio40", "gpio41",
  544. };
  545. static const char * const blsp1_uart_groups[] = {
  546. "gpio42", "gpio43", "gpio44", "gpio45",
  547. };
  548. static const char * const blsp1_i2c_groups[] = {
  549. "gpio42", "gpio43",
  550. };
  551. static const char * const blsp1_spi_groups[] = {
  552. "gpio42", "gpio43", "gpio44", "gpio45",
  553. };
  554. static const char * const blsp2_uart_groups[] = {
  555. "gpio46", "gpio47", "gpio48", "gpio49",
  556. };
  557. static const char * const blsp2_i2c_groups[] = {
  558. "gpio46", "gpio47",
  559. };
  560. static const char * const blsp2_spi_groups[] = {
  561. "gpio46", "gpio47", "gpio48", "gpio49",
  562. };
  563. static const char * const blsp3_uart_groups[] = {
  564. "gpio50", "gpio51", "gpio52", "gpio53",
  565. };
  566. static const char * const blsp3_i2c_groups[] = {
  567. "gpio50", "gpio51",
  568. };
  569. static const char * const blsp3_spi_groups[] = {
  570. "gpio50", "gpio51", "gpio52", "gpio53",
  571. };
  572. static const char * const pta2_0_groups[] = {
  573. "gpio54",
  574. };
  575. static const char * const wci2b_groups[] = {
  576. "gpio54", "gpio56",
  577. };
  578. static const char * const cxc1_groups[] = {
  579. "gpio54", "gpio56",
  580. };
  581. static const char * const blsp3_spi1_groups[] = {
  582. "gpio54", "gpio55", "gpio56",
  583. };
  584. static const char * const pta2_1_groups[] = {
  585. "gpio55",
  586. };
  587. static const char * const pta2_2_groups[] = {
  588. "gpio56",
  589. };
  590. static const char * const pcie0_clk_groups[] = {
  591. "gpio57",
  592. };
  593. static const char * const dbg_out_groups[] = {
  594. "gpio57",
  595. };
  596. static const char * const cri_trng0_groups[] = {
  597. "gpio57",
  598. };
  599. static const char * const pcie0_rst_groups[] = {
  600. "gpio58",
  601. };
  602. static const char * const cri_trng1_groups[] = {
  603. "gpio58",
  604. };
  605. static const char * const pcie0_wake_groups[] = {
  606. "gpio59",
  607. };
  608. static const char * const cri_trng_groups[] = {
  609. "gpio59",
  610. };
  611. static const char * const pcie1_clk_groups[] = {
  612. "gpio60",
  613. };
  614. static const char * const rx2_groups[] = {
  615. "gpio60",
  616. };
  617. static const char * const ldo_update_groups[] = {
  618. "gpio60",
  619. };
  620. static const char * const pcie1_rst_groups[] = {
  621. "gpio61",
  622. };
  623. static const char * const ldo_en_groups[] = {
  624. "gpio61",
  625. };
  626. static const char * const pcie1_wake_groups[] = {
  627. "gpio62",
  628. };
  629. static const char * const gcc_plltest_groups[] = {
  630. "gpio62", "gpio63",
  631. };
  632. static const char * const sd_card_groups[] = {
  633. "gpio63",
  634. };
  635. static const char * const pta1_1_groups[] = {
  636. "gpio64",
  637. };
  638. static const char * const rx1_groups[] = {
  639. "gpio64",
  640. };
  641. static const char * const pta1_2_groups[] = {
  642. "gpio65",
  643. };
  644. static const char * const gcc_tlmm_groups[] = {
  645. "gpio65",
  646. };
  647. static const char * const pta1_0_groups[] = {
  648. "gpio66",
  649. };
  650. static const char * const prng_rosc_groups[] = {
  651. "gpio66",
  652. };
  653. static const char * const sd_write_groups[] = {
  654. "gpio67",
  655. };
  656. static const char * const rx0_groups[] = {
  657. "gpio67",
  658. };
  659. static const char * const tsens_max_groups[] = {
  660. "gpio67",
  661. };
  662. static const char * const mdc_groups[] = {
  663. "gpio68",
  664. };
  665. static const char * const mdio_groups[] = {
  666. "gpio69",
  667. };
  668. static const char * const gpio_groups[] = {
  669. "gpio0", "gpio1", "gpio2", "gpio3", "gpio4", "gpio5", "gpio6", "gpio7",
  670. "gpio8", "gpio9", "gpio10", "gpio11", "gpio12", "gpio13", "gpio14",
  671. "gpio15", "gpio16", "gpio17", "gpio18", "gpio19", "gpio20", "gpio21",
  672. "gpio22", "gpio23", "gpio24", "gpio25", "gpio26", "gpio27", "gpio28",
  673. "gpio29", "gpio30", "gpio31", "gpio32", "gpio33", "gpio34", "gpio35",
  674. "gpio36", "gpio37", "gpio38", "gpio39", "gpio40", "gpio41", "gpio42",
  675. "gpio43", "gpio44", "gpio45", "gpio46", "gpio47", "gpio48", "gpio49",
  676. "gpio50", "gpio51", "gpio52", "gpio53", "gpio54", "gpio55", "gpio56",
  677. "gpio57", "gpio58", "gpio59", "gpio60", "gpio61", "gpio62", "gpio63",
  678. "gpio64", "gpio65", "gpio66", "gpio67", "gpio68", "gpio69",
  679. };
  680. static const struct msm_function ipq8074_functions[] = {
  681. FUNCTION(atest_char),
  682. FUNCTION(atest_char0),
  683. FUNCTION(atest_char1),
  684. FUNCTION(atest_char2),
  685. FUNCTION(atest_char3),
  686. FUNCTION(audio_rxbclk),
  687. FUNCTION(audio_rxd),
  688. FUNCTION(audio_rxfsync),
  689. FUNCTION(audio_rxmclk),
  690. FUNCTION(audio_txbclk),
  691. FUNCTION(audio_txd),
  692. FUNCTION(audio_txfsync),
  693. FUNCTION(audio_txmclk),
  694. FUNCTION(blsp0_i2c),
  695. FUNCTION(blsp0_spi),
  696. FUNCTION(blsp0_uart),
  697. FUNCTION(blsp1_i2c),
  698. FUNCTION(blsp1_spi),
  699. FUNCTION(blsp1_uart),
  700. FUNCTION(blsp2_i2c),
  701. FUNCTION(blsp2_spi),
  702. FUNCTION(blsp2_uart),
  703. FUNCTION(blsp3_i2c),
  704. FUNCTION(blsp3_spi),
  705. FUNCTION(blsp3_spi0),
  706. FUNCTION(blsp3_spi1),
  707. FUNCTION(blsp3_spi2),
  708. FUNCTION(blsp3_spi3),
  709. FUNCTION(blsp3_uart),
  710. FUNCTION(blsp4_i2c0),
  711. FUNCTION(blsp4_i2c1),
  712. FUNCTION(blsp4_spi0),
  713. FUNCTION(blsp4_spi1),
  714. FUNCTION(blsp4_uart0),
  715. FUNCTION(blsp4_uart1),
  716. FUNCTION(blsp5_i2c),
  717. FUNCTION(blsp5_spi),
  718. FUNCTION(blsp5_uart),
  719. FUNCTION(burn0),
  720. FUNCTION(burn1),
  721. FUNCTION(cri_trng),
  722. FUNCTION(cri_trng0),
  723. FUNCTION(cri_trng1),
  724. FUNCTION(cxc0),
  725. FUNCTION(cxc1),
  726. FUNCTION(dbg_out),
  727. FUNCTION(gcc_plltest),
  728. FUNCTION(gcc_tlmm),
  729. FUNCTION(gpio),
  730. FUNCTION(ldo_en),
  731. FUNCTION(ldo_update),
  732. FUNCTION(led0),
  733. FUNCTION(led1),
  734. FUNCTION(led2),
  735. FUNCTION(mac0_sa0),
  736. FUNCTION(mac0_sa1),
  737. FUNCTION(mac1_sa0),
  738. FUNCTION(mac1_sa1),
  739. FUNCTION(mac1_sa2),
  740. FUNCTION(mac1_sa3),
  741. FUNCTION(mac2_sa0),
  742. FUNCTION(mac2_sa1),
  743. FUNCTION(mdc),
  744. FUNCTION(mdio),
  745. FUNCTION(pcie0_clk),
  746. FUNCTION(pcie0_rst),
  747. FUNCTION(pcie0_wake),
  748. FUNCTION(pcie1_clk),
  749. FUNCTION(pcie1_rst),
  750. FUNCTION(pcie1_wake),
  751. FUNCTION(pcm_drx),
  752. FUNCTION(pcm_dtx),
  753. FUNCTION(pcm_fsync),
  754. FUNCTION(pcm_pclk),
  755. FUNCTION(pcm_zsi0),
  756. FUNCTION(pcm_zsi1),
  757. FUNCTION(prng_rosc),
  758. FUNCTION(pta1_0),
  759. FUNCTION(pta1_1),
  760. FUNCTION(pta1_2),
  761. FUNCTION(pta2_0),
  762. FUNCTION(pta2_1),
  763. FUNCTION(pta2_2),
  764. FUNCTION(pwm0),
  765. FUNCTION(pwm1),
  766. FUNCTION(pwm2),
  767. FUNCTION(pwm3),
  768. FUNCTION(qdss_cti_trig_in_a0),
  769. FUNCTION(qdss_cti_trig_in_a1),
  770. FUNCTION(qdss_cti_trig_in_b0),
  771. FUNCTION(qdss_cti_trig_in_b1),
  772. FUNCTION(qdss_cti_trig_out_a0),
  773. FUNCTION(qdss_cti_trig_out_a1),
  774. FUNCTION(qdss_cti_trig_out_b0),
  775. FUNCTION(qdss_cti_trig_out_b1),
  776. FUNCTION(qdss_traceclk_a),
  777. FUNCTION(qdss_traceclk_b),
  778. FUNCTION(qdss_tracectl_a),
  779. FUNCTION(qdss_tracectl_b),
  780. FUNCTION(qdss_tracedata_a),
  781. FUNCTION(qdss_tracedata_b),
  782. FUNCTION(qpic),
  783. FUNCTION(rx0),
  784. FUNCTION(rx1),
  785. FUNCTION(rx2),
  786. FUNCTION(sd_card),
  787. FUNCTION(sd_write),
  788. FUNCTION(tsens_max),
  789. FUNCTION(wci2a),
  790. FUNCTION(wci2b),
  791. FUNCTION(wci2c),
  792. FUNCTION(wci2d),
  793. };
  794. static const struct msm_pingroup ipq8074_groups[] = {
  795. PINGROUP(0, qpic, blsp5_uart, blsp5_i2c, blsp5_spi, wci2a,
  796. blsp3_spi3, NA, burn0, NA),
  797. PINGROUP(1, qpic, pcm_zsi0, mac1_sa2, blsp3_spi0, NA, burn1, NA, NA,
  798. NA),
  799. PINGROUP(2, qpic, blsp5_uart, blsp5_i2c, blsp5_spi, wci2a,
  800. blsp3_spi3, NA, NA, NA),
  801. PINGROUP(3, qpic, mac0_sa1, blsp3_spi0, qdss_cti_trig_out_b0, NA, NA,
  802. NA, NA, NA),
  803. PINGROUP(4, qpic, mac0_sa1, blsp3_spi0, qdss_cti_trig_in_b0, NA, NA,
  804. NA, NA, NA),
  805. PINGROUP(5, qpic, blsp4_uart0, blsp4_i2c0, blsp4_spi0, mac2_sa1,
  806. qdss_cti_trig_out_b1, NA, NA, NA),
  807. PINGROUP(6, qpic, blsp4_uart0, blsp4_i2c0, blsp4_spi0, mac2_sa1,
  808. qdss_cti_trig_in_b1, NA, NA, NA),
  809. PINGROUP(7, qpic, blsp4_uart0, blsp4_spi0, NA, NA, NA, NA, NA, NA),
  810. PINGROUP(8, qpic, blsp4_uart0, blsp4_spi0, NA, NA, NA, NA, NA, NA),
  811. PINGROUP(9, qpic, blsp5_uart, blsp5_spi, cxc0, mac1_sa3, blsp3_spi3,
  812. qdss_cti_trig_in_a1, NA, NA),
  813. PINGROUP(10, qpic, qdss_cti_trig_out_a1, NA, NA, NA, NA, NA, NA,
  814. NA),
  815. PINGROUP(11, qpic, wci2c, mac1_sa2, qdss_cti_trig_in_a0, NA, NA, NA,
  816. NA, NA),
  817. PINGROUP(12, qpic, qdss_cti_trig_out_a0, NA, NA, NA, NA, NA, NA,
  818. NA),
  819. PINGROUP(13, qpic, NA, NA, NA, NA, NA, NA, NA, NA),
  820. PINGROUP(14, qpic, qdss_traceclk_b, NA, NA, NA, NA, NA, NA, NA),
  821. PINGROUP(15, qpic, qdss_tracectl_b, NA, NA, NA, NA, NA, NA, NA),
  822. PINGROUP(16, qpic, blsp5_uart, pcm_zsi1, blsp5_spi, cxc0, mac1_sa3,
  823. qdss_tracedata_b, NA, NA),
  824. PINGROUP(17, qpic, wci2c, qdss_tracedata_b, NA, NA, NA, NA, NA, NA),
  825. PINGROUP(18, led0, pwm0, qdss_tracedata_b, NA, NA, NA, NA, NA, NA),
  826. PINGROUP(19, led1, pwm1, NA, qdss_tracedata_b, NA, NA, NA, NA, NA),
  827. PINGROUP(20, led2, pwm2, NA, qdss_tracedata_b, NA, NA, NA, NA, NA),
  828. PINGROUP(21, pwm0, blsp4_uart1, blsp4_i2c1, blsp4_spi1, wci2d, mac1_sa1,
  829. blsp3_spi2, NA, qdss_tracedata_b),
  830. PINGROUP(22, pwm1, blsp4_uart1, blsp4_i2c1, blsp4_spi1, wci2d, mac1_sa1,
  831. blsp3_spi2, NA, qdss_tracedata_b),
  832. PINGROUP(23, pwm2, blsp4_uart1, blsp4_spi1, blsp3_spi2, NA,
  833. qdss_tracedata_b, NA, NA, NA),
  834. PINGROUP(24, pwm3, blsp4_uart1, blsp4_spi1, NA, qdss_tracedata_b, NA,
  835. NA, NA, NA),
  836. PINGROUP(25, audio_txmclk, pwm0, NA, qdss_tracedata_b, NA, NA, NA, NA,
  837. NA),
  838. PINGROUP(26, audio_txbclk, pwm1, NA, qdss_tracedata_b, NA, NA, NA, NA,
  839. NA),
  840. PINGROUP(27, audio_txfsync, pwm2, NA, qdss_tracedata_b, NA, NA, NA,
  841. NA, NA),
  842. PINGROUP(28, audio_txd, pwm3, NA, qdss_tracedata_b, NA, NA, NA, NA,
  843. NA),
  844. PINGROUP(29, audio_rxmclk, pwm0, atest_char0, NA, qdss_tracedata_b,
  845. NA, NA, NA, NA),
  846. PINGROUP(30, audio_rxbclk, pwm1, atest_char1, NA, qdss_tracedata_b,
  847. NA, NA, NA, NA),
  848. PINGROUP(31, audio_rxfsync, pwm2, atest_char2, NA, qdss_tracedata_b,
  849. NA, NA, NA, NA),
  850. PINGROUP(32, audio_rxd, pwm3, atest_char3, NA, NA, NA, NA, NA, NA),
  851. PINGROUP(33, pcm_drx, mac1_sa0, mac0_sa0, NA, NA, NA, NA, NA, NA),
  852. PINGROUP(34, pcm_dtx, mac1_sa0, mac0_sa0, NA, NA, NA, NA, NA, NA),
  853. PINGROUP(35, pcm_fsync, mac2_sa0, qdss_traceclk_a, NA, NA, NA, NA, NA, NA),
  854. PINGROUP(36, pcm_pclk, mac2_sa0, NA, qdss_tracectl_a, NA, NA, NA, NA, NA),
  855. PINGROUP(37, atest_char, NA, qdss_tracedata_a, NA, NA, NA, NA, NA, NA),
  856. PINGROUP(38, blsp0_uart, blsp0_i2c, blsp0_spi, NA, qdss_tracedata_a,
  857. NA, NA, NA, NA),
  858. PINGROUP(39, blsp0_uart, blsp0_i2c, blsp0_spi, NA, qdss_tracedata_a,
  859. NA, NA, NA, NA),
  860. PINGROUP(40, blsp0_uart, blsp0_spi, NA, qdss_tracedata_a, NA, NA, NA,
  861. NA, NA),
  862. PINGROUP(41, blsp0_uart, blsp0_spi, NA, qdss_tracedata_a, NA, NA, NA,
  863. NA, NA),
  864. PINGROUP(42, blsp1_uart, blsp1_i2c, blsp1_spi, NA, qdss_tracedata_a,
  865. NA, NA, NA, NA),
  866. PINGROUP(43, blsp1_uart, blsp1_i2c, blsp1_spi, NA, qdss_tracedata_a,
  867. NA, NA, NA, NA),
  868. PINGROUP(44, blsp1_uart, blsp1_spi, NA, qdss_tracedata_a, NA, NA, NA,
  869. NA, NA),
  870. PINGROUP(45, blsp1_uart, blsp1_spi, qdss_tracedata_a, NA, NA, NA, NA,
  871. NA, NA),
  872. PINGROUP(46, blsp2_uart, blsp2_i2c, blsp2_spi, qdss_tracedata_a, NA,
  873. NA, NA, NA, NA),
  874. PINGROUP(47, blsp2_uart, blsp2_i2c, blsp2_spi, NA, qdss_tracedata_a,
  875. NA, NA, NA, NA),
  876. PINGROUP(48, blsp2_uart, blsp2_spi, NA, qdss_tracedata_a, NA, NA, NA,
  877. NA, NA),
  878. PINGROUP(49, blsp2_uart, blsp2_spi, NA, qdss_tracedata_a, NA, NA, NA,
  879. NA, NA),
  880. PINGROUP(50, blsp3_uart, blsp3_i2c, blsp3_spi, NA, qdss_tracedata_a,
  881. NA, NA, NA, NA),
  882. PINGROUP(51, blsp3_uart, blsp3_i2c, blsp3_spi, NA, qdss_tracedata_a,
  883. NA, NA, NA, NA),
  884. PINGROUP(52, blsp3_uart, blsp3_spi, NA, qdss_tracedata_a, NA, NA, NA,
  885. NA, NA),
  886. PINGROUP(53, blsp3_uart, blsp3_spi, NA, NA, NA, NA, NA, NA, NA),
  887. PINGROUP(54, pta2_0, wci2b, cxc1, blsp3_spi1, NA, NA, NA, NA, NA),
  888. PINGROUP(55, pta2_1, blsp3_spi1, NA, NA, NA, NA, NA, NA, NA),
  889. PINGROUP(56, pta2_2, wci2b, cxc1, blsp3_spi1, NA, NA, NA, NA, NA),
  890. PINGROUP(57, pcie0_clk, NA, dbg_out, cri_trng0, NA, NA, NA, NA, NA),
  891. PINGROUP(58, pcie0_rst, NA, cri_trng1, NA, NA, NA, NA, NA, NA),
  892. PINGROUP(59, pcie0_wake, NA, cri_trng, NA, NA, NA, NA, NA, NA),
  893. PINGROUP(60, pcie1_clk, rx2, ldo_update, NA, NA, NA, NA, NA, NA),
  894. PINGROUP(61, pcie1_rst, ldo_en, NA, NA, NA, NA, NA, NA, NA),
  895. PINGROUP(62, pcie1_wake, gcc_plltest, NA, NA, NA, NA, NA, NA, NA),
  896. PINGROUP(63, sd_card, pwm0, NA, gcc_plltest, NA, NA, NA, NA, NA),
  897. PINGROUP(64, pta1_1, pwm1, NA, rx1, NA, NA, NA, NA, NA),
  898. PINGROUP(65, pta1_2, NA, gcc_tlmm, NA, NA, NA, NA, NA, NA),
  899. PINGROUP(66, pta1_0, pwm2, prng_rosc, NA, NA, NA, NA, NA, NA),
  900. PINGROUP(67, sd_write, pwm3, rx0, tsens_max, NA, NA, NA, NA, NA),
  901. PINGROUP(68, mdc, NA, NA, NA, NA, NA, NA, NA, NA),
  902. PINGROUP(69, mdio, NA, NA, NA, NA, NA, NA, NA, NA),
  903. };
  904. static const struct msm_pinctrl_soc_data ipq8074_pinctrl = {
  905. .pins = ipq8074_pins,
  906. .npins = ARRAY_SIZE(ipq8074_pins),
  907. .functions = ipq8074_functions,
  908. .nfunctions = ARRAY_SIZE(ipq8074_functions),
  909. .groups = ipq8074_groups,
  910. .ngroups = ARRAY_SIZE(ipq8074_groups),
  911. .ngpios = 70,
  912. };
  913. static int ipq8074_pinctrl_probe(struct platform_device *pdev)
  914. {
  915. return msm_pinctrl_probe(pdev, &ipq8074_pinctrl);
  916. }
  917. static const struct of_device_id ipq8074_pinctrl_of_match[] = {
  918. { .compatible = "qcom,ipq8074-pinctrl", },
  919. { },
  920. };
  921. static struct platform_driver ipq8074_pinctrl_driver = {
  922. .driver = {
  923. .name = "ipq8074-pinctrl",
  924. .of_match_table = ipq8074_pinctrl_of_match,
  925. },
  926. .probe = ipq8074_pinctrl_probe,
  927. .remove = msm_pinctrl_remove,
  928. };
  929. static int __init ipq8074_pinctrl_init(void)
  930. {
  931. return platform_driver_register(&ipq8074_pinctrl_driver);
  932. }
  933. arch_initcall(ipq8074_pinctrl_init);
  934. static void __exit ipq8074_pinctrl_exit(void)
  935. {
  936. platform_driver_unregister(&ipq8074_pinctrl_driver);
  937. }
  938. module_exit(ipq8074_pinctrl_exit);
  939. MODULE_DESCRIPTION("Qualcomm ipq8074 pinctrl driver");
  940. MODULE_LICENSE("GPL v2");
  941. MODULE_DEVICE_TABLE(of, ipq8074_pinctrl_of_match);