regulator: tps6520x: add dt support for tps6502x regulator
Subsystems (2)
PATCH v4 1/1 regulator: tps6520x: add dt support for tps6502x regulator
add DT support for the tps6502x regulators.
---
Changes in v4:
- add comment from Mark Brown:
- adapt subject line to "regulator: tps6520x:"
- use the generic support for locating the DT information for regulators using regulators_node and of_match in the regulator_desc. Could only test DT support. As this touches also platform code handling, it would be good to have a "Tested-by" from someone who can test it on a platform based board ...
Changes in v3:
- fold kbuild patch:
regulator, dt: fix platform_no_drv_owner.cocci warnings into this patch
No need to set .owner here. The core will do it.
Changes in v2:
- add comment from kbuild test robot
- tps6502x_parse_dt_data() can be static
- add comment from Mark Brown:
- remove arch/arm/boot/dts/tps65023.dtsi
- do not use "regulator-compatible"
.../devicetree/bindings/regulator/tps6502x.txt | 61 ++++ drivers/regulator/tps65023-regulator.c | 324 ++++++++++++--------- 2 files changed, 246 insertions(+), 139 deletions(-) create mode 100644 Documentation/devicetree/bindings/regulator/tps6502x.txt
Documentation/devicetree/bindings/regulator/tps6502x.txt new file +61 -0
@@ -0,0 +1,61 @@ +TPS6502x family of regulators + +Required properties: +- compatible: "ti,tps65020", "ti,tps65021" or "ti,tps65023" +- reg: I2C slave address +- regulators: list of regulators provided by this controller, must be named + after their hardware counterparts: dcdc[1-3] and ldo[1-2] +- regulators: This is the list of child nodes that specify the regulator + initialization data for defined regulators. Not all regulators for the given + device need to be present. The definition for each of these nodes is defined + using the standard binding for regulators found at + Documentation/devicetree/bindings/regulator/regulator.txt. + +Each regulator is defined using the standard binding for regulators. + +Example: + + tps: tps@48 { + compatible = "ti,tps65023"; + + regulators { + #address-cells = <1>; + #size-cells = <0>; + + vdcdc1_reg: vdcdc1 { + reg = <0>; + regulator-name = "vdd_core"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + }; + vdcdc2_reg: vdcdc2 { + reg = <1>; + regulator-name = "vddshv"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + vdcdc3_reg: vdcdc3 { + reg = <2>; + regulator-name = "vdds"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + vldo1_reg: ldo1 { + reg = <3>; + regulator-name = "vdda1p8v_usbphy"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + vldo2_reg: ldo2 { + reg = <4>; + regulator-name = "vdda3p3v_usbphy"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + }; + };
drivers/regulator/tps65023-regulator.c +185 -139
406 lines not on this page · raw message
Signature · 6 lines
2.1.0 -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html