pinctrl-meson-a1.c 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939
  1. // SPDX-License-Identifier: (GPL-2.0+ OR MIT)
  2. /*
  3. * Pin controller and GPIO driver for Amlogic Meson A1 SoC.
  4. *
  5. * Copyright (c) 2019 Amlogic, Inc. All rights reserved.
  6. * Author: Qianggui Song <qianggui.song@amlogic.com>
  7. */
  8. #include <dt-bindings/gpio/meson-a1-gpio.h>
  9. #include "pinctrl-meson.h"
  10. #include "pinctrl-meson-axg-pmx.h"
  11. static const struct pinctrl_pin_desc meson_a1_periphs_pins[] = {
  12. MESON_PIN(GPIOP_0),
  13. MESON_PIN(GPIOP_1),
  14. MESON_PIN(GPIOP_2),
  15. MESON_PIN(GPIOP_3),
  16. MESON_PIN(GPIOP_4),
  17. MESON_PIN(GPIOP_5),
  18. MESON_PIN(GPIOP_6),
  19. MESON_PIN(GPIOP_7),
  20. MESON_PIN(GPIOP_8),
  21. MESON_PIN(GPIOP_9),
  22. MESON_PIN(GPIOP_10),
  23. MESON_PIN(GPIOP_11),
  24. MESON_PIN(GPIOP_12),
  25. MESON_PIN(GPIOB_0),
  26. MESON_PIN(GPIOB_1),
  27. MESON_PIN(GPIOB_2),
  28. MESON_PIN(GPIOB_3),
  29. MESON_PIN(GPIOB_4),
  30. MESON_PIN(GPIOB_5),
  31. MESON_PIN(GPIOB_6),
  32. MESON_PIN(GPIOX_0),
  33. MESON_PIN(GPIOX_1),
  34. MESON_PIN(GPIOX_2),
  35. MESON_PIN(GPIOX_3),
  36. MESON_PIN(GPIOX_4),
  37. MESON_PIN(GPIOX_5),
  38. MESON_PIN(GPIOX_6),
  39. MESON_PIN(GPIOX_7),
  40. MESON_PIN(GPIOX_8),
  41. MESON_PIN(GPIOX_9),
  42. MESON_PIN(GPIOX_10),
  43. MESON_PIN(GPIOX_11),
  44. MESON_PIN(GPIOX_12),
  45. MESON_PIN(GPIOX_13),
  46. MESON_PIN(GPIOX_14),
  47. MESON_PIN(GPIOX_15),
  48. MESON_PIN(GPIOX_16),
  49. MESON_PIN(GPIOF_0),
  50. MESON_PIN(GPIOF_1),
  51. MESON_PIN(GPIOF_2),
  52. MESON_PIN(GPIOF_3),
  53. MESON_PIN(GPIOF_4),
  54. MESON_PIN(GPIOF_5),
  55. MESON_PIN(GPIOF_6),
  56. MESON_PIN(GPIOF_7),
  57. MESON_PIN(GPIOF_8),
  58. MESON_PIN(GPIOF_9),
  59. MESON_PIN(GPIOF_10),
  60. MESON_PIN(GPIOF_11),
  61. MESON_PIN(GPIOF_12),
  62. MESON_PIN(GPIOA_0),
  63. MESON_PIN(GPIOA_1),
  64. MESON_PIN(GPIOA_2),
  65. MESON_PIN(GPIOA_3),
  66. MESON_PIN(GPIOA_4),
  67. MESON_PIN(GPIOA_5),
  68. MESON_PIN(GPIOA_6),
  69. MESON_PIN(GPIOA_7),
  70. MESON_PIN(GPIOA_8),
  71. MESON_PIN(GPIOA_9),
  72. MESON_PIN(GPIOA_10),
  73. MESON_PIN(GPIOA_11),
  74. };
  75. /* psram */
  76. static const unsigned int psram_clkn_pins[] = { GPIOP_0 };
  77. static const unsigned int psram_clkp_pins[] = { GPIOP_1 };
  78. static const unsigned int psram_ce_n_pins[] = { GPIOP_2 };
  79. static const unsigned int psram_rst_n_pins[] = { GPIOP_3 };
  80. static const unsigned int psram_adq0_pins[] = { GPIOP_4 };
  81. static const unsigned int psram_adq1_pins[] = { GPIOP_5 };
  82. static const unsigned int psram_adq2_pins[] = { GPIOP_6 };
  83. static const unsigned int psram_adq3_pins[] = { GPIOP_7 };
  84. static const unsigned int psram_adq4_pins[] = { GPIOP_8 };
  85. static const unsigned int psram_adq5_pins[] = { GPIOP_9 };
  86. static const unsigned int psram_adq6_pins[] = { GPIOP_10 };
  87. static const unsigned int psram_adq7_pins[] = { GPIOP_11 };
  88. static const unsigned int psram_dqs_dm_pins[] = { GPIOP_12 };
  89. /* sdcard */
  90. static const unsigned int sdcard_d0_b_pins[] = { GPIOB_0 };
  91. static const unsigned int sdcard_d1_b_pins[] = { GPIOB_1 };
  92. static const unsigned int sdcard_d2_b_pins[] = { GPIOB_2 };
  93. static const unsigned int sdcard_d3_b_pins[] = { GPIOB_3 };
  94. static const unsigned int sdcard_clk_b_pins[] = { GPIOB_4 };
  95. static const unsigned int sdcard_cmd_b_pins[] = { GPIOB_5 };
  96. static const unsigned int sdcard_d0_x_pins[] = { GPIOX_0 };
  97. static const unsigned int sdcard_d1_x_pins[] = { GPIOX_1 };
  98. static const unsigned int sdcard_d2_x_pins[] = { GPIOX_2 };
  99. static const unsigned int sdcard_d3_x_pins[] = { GPIOX_3 };
  100. static const unsigned int sdcard_clk_x_pins[] = { GPIOX_4 };
  101. static const unsigned int sdcard_cmd_x_pins[] = { GPIOX_5 };
  102. /* spif */
  103. static const unsigned int spif_mo_pins[] = { GPIOB_0 };
  104. static const unsigned int spif_mi_pins[] = { GPIOB_1 };
  105. static const unsigned int spif_wp_n_pins[] = { GPIOB_2 };
  106. static const unsigned int spif_hold_n_pins[] = { GPIOB_3 };
  107. static const unsigned int spif_clk_pins[] = { GPIOB_4 };
  108. static const unsigned int spif_cs_pins[] = { GPIOB_5 };
  109. /* i2c0 */
  110. static const unsigned int i2c0_sck_f9_pins[] = { GPIOF_9 };
  111. static const unsigned int i2c0_sda_f10_pins[] = { GPIOF_10 };
  112. static const unsigned int i2c0_sck_f11_pins[] = { GPIOF_11 };
  113. static const unsigned int i2c0_sda_f12_pins[] = { GPIOF_12 };
  114. /* i2c1 */
  115. static const unsigned int i2c1_sda_x_pins[] = { GPIOX_9 };
  116. static const unsigned int i2c1_sck_x_pins[] = { GPIOX_10 };
  117. static const unsigned int i2c1_sda_a_pins[] = { GPIOA_10 };
  118. static const unsigned int i2c1_sck_a_pins[] = { GPIOA_11 };
  119. /* i2c2 */
  120. static const unsigned int i2c2_sck_x0_pins[] = { GPIOX_0 };
  121. static const unsigned int i2c2_sda_x1_pins[] = { GPIOX_1 };
  122. static const unsigned int i2c2_sck_x15_pins[] = { GPIOX_15 };
  123. static const unsigned int i2c2_sda_x16_pins[] = { GPIOX_16 };
  124. static const unsigned int i2c2_sck_a4_pins[] = { GPIOA_4 };
  125. static const unsigned int i2c2_sda_a5_pins[] = { GPIOA_5 };
  126. static const unsigned int i2c2_sck_a8_pins[] = { GPIOA_8 };
  127. static const unsigned int i2c2_sda_a9_pins[] = { GPIOA_9 };
  128. /* i2c3 */
  129. static const unsigned int i2c3_sck_f_pins[] = { GPIOF_4 };
  130. static const unsigned int i2c3_sda_f_pins[] = { GPIOF_5 };
  131. static const unsigned int i2c3_sck_x_pins[] = { GPIOX_11 };
  132. static const unsigned int i2c3_sda_x_pins[] = { GPIOX_12 };
  133. /* i2c slave */
  134. static const unsigned int i2c_slave_sck_a_pins[] = { GPIOA_10 };
  135. static const unsigned int i2c_slave_sda_a_pins[] = { GPIOA_11 };
  136. static const unsigned int i2c_slave_sck_f_pins[] = { GPIOF_11 };
  137. static const unsigned int i2c_slave_sda_f_pins[] = { GPIOF_12 };
  138. /* uart_a */
  139. static const unsigned int uart_a_tx_pins[] = { GPIOX_11 };
  140. static const unsigned int uart_a_rx_pins[] = { GPIOX_12 };
  141. static const unsigned int uart_a_cts_pins[] = { GPIOX_13 };
  142. static const unsigned int uart_a_rts_pins[] = { GPIOX_14 };
  143. /* uart_b */
  144. static const unsigned int uart_b_tx_x_pins[] = { GPIOX_7 };
  145. static const unsigned int uart_b_rx_x_pins[] = { GPIOX_8 };
  146. static const unsigned int uart_b_tx_f_pins[] = { GPIOF_0 };
  147. static const unsigned int uart_b_rx_f_pins[] = { GPIOF_1 };
  148. /* uart_c */
  149. static const unsigned int uart_c_tx_x0_pins[] = { GPIOX_0 };
  150. static const unsigned int uart_c_rx_x1_pins[] = { GPIOX_1 };
  151. static const unsigned int uart_c_cts_pins[] = { GPIOX_2 };
  152. static const unsigned int uart_c_rts_pins[] = { GPIOX_3 };
  153. static const unsigned int uart_c_tx_x15_pins[] = { GPIOX_15 };
  154. static const unsigned int uart_c_rx_x16_pins[] = { GPIOX_16 };
  155. /* pmw_a */
  156. static const unsigned int pwm_a_x6_pins[] = { GPIOX_6 };
  157. static const unsigned int pwm_a_x7_pins[] = { GPIOX_7 };
  158. static const unsigned int pwm_a_f6_pins[] = { GPIOF_6 };
  159. static const unsigned int pwm_a_f10_pins[] = { GPIOF_10 };
  160. static const unsigned int pwm_a_a_pins[] = { GPIOA_5 };
  161. /* pmw_b */
  162. static const unsigned int pwm_b_x_pins[] = { GPIOX_8 };
  163. static const unsigned int pwm_b_f_pins[] = { GPIOF_7 };
  164. static const unsigned int pwm_b_a_pins[] = { GPIOA_11 };
  165. /* pmw_c */
  166. static const unsigned int pwm_c_x_pins[] = { GPIOX_9 };
  167. static const unsigned int pwm_c_f3_pins[] = { GPIOF_3 };
  168. static const unsigned int pwm_c_f8_pins[] = { GPIOF_8 };
  169. static const unsigned int pwm_c_a_pins[] = { GPIOA_10 };
  170. /* pwm_d */
  171. static const unsigned int pwm_d_x10_pins[] = { GPIOX_10 };
  172. static const unsigned int pwm_d_x13_pins[] = { GPIOX_13 };
  173. static const unsigned int pwm_d_x15_pins[] = { GPIOX_15 };
  174. static const unsigned int pwm_d_f_pins[] = { GPIOF_11 };
  175. /* pwm_e */
  176. static const unsigned int pwm_e_p_pins[] = { GPIOP_3 };
  177. static const unsigned int pwm_e_x2_pins[] = { GPIOX_2 };
  178. static const unsigned int pwm_e_x14_pins[] = { GPIOX_14 };
  179. static const unsigned int pwm_e_x16_pins[] = { GPIOX_16 };
  180. static const unsigned int pwm_e_f_pins[] = { GPIOF_3 };
  181. static const unsigned int pwm_e_a_pins[] = { GPIOA_0 };
  182. /* pwm_f */
  183. static const unsigned int pwm_f_b_pins[] = { GPIOB_6 };
  184. static const unsigned int pwm_f_x_pins[] = { GPIOX_3 };
  185. static const unsigned int pwm_f_f4_pins[] = { GPIOF_4 };
  186. static const unsigned int pwm_f_f12_pins[] = { GPIOF_12 };
  187. /* pwm_a_hiz */
  188. static const unsigned int pwm_a_hiz_f8_pins[] = { GPIOF_8 };
  189. static const unsigned int pwm_a_hiz_f10_pins[] = { GPIOF_10 };
  190. static const unsigned int pmw_a_hiz_f6_pins[] = { GPIOF_6 };
  191. /* pwm_b_hiz */
  192. static const unsigned int pwm_b_hiz_pins[] = { GPIOF_7 };
  193. /* pmw_c_hiz */
  194. static const unsigned int pwm_c_hiz_pins[] = { GPIOF_8 };
  195. /* tdm_a */
  196. static const unsigned int tdm_a_dout1_pins[] = { GPIOX_7 };
  197. static const unsigned int tdm_a_dout0_pins[] = { GPIOX_8 };
  198. static const unsigned int tdm_a_fs_pins[] = { GPIOX_9 };
  199. static const unsigned int tdm_a_sclk_pins[] = { GPIOX_10 };
  200. static const unsigned int tdm_a_din1_pins[] = { GPIOX_7 };
  201. static const unsigned int tdm_a_din0_pins[] = { GPIOX_8 };
  202. static const unsigned int tdm_a_slv_fs_pins[] = { GPIOX_9 };
  203. static const unsigned int tdm_a_slv_sclk_pins[] = { GPIOX_10 };
  204. /* spi_a */
  205. static const unsigned int spi_a_mosi_x2_pins[] = { GPIOX_2 };
  206. static const unsigned int spi_a_ss0_x3_pins[] = { GPIOX_3 };
  207. static const unsigned int spi_a_sclk_x4_pins[] = { GPIOX_4 };
  208. static const unsigned int spi_a_miso_x5_pins[] = { GPIOX_5 };
  209. static const unsigned int spi_a_mosi_x7_pins[] = { GPIOX_7 };
  210. static const unsigned int spi_a_miso_x8_pins[] = { GPIOX_8 };
  211. static const unsigned int spi_a_ss0_x9_pins[] = { GPIOX_9 };
  212. static const unsigned int spi_a_sclk_x10_pins[] = { GPIOX_10 };
  213. static const unsigned int spi_a_mosi_a_pins[] = { GPIOA_6 };
  214. static const unsigned int spi_a_miso_a_pins[] = { GPIOA_7 };
  215. static const unsigned int spi_a_ss0_a_pins[] = { GPIOA_8 };
  216. static const unsigned int spi_a_sclk_a_pins[] = { GPIOA_9 };
  217. /* pdm */
  218. static const unsigned int pdm_din0_x_pins[] = { GPIOX_7 };
  219. static const unsigned int pdm_din1_x_pins[] = { GPIOX_8 };
  220. static const unsigned int pdm_din2_x_pins[] = { GPIOX_9 };
  221. static const unsigned int pdm_dclk_x_pins[] = { GPIOX_10 };
  222. static const unsigned int pdm_din2_a_pins[] = { GPIOA_6 };
  223. static const unsigned int pdm_din1_a_pins[] = { GPIOA_7 };
  224. static const unsigned int pdm_din0_a_pins[] = { GPIOA_8 };
  225. static const unsigned int pdm_dclk_pins[] = { GPIOA_9 };
  226. /* gen_clk */
  227. static const unsigned int gen_clk_x_pins[] = { GPIOX_7 };
  228. static const unsigned int gen_clk_f8_pins[] = { GPIOF_8 };
  229. static const unsigned int gen_clk_f10_pins[] = { GPIOF_10 };
  230. static const unsigned int gen_clk_a_pins[] = { GPIOA_11 };
  231. /* jtag_a */
  232. static const unsigned int jtag_a_clk_pins[] = { GPIOF_4 };
  233. static const unsigned int jtag_a_tms_pins[] = { GPIOF_5 };
  234. static const unsigned int jtag_a_tdi_pins[] = { GPIOF_6 };
  235. static const unsigned int jtag_a_tdo_pins[] = { GPIOF_7 };
  236. /* clk_32_in */
  237. static const unsigned int clk_32k_in_pins[] = { GPIOF_2 };
  238. /* ir in */
  239. static const unsigned int remote_input_f_pins[] = { GPIOF_3 };
  240. static const unsigned int remote_input_a_pins[] = { GPIOA_11 };
  241. /* ir out */
  242. static const unsigned int remote_out_pins[] = { GPIOF_5 };
  243. /* spdif */
  244. static const unsigned int spdif_in_f6_pins[] = { GPIOF_6 };
  245. static const unsigned int spdif_in_f7_pins[] = { GPIOF_7 };
  246. /* sw */
  247. static const unsigned int swclk_pins[] = { GPIOF_4 };
  248. static const unsigned int swdio_pins[] = { GPIOF_5 };
  249. /* clk_25 */
  250. static const unsigned int clk25_pins[] = { GPIOF_10 };
  251. /* cec_a */
  252. static const unsigned int cec_a_pins[] = { GPIOF_2 };
  253. /* cec_b */
  254. static const unsigned int cec_b_pins[] = { GPIOF_2 };
  255. /* clk12_24 */
  256. static const unsigned int clk12_24_pins[] = { GPIOF_10 };
  257. /* mclk_0 */
  258. static const unsigned int mclk_0_pins[] = { GPIOA_0 };
  259. /* tdm_b */
  260. static const unsigned int tdm_b_sclk_pins[] = { GPIOA_1 };
  261. static const unsigned int tdm_b_fs_pins[] = { GPIOA_2 };
  262. static const unsigned int tdm_b_dout0_pins[] = { GPIOA_3 };
  263. static const unsigned int tdm_b_dout1_pins[] = { GPIOA_4 };
  264. static const unsigned int tdm_b_dout2_pins[] = { GPIOA_5 };
  265. static const unsigned int tdm_b_dout3_pins[] = { GPIOA_6 };
  266. static const unsigned int tdm_b_dout4_pins[] = { GPIOA_7 };
  267. static const unsigned int tdm_b_dout5_pins[] = { GPIOA_8 };
  268. static const unsigned int tdm_b_slv_sclk_pins[] = { GPIOA_5 };
  269. static const unsigned int tdm_b_slv_fs_pins[] = { GPIOA_6 };
  270. static const unsigned int tdm_b_din0_pins[] = { GPIOA_7 };
  271. static const unsigned int tdm_b_din1_pins[] = { GPIOA_8 };
  272. static const unsigned int tdm_b_din2_pins[] = { GPIOA_9 };
  273. /* mclk_vad */
  274. static const unsigned int mclk_vad_pins[] = { GPIOA_0 };
  275. /* tdm_vad */
  276. static const unsigned int tdm_vad_sclk_a1_pins[] = { GPIOA_1 };
  277. static const unsigned int tdm_vad_fs_a2_pins[] = { GPIOA_2 };
  278. static const unsigned int tdm_vad_sclk_a5_pins[] = { GPIOA_5 };
  279. static const unsigned int tdm_vad_fs_a6_pins[] = { GPIOA_6 };
  280. /* tst_out */
  281. static const unsigned int tst_out0_pins[] = { GPIOA_0 };
  282. static const unsigned int tst_out1_pins[] = { GPIOA_1 };
  283. static const unsigned int tst_out2_pins[] = { GPIOA_2 };
  284. static const unsigned int tst_out3_pins[] = { GPIOA_3 };
  285. static const unsigned int tst_out4_pins[] = { GPIOA_4 };
  286. static const unsigned int tst_out5_pins[] = { GPIOA_5 };
  287. static const unsigned int tst_out6_pins[] = { GPIOA_6 };
  288. static const unsigned int tst_out7_pins[] = { GPIOA_7 };
  289. static const unsigned int tst_out8_pins[] = { GPIOA_8 };
  290. static const unsigned int tst_out9_pins[] = { GPIOA_9 };
  291. static const unsigned int tst_out10_pins[] = { GPIOA_10 };
  292. static const unsigned int tst_out11_pins[] = { GPIOA_11 };
  293. /* mute */
  294. static const unsigned int mute_key_pins[] = { GPIOA_4 };
  295. static const unsigned int mute_en_pins[] = { GPIOA_5 };
  296. static struct meson_pmx_group meson_a1_periphs_groups[] = {
  297. GPIO_GROUP(GPIOP_0),
  298. GPIO_GROUP(GPIOP_1),
  299. GPIO_GROUP(GPIOP_2),
  300. GPIO_GROUP(GPIOP_3),
  301. GPIO_GROUP(GPIOP_4),
  302. GPIO_GROUP(GPIOP_5),
  303. GPIO_GROUP(GPIOP_6),
  304. GPIO_GROUP(GPIOP_7),
  305. GPIO_GROUP(GPIOP_8),
  306. GPIO_GROUP(GPIOP_9),
  307. GPIO_GROUP(GPIOP_10),
  308. GPIO_GROUP(GPIOP_11),
  309. GPIO_GROUP(GPIOP_12),
  310. GPIO_GROUP(GPIOB_0),
  311. GPIO_GROUP(GPIOB_1),
  312. GPIO_GROUP(GPIOB_2),
  313. GPIO_GROUP(GPIOB_3),
  314. GPIO_GROUP(GPIOB_4),
  315. GPIO_GROUP(GPIOB_5),
  316. GPIO_GROUP(GPIOB_6),
  317. GPIO_GROUP(GPIOX_0),
  318. GPIO_GROUP(GPIOX_1),
  319. GPIO_GROUP(GPIOX_2),
  320. GPIO_GROUP(GPIOX_3),
  321. GPIO_GROUP(GPIOX_4),
  322. GPIO_GROUP(GPIOX_5),
  323. GPIO_GROUP(GPIOX_6),
  324. GPIO_GROUP(GPIOX_7),
  325. GPIO_GROUP(GPIOX_8),
  326. GPIO_GROUP(GPIOX_9),
  327. GPIO_GROUP(GPIOX_10),
  328. GPIO_GROUP(GPIOX_11),
  329. GPIO_GROUP(GPIOX_12),
  330. GPIO_GROUP(GPIOX_13),
  331. GPIO_GROUP(GPIOX_14),
  332. GPIO_GROUP(GPIOX_15),
  333. GPIO_GROUP(GPIOX_16),
  334. GPIO_GROUP(GPIOF_0),
  335. GPIO_GROUP(GPIOF_1),
  336. GPIO_GROUP(GPIOF_2),
  337. GPIO_GROUP(GPIOF_3),
  338. GPIO_GROUP(GPIOF_4),
  339. GPIO_GROUP(GPIOF_5),
  340. GPIO_GROUP(GPIOF_6),
  341. GPIO_GROUP(GPIOF_7),
  342. GPIO_GROUP(GPIOF_8),
  343. GPIO_GROUP(GPIOF_9),
  344. GPIO_GROUP(GPIOF_10),
  345. GPIO_GROUP(GPIOF_11),
  346. GPIO_GROUP(GPIOF_12),
  347. GPIO_GROUP(GPIOA_0),
  348. GPIO_GROUP(GPIOA_1),
  349. GPIO_GROUP(GPIOA_2),
  350. GPIO_GROUP(GPIOA_3),
  351. GPIO_GROUP(GPIOA_4),
  352. GPIO_GROUP(GPIOA_5),
  353. GPIO_GROUP(GPIOA_6),
  354. GPIO_GROUP(GPIOA_7),
  355. GPIO_GROUP(GPIOA_8),
  356. GPIO_GROUP(GPIOA_9),
  357. GPIO_GROUP(GPIOA_10),
  358. GPIO_GROUP(GPIOA_11),
  359. /* bank P func1 */
  360. GROUP(psram_clkn, 1),
  361. GROUP(psram_clkp, 1),
  362. GROUP(psram_ce_n, 1),
  363. GROUP(psram_rst_n, 1),
  364. GROUP(psram_adq0, 1),
  365. GROUP(psram_adq1, 1),
  366. GROUP(psram_adq2, 1),
  367. GROUP(psram_adq3, 1),
  368. GROUP(psram_adq4, 1),
  369. GROUP(psram_adq5, 1),
  370. GROUP(psram_adq6, 1),
  371. GROUP(psram_adq7, 1),
  372. GROUP(psram_dqs_dm, 1),
  373. /*bank P func2 */
  374. GROUP(pwm_e_p, 2),
  375. /*bank B func1 */
  376. GROUP(spif_mo, 1),
  377. GROUP(spif_mi, 1),
  378. GROUP(spif_wp_n, 1),
  379. GROUP(spif_hold_n, 1),
  380. GROUP(spif_clk, 1),
  381. GROUP(spif_cs, 1),
  382. GROUP(pwm_f_b, 1),
  383. /*bank B func2 */
  384. GROUP(sdcard_d0_b, 2),
  385. GROUP(sdcard_d1_b, 2),
  386. GROUP(sdcard_d2_b, 2),
  387. GROUP(sdcard_d3_b, 2),
  388. GROUP(sdcard_clk_b, 2),
  389. GROUP(sdcard_cmd_b, 2),
  390. /*bank X func1 */
  391. GROUP(sdcard_d0_x, 1),
  392. GROUP(sdcard_d1_x, 1),
  393. GROUP(sdcard_d2_x, 1),
  394. GROUP(sdcard_d3_x, 1),
  395. GROUP(sdcard_clk_x, 1),
  396. GROUP(sdcard_cmd_x, 1),
  397. GROUP(pwm_a_x6, 1),
  398. GROUP(tdm_a_dout1, 1),
  399. GROUP(tdm_a_dout0, 1),
  400. GROUP(tdm_a_fs, 1),
  401. GROUP(tdm_a_sclk, 1),
  402. GROUP(uart_a_tx, 1),
  403. GROUP(uart_a_rx, 1),
  404. GROUP(uart_a_cts, 1),
  405. GROUP(uart_a_rts, 1),
  406. GROUP(pwm_d_x15, 1),
  407. GROUP(pwm_e_x16, 1),
  408. /*bank X func2 */
  409. GROUP(i2c2_sck_x0, 2),
  410. GROUP(i2c2_sda_x1, 2),
  411. GROUP(spi_a_mosi_x2, 2),
  412. GROUP(spi_a_ss0_x3, 2),
  413. GROUP(spi_a_sclk_x4, 2),
  414. GROUP(spi_a_miso_x5, 2),
  415. GROUP(tdm_a_din1, 2),
  416. GROUP(tdm_a_din0, 2),
  417. GROUP(tdm_a_slv_fs, 2),
  418. GROUP(tdm_a_slv_sclk, 2),
  419. GROUP(i2c3_sck_x, 2),
  420. GROUP(i2c3_sda_x, 2),
  421. GROUP(pwm_d_x13, 2),
  422. GROUP(pwm_e_x14, 2),
  423. GROUP(i2c2_sck_x15, 2),
  424. GROUP(i2c2_sda_x16, 2),
  425. /*bank X func3 */
  426. GROUP(uart_c_tx_x0, 3),
  427. GROUP(uart_c_rx_x1, 3),
  428. GROUP(uart_c_cts, 3),
  429. GROUP(uart_c_rts, 3),
  430. GROUP(pdm_din0_x, 3),
  431. GROUP(pdm_din1_x, 3),
  432. GROUP(pdm_din2_x, 3),
  433. GROUP(pdm_dclk_x, 3),
  434. GROUP(uart_c_tx_x15, 3),
  435. GROUP(uart_c_rx_x16, 3),
  436. /*bank X func4 */
  437. GROUP(pwm_e_x2, 4),
  438. GROUP(pwm_f_x, 4),
  439. GROUP(spi_a_mosi_x7, 4),
  440. GROUP(spi_a_miso_x8, 4),
  441. GROUP(spi_a_ss0_x9, 4),
  442. GROUP(spi_a_sclk_x10, 4),
  443. /*bank X func5 */
  444. GROUP(uart_b_tx_x, 5),
  445. GROUP(uart_b_rx_x, 5),
  446. GROUP(i2c1_sda_x, 5),
  447. GROUP(i2c1_sck_x, 5),
  448. /*bank X func6 */
  449. GROUP(pwm_a_x7, 6),
  450. GROUP(pwm_b_x, 6),
  451. GROUP(pwm_c_x, 6),
  452. GROUP(pwm_d_x10, 6),
  453. /*bank X func7 */
  454. GROUP(gen_clk_x, 7),
  455. /*bank F func1 */
  456. GROUP(uart_b_tx_f, 1),
  457. GROUP(uart_b_rx_f, 1),
  458. GROUP(remote_input_f, 1),
  459. GROUP(jtag_a_clk, 1),
  460. GROUP(jtag_a_tms, 1),
  461. GROUP(jtag_a_tdi, 1),
  462. GROUP(jtag_a_tdo, 1),
  463. GROUP(gen_clk_f8, 1),
  464. GROUP(pwm_a_f10, 1),
  465. GROUP(i2c0_sck_f11, 1),
  466. GROUP(i2c0_sda_f12, 1),
  467. /*bank F func2 */
  468. GROUP(clk_32k_in, 2),
  469. GROUP(pwm_e_f, 2),
  470. GROUP(pwm_f_f4, 2),
  471. GROUP(remote_out, 2),
  472. GROUP(spdif_in_f6, 2),
  473. GROUP(spdif_in_f7, 2),
  474. GROUP(pwm_a_hiz_f8, 2),
  475. GROUP(pwm_a_hiz_f10, 2),
  476. GROUP(pwm_d_f, 2),
  477. GROUP(pwm_f_f12, 2),
  478. /*bank F func3 */
  479. GROUP(pwm_c_f3, 3),
  480. GROUP(swclk, 3),
  481. GROUP(swdio, 3),
  482. GROUP(pwm_a_f6, 3),
  483. GROUP(pwm_b_f, 3),
  484. GROUP(pwm_c_f8, 3),
  485. GROUP(clk25, 3),
  486. GROUP(i2c_slave_sck_f, 3),
  487. GROUP(i2c_slave_sda_f, 3),
  488. /*bank F func4 */
  489. GROUP(cec_a, 4),
  490. GROUP(i2c3_sck_f, 4),
  491. GROUP(i2c3_sda_f, 4),
  492. GROUP(pmw_a_hiz_f6, 4),
  493. GROUP(pwm_b_hiz, 4),
  494. GROUP(pwm_c_hiz, 4),
  495. GROUP(i2c0_sck_f9, 4),
  496. GROUP(i2c0_sda_f10, 4),
  497. /*bank F func5 */
  498. GROUP(cec_b, 5),
  499. GROUP(clk12_24, 5),
  500. /*bank F func7 */
  501. GROUP(gen_clk_f10, 7),
  502. /*bank A func1 */
  503. GROUP(mclk_0, 1),
  504. GROUP(tdm_b_sclk, 1),
  505. GROUP(tdm_b_fs, 1),
  506. GROUP(tdm_b_dout0, 1),
  507. GROUP(tdm_b_dout1, 1),
  508. GROUP(tdm_b_dout2, 1),
  509. GROUP(tdm_b_dout3, 1),
  510. GROUP(tdm_b_dout4, 1),
  511. GROUP(tdm_b_dout5, 1),
  512. GROUP(remote_input_a, 1),
  513. /*bank A func2 */
  514. GROUP(pwm_e_a, 2),
  515. GROUP(tdm_b_slv_sclk, 2),
  516. GROUP(tdm_b_slv_fs, 2),
  517. GROUP(tdm_b_din0, 2),
  518. GROUP(tdm_b_din1, 2),
  519. GROUP(tdm_b_din2, 2),
  520. GROUP(i2c1_sda_a, 2),
  521. GROUP(i2c1_sck_a, 2),
  522. /*bank A func3 */
  523. GROUP(i2c2_sck_a4, 3),
  524. GROUP(i2c2_sda_a5, 3),
  525. GROUP(pdm_din2_a, 3),
  526. GROUP(pdm_din1_a, 3),
  527. GROUP(pdm_din0_a, 3),
  528. GROUP(pdm_dclk, 3),
  529. GROUP(pwm_c_a, 3),
  530. GROUP(pwm_b_a, 3),
  531. /*bank A func4 */
  532. GROUP(pwm_a_a, 4),
  533. GROUP(spi_a_mosi_a, 4),
  534. GROUP(spi_a_miso_a, 4),
  535. GROUP(spi_a_ss0_a, 4),
  536. GROUP(spi_a_sclk_a, 4),
  537. GROUP(i2c_slave_sck_a, 4),
  538. GROUP(i2c_slave_sda_a, 4),
  539. /*bank A func5 */
  540. GROUP(mclk_vad, 5),
  541. GROUP(tdm_vad_sclk_a1, 5),
  542. GROUP(tdm_vad_fs_a2, 5),
  543. GROUP(tdm_vad_sclk_a5, 5),
  544. GROUP(tdm_vad_fs_a6, 5),
  545. GROUP(i2c2_sck_a8, 5),
  546. GROUP(i2c2_sda_a9, 5),
  547. /*bank A func6 */
  548. GROUP(tst_out0, 6),
  549. GROUP(tst_out1, 6),
  550. GROUP(tst_out2, 6),
  551. GROUP(tst_out3, 6),
  552. GROUP(tst_out4, 6),
  553. GROUP(tst_out5, 6),
  554. GROUP(tst_out6, 6),
  555. GROUP(tst_out7, 6),
  556. GROUP(tst_out8, 6),
  557. GROUP(tst_out9, 6),
  558. GROUP(tst_out10, 6),
  559. GROUP(tst_out11, 6),
  560. /*bank A func7 */
  561. GROUP(mute_key, 7),
  562. GROUP(mute_en, 7),
  563. GROUP(gen_clk_a, 7),
  564. };
  565. static const char * const gpio_periphs_groups[] = {
  566. "GPIOP_0", "GPIOP_1", "GPIOP_2", "GPIOP_3", "GPIOP_4",
  567. "GPIOP_5", "GPIOP_6", "GPIOP_7", "GPIOP_8", "GPIOP_9",
  568. "GPIOP_10", "GPIOP_11", "GPIOP_12",
  569. "GPIOB_0", "GPIOB_1", "GPIOB_2", "GPIOB_3", "GPIOB_4",
  570. "GPIOB_5", "GPIOB_6",
  571. "GPIOX_0", "GPIOX_1", "GPIOX_2", "GPIOX_3", "GPIOX_4",
  572. "GPIOX_5", "GPIOX_6", "GPIOX_7", "GPIOX_8", "GPIOX_9",
  573. "GPIOX_10", "GPIOX_11", "GPIOX_12", "GPIOX_13", "GPIOX_14",
  574. "GPIOX_15", "GPIOX_16",
  575. "GPIOF_0", "GPIOF_1", "GPIOF_2", "GPIOF_3", "GPIOF_4",
  576. "GPIOF_5", "GPIOF_6", "GPIOF_7", "GPIOF_8", "GPIOF_9",
  577. "GPIOF_10", "GPIOF_11", "GPIOF_12",
  578. "GPIOA_0", "GPIOA_1", "GPIOA_2", "GPIOA_3", "GPIOA_4",
  579. "GPIOA_5", "GPIOA_6", "GPIOA_7", "GPIOA_8", "GPIOA_9",
  580. "GPIOA_10", "GPIOA_11",
  581. };
  582. static const char * const psram_groups[] = {
  583. "psram_clkn", "psram_clkp", "psram_ce_n", "psram_rst_n", "psram_adq0",
  584. "psram_adq1", "psram_adq2", "psram_adq3", "psram_adq4", "psram_adq5",
  585. "psram_adq6", "psram_adq7", "psram_dqs_dm",
  586. };
  587. static const char * const pwm_a_groups[] = {
  588. "pwm_a_x6", "pwm_a_x7", "pwm_a_f10", "pwm_a_f6", "pwm_a_a",
  589. };
  590. static const char * const pwm_b_groups[] = {
  591. "pwm_b_x", "pwm_b_f", "pwm_b_a",
  592. };
  593. static const char * const pwm_c_groups[] = {
  594. "pwm_c_x", "pwm_c_f3", "pwm_c_f8", "pwm_c_a",
  595. };
  596. static const char * const pwm_d_groups[] = {
  597. "pwm_d_x15", "pwm_d_x13", "pwm_d_x10", "pwm_d_f",
  598. };
  599. static const char * const pwm_e_groups[] = {
  600. "pwm_e_p", "pwm_e_x16", "pwm_e_x14", "pwm_e_x2", "pwm_e_f",
  601. "pwm_e_a",
  602. };
  603. static const char * const pwm_f_groups[] = {
  604. "pwm_f_b", "pwm_f_x", "pwm_f_f4", "pwm_f_f12",
  605. };
  606. static const char * const pwm_a_hiz_groups[] = {
  607. "pwm_a_hiz_f8", "pwm_a_hiz_f10", "pwm_a_hiz_f6",
  608. };
  609. static const char * const pwm_b_hiz_groups[] = {
  610. "pwm_b_hiz",
  611. };
  612. static const char * const pwm_c_hiz_groups[] = {
  613. "pwm_c_hiz",
  614. };
  615. static const char * const spif_groups[] = {
  616. "spif_mo", "spif_mi", "spif_wp_n", "spif_hold_n", "spif_clk",
  617. "spif_cs",
  618. };
  619. static const char * const sdcard_groups[] = {
  620. "sdcard_d0_b", "sdcard_d1_b", "sdcard_d2_b", "sdcard_d3_b",
  621. "sdcard_clk_b", "sdcard_cmd_b",
  622. "sdcard_d0_x", "sdcard_d1_x", "sdcard_d2_x", "sdcard_d3_x",
  623. "sdcard_clk_x", "sdcard_cmd_x",
  624. };
  625. static const char * const tdm_a_groups[] = {
  626. "tdm_a_din0", "tdm_a_din1", "tdm_a_fs", "tdm_a_sclk",
  627. "tdm_a_slv_fs", "tdm_a_slv_sclk", "tdm_a_dout0", "tdm_a_dout1",
  628. };
  629. static const char * const uart_a_groups[] = {
  630. "uart_a_tx", "uart_a_rx", "uart_a_cts", "uart_a_rts",
  631. };
  632. static const char * const uart_b_groups[] = {
  633. "uart_b_tx_x", "uart_b_rx_x", "uart_b_tx_f", "uart_b_rx_f",
  634. };
  635. static const char * const uart_c_groups[] = {
  636. "uart_c_tx_x0", "uart_c_rx_x1", "uart_c_cts", "uart_c_rts",
  637. "uart_c_tx_x15", "uart_c_rx_x16",
  638. };
  639. static const char * const i2c0_groups[] = {
  640. "i2c0_sck_f11", "i2c0_sda_f12", "i2c0_sck_f9", "i2c0_sda_f10",
  641. };
  642. static const char * const i2c1_groups[] = {
  643. "i2c1_sda_x", "i2c1_sck_x", "i2c1_sda_a", "i2c1_sck_a",
  644. };
  645. static const char * const i2c2_groups[] = {
  646. "i2c2_sck_x0", "i2c2_sda_x1", "i2c2_sck_x15", "i2c2_sda_x16",
  647. "i2c2_sck_a4", "i2c2_sda_a5", "i2c2_sck_a8", "i2c2_sda_a9",
  648. };
  649. static const char * const i2c3_groups[] = {
  650. "i2c3_sck_x", "i2c3_sda_x", "i2c3_sck_f", "i2c3_sda_f",
  651. };
  652. static const char * const spi_a_groups[] = {
  653. "spi_a_mosi_x2", "spi_a_ss0_x3", "spi_a_sclk_x4", "spi_a_miso_x5",
  654. "spi_a_mosi_x7", "spi_a_miso_x8", "spi_a_ss0_x9", "spi_a_sclk_x10",
  655. "spi_a_mosi_a", "spi_a_miso_a", "spi_a_ss0_a", "spi_a_sclk_a",
  656. };
  657. static const char * const pdm_groups[] = {
  658. "pdm_din0_x", "pdm_din1_x", "pdm_din2_x", "pdm_dclk_x", "pdm_din2_a",
  659. "pdm_din1_a", "pdm_din0_a", "pdm_dclk",
  660. };
  661. static const char * const gen_clk_groups[] = {
  662. "gen_clk_x", "gen_clk_f8", "gen_clk_f10", "gen_clk_a",
  663. };
  664. static const char * const remote_input_groups[] = {
  665. "remote_input_f",
  666. "remote_input_a",
  667. };
  668. static const char * const jtag_a_groups[] = {
  669. "jtag_a_clk", "jtag_a_tms", "jtag_a_tdi", "jtag_a_tdo",
  670. };
  671. static const char * const clk_32k_in_groups[] = {
  672. "clk_32k_in",
  673. };
  674. static const char * const remote_out_groups[] = {
  675. "remote_out",
  676. };
  677. static const char * const spdif_in_groups[] = {
  678. "spdif_in_f6", "spdif_in_f7",
  679. };
  680. static const char * const sw_groups[] = {
  681. "swclk", "swdio",
  682. };
  683. static const char * const clk25_groups[] = {
  684. "clk_25",
  685. };
  686. static const char * const cec_a_groups[] = {
  687. "cec_a",
  688. };
  689. static const char * const cec_b_groups[] = {
  690. "cec_b",
  691. };
  692. static const char * const clk12_24_groups[] = {
  693. "clk12_24",
  694. };
  695. static const char * const mclk_0_groups[] = {
  696. "mclk_0",
  697. };
  698. static const char * const tdm_b_groups[] = {
  699. "tdm_b_din0", "tdm_b_din1", "tdm_b_din2",
  700. "tdm_b_sclk", "tdm_b_fs", "tdm_b_dout0", "tdm_b_dout1",
  701. "tdm_b_dout2", "tdm_b_dout3", "tdm_b_dout4", "tdm_b_dout5",
  702. "tdm_b_slv_sclk", "tdm_b_slv_fs",
  703. };
  704. static const char * const mclk_vad_groups[] = {
  705. "mclk_vad",
  706. };
  707. static const char * const tdm_vad_groups[] = {
  708. "tdm_vad_sclk_a1", "tdm_vad_fs_a2", "tdm_vad_sclk_a5", "tdm_vad_fs_a6",
  709. };
  710. static const char * const tst_out_groups[] = {
  711. "tst_out0", "tst_out1", "tst_out2", "tst_out3",
  712. "tst_out4", "tst_out5", "tst_out6", "tst_out7",
  713. "tst_out8", "tst_out9", "tst_out10", "tst_out11",
  714. };
  715. static const char * const mute_groups[] = {
  716. "mute_key", "mute_en",
  717. };
  718. static struct meson_pmx_func meson_a1_periphs_functions[] = {
  719. FUNCTION(gpio_periphs),
  720. FUNCTION(psram),
  721. FUNCTION(pwm_a),
  722. FUNCTION(pwm_b),
  723. FUNCTION(pwm_c),
  724. FUNCTION(pwm_d),
  725. FUNCTION(pwm_e),
  726. FUNCTION(pwm_f),
  727. FUNCTION(pwm_a_hiz),
  728. FUNCTION(pwm_b_hiz),
  729. FUNCTION(pwm_c_hiz),
  730. FUNCTION(spif),
  731. FUNCTION(sdcard),
  732. FUNCTION(tdm_a),
  733. FUNCTION(uart_a),
  734. FUNCTION(uart_b),
  735. FUNCTION(uart_c),
  736. FUNCTION(i2c0),
  737. FUNCTION(i2c1),
  738. FUNCTION(i2c2),
  739. FUNCTION(i2c3),
  740. FUNCTION(spi_a),
  741. FUNCTION(pdm),
  742. FUNCTION(gen_clk),
  743. FUNCTION(remote_input),
  744. FUNCTION(jtag_a),
  745. FUNCTION(clk_32k_in),
  746. FUNCTION(remote_out),
  747. FUNCTION(spdif_in),
  748. FUNCTION(sw),
  749. FUNCTION(clk25),
  750. FUNCTION(cec_a),
  751. FUNCTION(cec_b),
  752. FUNCTION(clk12_24),
  753. FUNCTION(mclk_0),
  754. FUNCTION(tdm_b),
  755. FUNCTION(mclk_vad),
  756. FUNCTION(tdm_vad),
  757. FUNCTION(tst_out),
  758. FUNCTION(mute),
  759. };
  760. static struct meson_bank meson_a1_periphs_banks[] = {
  761. /* name first last irq pullen pull dir out in ds*/
  762. BANK_DS("P", GPIOP_0, GPIOP_12, 0, 12, 0x3, 0, 0x4, 0,
  763. 0x2, 0, 0x1, 0, 0x0, 0, 0x5, 0),
  764. BANK_DS("B", GPIOB_0, GPIOB_6, 13, 19, 0x13, 0, 0x14, 0,
  765. 0x12, 0, 0x11, 0, 0x10, 0, 0x15, 0),
  766. BANK_DS("X", GPIOX_0, GPIOX_16, 20, 36, 0x23, 0, 0x24, 0,
  767. 0x22, 0, 0x21, 0, 0x20, 0, 0x25, 0),
  768. BANK_DS("F", GPIOF_0, GPIOF_12, 37, 49, 0x33, 0, 0x34, 0,
  769. 0x32, 0, 0x31, 0, 0x30, 0, 0x35, 0),
  770. BANK_DS("A", GPIOA_0, GPIOA_11, 50, 61, 0x43, 0, 0x44, 0,
  771. 0x42, 0, 0x41, 0, 0x40, 0, 0x45, 0),
  772. };
  773. static struct meson_pmx_bank meson_a1_periphs_pmx_banks[] = {
  774. /* name first lask reg offset */
  775. BANK_PMX("P", GPIOP_0, GPIOP_12, 0x0, 0),
  776. BANK_PMX("B", GPIOB_0, GPIOB_6, 0x2, 0),
  777. BANK_PMX("X", GPIOX_0, GPIOX_16, 0x3, 0),
  778. BANK_PMX("F", GPIOF_0, GPIOF_12, 0x6, 0),
  779. BANK_PMX("A", GPIOA_0, GPIOA_11, 0x8, 0),
  780. };
  781. static struct meson_axg_pmx_data meson_a1_periphs_pmx_banks_data = {
  782. .pmx_banks = meson_a1_periphs_pmx_banks,
  783. .num_pmx_banks = ARRAY_SIZE(meson_a1_periphs_pmx_banks),
  784. };
  785. static struct meson_pinctrl_data meson_a1_periphs_pinctrl_data = {
  786. .name = "periphs-banks",
  787. .pins = meson_a1_periphs_pins,
  788. .groups = meson_a1_periphs_groups,
  789. .funcs = meson_a1_periphs_functions,
  790. .banks = meson_a1_periphs_banks,
  791. .num_pins = ARRAY_SIZE(meson_a1_periphs_pins),
  792. .num_groups = ARRAY_SIZE(meson_a1_periphs_groups),
  793. .num_funcs = ARRAY_SIZE(meson_a1_periphs_functions),
  794. .num_banks = ARRAY_SIZE(meson_a1_periphs_banks),
  795. .pmx_ops = &meson_axg_pmx_ops,
  796. .pmx_data = &meson_a1_periphs_pmx_banks_data,
  797. .parse_dt = &meson_a1_parse_dt_extra,
  798. };
  799. static const struct of_device_id meson_a1_pinctrl_dt_match[] = {
  800. {
  801. .compatible = "amlogic,meson-a1-periphs-pinctrl",
  802. .data = &meson_a1_periphs_pinctrl_data,
  803. },
  804. { },
  805. };
  806. MODULE_DEVICE_TABLE(of, meson_a1_pinctrl_dt_match);
  807. static struct platform_driver meson_a1_pinctrl_driver = {
  808. .probe = meson_pinctrl_probe,
  809. .driver = {
  810. .name = "meson-a1-pinctrl",
  811. .of_match_table = meson_a1_pinctrl_dt_match,
  812. },
  813. };
  814. module_platform_driver(meson_a1_pinctrl_driver);
  815. MODULE_LICENSE("Dual BSD/GPL");