pinctrl-sprd-sc9860.c 46 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973
  1. /*
  2. * Spreadtrum pin controller driver
  3. * Copyright (C) 2017 Spreadtrum - http://www.spreadtrum.com
  4. *
  5. * This program is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU General Public License
  7. * version 2 as published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful, but
  10. * WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * General Public License for more details.
  13. */
  14. #include <linux/module.h>
  15. #include <linux/platform_device.h>
  16. #include "pinctrl-sprd.h"
  17. enum sprd_sc9860_pins {
  18. /* pin global control register 0 */
  19. SC9860_VIO28_0_IRTE = SPRD_PIN_INFO(0, GLOBAL_CTRL_PIN, 11, 1, 0),
  20. SC9860_VIO_SD2_IRTE = SPRD_PIN_INFO(1, GLOBAL_CTRL_PIN, 10, 1, 0),
  21. SC9860_VIO_SD0_IRTE = SPRD_PIN_INFO(2, GLOBAL_CTRL_PIN, 9, 1, 0),
  22. SC9860_VIO_SIM2_IRTE = SPRD_PIN_INFO(3, GLOBAL_CTRL_PIN, 8, 1, 0),
  23. SC9860_VIO_SIM1_IRTE = SPRD_PIN_INFO(4, GLOBAL_CTRL_PIN, 7, 1, 0),
  24. SC9860_VIO_SIM0_IRTE = SPRD_PIN_INFO(5, GLOBAL_CTRL_PIN, 6, 1, 0),
  25. SC9860_VIO28_0_MS = SPRD_PIN_INFO(6, GLOBAL_CTRL_PIN, 5, 1, 0),
  26. SC9860_VIO_SD2_MS = SPRD_PIN_INFO(7, GLOBAL_CTRL_PIN, 4, 1, 0),
  27. SC9860_VIO_SD0_MS = SPRD_PIN_INFO(8, GLOBAL_CTRL_PIN, 3, 1, 0),
  28. SC9860_VIO_SIM2_MS = SPRD_PIN_INFO(9, GLOBAL_CTRL_PIN, 2, 1, 0),
  29. SC9860_VIO_SIM1_MS = SPRD_PIN_INFO(10, GLOBAL_CTRL_PIN, 1, 1, 0),
  30. SC9860_VIO_SIM0_MS = SPRD_PIN_INFO(11, GLOBAL_CTRL_PIN, 0, 1, 0),
  31. /* pin global control register 2 */
  32. SC9860_SPSPI_PIN_IN_SEL = SPRD_PIN_INFO(12, GLOBAL_CTRL_PIN, 31, 1, 2),
  33. SC9860_UART1_USB30_PHY_SEL = SPRD_PIN_INFO(13, GLOBAL_CTRL_PIN, 30, 1, 2),
  34. SC9860_USB30_PHY_DM_OE = SPRD_PIN_INFO(14, GLOBAL_CTRL_PIN, 29, 1, 2),
  35. SC9860_USB30_PHY_DP_OE = SPRD_PIN_INFO(15, GLOBAL_CTRL_PIN, 28, 1, 2),
  36. SC9860_UART5_SYS_SEL = SPRD_PIN_INFO(16, GLOBAL_CTRL_PIN, 25, 3, 2),
  37. SC9860_ORP_URXD_PIN_IN_SEL = SPRD_PIN_INFO(17, GLOBAL_CTRL_PIN, 24, 1, 2),
  38. SC9860_SIM2_SYS_SEL = SPRD_PIN_INFO(18, GLOBAL_CTRL_PIN, 23, 1, 2),
  39. SC9860_SIM1_SYS_SEL = SPRD_PIN_INFO(19, GLOBAL_CTRL_PIN, 22, 1, 2),
  40. SC9860_SIM0_SYS_SEL = SPRD_PIN_INFO(20, GLOBAL_CTRL_PIN, 21, 1, 2),
  41. SC9860_CLK26MHZ_BUF_OUT_SEL = SPRD_PIN_INFO(21, GLOBAL_CTRL_PIN, 20, 1, 2),
  42. SC9860_UART4_SYS_SEL = SPRD_PIN_INFO(22, GLOBAL_CTRL_PIN, 16, 3, 2),
  43. SC9860_UART3_SYS_SEL = SPRD_PIN_INFO(23, GLOBAL_CTRL_PIN, 13, 3, 2),
  44. SC9860_UART2_SYS_SEL = SPRD_PIN_INFO(24, GLOBAL_CTRL_PIN, 10, 3, 2),
  45. SC9860_UART1_SYS_SEL = SPRD_PIN_INFO(25, GLOBAL_CTRL_PIN, 7, 3, 2),
  46. SC9860_UART0_SYS_SEL = SPRD_PIN_INFO(26, GLOBAL_CTRL_PIN, 4, 3, 2),
  47. SC9860_UART24_LOOP_SEL = SPRD_PIN_INFO(27, GLOBAL_CTRL_PIN, 3, 1, 2),
  48. SC9860_UART23_LOOP_SEL = SPRD_PIN_INFO(28, GLOBAL_CTRL_PIN, 2, 1, 2),
  49. SC9860_UART14_LOOP_SEL = SPRD_PIN_INFO(29, GLOBAL_CTRL_PIN, 1, 1, 2),
  50. SC9860_UART13_LOOP_SEL = SPRD_PIN_INFO(30, GLOBAL_CTRL_PIN, 0, 1, 2),
  51. /* pin global control register 3 */
  52. SC9860_IIS3_SYS_SEL = SPRD_PIN_INFO(31, GLOBAL_CTRL_PIN, 18, 4, 3),
  53. SC9860_IIS2_SYS_SEL = SPRD_PIN_INFO(32, GLOBAL_CTRL_PIN, 14, 4, 3),
  54. SC9860_IIS1_SYS_SEL = SPRD_PIN_INFO(33, GLOBAL_CTRL_PIN, 10, 4, 3),
  55. SC9860_IIS0_SYS_SEL = SPRD_PIN_INFO(34, GLOBAL_CTRL_PIN, 6, 4, 3),
  56. SC9860_IIS23_LOOP_SEL = SPRD_PIN_INFO(35, GLOBAL_CTRL_PIN, 5, 1, 3),
  57. SC9860_IIS13_LOOP_SEL = SPRD_PIN_INFO(36, GLOBAL_CTRL_PIN, 4, 1, 3),
  58. SC9860_IIS12_LOOP_SEL = SPRD_PIN_INFO(37, GLOBAL_CTRL_PIN, 3, 1, 3),
  59. SC9860_IIS03_LOOP_SEL = SPRD_PIN_INFO(38, GLOBAL_CTRL_PIN, 2, 1, 3),
  60. SC9860_IIS02_LOOP_SEL = SPRD_PIN_INFO(39, GLOBAL_CTRL_PIN, 1, 1, 3),
  61. SC9860_IIS01_LOOP_SEL = SPRD_PIN_INFO(40, GLOBAL_CTRL_PIN, 0, 1, 3),
  62. /* pin global control register 4 */
  63. SC9860_IIS6_SYS_SEL = SPRD_PIN_INFO(41, GLOBAL_CTRL_PIN, 27, 4, 4),
  64. SC9860_IIS5_SYS_SEL = SPRD_PIN_INFO(42, GLOBAL_CTRL_PIN, 23, 4, 4),
  65. SC9860_IIS4_SYS_SEL = SPRD_PIN_INFO(43, GLOBAL_CTRL_PIN, 19, 4, 4),
  66. SC9860_I2C_INF6_SYS_SEL = SPRD_PIN_INFO(44, GLOBAL_CTRL_PIN, 8, 2, 4),
  67. SC9860_I2C_INF4_SYS_SEL = SPRD_PIN_INFO(45, GLOBAL_CTRL_PIN, 6, 2, 4),
  68. SC9860_I2C_INF2_SYS_SEL = SPRD_PIN_INFO(46, GLOBAL_CTRL_PIN, 4, 2, 4),
  69. SC9860_I2C_INF1_SYS_SEL = SPRD_PIN_INFO(47, GLOBAL_CTRL_PIN, 2, 2, 4),
  70. SC9860_I2C_INF0_SYS_SEL = SPRD_PIN_INFO(48, GLOBAL_CTRL_PIN, 0, 2, 4),
  71. /* pin global control register 5 */
  72. SC9860_GPIO_INF7_SYS_SEL = SPRD_PIN_INFO(49, GLOBAL_CTRL_PIN, 27, 1, 5),
  73. SC9860_GPIO_INF6_SYS_SEL = SPRD_PIN_INFO(50, GLOBAL_CTRL_PIN, 26, 1, 5),
  74. SC9860_GPIO_INF5_SYS_SEL = SPRD_PIN_INFO(51, GLOBAL_CTRL_PIN, 25, 1, 5),
  75. SC9860_GPIO_INF4_SYS_SEL = SPRD_PIN_INFO(52, GLOBAL_CTRL_PIN, 24, 1, 5),
  76. SC9860_GPIO_INF3_SYS_SEL = SPRD_PIN_INFO(53, GLOBAL_CTRL_PIN, 23, 1, 5),
  77. SC9860_GPIO_INF2_SYS_SEL = SPRD_PIN_INFO(54, GLOBAL_CTRL_PIN, 22, 1, 5),
  78. SC9860_GPIO_INF1_SYS_SEL = SPRD_PIN_INFO(55, GLOBAL_CTRL_PIN, 21, 1, 5),
  79. SC9860_GPIO_INF0_SYS_SEL = SPRD_PIN_INFO(56, GLOBAL_CTRL_PIN, 20, 1, 5),
  80. SC9860_WDRST_OUT_SEL = SPRD_PIN_INFO(57, GLOBAL_CTRL_PIN, 16, 3, 5),
  81. SC9860_ADI_SYNC_PIN_OUT_SEL = SPRD_PIN_INFO(58, GLOBAL_CTRL_PIN, 14, 1, 5),
  82. SC9860_CMRST_SEL = SPRD_PIN_INFO(59, GLOBAL_CTRL_PIN, 13, 1, 5),
  83. SC9860_CMPD_SEL = SPRD_PIN_INFO(60, GLOBAL_CTRL_PIN, 12, 1, 5),
  84. SC9860_TEST_DBG_MODE11 = SPRD_PIN_INFO(61, GLOBAL_CTRL_PIN, 11, 1, 5),
  85. SC9860_TEST_DBG_MODE10 = SPRD_PIN_INFO(62, GLOBAL_CTRL_PIN, 10, 1, 5),
  86. SC9860_TEST_DBG_MODE9 = SPRD_PIN_INFO(63, GLOBAL_CTRL_PIN, 9, 1, 5),
  87. SC9860_TEST_DBG_MODE8 = SPRD_PIN_INFO(64, GLOBAL_CTRL_PIN, 8, 1, 5),
  88. SC9860_TEST_DBG_MODE7 = SPRD_PIN_INFO(65, GLOBAL_CTRL_PIN, 7, 1, 5),
  89. SC9860_TEST_DBG_MODE6 = SPRD_PIN_INFO(66, GLOBAL_CTRL_PIN, 6, 1, 5),
  90. SC9860_TEST_DBG_MODE5 = SPRD_PIN_INFO(67, GLOBAL_CTRL_PIN, 5, 1, 5),
  91. SC9860_TEST_DBG_MODE4 = SPRD_PIN_INFO(68, GLOBAL_CTRL_PIN, 4, 1, 5),
  92. SC9860_TEST_DBG_MODE3 = SPRD_PIN_INFO(69, GLOBAL_CTRL_PIN, 3, 1, 5),
  93. SC9860_TEST_DBG_MODE2 = SPRD_PIN_INFO(70, GLOBAL_CTRL_PIN, 2, 1, 5),
  94. SC9860_TEST_DBG_MODE1 = SPRD_PIN_INFO(71, GLOBAL_CTRL_PIN, 1, 1, 5),
  95. SC9860_TEST_DBG_MODE0 = SPRD_PIN_INFO(72, GLOBAL_CTRL_PIN, 0, 1, 5),
  96. /* pin global control register 6 */
  97. SC9860_SP_EIC_DPAD3_SEL = SPRD_PIN_INFO(73, GLOBAL_CTRL_PIN, 24, 8, 6),
  98. SC9860_SP_EIC_DPAD2_SEL = SPRD_PIN_INFO(74, GLOBAL_CTRL_PIN, 16, 8, 6),
  99. SC9860_SP_EIC_DPAD1_SEL = SPRD_PIN_INFO(75, GLOBAL_CTRL_PIN, 8, 8, 6),
  100. SC9860_SP_EIC_DPAD0_SEL = SPRD_PIN_INFO(76, GLOBAL_CTRL_PIN, 0, 8, 6),
  101. /* pin global control register 7 */
  102. SC9860_SP_EIC_DPAD7_SEL = SPRD_PIN_INFO(77, GLOBAL_CTRL_PIN, 24, 8, 7),
  103. SC9860_SP_EIC_DPAD6_SEL = SPRD_PIN_INFO(78, GLOBAL_CTRL_PIN, 16, 8, 7),
  104. SC9860_SP_EIC_DPAD5_SEL = SPRD_PIN_INFO(79, GLOBAL_CTRL_PIN, 8, 8, 7),
  105. SC9860_SP_EIC_DPAD4_SEL = SPRD_PIN_INFO(80, GLOBAL_CTRL_PIN, 0, 8, 7),
  106. /* common pin registers definitions */
  107. SC9860_RFCTL20 = SPRD_PIN_INFO(81, COMMON_PIN, 0, 0, 0),
  108. SC9860_RFCTL21 = SPRD_PIN_INFO(83, COMMON_PIN, 0, 0, 0),
  109. SC9860_RFCTL30 = SPRD_PIN_INFO(85, COMMON_PIN, 0, 0, 0),
  110. SC9860_RFCTL31 = SPRD_PIN_INFO(87, COMMON_PIN, 0, 0, 0),
  111. SC9860_RFCTL32 = SPRD_PIN_INFO(89, COMMON_PIN, 0, 0, 0),
  112. SC9860_RFCTL33 = SPRD_PIN_INFO(91, COMMON_PIN, 0, 0, 0),
  113. SC9860_RFCTL34 = SPRD_PIN_INFO(93, COMMON_PIN, 0, 0, 0),
  114. SC9860_RFCTL35 = SPRD_PIN_INFO(95, COMMON_PIN, 0, 0, 0),
  115. SC9860_RFCTL36 = SPRD_PIN_INFO(97, COMMON_PIN, 0, 0, 0),
  116. SC9860_RFCTL37 = SPRD_PIN_INFO(99, COMMON_PIN, 0, 0, 0),
  117. SC9860_RFCTL22 = SPRD_PIN_INFO(101, COMMON_PIN, 0, 0, 0),
  118. SC9860_RFCTL23 = SPRD_PIN_INFO(103, COMMON_PIN, 0, 0, 0),
  119. SC9860_RFCTL24 = SPRD_PIN_INFO(105, COMMON_PIN, 0, 0, 0),
  120. SC9860_RFCTL25 = SPRD_PIN_INFO(107, COMMON_PIN, 0, 0, 0),
  121. SC9860_RFCTL26 = SPRD_PIN_INFO(109, COMMON_PIN, 0, 0, 0),
  122. SC9860_RFCTL27 = SPRD_PIN_INFO(111, COMMON_PIN, 0, 0, 0),
  123. SC9860_RFCTL28 = SPRD_PIN_INFO(113, COMMON_PIN, 0, 0, 0),
  124. SC9860_RFCTL29 = SPRD_PIN_INFO(115, COMMON_PIN, 0, 0, 0),
  125. SC9860_SCL2 = SPRD_PIN_INFO(117, COMMON_PIN, 0, 0, 0),
  126. SC9860_SDA2 = SPRD_PIN_INFO(119, COMMON_PIN, 0, 0, 0),
  127. SC9860_MTCK_ARM = SPRD_PIN_INFO(121, COMMON_PIN, 0, 0, 0),
  128. SC9860_MTMS_ARM = SPRD_PIN_INFO(123, COMMON_PIN, 0, 0, 0),
  129. SC9860_XTL_EN0 = SPRD_PIN_INFO(125, COMMON_PIN, 0, 0, 0),
  130. SC9860_PTEST = SPRD_PIN_INFO(127, COMMON_PIN, 0, 0, 0),
  131. SC9860_AUD_DAD1 = SPRD_PIN_INFO(129, COMMON_PIN, 0, 0, 0),
  132. SC9860_AUD_ADD0 = SPRD_PIN_INFO(131, COMMON_PIN, 0, 0, 0),
  133. SC9860_AUD_ADSYNC = SPRD_PIN_INFO(133, COMMON_PIN, 0, 0, 0),
  134. SC9860_AUD_SCLK = SPRD_PIN_INFO(135, COMMON_PIN, 0, 0, 0),
  135. SC9860_CHIP_SLEEP = SPRD_PIN_INFO(137, COMMON_PIN, 0, 0, 0),
  136. SC9860_CLK_32K = SPRD_PIN_INFO(139, COMMON_PIN, 0, 0, 0),
  137. SC9860_DCDC_ARM_EN = SPRD_PIN_INFO(141, COMMON_PIN, 0, 0, 0),
  138. SC9860_EXT_RST_B = SPRD_PIN_INFO(143, COMMON_PIN, 0, 0, 0),
  139. SC9860_ADI_D = SPRD_PIN_INFO(145, COMMON_PIN, 0, 0, 0),
  140. SC9860_ADI_SCLK = SPRD_PIN_INFO(147, COMMON_PIN, 0, 0, 0),
  141. SC9860_XTL_EN1 = SPRD_PIN_INFO(149, COMMON_PIN, 0, 0, 0),
  142. SC9860_ANA_INT = SPRD_PIN_INFO(151, COMMON_PIN, 0, 0, 0),
  143. SC9860_AUD_DAD0 = SPRD_PIN_INFO(153, COMMON_PIN, 0, 0, 0),
  144. SC9860_AUD_DASYNC = SPRD_PIN_INFO(155, COMMON_PIN, 0, 0, 0),
  145. SC9860_LCM_RSTN = SPRD_PIN_INFO(157, COMMON_PIN, 0, 0, 0),
  146. SC9860_DSI_TE = SPRD_PIN_INFO(159, COMMON_PIN, 0, 0, 0),
  147. SC9860_PWMA = SPRD_PIN_INFO(161, COMMON_PIN, 0, 0, 0),
  148. SC9860_EXTINT0 = SPRD_PIN_INFO(163, COMMON_PIN, 0, 0, 0),
  149. SC9860_EXTINT1 = SPRD_PIN_INFO(165, COMMON_PIN, 0, 0, 0),
  150. SC9860_SDA1 = SPRD_PIN_INFO(167, COMMON_PIN, 0, 0, 0),
  151. SC9860_SCL1 = SPRD_PIN_INFO(169, COMMON_PIN, 0, 0, 0),
  152. SC9860_SIMCLK2 = SPRD_PIN_INFO(171, COMMON_PIN, 0, 0, 0),
  153. SC9860_SIMDA2 = SPRD_PIN_INFO(173, COMMON_PIN, 0, 0, 0),
  154. SC9860_SIMRST2 = SPRD_PIN_INFO(175, COMMON_PIN, 0, 0, 0),
  155. SC9860_SIMCLK1 = SPRD_PIN_INFO(177, COMMON_PIN, 0, 0, 0),
  156. SC9860_SIMDA1 = SPRD_PIN_INFO(179, COMMON_PIN, 0, 0, 0),
  157. SC9860_SIMRST1 = SPRD_PIN_INFO(181, COMMON_PIN, 0, 0, 0),
  158. SC9860_SIMCLK0 = SPRD_PIN_INFO(183, COMMON_PIN, 0, 0, 0),
  159. SC9860_SIMDA0 = SPRD_PIN_INFO(185, COMMON_PIN, 0, 0, 0),
  160. SC9860_SIMRST0 = SPRD_PIN_INFO(187, COMMON_PIN, 0, 0, 0),
  161. SC9860_SD2_CMD = SPRD_PIN_INFO(189, COMMON_PIN, 0, 0, 0),
  162. SC9860_SD2_D0 = SPRD_PIN_INFO(191, COMMON_PIN, 0, 0, 0),
  163. SC9860_SD2_D1 = SPRD_PIN_INFO(193, COMMON_PIN, 0, 0, 0),
  164. SC9860_SD2_CLK = SPRD_PIN_INFO(195, COMMON_PIN, 0, 0, 0),
  165. SC9860_SD2_D2 = SPRD_PIN_INFO(197, COMMON_PIN, 0, 0, 0),
  166. SC9860_SD2_D3 = SPRD_PIN_INFO(199, COMMON_PIN, 0, 0, 0),
  167. SC9860_SD0_D3 = SPRD_PIN_INFO(201, COMMON_PIN, 0, 0, 0),
  168. SC9860_SD0_D2 = SPRD_PIN_INFO(203, COMMON_PIN, 0, 0, 0),
  169. SC9860_SD0_CMD = SPRD_PIN_INFO(205, COMMON_PIN, 0, 0, 0),
  170. SC9860_SD0_D0 = SPRD_PIN_INFO(207, COMMON_PIN, 0, 0, 0),
  171. SC9860_SD0_D1 = SPRD_PIN_INFO(209, COMMON_PIN, 0, 0, 0),
  172. SC9860_SD0_CLK = SPRD_PIN_INFO(211, COMMON_PIN, 0, 0, 0),
  173. SC9860_EMMC_CMD_reserved = SPRD_PIN_INFO(213, COMMON_PIN, 0, 0, 0),
  174. SC9860_EMMC_CMD = SPRD_PIN_INFO(215, COMMON_PIN, 0, 0, 0),
  175. SC9860_EMMC_D6 = SPRD_PIN_INFO(217, COMMON_PIN, 0, 0, 0),
  176. SC9860_EMMC_D7 = SPRD_PIN_INFO(219, COMMON_PIN, 0, 0, 0),
  177. SC9860_EMMC_CLK = SPRD_PIN_INFO(221, COMMON_PIN, 0, 0, 0),
  178. SC9860_EMMC_D5 = SPRD_PIN_INFO(223, COMMON_PIN, 0, 0, 0),
  179. SC9860_EMMC_D4 = SPRD_PIN_INFO(225, COMMON_PIN, 0, 0, 0),
  180. SC9860_EMMC_DS = SPRD_PIN_INFO(227, COMMON_PIN, 0, 0, 0),
  181. SC9860_EMMC_D3_reserved = SPRD_PIN_INFO(229, COMMON_PIN, 0, 0, 0),
  182. SC9860_EMMC_D3 = SPRD_PIN_INFO(231, COMMON_PIN, 0, 0, 0),
  183. SC9860_EMMC_RST = SPRD_PIN_INFO(233, COMMON_PIN, 0, 0, 0),
  184. SC9860_EMMC_D1 = SPRD_PIN_INFO(235, COMMON_PIN, 0, 0, 0),
  185. SC9860_EMMC_D2 = SPRD_PIN_INFO(237, COMMON_PIN, 0, 0, 0),
  186. SC9860_EMMC_D0 = SPRD_PIN_INFO(239, COMMON_PIN, 0, 0, 0),
  187. SC9860_IIS0DI = SPRD_PIN_INFO(241, COMMON_PIN, 0, 0, 0),
  188. SC9860_IIS0DO = SPRD_PIN_INFO(243, COMMON_PIN, 0, 0, 0),
  189. SC9860_IIS0CLK = SPRD_PIN_INFO(245, COMMON_PIN, 0, 0, 0),
  190. SC9860_IIS0LRCK = SPRD_PIN_INFO(247, COMMON_PIN, 0, 0, 0),
  191. SC9860_SD1_CLK = SPRD_PIN_INFO(249, COMMON_PIN, 0, 0, 0),
  192. SC9860_SD1_CMD = SPRD_PIN_INFO(251, COMMON_PIN, 0, 0, 0),
  193. SC9860_SD1_D0 = SPRD_PIN_INFO(253, COMMON_PIN, 0, 0, 0),
  194. SC9860_SD1_D1 = SPRD_PIN_INFO(255, COMMON_PIN, 0, 0, 0),
  195. SC9860_SD1_D2 = SPRD_PIN_INFO(257, COMMON_PIN, 0, 0, 0),
  196. SC9860_SD1_D3 = SPRD_PIN_INFO(259, COMMON_PIN, 0, 0, 0),
  197. SC9860_CLK_AUX0 = SPRD_PIN_INFO(261, COMMON_PIN, 0, 0, 0),
  198. SC9860_WIFI_COEXIST = SPRD_PIN_INFO(263, COMMON_PIN, 0, 0, 0),
  199. SC9860_BEIDOU_COEXIST = SPRD_PIN_INFO(265, COMMON_PIN, 0, 0, 0),
  200. SC9860_U3TXD = SPRD_PIN_INFO(267, COMMON_PIN, 0, 0, 0),
  201. SC9860_U3RXD = SPRD_PIN_INFO(269, COMMON_PIN, 0, 0, 0),
  202. SC9860_U3CTS = SPRD_PIN_INFO(271, COMMON_PIN, 0, 0, 0),
  203. SC9860_U3RTS = SPRD_PIN_INFO(273, COMMON_PIN, 0, 0, 0),
  204. SC9860_U0TXD = SPRD_PIN_INFO(275, COMMON_PIN, 0, 0, 0),
  205. SC9860_U0RXD = SPRD_PIN_INFO(277, COMMON_PIN, 0, 0, 0),
  206. SC9860_U0CTS = SPRD_PIN_INFO(279, COMMON_PIN, 0, 0, 0),
  207. SC9860_U0RTS = SPRD_PIN_INFO(281, COMMON_PIN, 0, 0, 0),
  208. SC9860_IIS1DI = SPRD_PIN_INFO(283, COMMON_PIN, 0, 0, 0),
  209. SC9860_IIS1DO = SPRD_PIN_INFO(285, COMMON_PIN, 0, 0, 0),
  210. SC9860_IIS1CLK = SPRD_PIN_INFO(287, COMMON_PIN, 0, 0, 0),
  211. SC9860_IIS1LRCK = SPRD_PIN_INFO(289, COMMON_PIN, 0, 0, 0),
  212. SC9860_SPI0_CSN = SPRD_PIN_INFO(291, COMMON_PIN, 0, 0, 0),
  213. SC9860_SPI0_DO = SPRD_PIN_INFO(293, COMMON_PIN, 0, 0, 0),
  214. SC9860_SPI0_DI = SPRD_PIN_INFO(295, COMMON_PIN, 0, 0, 0),
  215. SC9860_SPI0_CLK = SPRD_PIN_INFO(297, COMMON_PIN, 0, 0, 0),
  216. SC9860_U2TXD = SPRD_PIN_INFO(299, COMMON_PIN, 0, 0, 0),
  217. SC9860_U2RXD = SPRD_PIN_INFO(301, COMMON_PIN, 0, 0, 0),
  218. SC9860_U4TXD = SPRD_PIN_INFO(303, COMMON_PIN, 0, 0, 0),
  219. SC9860_U4RXD = SPRD_PIN_INFO(305, COMMON_PIN, 0, 0, 0),
  220. SC9860_CMMCLK1 = SPRD_PIN_INFO(307, COMMON_PIN, 0, 0, 0),
  221. SC9860_CMRST1 = SPRD_PIN_INFO(309, COMMON_PIN, 0, 0, 0),
  222. SC9860_CMMCLK0 = SPRD_PIN_INFO(311, COMMON_PIN, 0, 0, 0),
  223. SC9860_CMRST0 = SPRD_PIN_INFO(313, COMMON_PIN, 0, 0, 0),
  224. SC9860_CMPD0 = SPRD_PIN_INFO(315, COMMON_PIN, 0, 0, 0),
  225. SC9860_CMPD1 = SPRD_PIN_INFO(317, COMMON_PIN, 0, 0, 0),
  226. SC9860_SCL0 = SPRD_PIN_INFO(319, COMMON_PIN, 0, 0, 0),
  227. SC9860_SDA0 = SPRD_PIN_INFO(321, COMMON_PIN, 0, 0, 0),
  228. SC9860_SDA6 = SPRD_PIN_INFO(323, COMMON_PIN, 0, 0, 0),
  229. SC9860_SCL6 = SPRD_PIN_INFO(325, COMMON_PIN, 0, 0, 0),
  230. SC9860_U1TXD = SPRD_PIN_INFO(327, COMMON_PIN, 0, 0, 0),
  231. SC9860_U1RXD = SPRD_PIN_INFO(329, COMMON_PIN, 0, 0, 0),
  232. SC9860_KEYOUT0 = SPRD_PIN_INFO(331, COMMON_PIN, 0, 0, 0),
  233. SC9860_KEYOUT1 = SPRD_PIN_INFO(333, COMMON_PIN, 0, 0, 0),
  234. SC9860_KEYOUT2 = SPRD_PIN_INFO(335, COMMON_PIN, 0, 0, 0),
  235. SC9860_KEYIN0 = SPRD_PIN_INFO(337, COMMON_PIN, 0, 0, 0),
  236. SC9860_KEYIN1 = SPRD_PIN_INFO(339, COMMON_PIN, 0, 0, 0),
  237. SC9860_KEYIN2 = SPRD_PIN_INFO(341, COMMON_PIN, 0, 0, 0),
  238. SC9860_IIS3DI = SPRD_PIN_INFO(343, COMMON_PIN, 0, 0, 0),
  239. SC9860_IIS3DO = SPRD_PIN_INFO(345, COMMON_PIN, 0, 0, 0),
  240. SC9860_IIS3CLK = SPRD_PIN_INFO(347, COMMON_PIN, 0, 0, 0),
  241. SC9860_IIS3LRCK = SPRD_PIN_INFO(349, COMMON_PIN, 0, 0, 0),
  242. SC9860_RFCTL0 = SPRD_PIN_INFO(351, COMMON_PIN, 0, 0, 0),
  243. SC9860_RFCTL1 = SPRD_PIN_INFO(353, COMMON_PIN, 0, 0, 0),
  244. SC9860_RFCTL10 = SPRD_PIN_INFO(355, COMMON_PIN, 0, 0, 0),
  245. SC9860_RFCTL11 = SPRD_PIN_INFO(357, COMMON_PIN, 0, 0, 0),
  246. SC9860_RFCTL12 = SPRD_PIN_INFO(359, COMMON_PIN, 0, 0, 0),
  247. SC9860_RFCTL13 = SPRD_PIN_INFO(361, COMMON_PIN, 0, 0, 0),
  248. SC9860_RFCTL14 = SPRD_PIN_INFO(363, COMMON_PIN, 0, 0, 0),
  249. SC9860_RFCTL15 = SPRD_PIN_INFO(365, COMMON_PIN, 0, 0, 0),
  250. SC9860_RFCTL16 = SPRD_PIN_INFO(367, COMMON_PIN, 0, 0, 0),
  251. SC9860_RFCTL17 = SPRD_PIN_INFO(369, COMMON_PIN, 0, 0, 0),
  252. SC9860_RFCTL18 = SPRD_PIN_INFO(371, COMMON_PIN, 0, 0, 0),
  253. SC9860_RFCTL19 = SPRD_PIN_INFO(373, COMMON_PIN, 0, 0, 0),
  254. SC9860_RFCTL2 = SPRD_PIN_INFO(375, COMMON_PIN, 0, 0, 0),
  255. SC9860_EXTINT5 = SPRD_PIN_INFO(377, COMMON_PIN, 0, 0, 0),
  256. SC9860_EXTINT6 = SPRD_PIN_INFO(379, COMMON_PIN, 0, 0, 0),
  257. SC9860_EXTINT7 = SPRD_PIN_INFO(381, COMMON_PIN, 0, 0, 0),
  258. SC9860_GPIO30 = SPRD_PIN_INFO(383, COMMON_PIN, 0, 0, 0),
  259. SC9860_GPIO31 = SPRD_PIN_INFO(385, COMMON_PIN, 0, 0, 0),
  260. SC9860_GPIO32 = SPRD_PIN_INFO(387, COMMON_PIN, 0, 0, 0),
  261. SC9860_GPIO33 = SPRD_PIN_INFO(389, COMMON_PIN, 0, 0, 0),
  262. SC9860_GPIO34 = SPRD_PIN_INFO(391, COMMON_PIN, 0, 0, 0),
  263. SC9860_RFCTL3 = SPRD_PIN_INFO(393, COMMON_PIN, 0, 0, 0),
  264. SC9860_RFCTL4 = SPRD_PIN_INFO(395, COMMON_PIN, 0, 0, 0),
  265. SC9860_RFCTL5 = SPRD_PIN_INFO(397, COMMON_PIN, 0, 0, 0),
  266. SC9860_RFCTL6 = SPRD_PIN_INFO(399, COMMON_PIN, 0, 0, 0),
  267. SC9860_RFCTL7 = SPRD_PIN_INFO(401, COMMON_PIN, 0, 0, 0),
  268. SC9860_RFCTL8 = SPRD_PIN_INFO(403, COMMON_PIN, 0, 0, 0),
  269. SC9860_RFCTL9 = SPRD_PIN_INFO(405, COMMON_PIN, 0, 0, 0),
  270. SC9860_RFFE0_SCK0 = SPRD_PIN_INFO(407, COMMON_PIN, 0, 0, 0),
  271. SC9860_GPIO38 = SPRD_PIN_INFO(409, COMMON_PIN, 0, 0, 0),
  272. SC9860_RFFE0_SDA0 = SPRD_PIN_INFO(411, COMMON_PIN, 0, 0, 0),
  273. SC9860_GPIO39 = SPRD_PIN_INFO(413, COMMON_PIN, 0, 0, 0),
  274. SC9860_RFFE1_SCK0 = SPRD_PIN_INFO(415, COMMON_PIN, 0, 0, 0),
  275. SC9860_GPIO181 = SPRD_PIN_INFO(417, COMMON_PIN, 0, 0, 0),
  276. SC9860_RFFE1_SDA0 = SPRD_PIN_INFO(419, COMMON_PIN, 0, 0, 0),
  277. SC9860_GPIO182 = SPRD_PIN_INFO(421, COMMON_PIN, 0, 0, 0),
  278. SC9860_RF_LVDS0_ADC_ON = SPRD_PIN_INFO(423, COMMON_PIN, 0, 0, 0),
  279. SC9860_RF_LVDS0_DAC_ON = SPRD_PIN_INFO(425, COMMON_PIN, 0, 0, 0),
  280. SC9860_RFSCK0 = SPRD_PIN_INFO(427, COMMON_PIN, 0, 0, 0),
  281. SC9860_RFSDA0 = SPRD_PIN_INFO(429, COMMON_PIN, 0, 0, 0),
  282. SC9860_RFSEN0 = SPRD_PIN_INFO(431, COMMON_PIN, 0, 0, 0),
  283. SC9860_RF_LVDS1_ADC_ON = SPRD_PIN_INFO(433, COMMON_PIN, 0, 0, 0),
  284. SC9860_RF_LVDS1_DAC_ON = SPRD_PIN_INFO(435, COMMON_PIN, 0, 0, 0),
  285. SC9860_RFSCK1 = SPRD_PIN_INFO(437, COMMON_PIN, 0, 0, 0),
  286. SC9860_RFSDA1 = SPRD_PIN_INFO(439, COMMON_PIN, 0, 0, 0),
  287. SC9860_RFSEN1 = SPRD_PIN_INFO(441, COMMON_PIN, 0, 0, 0),
  288. SC9860_RFCTL38 = SPRD_PIN_INFO(443, COMMON_PIN, 0, 0, 0),
  289. SC9860_RFCTL39 = SPRD_PIN_INFO(445, COMMON_PIN, 0, 0, 0),
  290. /* MSIC pin registers definitions */
  291. SC9860_RFCTL20_MISC = SPRD_PIN_INFO(82, MISC_PIN, 0, 0, 0),
  292. SC9860_RFCTL21_MISC = SPRD_PIN_INFO(84, MISC_PIN, 0, 0, 0),
  293. SC9860_RFCTL30_MISC = SPRD_PIN_INFO(86, MISC_PIN, 0, 0, 0),
  294. SC9860_RFCTL31_MISC = SPRD_PIN_INFO(88, MISC_PIN, 0, 0, 0),
  295. SC9860_RFCTL32_MISC = SPRD_PIN_INFO(90, MISC_PIN, 0, 0, 0),
  296. SC9860_RFCTL33_MISC = SPRD_PIN_INFO(92, MISC_PIN, 0, 0, 0),
  297. SC9860_RFCTL34_MISC = SPRD_PIN_INFO(94, MISC_PIN, 0, 0, 0),
  298. SC9860_RFCTL35_MISC = SPRD_PIN_INFO(96, MISC_PIN, 0, 0, 0),
  299. SC9860_RFCTL36_MISC = SPRD_PIN_INFO(98, MISC_PIN, 0, 0, 0),
  300. SC9860_RFCTL37_MISC = SPRD_PIN_INFO(100, MISC_PIN, 0, 0, 0),
  301. SC9860_RFCTL22_MISC = SPRD_PIN_INFO(102, MISC_PIN, 0, 0, 0),
  302. SC9860_RFCTL23_MISC = SPRD_PIN_INFO(104, MISC_PIN, 0, 0, 0),
  303. SC9860_RFCTL24_MISC = SPRD_PIN_INFO(106, MISC_PIN, 0, 0, 0),
  304. SC9860_RFCTL25_MISC = SPRD_PIN_INFO(108, MISC_PIN, 0, 0, 0),
  305. SC9860_RFCTL26_MISC = SPRD_PIN_INFO(110, MISC_PIN, 0, 0, 0),
  306. SC9860_RFCTL27_MISC = SPRD_PIN_INFO(112, MISC_PIN, 0, 0, 0),
  307. SC9860_RFCTL28_MISC = SPRD_PIN_INFO(114, MISC_PIN, 0, 0, 0),
  308. SC9860_RFCTL29_MISC = SPRD_PIN_INFO(116, MISC_PIN, 0, 0, 0),
  309. SC9860_SCL2_MISC = SPRD_PIN_INFO(118, MISC_PIN, 0, 0, 0),
  310. SC9860_SDA2_MISC = SPRD_PIN_INFO(120, MISC_PIN, 0, 0, 0),
  311. SC9860_MTCK_ARM_MISC = SPRD_PIN_INFO(122, MISC_PIN, 0, 0, 0),
  312. SC9860_MTMS_ARM_MISC = SPRD_PIN_INFO(124, MISC_PIN, 0, 0, 0),
  313. SC9860_XTL_EN0_MISC = SPRD_PIN_INFO(126, MISC_PIN, 0, 0, 0),
  314. SC9860_PTEST_MISC = SPRD_PIN_INFO(128, MISC_PIN, 0, 0, 0),
  315. SC9860_AUD_DAD1_MISC = SPRD_PIN_INFO(130, MISC_PIN, 0, 0, 0),
  316. SC9860_AUD_ADD0_MISC = SPRD_PIN_INFO(132, MISC_PIN, 0, 0, 0),
  317. SC9860_AUD_ADSYNC_MISC = SPRD_PIN_INFO(134, MISC_PIN, 0, 0, 0),
  318. SC9860_AUD_SCLK_MISC = SPRD_PIN_INFO(136, MISC_PIN, 0, 0, 0),
  319. SC9860_CHIP_SLEEP_MISC = SPRD_PIN_INFO(138, MISC_PIN, 0, 0, 0),
  320. SC9860_CLK_32K_MISC = SPRD_PIN_INFO(140, MISC_PIN, 0, 0, 0),
  321. SC9860_DCDC_ARM_EN_MISC = SPRD_PIN_INFO(142, MISC_PIN, 0, 0, 0),
  322. SC9860_EXT_RST_B_MISC = SPRD_PIN_INFO(144, MISC_PIN, 0, 0, 0),
  323. SC9860_ADI_D_MISC = SPRD_PIN_INFO(146, MISC_PIN, 0, 0, 0),
  324. SC9860_ADI_SCLK_MISC = SPRD_PIN_INFO(148, MISC_PIN, 0, 0, 0),
  325. SC9860_XTL_EN1_MISC = SPRD_PIN_INFO(150, MISC_PIN, 0, 0, 0),
  326. SC9860_ANA_INT_MISC = SPRD_PIN_INFO(152, MISC_PIN, 0, 0, 0),
  327. SC9860_AUD_DAD0_MISC = SPRD_PIN_INFO(154, MISC_PIN, 0, 0, 0),
  328. SC9860_AUD_DASYNC_MISC = SPRD_PIN_INFO(156, MISC_PIN, 0, 0, 0),
  329. SC9860_LCM_RSTN_MISC = SPRD_PIN_INFO(158, MISC_PIN, 0, 0, 0),
  330. SC9860_DSI_TE_MISC = SPRD_PIN_INFO(160, MISC_PIN, 0, 0, 0),
  331. SC9860_PWMA_MISC = SPRD_PIN_INFO(162, MISC_PIN, 0, 0, 0),
  332. SC9860_EXTINT0_MISC = SPRD_PIN_INFO(164, MISC_PIN, 0, 0, 0),
  333. SC9860_EXTINT1_MISC = SPRD_PIN_INFO(166, MISC_PIN, 0, 0, 0),
  334. SC9860_SDA1_MISC = SPRD_PIN_INFO(168, MISC_PIN, 0, 0, 0),
  335. SC9860_SCL1_MISC = SPRD_PIN_INFO(170, MISC_PIN, 0, 0, 0),
  336. SC9860_SIMCLK2_MISC = SPRD_PIN_INFO(172, MISC_PIN, 0, 0, 0),
  337. SC9860_SIMDA2_MISC = SPRD_PIN_INFO(174, MISC_PIN, 0, 0, 0),
  338. SC9860_SIMRST2_MISC = SPRD_PIN_INFO(176, MISC_PIN, 0, 0, 0),
  339. SC9860_SIMCLK1_MISC = SPRD_PIN_INFO(178, MISC_PIN, 0, 0, 0),
  340. SC9860_SIMDA1_MISC = SPRD_PIN_INFO(180, MISC_PIN, 0, 0, 0),
  341. SC9860_SIMRST1_MISC = SPRD_PIN_INFO(182, MISC_PIN, 0, 0, 0),
  342. SC9860_SIMCLK0_MISC = SPRD_PIN_INFO(184, MISC_PIN, 0, 0, 0),
  343. SC9860_SIMDA0_MISC = SPRD_PIN_INFO(186, MISC_PIN, 0, 0, 0),
  344. SC9860_SIMRST0_MISC = SPRD_PIN_INFO(188, MISC_PIN, 0, 0, 0),
  345. SC9860_SD2_CMD_MISC = SPRD_PIN_INFO(190, MISC_PIN, 0, 0, 0),
  346. SC9860_SD2_D0_MISC = SPRD_PIN_INFO(192, MISC_PIN, 0, 0, 0),
  347. SC9860_SD2_D1_MISC = SPRD_PIN_INFO(194, MISC_PIN, 0, 0, 0),
  348. SC9860_SD2_CLK_MISC = SPRD_PIN_INFO(196, MISC_PIN, 0, 0, 0),
  349. SC9860_SD2_D2_MISC = SPRD_PIN_INFO(198, MISC_PIN, 0, 0, 0),
  350. SC9860_SD2_D3_MISC = SPRD_PIN_INFO(200, MISC_PIN, 0, 0, 0),
  351. SC9860_SD0_D3_MISC = SPRD_PIN_INFO(202, MISC_PIN, 0, 0, 0),
  352. SC9860_SD0_D2_MISC = SPRD_PIN_INFO(204, MISC_PIN, 0, 0, 0),
  353. SC9860_SD0_CMD_MISC = SPRD_PIN_INFO(206, MISC_PIN, 0, 0, 0),
  354. SC9860_SD0_D0_MISC = SPRD_PIN_INFO(208, MISC_PIN, 0, 0, 0),
  355. SC9860_SD0_D1_MISC = SPRD_PIN_INFO(210, MISC_PIN, 0, 0, 0),
  356. SC9860_SD0_CLK_MISC = SPRD_PIN_INFO(212, MISC_PIN, 0, 0, 0),
  357. SC9860_EMMC_CMD_reserved_MISC = SPRD_PIN_INFO(214, MISC_PIN, 0, 0, 0),
  358. SC9860_EMMC_CMD_MISC = SPRD_PIN_INFO(216, MISC_PIN, 0, 0, 0),
  359. SC9860_EMMC_D6_MISC = SPRD_PIN_INFO(218, MISC_PIN, 0, 0, 0),
  360. SC9860_EMMC_D7_MISC = SPRD_PIN_INFO(220, MISC_PIN, 0, 0, 0),
  361. SC9860_EMMC_CLK_MISC = SPRD_PIN_INFO(222, MISC_PIN, 0, 0, 0),
  362. SC9860_EMMC_D5_MISC = SPRD_PIN_INFO(224, MISC_PIN, 0, 0, 0),
  363. SC9860_EMMC_D4_MISC = SPRD_PIN_INFO(226, MISC_PIN, 0, 0, 0),
  364. SC9860_EMMC_DS_MISC = SPRD_PIN_INFO(228, MISC_PIN, 0, 0, 0),
  365. SC9860_EMMC_D3_reserved_MISC = SPRD_PIN_INFO(230, MISC_PIN, 0, 0, 0),
  366. SC9860_EMMC_D3_MISC = SPRD_PIN_INFO(232, MISC_PIN, 0, 0, 0),
  367. SC9860_EMMC_RST_MISC = SPRD_PIN_INFO(234, MISC_PIN, 0, 0, 0),
  368. SC9860_EMMC_D1_MISC = SPRD_PIN_INFO(236, MISC_PIN, 0, 0, 0),
  369. SC9860_EMMC_D2_MISC = SPRD_PIN_INFO(238, MISC_PIN, 0, 0, 0),
  370. SC9860_EMMC_D0_MISC = SPRD_PIN_INFO(240, MISC_PIN, 0, 0, 0),
  371. SC9860_IIS0DI_MISC = SPRD_PIN_INFO(242, MISC_PIN, 0, 0, 0),
  372. SC9860_IIS0DO_MISC = SPRD_PIN_INFO(244, MISC_PIN, 0, 0, 0),
  373. SC9860_IIS0CLK_MISC = SPRD_PIN_INFO(246, MISC_PIN, 0, 0, 0),
  374. SC9860_IIS0LRCK_MISC = SPRD_PIN_INFO(248, MISC_PIN, 0, 0, 0),
  375. SC9860_SD1_CLK_MISC = SPRD_PIN_INFO(250, MISC_PIN, 0, 0, 0),
  376. SC9860_SD1_CMD_MISC = SPRD_PIN_INFO(252, MISC_PIN, 0, 0, 0),
  377. SC9860_SD1_D0_MISC = SPRD_PIN_INFO(254, MISC_PIN, 0, 0, 0),
  378. SC9860_SD1_D1_MISC = SPRD_PIN_INFO(256, MISC_PIN, 0, 0, 0),
  379. SC9860_SD1_D2_MISC = SPRD_PIN_INFO(258, MISC_PIN, 0, 0, 0),
  380. SC9860_SD1_D3_MISC = SPRD_PIN_INFO(260, MISC_PIN, 0, 0, 0),
  381. SC9860_CLK_AUX0_MISC = SPRD_PIN_INFO(262, MISC_PIN, 0, 0, 0),
  382. SC9860_WIFI_COEXIST_MISC = SPRD_PIN_INFO(264, MISC_PIN, 0, 0, 0),
  383. SC9860_BEIDOU_COEXIST_MISC = SPRD_PIN_INFO(266, MISC_PIN, 0, 0, 0),
  384. SC9860_U3TXD_MISC = SPRD_PIN_INFO(268, MISC_PIN, 0, 0, 0),
  385. SC9860_U3RXD_MISC = SPRD_PIN_INFO(270, MISC_PIN, 0, 0, 0),
  386. SC9860_U3CTS_MISC = SPRD_PIN_INFO(272, MISC_PIN, 0, 0, 0),
  387. SC9860_U3RTS_MISC = SPRD_PIN_INFO(274, MISC_PIN, 0, 0, 0),
  388. SC9860_U0TXD_MISC = SPRD_PIN_INFO(276, MISC_PIN, 0, 0, 0),
  389. SC9860_U0RXD_MISC = SPRD_PIN_INFO(278, MISC_PIN, 0, 0, 0),
  390. SC9860_U0CTS_MISC = SPRD_PIN_INFO(280, MISC_PIN, 0, 0, 0),
  391. SC9860_U0RTS_MISC = SPRD_PIN_INFO(282, MISC_PIN, 0, 0, 0),
  392. SC9860_IIS1DI_MISC = SPRD_PIN_INFO(284, MISC_PIN, 0, 0, 0),
  393. SC9860_IIS1DO_MISC = SPRD_PIN_INFO(286, MISC_PIN, 0, 0, 0),
  394. SC9860_IIS1CLK_MISC = SPRD_PIN_INFO(288, MISC_PIN, 0, 0, 0),
  395. SC9860_IIS1LRCK_MISC = SPRD_PIN_INFO(290, MISC_PIN, 0, 0, 0),
  396. SC9860_SPI0_CSN_MISC = SPRD_PIN_INFO(292, MISC_PIN, 0, 0, 0),
  397. SC9860_SPI0_DO_MISC = SPRD_PIN_INFO(294, MISC_PIN, 0, 0, 0),
  398. SC9860_SPI0_DI_MISC = SPRD_PIN_INFO(296, MISC_PIN, 0, 0, 0),
  399. SC9860_SPI0_CLK_MISC = SPRD_PIN_INFO(298, MISC_PIN, 0, 0, 0),
  400. SC9860_U2TXD_MISC = SPRD_PIN_INFO(300, MISC_PIN, 0, 0, 0),
  401. SC9860_U2RXD_MISC = SPRD_PIN_INFO(302, MISC_PIN, 0, 0, 0),
  402. SC9860_U4TXD_MISC = SPRD_PIN_INFO(304, MISC_PIN, 0, 0, 0),
  403. SC9860_U4RXD_MISC = SPRD_PIN_INFO(306, MISC_PIN, 0, 0, 0),
  404. SC9860_CMMCLK1_MISC = SPRD_PIN_INFO(308, MISC_PIN, 0, 0, 0),
  405. SC9860_CMRST1_MISC = SPRD_PIN_INFO(310, MISC_PIN, 0, 0, 0),
  406. SC9860_CMMCLK0_MISC = SPRD_PIN_INFO(312, MISC_PIN, 0, 0, 0),
  407. SC9860_CMRST0_MISC = SPRD_PIN_INFO(314, MISC_PIN, 0, 0, 0),
  408. SC9860_CMPD0_MISC = SPRD_PIN_INFO(316, MISC_PIN, 0, 0, 0),
  409. SC9860_CMPD1_MISC = SPRD_PIN_INFO(318, MISC_PIN, 0, 0, 0),
  410. SC9860_SCL0_MISC = SPRD_PIN_INFO(320, MISC_PIN, 0, 0, 0),
  411. SC9860_SDA0_MISC = SPRD_PIN_INFO(322, MISC_PIN, 0, 0, 0),
  412. SC9860_SDA6_MISC = SPRD_PIN_INFO(324, MISC_PIN, 0, 0, 0),
  413. SC9860_SCL6_MISC = SPRD_PIN_INFO(326, MISC_PIN, 0, 0, 0),
  414. SC9860_U1TXD_MISC = SPRD_PIN_INFO(328, MISC_PIN, 0, 0, 0),
  415. SC9860_U1RXD_MISC = SPRD_PIN_INFO(330, MISC_PIN, 0, 0, 0),
  416. SC9860_KEYOUT0_MISC = SPRD_PIN_INFO(332, MISC_PIN, 0, 0, 0),
  417. SC9860_KEYOUT1_MISC = SPRD_PIN_INFO(334, MISC_PIN, 0, 0, 0),
  418. SC9860_KEYOUT2_MISC = SPRD_PIN_INFO(336, MISC_PIN, 0, 0, 0),
  419. SC9860_KEYIN0_MISC = SPRD_PIN_INFO(338, MISC_PIN, 0, 0, 0),
  420. SC9860_KEYIN1_MISC = SPRD_PIN_INFO(340, MISC_PIN, 0, 0, 0),
  421. SC9860_KEYIN2_MISC = SPRD_PIN_INFO(342, MISC_PIN, 0, 0, 0),
  422. SC9860_IIS3DI_MISC = SPRD_PIN_INFO(344, MISC_PIN, 0, 0, 0),
  423. SC9860_IIS3DO_MISC = SPRD_PIN_INFO(346, MISC_PIN, 0, 0, 0),
  424. SC9860_IIS3CLK_MISC = SPRD_PIN_INFO(348, MISC_PIN, 0, 0, 0),
  425. SC9860_IIS3LRCK_MISC = SPRD_PIN_INFO(350, MISC_PIN, 0, 0, 0),
  426. SC9860_RFCTL0_MISC = SPRD_PIN_INFO(352, MISC_PIN, 0, 0, 0),
  427. SC9860_RFCTL1_MISC = SPRD_PIN_INFO(354, MISC_PIN, 0, 0, 0),
  428. SC9860_RFCTL10_MISC = SPRD_PIN_INFO(356, MISC_PIN, 0, 0, 0),
  429. SC9860_RFCTL11_MISC = SPRD_PIN_INFO(358, MISC_PIN, 0, 0, 0),
  430. SC9860_RFCTL12_MISC = SPRD_PIN_INFO(360, MISC_PIN, 0, 0, 0),
  431. SC9860_RFCTL13_MISC = SPRD_PIN_INFO(362, MISC_PIN, 0, 0, 0),
  432. SC9860_RFCTL14_MISC = SPRD_PIN_INFO(364, MISC_PIN, 0, 0, 0),
  433. SC9860_RFCTL15_MISC = SPRD_PIN_INFO(366, MISC_PIN, 0, 0, 0),
  434. SC9860_RFCTL16_MISC = SPRD_PIN_INFO(368, MISC_PIN, 0, 0, 0),
  435. SC9860_RFCTL17_MISC = SPRD_PIN_INFO(370, MISC_PIN, 0, 0, 0),
  436. SC9860_RFCTL18_MISC = SPRD_PIN_INFO(372, MISC_PIN, 0, 0, 0),
  437. SC9860_RFCTL19_MISC = SPRD_PIN_INFO(374, MISC_PIN, 0, 0, 0),
  438. SC9860_RFCTL2_MISC = SPRD_PIN_INFO(376, MISC_PIN, 0, 0, 0),
  439. SC9860_EXTINT5_MISC = SPRD_PIN_INFO(378, MISC_PIN, 0, 0, 0),
  440. SC9860_EXTINT6_MISC = SPRD_PIN_INFO(380, MISC_PIN, 0, 0, 0),
  441. SC9860_EXTINT7_MISC = SPRD_PIN_INFO(382, MISC_PIN, 0, 0, 0),
  442. SC9860_GPIO30_MISC = SPRD_PIN_INFO(384, MISC_PIN, 0, 0, 0),
  443. SC9860_GPIO31_MISC = SPRD_PIN_INFO(386, MISC_PIN, 0, 0, 0),
  444. SC9860_GPIO32_MISC = SPRD_PIN_INFO(388, MISC_PIN, 0, 0, 0),
  445. SC9860_GPIO33_MISC = SPRD_PIN_INFO(390, MISC_PIN, 0, 0, 0),
  446. SC9860_GPIO34_MISC = SPRD_PIN_INFO(392, MISC_PIN, 0, 0, 0),
  447. SC9860_RFCTL3_MISC = SPRD_PIN_INFO(394, MISC_PIN, 0, 0, 0),
  448. SC9860_RFCTL4_MISC = SPRD_PIN_INFO(396, MISC_PIN, 0, 0, 0),
  449. SC9860_RFCTL5_MISC = SPRD_PIN_INFO(398, MISC_PIN, 0, 0, 0),
  450. SC9860_RFCTL6_MISC = SPRD_PIN_INFO(400, MISC_PIN, 0, 0, 0),
  451. SC9860_RFCTL7_MISC = SPRD_PIN_INFO(402, MISC_PIN, 0, 0, 0),
  452. SC9860_RFCTL8_MISC = SPRD_PIN_INFO(404, MISC_PIN, 0, 0, 0),
  453. SC9860_RFCTL9_MISC = SPRD_PIN_INFO(406, MISC_PIN, 0, 0, 0),
  454. SC9860_RFFE0_SCK0_MISC = SPRD_PIN_INFO(408, MISC_PIN, 0, 0, 0),
  455. SC9860_GPIO38_MISC = SPRD_PIN_INFO(410, MISC_PIN, 0, 0, 0),
  456. SC9860_RFFE0_SDA0_MISC = SPRD_PIN_INFO(412, MISC_PIN, 0, 0, 0),
  457. SC9860_GPIO39_MISC = SPRD_PIN_INFO(414, MISC_PIN, 0, 0, 0),
  458. SC9860_RFFE1_SCK0_MISC = SPRD_PIN_INFO(416, MISC_PIN, 0, 0, 0),
  459. SC9860_GPIO181_MISC = SPRD_PIN_INFO(418, MISC_PIN, 0, 0, 0),
  460. SC9860_RFFE1_SDA0_MISC = SPRD_PIN_INFO(420, MISC_PIN, 0, 0, 0),
  461. SC9860_GPIO182_MISC = SPRD_PIN_INFO(422, MISC_PIN, 0, 0, 0),
  462. SC9860_RF_LVDS0_ADC_ON_MISC = SPRD_PIN_INFO(424, MISC_PIN, 0, 0, 0),
  463. SC9860_RF_LVDS0_DAC_ON_MISC = SPRD_PIN_INFO(426, MISC_PIN, 0, 0, 0),
  464. SC9860_RFSCK0_MISC = SPRD_PIN_INFO(428, MISC_PIN, 0, 0, 0),
  465. SC9860_RFSDA0_MISC = SPRD_PIN_INFO(430, MISC_PIN, 0, 0, 0),
  466. SC9860_RFSEN0_MISC = SPRD_PIN_INFO(432, MISC_PIN, 0, 0, 0),
  467. SC9860_RF_LVDS1_ADC_ON_MISC = SPRD_PIN_INFO(434, MISC_PIN, 0, 0, 0),
  468. SC9860_RF_LVDS1_DAC_ON_MISC = SPRD_PIN_INFO(436, MISC_PIN, 0, 0, 0),
  469. SC9860_RFSCK1_MISC = SPRD_PIN_INFO(438, MISC_PIN, 0, 0, 0),
  470. SC9860_RFSDA1_MISC = SPRD_PIN_INFO(440, MISC_PIN, 0, 0, 0),
  471. SC9860_RFSEN1_MISC = SPRD_PIN_INFO(442, MISC_PIN, 0, 0, 0),
  472. SC9860_RFCTL38_MISC = SPRD_PIN_INFO(444, MISC_PIN, 0, 0, 0),
  473. SC9860_RFCTL39_MISC = SPRD_PIN_INFO(446, MISC_PIN, 0, 0, 0),
  474. };
  475. static struct sprd_pins_info sprd_sc9860_pins_info[] = {
  476. SPRD_PINCTRL_PIN(SC9860_VIO28_0_IRTE),
  477. SPRD_PINCTRL_PIN(SC9860_VIO_SD2_IRTE),
  478. SPRD_PINCTRL_PIN(SC9860_VIO_SD0_IRTE),
  479. SPRD_PINCTRL_PIN(SC9860_VIO_SIM2_IRTE),
  480. SPRD_PINCTRL_PIN(SC9860_VIO_SIM1_IRTE),
  481. SPRD_PINCTRL_PIN(SC9860_VIO_SIM0_IRTE),
  482. SPRD_PINCTRL_PIN(SC9860_VIO28_0_MS),
  483. SPRD_PINCTRL_PIN(SC9860_VIO_SD2_MS),
  484. SPRD_PINCTRL_PIN(SC9860_VIO_SD0_MS),
  485. SPRD_PINCTRL_PIN(SC9860_VIO_SIM2_MS),
  486. SPRD_PINCTRL_PIN(SC9860_VIO_SIM1_MS),
  487. SPRD_PINCTRL_PIN(SC9860_VIO_SIM0_MS),
  488. SPRD_PINCTRL_PIN(SC9860_SPSPI_PIN_IN_SEL),
  489. SPRD_PINCTRL_PIN(SC9860_UART1_USB30_PHY_SEL),
  490. SPRD_PINCTRL_PIN(SC9860_USB30_PHY_DM_OE),
  491. SPRD_PINCTRL_PIN(SC9860_USB30_PHY_DP_OE),
  492. SPRD_PINCTRL_PIN(SC9860_UART5_SYS_SEL),
  493. SPRD_PINCTRL_PIN(SC9860_ORP_URXD_PIN_IN_SEL),
  494. SPRD_PINCTRL_PIN(SC9860_SIM2_SYS_SEL),
  495. SPRD_PINCTRL_PIN(SC9860_SIM1_SYS_SEL),
  496. SPRD_PINCTRL_PIN(SC9860_SIM0_SYS_SEL),
  497. SPRD_PINCTRL_PIN(SC9860_CLK26MHZ_BUF_OUT_SEL),
  498. SPRD_PINCTRL_PIN(SC9860_UART4_SYS_SEL),
  499. SPRD_PINCTRL_PIN(SC9860_UART3_SYS_SEL),
  500. SPRD_PINCTRL_PIN(SC9860_UART2_SYS_SEL),
  501. SPRD_PINCTRL_PIN(SC9860_UART1_SYS_SEL),
  502. SPRD_PINCTRL_PIN(SC9860_UART0_SYS_SEL),
  503. SPRD_PINCTRL_PIN(SC9860_UART24_LOOP_SEL),
  504. SPRD_PINCTRL_PIN(SC9860_UART23_LOOP_SEL),
  505. SPRD_PINCTRL_PIN(SC9860_UART14_LOOP_SEL),
  506. SPRD_PINCTRL_PIN(SC9860_UART13_LOOP_SEL),
  507. SPRD_PINCTRL_PIN(SC9860_IIS3_SYS_SEL),
  508. SPRD_PINCTRL_PIN(SC9860_IIS2_SYS_SEL),
  509. SPRD_PINCTRL_PIN(SC9860_IIS1_SYS_SEL),
  510. SPRD_PINCTRL_PIN(SC9860_IIS0_SYS_SEL),
  511. SPRD_PINCTRL_PIN(SC9860_IIS23_LOOP_SEL),
  512. SPRD_PINCTRL_PIN(SC9860_IIS13_LOOP_SEL),
  513. SPRD_PINCTRL_PIN(SC9860_IIS12_LOOP_SEL),
  514. SPRD_PINCTRL_PIN(SC9860_IIS03_LOOP_SEL),
  515. SPRD_PINCTRL_PIN(SC9860_IIS02_LOOP_SEL),
  516. SPRD_PINCTRL_PIN(SC9860_IIS01_LOOP_SEL),
  517. SPRD_PINCTRL_PIN(SC9860_IIS6_SYS_SEL),
  518. SPRD_PINCTRL_PIN(SC9860_IIS5_SYS_SEL),
  519. SPRD_PINCTRL_PIN(SC9860_IIS4_SYS_SEL),
  520. SPRD_PINCTRL_PIN(SC9860_I2C_INF6_SYS_SEL),
  521. SPRD_PINCTRL_PIN(SC9860_I2C_INF4_SYS_SEL),
  522. SPRD_PINCTRL_PIN(SC9860_I2C_INF2_SYS_SEL),
  523. SPRD_PINCTRL_PIN(SC9860_I2C_INF1_SYS_SEL),
  524. SPRD_PINCTRL_PIN(SC9860_I2C_INF0_SYS_SEL),
  525. SPRD_PINCTRL_PIN(SC9860_GPIO_INF7_SYS_SEL),
  526. SPRD_PINCTRL_PIN(SC9860_GPIO_INF6_SYS_SEL),
  527. SPRD_PINCTRL_PIN(SC9860_GPIO_INF5_SYS_SEL),
  528. SPRD_PINCTRL_PIN(SC9860_GPIO_INF4_SYS_SEL),
  529. SPRD_PINCTRL_PIN(SC9860_GPIO_INF3_SYS_SEL),
  530. SPRD_PINCTRL_PIN(SC9860_GPIO_INF2_SYS_SEL),
  531. SPRD_PINCTRL_PIN(SC9860_GPIO_INF1_SYS_SEL),
  532. SPRD_PINCTRL_PIN(SC9860_GPIO_INF0_SYS_SEL),
  533. SPRD_PINCTRL_PIN(SC9860_WDRST_OUT_SEL),
  534. SPRD_PINCTRL_PIN(SC9860_ADI_SYNC_PIN_OUT_SEL),
  535. SPRD_PINCTRL_PIN(SC9860_CMRST_SEL),
  536. SPRD_PINCTRL_PIN(SC9860_CMPD_SEL),
  537. SPRD_PINCTRL_PIN(SC9860_TEST_DBG_MODE11),
  538. SPRD_PINCTRL_PIN(SC9860_TEST_DBG_MODE10),
  539. SPRD_PINCTRL_PIN(SC9860_TEST_DBG_MODE9),
  540. SPRD_PINCTRL_PIN(SC9860_TEST_DBG_MODE8),
  541. SPRD_PINCTRL_PIN(SC9860_TEST_DBG_MODE7),
  542. SPRD_PINCTRL_PIN(SC9860_TEST_DBG_MODE6),
  543. SPRD_PINCTRL_PIN(SC9860_TEST_DBG_MODE5),
  544. SPRD_PINCTRL_PIN(SC9860_TEST_DBG_MODE4),
  545. SPRD_PINCTRL_PIN(SC9860_TEST_DBG_MODE3),
  546. SPRD_PINCTRL_PIN(SC9860_TEST_DBG_MODE2),
  547. SPRD_PINCTRL_PIN(SC9860_TEST_DBG_MODE1),
  548. SPRD_PINCTRL_PIN(SC9860_TEST_DBG_MODE0),
  549. SPRD_PINCTRL_PIN(SC9860_SP_EIC_DPAD3_SEL),
  550. SPRD_PINCTRL_PIN(SC9860_SP_EIC_DPAD2_SEL),
  551. SPRD_PINCTRL_PIN(SC9860_SP_EIC_DPAD1_SEL),
  552. SPRD_PINCTRL_PIN(SC9860_SP_EIC_DPAD0_SEL),
  553. SPRD_PINCTRL_PIN(SC9860_SP_EIC_DPAD7_SEL),
  554. SPRD_PINCTRL_PIN(SC9860_SP_EIC_DPAD6_SEL),
  555. SPRD_PINCTRL_PIN(SC9860_SP_EIC_DPAD5_SEL),
  556. SPRD_PINCTRL_PIN(SC9860_SP_EIC_DPAD4_SEL),
  557. SPRD_PINCTRL_PIN(SC9860_RFCTL20),
  558. SPRD_PINCTRL_PIN(SC9860_RFCTL21),
  559. SPRD_PINCTRL_PIN(SC9860_RFCTL30),
  560. SPRD_PINCTRL_PIN(SC9860_RFCTL31),
  561. SPRD_PINCTRL_PIN(SC9860_RFCTL32),
  562. SPRD_PINCTRL_PIN(SC9860_RFCTL33),
  563. SPRD_PINCTRL_PIN(SC9860_RFCTL34),
  564. SPRD_PINCTRL_PIN(SC9860_RFCTL35),
  565. SPRD_PINCTRL_PIN(SC9860_RFCTL36),
  566. SPRD_PINCTRL_PIN(SC9860_RFCTL37),
  567. SPRD_PINCTRL_PIN(SC9860_RFCTL22),
  568. SPRD_PINCTRL_PIN(SC9860_RFCTL23),
  569. SPRD_PINCTRL_PIN(SC9860_RFCTL24),
  570. SPRD_PINCTRL_PIN(SC9860_RFCTL25),
  571. SPRD_PINCTRL_PIN(SC9860_RFCTL26),
  572. SPRD_PINCTRL_PIN(SC9860_RFCTL27),
  573. SPRD_PINCTRL_PIN(SC9860_RFCTL28),
  574. SPRD_PINCTRL_PIN(SC9860_RFCTL29),
  575. SPRD_PINCTRL_PIN(SC9860_SCL2),
  576. SPRD_PINCTRL_PIN(SC9860_SDA2),
  577. SPRD_PINCTRL_PIN(SC9860_MTCK_ARM),
  578. SPRD_PINCTRL_PIN(SC9860_MTMS_ARM),
  579. SPRD_PINCTRL_PIN(SC9860_XTL_EN0),
  580. SPRD_PINCTRL_PIN(SC9860_PTEST),
  581. SPRD_PINCTRL_PIN(SC9860_AUD_DAD1),
  582. SPRD_PINCTRL_PIN(SC9860_AUD_ADD0),
  583. SPRD_PINCTRL_PIN(SC9860_AUD_ADSYNC),
  584. SPRD_PINCTRL_PIN(SC9860_AUD_SCLK),
  585. SPRD_PINCTRL_PIN(SC9860_CHIP_SLEEP),
  586. SPRD_PINCTRL_PIN(SC9860_CLK_32K),
  587. SPRD_PINCTRL_PIN(SC9860_DCDC_ARM_EN),
  588. SPRD_PINCTRL_PIN(SC9860_EXT_RST_B),
  589. SPRD_PINCTRL_PIN(SC9860_ADI_D),
  590. SPRD_PINCTRL_PIN(SC9860_ADI_SCLK),
  591. SPRD_PINCTRL_PIN(SC9860_XTL_EN1),
  592. SPRD_PINCTRL_PIN(SC9860_ANA_INT),
  593. SPRD_PINCTRL_PIN(SC9860_AUD_DAD0),
  594. SPRD_PINCTRL_PIN(SC9860_AUD_DASYNC),
  595. SPRD_PINCTRL_PIN(SC9860_LCM_RSTN),
  596. SPRD_PINCTRL_PIN(SC9860_DSI_TE),
  597. SPRD_PINCTRL_PIN(SC9860_PWMA),
  598. SPRD_PINCTRL_PIN(SC9860_EXTINT0),
  599. SPRD_PINCTRL_PIN(SC9860_EXTINT1),
  600. SPRD_PINCTRL_PIN(SC9860_SDA1),
  601. SPRD_PINCTRL_PIN(SC9860_SCL1),
  602. SPRD_PINCTRL_PIN(SC9860_SIMCLK2),
  603. SPRD_PINCTRL_PIN(SC9860_SIMDA2),
  604. SPRD_PINCTRL_PIN(SC9860_SIMRST2),
  605. SPRD_PINCTRL_PIN(SC9860_SIMCLK1),
  606. SPRD_PINCTRL_PIN(SC9860_SIMDA1),
  607. SPRD_PINCTRL_PIN(SC9860_SIMRST1),
  608. SPRD_PINCTRL_PIN(SC9860_SIMCLK0),
  609. SPRD_PINCTRL_PIN(SC9860_SIMDA0),
  610. SPRD_PINCTRL_PIN(SC9860_SIMRST0),
  611. SPRD_PINCTRL_PIN(SC9860_SD2_CMD),
  612. SPRD_PINCTRL_PIN(SC9860_SD2_D0),
  613. SPRD_PINCTRL_PIN(SC9860_SD2_D1),
  614. SPRD_PINCTRL_PIN(SC9860_SD2_CLK),
  615. SPRD_PINCTRL_PIN(SC9860_SD2_D2),
  616. SPRD_PINCTRL_PIN(SC9860_SD2_D3),
  617. SPRD_PINCTRL_PIN(SC9860_SD0_D3),
  618. SPRD_PINCTRL_PIN(SC9860_SD0_D2),
  619. SPRD_PINCTRL_PIN(SC9860_SD0_CMD),
  620. SPRD_PINCTRL_PIN(SC9860_SD0_D0),
  621. SPRD_PINCTRL_PIN(SC9860_SD0_D1),
  622. SPRD_PINCTRL_PIN(SC9860_SD0_CLK),
  623. SPRD_PINCTRL_PIN(SC9860_EMMC_CMD),
  624. SPRD_PINCTRL_PIN(SC9860_EMMC_D6),
  625. SPRD_PINCTRL_PIN(SC9860_EMMC_D7),
  626. SPRD_PINCTRL_PIN(SC9860_EMMC_CLK),
  627. SPRD_PINCTRL_PIN(SC9860_EMMC_D5),
  628. SPRD_PINCTRL_PIN(SC9860_EMMC_D4),
  629. SPRD_PINCTRL_PIN(SC9860_EMMC_DS),
  630. SPRD_PINCTRL_PIN(SC9860_EMMC_D3),
  631. SPRD_PINCTRL_PIN(SC9860_EMMC_RST),
  632. SPRD_PINCTRL_PIN(SC9860_EMMC_D1),
  633. SPRD_PINCTRL_PIN(SC9860_EMMC_D2),
  634. SPRD_PINCTRL_PIN(SC9860_EMMC_D0),
  635. SPRD_PINCTRL_PIN(SC9860_IIS0DI),
  636. SPRD_PINCTRL_PIN(SC9860_IIS0DO),
  637. SPRD_PINCTRL_PIN(SC9860_IIS0CLK),
  638. SPRD_PINCTRL_PIN(SC9860_IIS0LRCK),
  639. SPRD_PINCTRL_PIN(SC9860_SD1_CLK),
  640. SPRD_PINCTRL_PIN(SC9860_SD1_CMD),
  641. SPRD_PINCTRL_PIN(SC9860_SD1_D0),
  642. SPRD_PINCTRL_PIN(SC9860_SD1_D1),
  643. SPRD_PINCTRL_PIN(SC9860_SD1_D2),
  644. SPRD_PINCTRL_PIN(SC9860_SD1_D3),
  645. SPRD_PINCTRL_PIN(SC9860_CLK_AUX0),
  646. SPRD_PINCTRL_PIN(SC9860_WIFI_COEXIST),
  647. SPRD_PINCTRL_PIN(SC9860_BEIDOU_COEXIST),
  648. SPRD_PINCTRL_PIN(SC9860_U3TXD),
  649. SPRD_PINCTRL_PIN(SC9860_U3RXD),
  650. SPRD_PINCTRL_PIN(SC9860_U3CTS),
  651. SPRD_PINCTRL_PIN(SC9860_U3RTS),
  652. SPRD_PINCTRL_PIN(SC9860_U0TXD),
  653. SPRD_PINCTRL_PIN(SC9860_U0RXD),
  654. SPRD_PINCTRL_PIN(SC9860_U0CTS),
  655. SPRD_PINCTRL_PIN(SC9860_U0RTS),
  656. SPRD_PINCTRL_PIN(SC9860_IIS1DI),
  657. SPRD_PINCTRL_PIN(SC9860_IIS1DO),
  658. SPRD_PINCTRL_PIN(SC9860_IIS1CLK),
  659. SPRD_PINCTRL_PIN(SC9860_IIS1LRCK),
  660. SPRD_PINCTRL_PIN(SC9860_SPI0_CSN),
  661. SPRD_PINCTRL_PIN(SC9860_SPI0_DO),
  662. SPRD_PINCTRL_PIN(SC9860_SPI0_DI),
  663. SPRD_PINCTRL_PIN(SC9860_SPI0_CLK),
  664. SPRD_PINCTRL_PIN(SC9860_U2TXD),
  665. SPRD_PINCTRL_PIN(SC9860_U2RXD),
  666. SPRD_PINCTRL_PIN(SC9860_U4TXD),
  667. SPRD_PINCTRL_PIN(SC9860_U4RXD),
  668. SPRD_PINCTRL_PIN(SC9860_CMMCLK1),
  669. SPRD_PINCTRL_PIN(SC9860_CMRST1),
  670. SPRD_PINCTRL_PIN(SC9860_CMMCLK0),
  671. SPRD_PINCTRL_PIN(SC9860_CMRST0),
  672. SPRD_PINCTRL_PIN(SC9860_CMPD0),
  673. SPRD_PINCTRL_PIN(SC9860_CMPD1),
  674. SPRD_PINCTRL_PIN(SC9860_SCL0),
  675. SPRD_PINCTRL_PIN(SC9860_SDA0),
  676. SPRD_PINCTRL_PIN(SC9860_SDA6),
  677. SPRD_PINCTRL_PIN(SC9860_SCL6),
  678. SPRD_PINCTRL_PIN(SC9860_U1TXD),
  679. SPRD_PINCTRL_PIN(SC9860_U1RXD),
  680. SPRD_PINCTRL_PIN(SC9860_KEYOUT0),
  681. SPRD_PINCTRL_PIN(SC9860_KEYOUT1),
  682. SPRD_PINCTRL_PIN(SC9860_KEYOUT2),
  683. SPRD_PINCTRL_PIN(SC9860_KEYIN0),
  684. SPRD_PINCTRL_PIN(SC9860_KEYIN1),
  685. SPRD_PINCTRL_PIN(SC9860_KEYIN2),
  686. SPRD_PINCTRL_PIN(SC9860_IIS3DI),
  687. SPRD_PINCTRL_PIN(SC9860_IIS3DO),
  688. SPRD_PINCTRL_PIN(SC9860_IIS3CLK),
  689. SPRD_PINCTRL_PIN(SC9860_IIS3LRCK),
  690. SPRD_PINCTRL_PIN(SC9860_RFCTL0),
  691. SPRD_PINCTRL_PIN(SC9860_RFCTL1),
  692. SPRD_PINCTRL_PIN(SC9860_RFCTL10),
  693. SPRD_PINCTRL_PIN(SC9860_RFCTL11),
  694. SPRD_PINCTRL_PIN(SC9860_RFCTL12),
  695. SPRD_PINCTRL_PIN(SC9860_RFCTL13),
  696. SPRD_PINCTRL_PIN(SC9860_RFCTL14),
  697. SPRD_PINCTRL_PIN(SC9860_RFCTL15),
  698. SPRD_PINCTRL_PIN(SC9860_RFCTL16),
  699. SPRD_PINCTRL_PIN(SC9860_RFCTL17),
  700. SPRD_PINCTRL_PIN(SC9860_RFCTL18),
  701. SPRD_PINCTRL_PIN(SC9860_RFCTL19),
  702. SPRD_PINCTRL_PIN(SC9860_RFCTL2),
  703. SPRD_PINCTRL_PIN(SC9860_EXTINT5),
  704. SPRD_PINCTRL_PIN(SC9860_EXTINT6),
  705. SPRD_PINCTRL_PIN(SC9860_EXTINT7),
  706. SPRD_PINCTRL_PIN(SC9860_GPIO30),
  707. SPRD_PINCTRL_PIN(SC9860_GPIO31),
  708. SPRD_PINCTRL_PIN(SC9860_GPIO32),
  709. SPRD_PINCTRL_PIN(SC9860_GPIO33),
  710. SPRD_PINCTRL_PIN(SC9860_GPIO34),
  711. SPRD_PINCTRL_PIN(SC9860_RFCTL3),
  712. SPRD_PINCTRL_PIN(SC9860_RFCTL4),
  713. SPRD_PINCTRL_PIN(SC9860_RFCTL5),
  714. SPRD_PINCTRL_PIN(SC9860_RFCTL6),
  715. SPRD_PINCTRL_PIN(SC9860_RFCTL7),
  716. SPRD_PINCTRL_PIN(SC9860_RFCTL8),
  717. SPRD_PINCTRL_PIN(SC9860_RFCTL9),
  718. SPRD_PINCTRL_PIN(SC9860_RFFE0_SCK0),
  719. SPRD_PINCTRL_PIN(SC9860_GPIO38),
  720. SPRD_PINCTRL_PIN(SC9860_RFFE0_SDA0),
  721. SPRD_PINCTRL_PIN(SC9860_GPIO39),
  722. SPRD_PINCTRL_PIN(SC9860_RFFE1_SCK0),
  723. SPRD_PINCTRL_PIN(SC9860_GPIO181),
  724. SPRD_PINCTRL_PIN(SC9860_RFFE1_SDA0),
  725. SPRD_PINCTRL_PIN(SC9860_GPIO182),
  726. SPRD_PINCTRL_PIN(SC9860_RF_LVDS0_ADC_ON),
  727. SPRD_PINCTRL_PIN(SC9860_RF_LVDS0_DAC_ON),
  728. SPRD_PINCTRL_PIN(SC9860_RFSCK0),
  729. SPRD_PINCTRL_PIN(SC9860_RFSDA0),
  730. SPRD_PINCTRL_PIN(SC9860_RFSEN0),
  731. SPRD_PINCTRL_PIN(SC9860_RF_LVDS1_ADC_ON),
  732. SPRD_PINCTRL_PIN(SC9860_RF_LVDS1_DAC_ON),
  733. SPRD_PINCTRL_PIN(SC9860_RFSCK1),
  734. SPRD_PINCTRL_PIN(SC9860_RFSDA1),
  735. SPRD_PINCTRL_PIN(SC9860_RFSEN1),
  736. SPRD_PINCTRL_PIN(SC9860_RFCTL38),
  737. SPRD_PINCTRL_PIN(SC9860_RFCTL39),
  738. SPRD_PINCTRL_PIN(SC9860_RFCTL20_MISC),
  739. SPRD_PINCTRL_PIN(SC9860_RFCTL21_MISC),
  740. SPRD_PINCTRL_PIN(SC9860_RFCTL30_MISC),
  741. SPRD_PINCTRL_PIN(SC9860_RFCTL31_MISC),
  742. SPRD_PINCTRL_PIN(SC9860_RFCTL32_MISC),
  743. SPRD_PINCTRL_PIN(SC9860_RFCTL33_MISC),
  744. SPRD_PINCTRL_PIN(SC9860_RFCTL34_MISC),
  745. SPRD_PINCTRL_PIN(SC9860_RFCTL35_MISC),
  746. SPRD_PINCTRL_PIN(SC9860_RFCTL36_MISC),
  747. SPRD_PINCTRL_PIN(SC9860_RFCTL37_MISC),
  748. SPRD_PINCTRL_PIN(SC9860_RFCTL22_MISC),
  749. SPRD_PINCTRL_PIN(SC9860_RFCTL23_MISC),
  750. SPRD_PINCTRL_PIN(SC9860_RFCTL24_MISC),
  751. SPRD_PINCTRL_PIN(SC9860_RFCTL25_MISC),
  752. SPRD_PINCTRL_PIN(SC9860_RFCTL26_MISC),
  753. SPRD_PINCTRL_PIN(SC9860_RFCTL27_MISC),
  754. SPRD_PINCTRL_PIN(SC9860_RFCTL28_MISC),
  755. SPRD_PINCTRL_PIN(SC9860_RFCTL29_MISC),
  756. SPRD_PINCTRL_PIN(SC9860_SCL2_MISC),
  757. SPRD_PINCTRL_PIN(SC9860_SDA2_MISC),
  758. SPRD_PINCTRL_PIN(SC9860_MTCK_ARM_MISC),
  759. SPRD_PINCTRL_PIN(SC9860_MTMS_ARM_MISC),
  760. SPRD_PINCTRL_PIN(SC9860_XTL_EN0_MISC),
  761. SPRD_PINCTRL_PIN(SC9860_PTEST_MISC),
  762. SPRD_PINCTRL_PIN(SC9860_AUD_DAD1_MISC),
  763. SPRD_PINCTRL_PIN(SC9860_AUD_ADD0_MISC),
  764. SPRD_PINCTRL_PIN(SC9860_AUD_ADSYNC_MISC),
  765. SPRD_PINCTRL_PIN(SC9860_AUD_SCLK_MISC),
  766. SPRD_PINCTRL_PIN(SC9860_CHIP_SLEEP_MISC),
  767. SPRD_PINCTRL_PIN(SC9860_CLK_32K_MISC),
  768. SPRD_PINCTRL_PIN(SC9860_DCDC_ARM_EN_MISC),
  769. SPRD_PINCTRL_PIN(SC9860_EXT_RST_B_MISC),
  770. SPRD_PINCTRL_PIN(SC9860_ADI_D_MISC),
  771. SPRD_PINCTRL_PIN(SC9860_ADI_SCLK_MISC),
  772. SPRD_PINCTRL_PIN(SC9860_XTL_EN1_MISC),
  773. SPRD_PINCTRL_PIN(SC9860_ANA_INT_MISC),
  774. SPRD_PINCTRL_PIN(SC9860_AUD_DAD0_MISC),
  775. SPRD_PINCTRL_PIN(SC9860_AUD_DASYNC_MISC),
  776. SPRD_PINCTRL_PIN(SC9860_LCM_RSTN_MISC),
  777. SPRD_PINCTRL_PIN(SC9860_DSI_TE_MISC),
  778. SPRD_PINCTRL_PIN(SC9860_PWMA_MISC),
  779. SPRD_PINCTRL_PIN(SC9860_EXTINT0_MISC),
  780. SPRD_PINCTRL_PIN(SC9860_EXTINT1_MISC),
  781. SPRD_PINCTRL_PIN(SC9860_SDA1_MISC),
  782. SPRD_PINCTRL_PIN(SC9860_SCL1_MISC),
  783. SPRD_PINCTRL_PIN(SC9860_SIMCLK2_MISC),
  784. SPRD_PINCTRL_PIN(SC9860_SIMDA2_MISC),
  785. SPRD_PINCTRL_PIN(SC9860_SIMRST2_MISC),
  786. SPRD_PINCTRL_PIN(SC9860_SIMCLK1_MISC),
  787. SPRD_PINCTRL_PIN(SC9860_SIMDA1_MISC),
  788. SPRD_PINCTRL_PIN(SC9860_SIMRST1_MISC),
  789. SPRD_PINCTRL_PIN(SC9860_SIMCLK0_MISC),
  790. SPRD_PINCTRL_PIN(SC9860_SIMDA0_MISC),
  791. SPRD_PINCTRL_PIN(SC9860_SIMRST0_MISC),
  792. SPRD_PINCTRL_PIN(SC9860_SD2_CMD_MISC),
  793. SPRD_PINCTRL_PIN(SC9860_SD2_D0_MISC),
  794. SPRD_PINCTRL_PIN(SC9860_SD2_D1_MISC),
  795. SPRD_PINCTRL_PIN(SC9860_SD2_CLK_MISC),
  796. SPRD_PINCTRL_PIN(SC9860_SD2_D2_MISC),
  797. SPRD_PINCTRL_PIN(SC9860_SD2_D3_MISC),
  798. SPRD_PINCTRL_PIN(SC9860_SD0_D3_MISC),
  799. SPRD_PINCTRL_PIN(SC9860_SD0_D2_MISC),
  800. SPRD_PINCTRL_PIN(SC9860_SD0_CMD_MISC),
  801. SPRD_PINCTRL_PIN(SC9860_SD0_D0_MISC),
  802. SPRD_PINCTRL_PIN(SC9860_SD0_D1_MISC),
  803. SPRD_PINCTRL_PIN(SC9860_SD0_CLK_MISC),
  804. SPRD_PINCTRL_PIN(SC9860_EMMC_CMD_MISC),
  805. SPRD_PINCTRL_PIN(SC9860_EMMC_D6_MISC),
  806. SPRD_PINCTRL_PIN(SC9860_EMMC_D7_MISC),
  807. SPRD_PINCTRL_PIN(SC9860_EMMC_CLK_MISC),
  808. SPRD_PINCTRL_PIN(SC9860_EMMC_D5_MISC),
  809. SPRD_PINCTRL_PIN(SC9860_EMMC_D4_MISC),
  810. SPRD_PINCTRL_PIN(SC9860_EMMC_DS_MISC),
  811. SPRD_PINCTRL_PIN(SC9860_EMMC_D3_MISC),
  812. SPRD_PINCTRL_PIN(SC9860_EMMC_RST_MISC),
  813. SPRD_PINCTRL_PIN(SC9860_EMMC_D1_MISC),
  814. SPRD_PINCTRL_PIN(SC9860_EMMC_D2_MISC),
  815. SPRD_PINCTRL_PIN(SC9860_EMMC_D0_MISC),
  816. SPRD_PINCTRL_PIN(SC9860_IIS0DI_MISC),
  817. SPRD_PINCTRL_PIN(SC9860_IIS0DO_MISC),
  818. SPRD_PINCTRL_PIN(SC9860_IIS0CLK_MISC),
  819. SPRD_PINCTRL_PIN(SC9860_IIS0LRCK_MISC),
  820. SPRD_PINCTRL_PIN(SC9860_SD1_CLK_MISC),
  821. SPRD_PINCTRL_PIN(SC9860_SD1_CMD_MISC),
  822. SPRD_PINCTRL_PIN(SC9860_SD1_D0_MISC),
  823. SPRD_PINCTRL_PIN(SC9860_SD1_D1_MISC),
  824. SPRD_PINCTRL_PIN(SC9860_SD1_D2_MISC),
  825. SPRD_PINCTRL_PIN(SC9860_SD1_D3_MISC),
  826. SPRD_PINCTRL_PIN(SC9860_CLK_AUX0_MISC),
  827. SPRD_PINCTRL_PIN(SC9860_WIFI_COEXIST_MISC),
  828. SPRD_PINCTRL_PIN(SC9860_BEIDOU_COEXIST_MISC),
  829. SPRD_PINCTRL_PIN(SC9860_U3TXD_MISC),
  830. SPRD_PINCTRL_PIN(SC9860_U3RXD_MISC),
  831. SPRD_PINCTRL_PIN(SC9860_U3CTS_MISC),
  832. SPRD_PINCTRL_PIN(SC9860_U3RTS_MISC),
  833. SPRD_PINCTRL_PIN(SC9860_U0TXD_MISC),
  834. SPRD_PINCTRL_PIN(SC9860_U0RXD_MISC),
  835. SPRD_PINCTRL_PIN(SC9860_U0CTS_MISC),
  836. SPRD_PINCTRL_PIN(SC9860_U0RTS_MISC),
  837. SPRD_PINCTRL_PIN(SC9860_IIS1DI_MISC),
  838. SPRD_PINCTRL_PIN(SC9860_IIS1DO_MISC),
  839. SPRD_PINCTRL_PIN(SC9860_IIS1CLK_MISC),
  840. SPRD_PINCTRL_PIN(SC9860_IIS1LRCK_MISC),
  841. SPRD_PINCTRL_PIN(SC9860_SPI0_CSN_MISC),
  842. SPRD_PINCTRL_PIN(SC9860_SPI0_DO_MISC),
  843. SPRD_PINCTRL_PIN(SC9860_SPI0_DI_MISC),
  844. SPRD_PINCTRL_PIN(SC9860_SPI0_CLK_MISC),
  845. SPRD_PINCTRL_PIN(SC9860_U2TXD_MISC),
  846. SPRD_PINCTRL_PIN(SC9860_U2RXD_MISC),
  847. SPRD_PINCTRL_PIN(SC9860_U4TXD_MISC),
  848. SPRD_PINCTRL_PIN(SC9860_U4RXD_MISC),
  849. SPRD_PINCTRL_PIN(SC9860_CMMCLK1_MISC),
  850. SPRD_PINCTRL_PIN(SC9860_CMRST1_MISC),
  851. SPRD_PINCTRL_PIN(SC9860_CMMCLK0_MISC),
  852. SPRD_PINCTRL_PIN(SC9860_CMRST0_MISC),
  853. SPRD_PINCTRL_PIN(SC9860_CMPD0_MISC),
  854. SPRD_PINCTRL_PIN(SC9860_CMPD1_MISC),
  855. SPRD_PINCTRL_PIN(SC9860_SCL0_MISC),
  856. SPRD_PINCTRL_PIN(SC9860_SDA0_MISC),
  857. SPRD_PINCTRL_PIN(SC9860_SDA6_MISC),
  858. SPRD_PINCTRL_PIN(SC9860_SCL6_MISC),
  859. SPRD_PINCTRL_PIN(SC9860_U1TXD_MISC),
  860. SPRD_PINCTRL_PIN(SC9860_U1RXD_MISC),
  861. SPRD_PINCTRL_PIN(SC9860_KEYOUT0_MISC),
  862. SPRD_PINCTRL_PIN(SC9860_KEYOUT1_MISC),
  863. SPRD_PINCTRL_PIN(SC9860_KEYOUT2_MISC),
  864. SPRD_PINCTRL_PIN(SC9860_KEYIN0_MISC),
  865. SPRD_PINCTRL_PIN(SC9860_KEYIN1_MISC),
  866. SPRD_PINCTRL_PIN(SC9860_KEYIN2_MISC),
  867. SPRD_PINCTRL_PIN(SC9860_IIS3DI_MISC),
  868. SPRD_PINCTRL_PIN(SC9860_IIS3DO_MISC),
  869. SPRD_PINCTRL_PIN(SC9860_IIS3CLK_MISC),
  870. SPRD_PINCTRL_PIN(SC9860_IIS3LRCK_MISC),
  871. SPRD_PINCTRL_PIN(SC9860_RFCTL0_MISC),
  872. SPRD_PINCTRL_PIN(SC9860_RFCTL1_MISC),
  873. SPRD_PINCTRL_PIN(SC9860_RFCTL10_MISC),
  874. SPRD_PINCTRL_PIN(SC9860_RFCTL11_MISC),
  875. SPRD_PINCTRL_PIN(SC9860_RFCTL12_MISC),
  876. SPRD_PINCTRL_PIN(SC9860_RFCTL13_MISC),
  877. SPRD_PINCTRL_PIN(SC9860_RFCTL14_MISC),
  878. SPRD_PINCTRL_PIN(SC9860_RFCTL15_MISC),
  879. SPRD_PINCTRL_PIN(SC9860_RFCTL16_MISC),
  880. SPRD_PINCTRL_PIN(SC9860_RFCTL17_MISC),
  881. SPRD_PINCTRL_PIN(SC9860_RFCTL18_MISC),
  882. SPRD_PINCTRL_PIN(SC9860_RFCTL19_MISC),
  883. SPRD_PINCTRL_PIN(SC9860_RFCTL2_MISC),
  884. SPRD_PINCTRL_PIN(SC9860_EXTINT5_MISC),
  885. SPRD_PINCTRL_PIN(SC9860_EXTINT6_MISC),
  886. SPRD_PINCTRL_PIN(SC9860_EXTINT7_MISC),
  887. SPRD_PINCTRL_PIN(SC9860_GPIO30_MISC),
  888. SPRD_PINCTRL_PIN(SC9860_GPIO31_MISC),
  889. SPRD_PINCTRL_PIN(SC9860_GPIO32_MISC),
  890. SPRD_PINCTRL_PIN(SC9860_GPIO33_MISC),
  891. SPRD_PINCTRL_PIN(SC9860_GPIO34_MISC),
  892. SPRD_PINCTRL_PIN(SC9860_RFCTL3_MISC),
  893. SPRD_PINCTRL_PIN(SC9860_RFCTL4_MISC),
  894. SPRD_PINCTRL_PIN(SC9860_RFCTL5_MISC),
  895. SPRD_PINCTRL_PIN(SC9860_RFCTL6_MISC),
  896. SPRD_PINCTRL_PIN(SC9860_RFCTL7_MISC),
  897. SPRD_PINCTRL_PIN(SC9860_RFCTL8_MISC),
  898. SPRD_PINCTRL_PIN(SC9860_RFCTL9_MISC),
  899. SPRD_PINCTRL_PIN(SC9860_RFFE0_SCK0_MISC),
  900. SPRD_PINCTRL_PIN(SC9860_GPIO38_MISC),
  901. SPRD_PINCTRL_PIN(SC9860_RFFE0_SDA0_MISC),
  902. SPRD_PINCTRL_PIN(SC9860_GPIO39_MISC),
  903. SPRD_PINCTRL_PIN(SC9860_RFFE1_SCK0_MISC),
  904. SPRD_PINCTRL_PIN(SC9860_GPIO181_MISC),
  905. SPRD_PINCTRL_PIN(SC9860_RFFE1_SDA0_MISC),
  906. SPRD_PINCTRL_PIN(SC9860_GPIO182_MISC),
  907. SPRD_PINCTRL_PIN(SC9860_RF_LVDS0_ADC_ON_MISC),
  908. SPRD_PINCTRL_PIN(SC9860_RF_LVDS0_DAC_ON_MISC),
  909. SPRD_PINCTRL_PIN(SC9860_RFSCK0_MISC),
  910. SPRD_PINCTRL_PIN(SC9860_RFSDA0_MISC),
  911. SPRD_PINCTRL_PIN(SC9860_RFSEN0_MISC),
  912. SPRD_PINCTRL_PIN(SC9860_RF_LVDS1_ADC_ON_MISC),
  913. SPRD_PINCTRL_PIN(SC9860_RF_LVDS1_DAC_ON_MISC),
  914. SPRD_PINCTRL_PIN(SC9860_RFSCK1_MISC),
  915. SPRD_PINCTRL_PIN(SC9860_RFSDA1_MISC),
  916. SPRD_PINCTRL_PIN(SC9860_RFSEN1_MISC),
  917. SPRD_PINCTRL_PIN(SC9860_RFCTL38_MISC),
  918. SPRD_PINCTRL_PIN(SC9860_RFCTL39_MISC),
  919. };
  920. static int sprd_pinctrl_probe(struct platform_device *pdev)
  921. {
  922. return sprd_pinctrl_core_probe(pdev, sprd_sc9860_pins_info,
  923. ARRAY_SIZE(sprd_sc9860_pins_info));
  924. }
  925. static const struct of_device_id sprd_pinctrl_of_match[] = {
  926. {
  927. .compatible = "sprd,sc9860-pinctrl",
  928. },
  929. { },
  930. };
  931. MODULE_DEVICE_TABLE(of, sprd_pinctrl_of_match);
  932. static struct platform_driver sprd_pinctrl_driver = {
  933. .driver = {
  934. .name = "sprd-pinctrl",
  935. .owner = THIS_MODULE,
  936. .of_match_table = sprd_pinctrl_of_match,
  937. },
  938. .probe = sprd_pinctrl_probe,
  939. .remove = sprd_pinctrl_remove,
  940. .shutdown = sprd_pinctrl_shutdown,
  941. };
  942. static int sprd_pinctrl_init(void)
  943. {
  944. return platform_driver_register(&sprd_pinctrl_driver);
  945. }
  946. module_init(sprd_pinctrl_init);
  947. static void sprd_pinctrl_exit(void)
  948. {
  949. platform_driver_unregister(&sprd_pinctrl_driver);
  950. }
  951. module_exit(sprd_pinctrl_exit);
  952. MODULE_DESCRIPTION("SPREADTRUM Pin Controller Driver");
  953. MODULE_AUTHOR("Baolin Wang <baolin.wang@spreadtrum.com>");
  954. MODULE_LICENSE("GPL v2");