Lines Matching +full:x +full:- +full:powers
1 // SPDX-License-Identifier: GPL-2.0-only
3 * RSB driver for the X-Powers' Power Management ICs
5 * AXP20x typically comprises an adaptive USB-Compatible PWM charger, BUCK DC-DC
6 * converters, LDOs, multiple 12-bit ADCs of voltage, current and temperature
11 * Copyright (C) 2015 Chen-Yu Tsai
13 * Author: Chen-Yu Tsai <wens@csie.org>
23 #include <linux/sunxi-rsb.h>
30 axp20x = devm_kzalloc(&rdev->dev, sizeof(*axp20x), GFP_KERNEL); in axp20x_rsb_probe()
32 return -ENOMEM; in axp20x_rsb_probe()
34 axp20x->dev = &rdev->dev; in axp20x_rsb_probe()
35 axp20x->irq = rdev->irq; in axp20x_rsb_probe()
36 dev_set_drvdata(&rdev->dev, axp20x); in axp20x_rsb_probe()
42 axp20x->regmap = devm_regmap_init_sunxi_rsb(rdev, axp20x->regmap_cfg); in axp20x_rsb_probe()
43 if (IS_ERR(axp20x->regmap)) { in axp20x_rsb_probe()
44 ret = PTR_ERR(axp20x->regmap); in axp20x_rsb_probe()
45 dev_err(&rdev->dev, "regmap init failed: %d\n", ret); in axp20x_rsb_probe()
60 { .compatible = "x-powers,axp223", .data = (void *)AXP223_ID },
61 { .compatible = "x-powers,axp717", .data = (void *)AXP717_ID },
62 { .compatible = "x-powers,axp803", .data = (void *)AXP803_ID },
63 { .compatible = "x-powers,axp806", .data = (void *)AXP806_ID },
64 { .compatible = "x-powers,axp809", .data = (void *)AXP809_ID },
65 { .compatible = "x-powers,axp813", .data = (void *)AXP813_ID },
72 .name = "axp20x-rsb",
81 MODULE_AUTHOR("Chen-Yu Tsai <wens@csie.org>");