Skip to content

Commit c9b30e4

Browse files
derrick-huangrkhuangtao
authored andcommitted
regulator: tps549b22: add TI TPS549b22 support
Change-Id: I7550fc9f78a30b5d8ff705403ad91cfd8727fad6 Signed-off-by: XiaoDong Huang <derrick.huang@rock-chips.com>
1 parent 102d3ec commit c9b30e4

4 files changed

Lines changed: 461 additions & 1 deletion

File tree

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
TPS549b22 Voltage regulators
2+
3+
Required properties:
4+
- compatible: Must be "ti,tps549b22"
5+
- reg: I2C slave address
6+
7+
Any property defined as part of the core regulator binding, defined in
8+
regulator.txt, can also be used.
9+
10+
Example:
11+
tps549b22@1e {
12+
compatible = "ti,tps549b22";
13+
reg = <0x1e>;
14+
regulators {
15+
#address-cells = <1>;
16+
#size-cells = <0>;
17+
regulator@0 {
18+
reg = <0>;
19+
regulator-compatible = "tps549b22_dcdc";
20+
regulator-name = "vdd_xxx";
21+
regulator-min-microvolt = <767500>;
22+
regulator-max-microvolt = <1535000>;
23+
regulator-always-on;
24+
regulator-boot-on;
25+
};
26+
};
27+
};

drivers/regulator/Kconfig

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -679,6 +679,13 @@ config REGULATOR_TPS51632
679679
The voltage output can be configure through I2C interface or PWM
680680
interface.
681681

682+
config REGULATOR_TPS549B22
683+
tristate "TI TPS549B22 Power regulators"
684+
depends on I2C
685+
help
686+
This driver supports TPS549B22 voltage regulator chip.
687+
The voltage output can be configure through I2C interface.
688+
682689
config REGULATOR_TPS6105X
683690
tristate "TI TPS6105X Power regulators"
684691
depends on TPS6105X

drivers/regulator/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ obj-$(CONFIG_REGULATOR_SKY81452) += sky81452-regulator.o
8585
obj-$(CONFIG_REGULATOR_STW481X_VMMC) += stw481x-vmmc.o
8686
obj-$(CONFIG_REGULATOR_SYR82X) += syr82x.o
8787
obj-$(CONFIG_REGULATOR_TI_ABB) += ti-abb-regulator.o
88+
obj-$(CONFIG_REGULATOR_TPS549B22) += tps549b22-regulator.o
8889
obj-$(CONFIG_REGULATOR_TPS6105X) += tps6105x-regulator.o
8990
obj-$(CONFIG_REGULATOR_TPS62360) += tps62360-regulator.o
9091
obj-$(CONFIG_REGULATOR_TPS65023) += tps65023-regulator.o
@@ -107,5 +108,4 @@ obj-$(CONFIG_REGULATOR_WM8400) += wm8400-regulator.o
107108
obj-$(CONFIG_REGULATOR_WM8994) += wm8994-regulator.o
108109
obj-$(CONFIG_REGULATOR_XZ3216) += xz3216.o
109110

110-
111111
ccflags-$(CONFIG_REGULATOR_DEBUG) += -DDEBUG

0 commit comments

Comments
 (0)