pinctrl-wm8850.c 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388
  1. /*
  2. * Pinctrl data for Wondermedia WM8850 SoC
  3. *
  4. * Copyright (c) 2013 Tony Prisk <linux@prisktech.co.nz>
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms and conditions of the GNU General Public License,
  8. * version 2, as published by the Free Software Foundation.
  9. *
  10. * This program is distributed in the hope it will be useful, but WITHOUT
  11. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  12. * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
  13. * more details.
  14. */
  15. #include <linux/io.h>
  16. #include <linux/module.h>
  17. #include <linux/pinctrl/pinctrl.h>
  18. #include <linux/platform_device.h>
  19. #include <linux/slab.h>
  20. #include "pinctrl-wmt.h"
  21. /*
  22. * Describe the register offsets within the GPIO memory space
  23. * The dedicated external GPIO's should always be listed in bank 0
  24. * so they are exported in the 0..31 range which is what users
  25. * expect.
  26. *
  27. * Do not reorder these banks as it will change the pin numbering
  28. */
  29. static const struct wmt_pinctrl_bank_registers wm8850_banks[] = {
  30. WMT_PINCTRL_BANK(0x40, 0x80, 0xC0, 0x00, 0x480, 0x4C0), /* 0 */
  31. WMT_PINCTRL_BANK(0x44, 0x84, 0xC4, 0x04, 0x484, 0x4C4), /* 1 */
  32. WMT_PINCTRL_BANK(0x48, 0x88, 0xC8, 0x08, 0x488, 0x4C8), /* 2 */
  33. WMT_PINCTRL_BANK(0x4C, 0x8C, 0xCC, 0x0C, 0x48C, 0x4CC), /* 3 */
  34. WMT_PINCTRL_BANK(0x50, 0x90, 0xD0, 0x10, 0x490, 0x4D0), /* 4 */
  35. WMT_PINCTRL_BANK(0x54, 0x94, 0xD4, 0x14, 0x494, 0x4D4), /* 5 */
  36. WMT_PINCTRL_BANK(0x58, 0x98, 0xD8, 0x18, 0x498, 0x4D8), /* 6 */
  37. WMT_PINCTRL_BANK(0x5C, 0x9C, 0xDC, 0x1C, 0x49C, 0x4DC), /* 7 */
  38. WMT_PINCTRL_BANK(0x60, 0xA0, 0xE0, 0x20, 0x4A0, 0x4E0), /* 8 */
  39. WMT_PINCTRL_BANK(0x70, 0xB0, 0xF0, 0x30, 0x4B0, 0x4F0), /* 9 */
  40. WMT_PINCTRL_BANK(0x7C, 0xBC, 0xDC, 0x3C, 0x4BC, 0x4FC), /* 10 */
  41. };
  42. /* Please keep sorted by bank/bit */
  43. #define WMT_PIN_EXTGPIO0 WMT_PIN(0, 0)
  44. #define WMT_PIN_EXTGPIO1 WMT_PIN(0, 1)
  45. #define WMT_PIN_EXTGPIO2 WMT_PIN(0, 2)
  46. #define WMT_PIN_EXTGPIO3 WMT_PIN(0, 3)
  47. #define WMT_PIN_EXTGPIO4 WMT_PIN(0, 4)
  48. #define WMT_PIN_EXTGPIO5 WMT_PIN(0, 5)
  49. #define WMT_PIN_EXTGPIO6 WMT_PIN(0, 6)
  50. #define WMT_PIN_EXTGPIO7 WMT_PIN(0, 7)
  51. #define WMT_PIN_WAKEUP0 WMT_PIN(0, 16)
  52. #define WMT_PIN_WAKEUP1 WMT_PIN(0, 17)
  53. #define WMT_PIN_WAKEUP2 WMT_PIN(0, 18)
  54. #define WMT_PIN_WAKEUP3 WMT_PIN(0, 19)
  55. #define WMT_PIN_SUSGPIO0 WMT_PIN(0, 21)
  56. #define WMT_PIN_SUSGPIO1 WMT_PIN(0, 22)
  57. #define WMT_PIN_SD0CD WMT_PIN(0, 28)
  58. #define WMT_PIN_VDOUT0 WMT_PIN(1, 0)
  59. #define WMT_PIN_VDOUT1 WMT_PIN(1, 1)
  60. #define WMT_PIN_VDOUT2 WMT_PIN(1, 2)
  61. #define WMT_PIN_VDOUT3 WMT_PIN(1, 3)
  62. #define WMT_PIN_VDOUT4 WMT_PIN(1, 4)
  63. #define WMT_PIN_VDOUT5 WMT_PIN(1, 5)
  64. #define WMT_PIN_VDOUT6 WMT_PIN(1, 6)
  65. #define WMT_PIN_VDOUT7 WMT_PIN(1, 7)
  66. #define WMT_PIN_VDOUT8 WMT_PIN(1, 8)
  67. #define WMT_PIN_VDOUT9 WMT_PIN(1, 9)
  68. #define WMT_PIN_VDOUT10 WMT_PIN(1, 10)
  69. #define WMT_PIN_VDOUT11 WMT_PIN(1, 11)
  70. #define WMT_PIN_VDOUT12 WMT_PIN(1, 12)
  71. #define WMT_PIN_VDOUT13 WMT_PIN(1, 13)
  72. #define WMT_PIN_VDOUT14 WMT_PIN(1, 14)
  73. #define WMT_PIN_VDOUT15 WMT_PIN(1, 15)
  74. #define WMT_PIN_VDOUT16 WMT_PIN(1, 16)
  75. #define WMT_PIN_VDOUT17 WMT_PIN(1, 17)
  76. #define WMT_PIN_VDOUT18 WMT_PIN(1, 18)
  77. #define WMT_PIN_VDOUT19 WMT_PIN(1, 19)
  78. #define WMT_PIN_VDOUT20 WMT_PIN(1, 20)
  79. #define WMT_PIN_VDOUT21 WMT_PIN(1, 21)
  80. #define WMT_PIN_VDOUT22 WMT_PIN(1, 22)
  81. #define WMT_PIN_VDOUT23 WMT_PIN(1, 23)
  82. #define WMT_PIN_VDIN0 WMT_PIN(2, 0)
  83. #define WMT_PIN_VDIN1 WMT_PIN(2, 1)
  84. #define WMT_PIN_VDIN2 WMT_PIN(2, 2)
  85. #define WMT_PIN_VDIN3 WMT_PIN(2, 3)
  86. #define WMT_PIN_VDIN4 WMT_PIN(2, 4)
  87. #define WMT_PIN_VDIN5 WMT_PIN(2, 5)
  88. #define WMT_PIN_VDIN6 WMT_PIN(2, 6)
  89. #define WMT_PIN_VDIN7 WMT_PIN(2, 7)
  90. #define WMT_PIN_SPI0_MOSI WMT_PIN(2, 24)
  91. #define WMT_PIN_SPI0_MISO WMT_PIN(2, 25)
  92. #define WMT_PIN_SPI0_SS WMT_PIN(2, 26)
  93. #define WMT_PIN_SPI0_CLK WMT_PIN(2, 27)
  94. #define WMT_PIN_SPI0_SSB WMT_PIN(2, 28)
  95. #define WMT_PIN_SD0CLK WMT_PIN(3, 17)
  96. #define WMT_PIN_SD0CMD WMT_PIN(3, 18)
  97. #define WMT_PIN_SD0WP WMT_PIN(3, 19)
  98. #define WMT_PIN_SD0DATA0 WMT_PIN(3, 20)
  99. #define WMT_PIN_SD0DATA1 WMT_PIN(3, 21)
  100. #define WMT_PIN_SD0DATA2 WMT_PIN(3, 22)
  101. #define WMT_PIN_SD0DATA3 WMT_PIN(3, 23)
  102. #define WMT_PIN_SD1DATA0 WMT_PIN(3, 24)
  103. #define WMT_PIN_SD1DATA1 WMT_PIN(3, 25)
  104. #define WMT_PIN_SD1DATA2 WMT_PIN(3, 26)
  105. #define WMT_PIN_SD1DATA3 WMT_PIN(3, 27)
  106. #define WMT_PIN_SD1DATA4 WMT_PIN(3, 28)
  107. #define WMT_PIN_SD1DATA5 WMT_PIN(3, 29)
  108. #define WMT_PIN_SD1DATA6 WMT_PIN(3, 30)
  109. #define WMT_PIN_SD1DATA7 WMT_PIN(3, 31)
  110. #define WMT_PIN_I2C0_SCL WMT_PIN(5, 8)
  111. #define WMT_PIN_I2C0_SDA WMT_PIN(5, 9)
  112. #define WMT_PIN_I2C1_SCL WMT_PIN(5, 10)
  113. #define WMT_PIN_I2C1_SDA WMT_PIN(5, 11)
  114. #define WMT_PIN_I2C2_SCL WMT_PIN(5, 12)
  115. #define WMT_PIN_I2C2_SDA WMT_PIN(5, 13)
  116. #define WMT_PIN_UART0_RTS WMT_PIN(5, 16)
  117. #define WMT_PIN_UART0_TXD WMT_PIN(5, 17)
  118. #define WMT_PIN_UART0_CTS WMT_PIN(5, 18)
  119. #define WMT_PIN_UART0_RXD WMT_PIN(5, 19)
  120. #define WMT_PIN_UART1_RTS WMT_PIN(5, 20)
  121. #define WMT_PIN_UART1_TXD WMT_PIN(5, 21)
  122. #define WMT_PIN_UART1_CTS WMT_PIN(5, 22)
  123. #define WMT_PIN_UART1_RXD WMT_PIN(5, 23)
  124. #define WMT_PIN_UART2_RTS WMT_PIN(5, 24)
  125. #define WMT_PIN_UART2_TXD WMT_PIN(5, 25)
  126. #define WMT_PIN_UART2_CTS WMT_PIN(5, 26)
  127. #define WMT_PIN_UART2_RXD WMT_PIN(5, 27)
  128. #define WMT_PIN_SD2WP WMT_PIN(6, 3)
  129. #define WMT_PIN_SD2CMD WMT_PIN(6, 6)
  130. #define WMT_PIN_SD2CLK WMT_PIN(6, 7)
  131. #define WMT_PIN_SD2PWR WMT_PIN(6, 9)
  132. #define WMT_PIN_SD1CLK WMT_PIN(7, 0)
  133. #define WMT_PIN_SD1CMD WMT_PIN(7, 1)
  134. #define WMT_PIN_SD1PWR WMT_PIN(7, 10)
  135. #define WMT_PIN_SD1WP WMT_PIN(7, 11)
  136. #define WMT_PIN_SD1CD WMT_PIN(7, 12)
  137. #define WMT_PIN_PWMOUT1 WMT_PIN(7, 26)
  138. #define WMT_PIN_PWMOUT0 WMT_PIN(7, 27)
  139. static const struct pinctrl_pin_desc wm8850_pins[] = {
  140. PINCTRL_PIN(WMT_PIN_EXTGPIO0, "extgpio0"),
  141. PINCTRL_PIN(WMT_PIN_EXTGPIO1, "extgpio1"),
  142. PINCTRL_PIN(WMT_PIN_EXTGPIO2, "extgpio2"),
  143. PINCTRL_PIN(WMT_PIN_EXTGPIO3, "extgpio3"),
  144. PINCTRL_PIN(WMT_PIN_EXTGPIO4, "extgpio4"),
  145. PINCTRL_PIN(WMT_PIN_EXTGPIO5, "extgpio5"),
  146. PINCTRL_PIN(WMT_PIN_EXTGPIO6, "extgpio6"),
  147. PINCTRL_PIN(WMT_PIN_EXTGPIO7, "extgpio7"),
  148. PINCTRL_PIN(WMT_PIN_WAKEUP0, "wakeup0"),
  149. PINCTRL_PIN(WMT_PIN_WAKEUP1, "wakeup1"),
  150. PINCTRL_PIN(WMT_PIN_WAKEUP2, "wakeup2"),
  151. PINCTRL_PIN(WMT_PIN_WAKEUP3, "wakeup3"),
  152. PINCTRL_PIN(WMT_PIN_SUSGPIO0, "susgpio0"),
  153. PINCTRL_PIN(WMT_PIN_SUSGPIO1, "susgpio1"),
  154. PINCTRL_PIN(WMT_PIN_SD0CD, "sd0_cd"),
  155. PINCTRL_PIN(WMT_PIN_VDOUT0, "vdout0"),
  156. PINCTRL_PIN(WMT_PIN_VDOUT1, "vdout1"),
  157. PINCTRL_PIN(WMT_PIN_VDOUT2, "vdout2"),
  158. PINCTRL_PIN(WMT_PIN_VDOUT3, "vdout3"),
  159. PINCTRL_PIN(WMT_PIN_VDOUT4, "vdout4"),
  160. PINCTRL_PIN(WMT_PIN_VDOUT5, "vdout5"),
  161. PINCTRL_PIN(WMT_PIN_VDOUT6, "vdout6"),
  162. PINCTRL_PIN(WMT_PIN_VDOUT7, "vdout7"),
  163. PINCTRL_PIN(WMT_PIN_VDOUT8, "vdout8"),
  164. PINCTRL_PIN(WMT_PIN_VDOUT9, "vdout9"),
  165. PINCTRL_PIN(WMT_PIN_VDOUT10, "vdout10"),
  166. PINCTRL_PIN(WMT_PIN_VDOUT11, "vdout11"),
  167. PINCTRL_PIN(WMT_PIN_VDOUT12, "vdout12"),
  168. PINCTRL_PIN(WMT_PIN_VDOUT13, "vdout13"),
  169. PINCTRL_PIN(WMT_PIN_VDOUT14, "vdout14"),
  170. PINCTRL_PIN(WMT_PIN_VDOUT15, "vdout15"),
  171. PINCTRL_PIN(WMT_PIN_VDOUT16, "vdout16"),
  172. PINCTRL_PIN(WMT_PIN_VDOUT17, "vdout17"),
  173. PINCTRL_PIN(WMT_PIN_VDOUT18, "vdout18"),
  174. PINCTRL_PIN(WMT_PIN_VDOUT19, "vdout19"),
  175. PINCTRL_PIN(WMT_PIN_VDOUT20, "vdout20"),
  176. PINCTRL_PIN(WMT_PIN_VDOUT21, "vdout21"),
  177. PINCTRL_PIN(WMT_PIN_VDOUT22, "vdout22"),
  178. PINCTRL_PIN(WMT_PIN_VDOUT23, "vdout23"),
  179. PINCTRL_PIN(WMT_PIN_VDIN0, "vdin0"),
  180. PINCTRL_PIN(WMT_PIN_VDIN1, "vdin1"),
  181. PINCTRL_PIN(WMT_PIN_VDIN2, "vdin2"),
  182. PINCTRL_PIN(WMT_PIN_VDIN3, "vdin3"),
  183. PINCTRL_PIN(WMT_PIN_VDIN4, "vdin4"),
  184. PINCTRL_PIN(WMT_PIN_VDIN5, "vdin5"),
  185. PINCTRL_PIN(WMT_PIN_VDIN6, "vdin6"),
  186. PINCTRL_PIN(WMT_PIN_VDIN7, "vdin7"),
  187. PINCTRL_PIN(WMT_PIN_SPI0_MOSI, "spi0_mosi"),
  188. PINCTRL_PIN(WMT_PIN_SPI0_MISO, "spi0_miso"),
  189. PINCTRL_PIN(WMT_PIN_SPI0_SS, "spi0_ss"),
  190. PINCTRL_PIN(WMT_PIN_SPI0_CLK, "spi0_clk"),
  191. PINCTRL_PIN(WMT_PIN_SPI0_SSB, "spi0_ssb"),
  192. PINCTRL_PIN(WMT_PIN_SD0CLK, "sd0_clk"),
  193. PINCTRL_PIN(WMT_PIN_SD0CMD, "sd0_cmd"),
  194. PINCTRL_PIN(WMT_PIN_SD0WP, "sd0_wp"),
  195. PINCTRL_PIN(WMT_PIN_SD0DATA0, "sd0_data0"),
  196. PINCTRL_PIN(WMT_PIN_SD0DATA1, "sd0_data1"),
  197. PINCTRL_PIN(WMT_PIN_SD0DATA2, "sd0_data2"),
  198. PINCTRL_PIN(WMT_PIN_SD0DATA3, "sd0_data3"),
  199. PINCTRL_PIN(WMT_PIN_SD1DATA0, "sd1_data0"),
  200. PINCTRL_PIN(WMT_PIN_SD1DATA1, "sd1_data1"),
  201. PINCTRL_PIN(WMT_PIN_SD1DATA2, "sd1_data2"),
  202. PINCTRL_PIN(WMT_PIN_SD1DATA3, "sd1_data3"),
  203. PINCTRL_PIN(WMT_PIN_SD1DATA4, "sd1_data4"),
  204. PINCTRL_PIN(WMT_PIN_SD1DATA5, "sd1_data5"),
  205. PINCTRL_PIN(WMT_PIN_SD1DATA6, "sd1_data6"),
  206. PINCTRL_PIN(WMT_PIN_SD1DATA7, "sd1_data7"),
  207. PINCTRL_PIN(WMT_PIN_I2C0_SCL, "i2c0_scl"),
  208. PINCTRL_PIN(WMT_PIN_I2C0_SDA, "i2c0_sda"),
  209. PINCTRL_PIN(WMT_PIN_I2C1_SCL, "i2c1_scl"),
  210. PINCTRL_PIN(WMT_PIN_I2C1_SDA, "i2c1_sda"),
  211. PINCTRL_PIN(WMT_PIN_I2C2_SCL, "i2c2_scl"),
  212. PINCTRL_PIN(WMT_PIN_I2C2_SDA, "i2c2_sda"),
  213. PINCTRL_PIN(WMT_PIN_UART0_RTS, "uart0_rts"),
  214. PINCTRL_PIN(WMT_PIN_UART0_TXD, "uart0_txd"),
  215. PINCTRL_PIN(WMT_PIN_UART0_CTS, "uart0_cts"),
  216. PINCTRL_PIN(WMT_PIN_UART0_RXD, "uart0_rxd"),
  217. PINCTRL_PIN(WMT_PIN_UART1_RTS, "uart1_rts"),
  218. PINCTRL_PIN(WMT_PIN_UART1_TXD, "uart1_txd"),
  219. PINCTRL_PIN(WMT_PIN_UART1_CTS, "uart1_cts"),
  220. PINCTRL_PIN(WMT_PIN_UART1_RXD, "uart1_rxd"),
  221. PINCTRL_PIN(WMT_PIN_UART2_RTS, "uart2_rts"),
  222. PINCTRL_PIN(WMT_PIN_UART2_TXD, "uart2_txd"),
  223. PINCTRL_PIN(WMT_PIN_UART2_CTS, "uart2_cts"),
  224. PINCTRL_PIN(WMT_PIN_UART2_RXD, "uart2_rxd"),
  225. PINCTRL_PIN(WMT_PIN_SD2WP, "sd2_wp"),
  226. PINCTRL_PIN(WMT_PIN_SD2CMD, "sd2_cmd"),
  227. PINCTRL_PIN(WMT_PIN_SD2CLK, "sd2_clk"),
  228. PINCTRL_PIN(WMT_PIN_SD2PWR, "sd2_pwr"),
  229. PINCTRL_PIN(WMT_PIN_SD1CLK, "sd1_clk"),
  230. PINCTRL_PIN(WMT_PIN_SD1CMD, "sd1_cmd"),
  231. PINCTRL_PIN(WMT_PIN_SD1PWR, "sd1_pwr"),
  232. PINCTRL_PIN(WMT_PIN_SD1WP, "sd1_wp"),
  233. PINCTRL_PIN(WMT_PIN_SD1CD, "sd1_cd"),
  234. PINCTRL_PIN(WMT_PIN_PWMOUT1, "pwmout1"),
  235. PINCTRL_PIN(WMT_PIN_PWMOUT0, "pwmout0"),
  236. };
  237. /* Order of these names must match the above list */
  238. static const char * const wm8850_groups[] = {
  239. "extgpio0",
  240. "extgpio1",
  241. "extgpio2",
  242. "extgpio3",
  243. "extgpio4",
  244. "extgpio5",
  245. "extgpio6",
  246. "extgpio7",
  247. "wakeup0",
  248. "wakeup1",
  249. "wakeup2",
  250. "wakeup3",
  251. "susgpio0",
  252. "susgpio1",
  253. "sd0_cd",
  254. "vdout0",
  255. "vdout1",
  256. "vdout2",
  257. "vdout3",
  258. "vdout4",
  259. "vdout5",
  260. "vdout6",
  261. "vdout7",
  262. "vdout8",
  263. "vdout9",
  264. "vdout10",
  265. "vdout11",
  266. "vdout12",
  267. "vdout13",
  268. "vdout14",
  269. "vdout15",
  270. "vdout16",
  271. "vdout17",
  272. "vdout18",
  273. "vdout19",
  274. "vdout20",
  275. "vdout21",
  276. "vdout22",
  277. "vdout23",
  278. "vdin0",
  279. "vdin1",
  280. "vdin2",
  281. "vdin3",
  282. "vdin4",
  283. "vdin5",
  284. "vdin6",
  285. "vdin7",
  286. "spi0_mosi",
  287. "spi0_miso",
  288. "spi0_ss",
  289. "spi0_clk",
  290. "spi0_ssb",
  291. "sd0_clk",
  292. "sd0_cmd",
  293. "sd0_wp",
  294. "sd0_data0",
  295. "sd0_data1",
  296. "sd0_data2",
  297. "sd0_data3",
  298. "sd1_data0",
  299. "sd1_data1",
  300. "sd1_data2",
  301. "sd1_data3",
  302. "sd1_data4",
  303. "sd1_data5",
  304. "sd1_data6",
  305. "sd1_data7",
  306. "i2c0_scl",
  307. "i2c0_sda",
  308. "i2c1_scl",
  309. "i2c1_sda",
  310. "i2c2_scl",
  311. "i2c2_sda",
  312. "uart0_rts",
  313. "uart0_txd",
  314. "uart0_cts",
  315. "uart0_rxd",
  316. "uart1_rts",
  317. "uart1_txd",
  318. "uart1_cts",
  319. "uart1_rxd",
  320. "uart2_rts",
  321. "uart2_txd",
  322. "uart2_cts",
  323. "uart2_rxd",
  324. "sd2_wp",
  325. "sd2_cmd",
  326. "sd2_clk",
  327. "sd2_pwr",
  328. "sd1_clk",
  329. "sd1_cmd",
  330. "sd1_pwr",
  331. "sd1_wp",
  332. "sd1_cd",
  333. "pwmout1",
  334. "pwmout0",
  335. };
  336. static int wm8850_pinctrl_probe(struct platform_device *pdev)
  337. {
  338. struct wmt_pinctrl_data *data;
  339. data = devm_kzalloc(&pdev->dev, sizeof(*data), GFP_KERNEL);
  340. if (!data) {
  341. dev_err(&pdev->dev, "failed to allocate data\n");
  342. return -ENOMEM;
  343. }
  344. data->banks = wm8850_banks;
  345. data->nbanks = ARRAY_SIZE(wm8850_banks);
  346. data->pins = wm8850_pins;
  347. data->npins = ARRAY_SIZE(wm8850_pins);
  348. data->groups = wm8850_groups;
  349. data->ngroups = ARRAY_SIZE(wm8850_groups);
  350. return wmt_pinctrl_probe(pdev, data);
  351. }
  352. static int wm8850_pinctrl_remove(struct platform_device *pdev)
  353. {
  354. return wmt_pinctrl_remove(pdev);
  355. }
  356. static const struct of_device_id wmt_pinctrl_of_match[] = {
  357. { .compatible = "wm,wm8850-pinctrl" },
  358. { /* sentinel */ },
  359. };
  360. static struct platform_driver wmt_pinctrl_driver = {
  361. .probe = wm8850_pinctrl_probe,
  362. .remove = wm8850_pinctrl_remove,
  363. .driver = {
  364. .name = "pinctrl-wm8850",
  365. .of_match_table = wmt_pinctrl_of_match,
  366. },
  367. };
  368. module_platform_driver(wmt_pinctrl_driver);
  369. MODULE_AUTHOR("Tony Prisk <linux@prisktech.co.nz>");
  370. MODULE_DESCRIPTION("Wondermedia WM8850 Pincontrol driver");
  371. MODULE_LICENSE("GPL v2");
  372. MODULE_DEVICE_TABLE(of, wmt_pinctrl_of_match);