pfuze100-regulator.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540
  1. /*
  2. * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. All Rights Reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. */
  18. #include <linux/kernel.h>
  19. #include <linux/module.h>
  20. #include <linux/init.h>
  21. #include <linux/err.h>
  22. #include <linux/of.h>
  23. #include <linux/of_device.h>
  24. #include <linux/regulator/of_regulator.h>
  25. #include <linux/platform_device.h>
  26. #include <linux/regulator/driver.h>
  27. #include <linux/regulator/machine.h>
  28. #include <linux/regulator/pfuze100.h>
  29. #include <linux/i2c.h>
  30. #include <linux/slab.h>
  31. #include <linux/regmap.h>
  32. #define PFUZE_NUMREGS 128
  33. #define PFUZE100_VOL_OFFSET 0
  34. #define PFUZE100_STANDBY_OFFSET 1
  35. #define PFUZE100_MODE_OFFSET 3
  36. #define PFUZE100_CONF_OFFSET 4
  37. #define PFUZE100_DEVICEID 0x0
  38. #define PFUZE100_REVID 0x3
  39. #define PFUZE100_FABID 0x4
  40. #define PFUZE100_SW1ABVOL 0x20
  41. #define PFUZE100_SW1CVOL 0x2e
  42. #define PFUZE100_SW2VOL 0x35
  43. #define PFUZE100_SW3AVOL 0x3c
  44. #define PFUZE100_SW3BVOL 0x43
  45. #define PFUZE100_SW4VOL 0x4a
  46. #define PFUZE100_SWBSTCON1 0x66
  47. #define PFUZE100_VREFDDRCON 0x6a
  48. #define PFUZE100_VSNVSVOL 0x6b
  49. #define PFUZE100_VGEN1VOL 0x6c
  50. #define PFUZE100_VGEN2VOL 0x6d
  51. #define PFUZE100_VGEN3VOL 0x6e
  52. #define PFUZE100_VGEN4VOL 0x6f
  53. #define PFUZE100_VGEN5VOL 0x70
  54. #define PFUZE100_VGEN6VOL 0x71
  55. enum chips { PFUZE100, PFUZE200 };
  56. struct pfuze_regulator {
  57. struct regulator_desc desc;
  58. unsigned char stby_reg;
  59. unsigned char stby_mask;
  60. };
  61. struct pfuze_chip {
  62. int chip_id;
  63. struct regmap *regmap;
  64. struct device *dev;
  65. struct pfuze_regulator regulator_descs[PFUZE100_MAX_REGULATOR];
  66. struct regulator_dev *regulators[PFUZE100_MAX_REGULATOR];
  67. };
  68. static const int pfuze100_swbst[] = {
  69. 5000000, 5050000, 5100000, 5150000,
  70. };
  71. static const int pfuze100_vsnvs[] = {
  72. 1000000, 1100000, 1200000, 1300000, 1500000, 1800000, 3000000,
  73. };
  74. static const struct i2c_device_id pfuze_device_id[] = {
  75. {.name = "pfuze100", .driver_data = PFUZE100},
  76. {.name = "pfuze200", .driver_data = PFUZE200},
  77. { }
  78. };
  79. MODULE_DEVICE_TABLE(i2c, pfuze_device_id);
  80. static const struct of_device_id pfuze_dt_ids[] = {
  81. { .compatible = "fsl,pfuze100", .data = (void *)PFUZE100},
  82. { .compatible = "fsl,pfuze200", .data = (void *)PFUZE200},
  83. { }
  84. };
  85. MODULE_DEVICE_TABLE(of, pfuze_dt_ids);
  86. static int pfuze100_set_ramp_delay(struct regulator_dev *rdev, int ramp_delay)
  87. {
  88. struct pfuze_chip *pfuze100 = rdev_get_drvdata(rdev);
  89. int id = rdev_get_id(rdev);
  90. unsigned int ramp_bits;
  91. int ret;
  92. if (id < PFUZE100_SWBST) {
  93. ramp_delay = 12500 / ramp_delay;
  94. ramp_bits = (ramp_delay >> 1) - (ramp_delay >> 3);
  95. ret = regmap_update_bits(pfuze100->regmap,
  96. rdev->desc->vsel_reg + 4,
  97. 0xc0, ramp_bits << 6);
  98. if (ret < 0)
  99. dev_err(pfuze100->dev, "ramp failed, err %d\n", ret);
  100. } else
  101. ret = -EACCES;
  102. return ret;
  103. }
  104. static struct regulator_ops pfuze100_ldo_regulator_ops = {
  105. .enable = regulator_enable_regmap,
  106. .disable = regulator_disable_regmap,
  107. .is_enabled = regulator_is_enabled_regmap,
  108. .list_voltage = regulator_list_voltage_linear,
  109. .set_voltage_sel = regulator_set_voltage_sel_regmap,
  110. .get_voltage_sel = regulator_get_voltage_sel_regmap,
  111. };
  112. static struct regulator_ops pfuze100_fixed_regulator_ops = {
  113. .enable = regulator_enable_regmap,
  114. .disable = regulator_disable_regmap,
  115. .is_enabled = regulator_is_enabled_regmap,
  116. .list_voltage = regulator_list_voltage_linear,
  117. };
  118. static struct regulator_ops pfuze100_sw_regulator_ops = {
  119. .list_voltage = regulator_list_voltage_linear,
  120. .set_voltage_sel = regulator_set_voltage_sel_regmap,
  121. .get_voltage_sel = regulator_get_voltage_sel_regmap,
  122. .set_voltage_time_sel = regulator_set_voltage_time_sel,
  123. .set_ramp_delay = pfuze100_set_ramp_delay,
  124. };
  125. static struct regulator_ops pfuze100_swb_regulator_ops = {
  126. .enable = regulator_enable_regmap,
  127. .disable = regulator_disable_regmap,
  128. .list_voltage = regulator_list_voltage_table,
  129. .map_voltage = regulator_map_voltage_ascend,
  130. .set_voltage_sel = regulator_set_voltage_sel_regmap,
  131. .get_voltage_sel = regulator_get_voltage_sel_regmap,
  132. };
  133. #define PFUZE100_FIXED_REG(_chip, _name, base, voltage) \
  134. [_chip ## _ ## _name] = { \
  135. .desc = { \
  136. .name = #_name, \
  137. .n_voltages = 1, \
  138. .ops = &pfuze100_fixed_regulator_ops, \
  139. .type = REGULATOR_VOLTAGE, \
  140. .id = _chip ## _ ## _name, \
  141. .owner = THIS_MODULE, \
  142. .min_uV = (voltage), \
  143. .enable_reg = (base), \
  144. .enable_mask = 0x10, \
  145. }, \
  146. }
  147. #define PFUZE100_SW_REG(_chip, _name, base, min, max, step) \
  148. [_chip ## _ ## _name] = { \
  149. .desc = { \
  150. .name = #_name,\
  151. .n_voltages = ((max) - (min)) / (step) + 1, \
  152. .ops = &pfuze100_sw_regulator_ops, \
  153. .type = REGULATOR_VOLTAGE, \
  154. .id = _chip ## _ ## _name, \
  155. .owner = THIS_MODULE, \
  156. .min_uV = (min), \
  157. .uV_step = (step), \
  158. .vsel_reg = (base) + PFUZE100_VOL_OFFSET, \
  159. .vsel_mask = 0x3f, \
  160. }, \
  161. .stby_reg = (base) + PFUZE100_STANDBY_OFFSET, \
  162. .stby_mask = 0x3f, \
  163. }
  164. #define PFUZE100_SWB_REG(_chip, _name, base, mask, voltages) \
  165. [_chip ## _ ## _name] = { \
  166. .desc = { \
  167. .name = #_name, \
  168. .n_voltages = ARRAY_SIZE(voltages), \
  169. .ops = &pfuze100_swb_regulator_ops, \
  170. .type = REGULATOR_VOLTAGE, \
  171. .id = _chip ## _ ## _name, \
  172. .owner = THIS_MODULE, \
  173. .volt_table = voltages, \
  174. .vsel_reg = (base), \
  175. .vsel_mask = (mask), \
  176. .enable_reg = (base), \
  177. .enable_mask = 0x48, \
  178. }, \
  179. }
  180. #define PFUZE100_VGEN_REG(_chip, _name, base, min, max, step) \
  181. [_chip ## _ ## _name] = { \
  182. .desc = { \
  183. .name = #_name, \
  184. .n_voltages = ((max) - (min)) / (step) + 1, \
  185. .ops = &pfuze100_ldo_regulator_ops, \
  186. .type = REGULATOR_VOLTAGE, \
  187. .id = _chip ## _ ## _name, \
  188. .owner = THIS_MODULE, \
  189. .min_uV = (min), \
  190. .uV_step = (step), \
  191. .vsel_reg = (base), \
  192. .vsel_mask = 0xf, \
  193. .enable_reg = (base), \
  194. .enable_mask = 0x10, \
  195. }, \
  196. .stby_reg = (base), \
  197. .stby_mask = 0x20, \
  198. }
  199. /* PFUZE100 */
  200. static struct pfuze_regulator pfuze100_regulators[] = {
  201. PFUZE100_SW_REG(PFUZE100, SW1AB, PFUZE100_SW1ABVOL, 300000, 1875000, 25000),
  202. PFUZE100_SW_REG(PFUZE100, SW1C, PFUZE100_SW1CVOL, 300000, 1875000, 25000),
  203. PFUZE100_SW_REG(PFUZE100, SW2, PFUZE100_SW2VOL, 400000, 1975000, 25000),
  204. PFUZE100_SW_REG(PFUZE100, SW3A, PFUZE100_SW3AVOL, 400000, 1975000, 25000),
  205. PFUZE100_SW_REG(PFUZE100, SW3B, PFUZE100_SW3BVOL, 400000, 1975000, 25000),
  206. PFUZE100_SW_REG(PFUZE100, SW4, PFUZE100_SW4VOL, 400000, 1975000, 25000),
  207. PFUZE100_SWB_REG(PFUZE100, SWBST, PFUZE100_SWBSTCON1, 0x3 , pfuze100_swbst),
  208. PFUZE100_SWB_REG(PFUZE100, VSNVS, PFUZE100_VSNVSVOL, 0x7, pfuze100_vsnvs),
  209. PFUZE100_FIXED_REG(PFUZE100, VREFDDR, PFUZE100_VREFDDRCON, 750000),
  210. PFUZE100_VGEN_REG(PFUZE100, VGEN1, PFUZE100_VGEN1VOL, 800000, 1550000, 50000),
  211. PFUZE100_VGEN_REG(PFUZE100, VGEN2, PFUZE100_VGEN2VOL, 800000, 1550000, 50000),
  212. PFUZE100_VGEN_REG(PFUZE100, VGEN3, PFUZE100_VGEN3VOL, 1800000, 3300000, 100000),
  213. PFUZE100_VGEN_REG(PFUZE100, VGEN4, PFUZE100_VGEN4VOL, 1800000, 3300000, 100000),
  214. PFUZE100_VGEN_REG(PFUZE100, VGEN5, PFUZE100_VGEN5VOL, 1800000, 3300000, 100000),
  215. PFUZE100_VGEN_REG(PFUZE100, VGEN6, PFUZE100_VGEN6VOL, 1800000, 3300000, 100000),
  216. };
  217. static struct pfuze_regulator pfuze200_regulators[] = {
  218. PFUZE100_SW_REG(PFUZE200, SW1AB, PFUZE100_SW1ABVOL, 300000, 1875000, 25000),
  219. PFUZE100_SW_REG(PFUZE200, SW2, PFUZE100_SW2VOL, 400000, 1975000, 25000),
  220. PFUZE100_SW_REG(PFUZE200, SW3A, PFUZE100_SW3AVOL, 400000, 1975000, 25000),
  221. PFUZE100_SW_REG(PFUZE200, SW3B, PFUZE100_SW3BVOL, 400000, 1975000, 25000),
  222. PFUZE100_SWB_REG(PFUZE200, SWBST, PFUZE100_SWBSTCON1, 0x3 , pfuze100_swbst),
  223. PFUZE100_SWB_REG(PFUZE200, VSNVS, PFUZE100_VSNVSVOL, 0x7, pfuze100_vsnvs),
  224. PFUZE100_FIXED_REG(PFUZE200, VREFDDR, PFUZE100_VREFDDRCON, 750000),
  225. PFUZE100_VGEN_REG(PFUZE200, VGEN1, PFUZE100_VGEN1VOL, 800000, 1550000, 50000),
  226. PFUZE100_VGEN_REG(PFUZE200, VGEN2, PFUZE100_VGEN2VOL, 800000, 1550000, 50000),
  227. PFUZE100_VGEN_REG(PFUZE200, VGEN3, PFUZE100_VGEN3VOL, 1800000, 3300000, 100000),
  228. PFUZE100_VGEN_REG(PFUZE200, VGEN4, PFUZE100_VGEN4VOL, 1800000, 3300000, 100000),
  229. PFUZE100_VGEN_REG(PFUZE200, VGEN5, PFUZE100_VGEN5VOL, 1800000, 3300000, 100000),
  230. PFUZE100_VGEN_REG(PFUZE200, VGEN6, PFUZE100_VGEN6VOL, 1800000, 3300000, 100000),
  231. };
  232. static struct pfuze_regulator *pfuze_regulators;
  233. #ifdef CONFIG_OF
  234. /* PFUZE100 */
  235. static struct of_regulator_match pfuze100_matches[] = {
  236. { .name = "sw1ab", },
  237. { .name = "sw1c", },
  238. { .name = "sw2", },
  239. { .name = "sw3a", },
  240. { .name = "sw3b", },
  241. { .name = "sw4", },
  242. { .name = "swbst", },
  243. { .name = "vsnvs", },
  244. { .name = "vrefddr", },
  245. { .name = "vgen1", },
  246. { .name = "vgen2", },
  247. { .name = "vgen3", },
  248. { .name = "vgen4", },
  249. { .name = "vgen5", },
  250. { .name = "vgen6", },
  251. };
  252. /* PFUZE200 */
  253. static struct of_regulator_match pfuze200_matches[] = {
  254. { .name = "sw1ab", },
  255. { .name = "sw2", },
  256. { .name = "sw3a", },
  257. { .name = "sw3b", },
  258. { .name = "swbst", },
  259. { .name = "vsnvs", },
  260. { .name = "vrefddr", },
  261. { .name = "vgen1", },
  262. { .name = "vgen2", },
  263. { .name = "vgen3", },
  264. { .name = "vgen4", },
  265. { .name = "vgen5", },
  266. { .name = "vgen6", },
  267. };
  268. static struct of_regulator_match *pfuze_matches;
  269. static int pfuze_parse_regulators_dt(struct pfuze_chip *chip)
  270. {
  271. struct device *dev = chip->dev;
  272. struct device_node *np, *parent;
  273. int ret;
  274. np = of_node_get(dev->of_node);
  275. if (!np)
  276. return -EINVAL;
  277. parent = of_get_child_by_name(np, "regulators");
  278. if (!parent) {
  279. dev_err(dev, "regulators node not found\n");
  280. return -EINVAL;
  281. }
  282. switch (chip->chip_id) {
  283. case PFUZE200:
  284. pfuze_matches = pfuze200_matches;
  285. ret = of_regulator_match(dev, parent, pfuze200_matches,
  286. ARRAY_SIZE(pfuze200_matches));
  287. break;
  288. case PFUZE100:
  289. default:
  290. pfuze_matches = pfuze100_matches;
  291. ret = of_regulator_match(dev, parent, pfuze100_matches,
  292. ARRAY_SIZE(pfuze100_matches));
  293. break;
  294. }
  295. of_node_put(parent);
  296. if (ret < 0) {
  297. dev_err(dev, "Error parsing regulator init data: %d\n",
  298. ret);
  299. return ret;
  300. }
  301. return 0;
  302. }
  303. static inline struct regulator_init_data *match_init_data(int index)
  304. {
  305. return pfuze_matches[index].init_data;
  306. }
  307. static inline struct device_node *match_of_node(int index)
  308. {
  309. return pfuze_matches[index].of_node;
  310. }
  311. #else
  312. static int pfuze_parse_regulators_dt(struct pfuze_chip *chip)
  313. {
  314. return 0;
  315. }
  316. static inline struct regulator_init_data *match_init_data(int index)
  317. {
  318. return NULL;
  319. }
  320. static inline struct device_node *match_of_node(int index)
  321. {
  322. return NULL;
  323. }
  324. #endif
  325. static int pfuze_identify(struct pfuze_chip *pfuze_chip)
  326. {
  327. unsigned int value;
  328. int ret;
  329. ret = regmap_read(pfuze_chip->regmap, PFUZE100_DEVICEID, &value);
  330. if (ret)
  331. return ret;
  332. if (((value & 0x0f) == 0x8) && (pfuze_chip->chip_id == PFUZE100)) {
  333. /*
  334. * Freescale misprogrammed 1-3% of parts prior to week 8 of 2013
  335. * as ID=8 in PFUZE100
  336. */
  337. dev_info(pfuze_chip->dev, "Assuming misprogrammed ID=0x8");
  338. } else if ((value & 0x0f) != pfuze_chip->chip_id) {
  339. /* device id NOT match with your setting */
  340. dev_warn(pfuze_chip->dev, "Illegal ID: %x\n", value);
  341. return -ENODEV;
  342. }
  343. ret = regmap_read(pfuze_chip->regmap, PFUZE100_REVID, &value);
  344. if (ret)
  345. return ret;
  346. dev_info(pfuze_chip->dev,
  347. "Full layer: %x, Metal layer: %x\n",
  348. (value & 0xf0) >> 4, value & 0x0f);
  349. ret = regmap_read(pfuze_chip->regmap, PFUZE100_FABID, &value);
  350. if (ret)
  351. return ret;
  352. dev_info(pfuze_chip->dev, "FAB: %x, FIN: %x\n",
  353. (value & 0xc) >> 2, value & 0x3);
  354. return 0;
  355. }
  356. static const struct regmap_config pfuze_regmap_config = {
  357. .reg_bits = 8,
  358. .val_bits = 8,
  359. .max_register = PFUZE_NUMREGS - 1,
  360. .cache_type = REGCACHE_RBTREE,
  361. };
  362. static int pfuze100_regulator_probe(struct i2c_client *client,
  363. const struct i2c_device_id *id)
  364. {
  365. struct pfuze_chip *pfuze_chip;
  366. struct pfuze_regulator_platform_data *pdata =
  367. dev_get_platdata(&client->dev);
  368. struct regulator_config config = { };
  369. int i, ret;
  370. const struct of_device_id *match;
  371. u32 regulator_num;
  372. u32 sw_check_start, sw_check_end;
  373. pfuze_chip = devm_kzalloc(&client->dev, sizeof(*pfuze_chip),
  374. GFP_KERNEL);
  375. if (!pfuze_chip)
  376. return -ENOMEM;
  377. if (client->dev.of_node) {
  378. match = of_match_device(of_match_ptr(pfuze_dt_ids),
  379. &client->dev);
  380. if (!match) {
  381. dev_err(&client->dev, "Error: No device match found\n");
  382. return -ENODEV;
  383. }
  384. pfuze_chip->chip_id = (int)(long)match->data;
  385. } else if (id) {
  386. pfuze_chip->chip_id = id->driver_data;
  387. } else {
  388. dev_err(&client->dev, "No dts match or id table match found\n");
  389. return -ENODEV;
  390. }
  391. i2c_set_clientdata(client, pfuze_chip);
  392. pfuze_chip->dev = &client->dev;
  393. pfuze_chip->regmap = devm_regmap_init_i2c(client, &pfuze_regmap_config);
  394. if (IS_ERR(pfuze_chip->regmap)) {
  395. ret = PTR_ERR(pfuze_chip->regmap);
  396. dev_err(&client->dev,
  397. "regmap allocation failed with err %d\n", ret);
  398. return ret;
  399. }
  400. ret = pfuze_identify(pfuze_chip);
  401. if (ret) {
  402. dev_err(&client->dev, "unrecognized pfuze chip ID!\n");
  403. return ret;
  404. }
  405. /* use the right regulators after identify the right device */
  406. switch (pfuze_chip->chip_id) {
  407. case PFUZE200:
  408. pfuze_regulators = pfuze200_regulators;
  409. regulator_num = ARRAY_SIZE(pfuze200_regulators);
  410. sw_check_start = PFUZE200_SW2;
  411. sw_check_end = PFUZE200_SW3B;
  412. break;
  413. case PFUZE100:
  414. default:
  415. pfuze_regulators = pfuze100_regulators;
  416. regulator_num = ARRAY_SIZE(pfuze100_regulators);
  417. sw_check_start = PFUZE100_SW2;
  418. sw_check_end = PFUZE100_SW4;
  419. break;
  420. }
  421. dev_info(&client->dev, "pfuze%s found.\n",
  422. (pfuze_chip->chip_id == PFUZE100) ? "100" : "200");
  423. memcpy(pfuze_chip->regulator_descs, pfuze_regulators,
  424. sizeof(pfuze_chip->regulator_descs));
  425. ret = pfuze_parse_regulators_dt(pfuze_chip);
  426. if (ret)
  427. return ret;
  428. for (i = 0; i < regulator_num; i++) {
  429. struct regulator_init_data *init_data;
  430. struct regulator_desc *desc;
  431. int val;
  432. desc = &pfuze_chip->regulator_descs[i].desc;
  433. if (pdata)
  434. init_data = pdata->init_data[i];
  435. else
  436. init_data = match_init_data(i);
  437. /* SW2~SW4 high bit check and modify the voltage value table */
  438. if (i >= sw_check_start && i <= sw_check_end) {
  439. regmap_read(pfuze_chip->regmap, desc->vsel_reg, &val);
  440. if (val & 0x40) {
  441. desc->min_uV = 800000;
  442. desc->uV_step = 50000;
  443. desc->n_voltages = 51;
  444. }
  445. }
  446. config.dev = &client->dev;
  447. config.init_data = init_data;
  448. config.driver_data = pfuze_chip;
  449. config.of_node = match_of_node(i);
  450. config.ena_gpio = -EINVAL;
  451. pfuze_chip->regulators[i] =
  452. devm_regulator_register(&client->dev, desc, &config);
  453. if (IS_ERR(pfuze_chip->regulators[i])) {
  454. dev_err(&client->dev, "register regulator%s failed\n",
  455. pfuze_regulators[i].desc.name);
  456. return PTR_ERR(pfuze_chip->regulators[i]);
  457. }
  458. }
  459. return 0;
  460. }
  461. static struct i2c_driver pfuze_driver = {
  462. .id_table = pfuze_device_id,
  463. .driver = {
  464. .name = "pfuze100-regulator",
  465. .owner = THIS_MODULE,
  466. .of_match_table = pfuze_dt_ids,
  467. },
  468. .probe = pfuze100_regulator_probe,
  469. };
  470. module_i2c_driver(pfuze_driver);
  471. MODULE_AUTHOR("Robin Gong <b38343@freescale.com>");
  472. MODULE_DESCRIPTION("Regulator Driver for Freescale PFUZE100/PFUZE200 PMIC");
  473. MODULE_LICENSE("GPL v2");
  474. MODULE_ALIAS("i2c:pfuze100-regulator");