regulator, dt: add dt support for tps6502x regulator
Subsystems (2)
PATCH v2 1/1 regulator, dt: add dt support for tps6502x regulator
add DT support for the tps6502x regulators.
---
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 | 58 ++++ drivers/regulator/tps65023-regulator.c | 326 +++++++++++++++------ 2 files changed, 287 insertions(+), 97 deletions(-) create mode 100644 Documentation/devicetree/bindings/regulator/tps6502x.txt
Documentation/devicetree/bindings/regulator/tps6502x.txt new file +58 -0
@@ -0,0 +1,58 @@ +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 { + vdcdc1_reg: regulator@0 { + reg = <0>; + regulator-name = "vdd_core"; + regulator-min-microvolt = <1200000>; + regulator-max-microvolt = <1200000>; + regulator-always-on; + }; + vdcdc2_reg: regulator@1 { + reg = <1>; + regulator-name = "vddshv"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + vdcdc3_reg: regulator@2 { + reg = <2>; + regulator-name = "vdds"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + vldo1_reg: regulator@3 { + reg = <3>; + regulator-name = "vdda1p8v_usbphy"; + regulator-min-microvolt = <1800000>; + regulator-max-microvolt = <1800000>; + regulator-always-on; + }; + vldo2_reg: regulator@4 { + reg = <4>; + regulator-name = "vdda3p3v_usbphy"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + regulator-always-on; + }; + }; + };
drivers/regulator/tps65023-regulator.c +229 -97
371 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
kbuild test robot
build boturl: https://github.com/0day-ci/linux/commits/Heiko-Schocher/regulator-dt-add-dt-support-for-tps6502x-regulator/20151026-164911
Hi Heiko,
[auto build test WARNING on v4.3-rc7 -- if it's inappropriate base, please suggest rules for selecting the more suitable base]
coccinelle warnings: (new ones prefixed by >>)
>> drivers/regulator/tps65023-regulator.c:543:3-8: No need to set .owner here. The core will do it.
Please review and possibly fold the followup patch.
---
0-DAY kernel test infrastructure Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all Intel Corporation
kbuild test robot
build bot[PATCH] regulator, dt: fix platform_no_drv_owner.cocci warnings
In reply to Heiko Schocherdrivers/regulator/tps65023-regulator.c:543:3-8: No need to set .owner here. The core will do it.
drivers/regulator/tps65023-regulator.c:543:3-8: No need to set .owner here. The core will do it.
Remove .owner field if calls are used which set it automatically
Generated by: scripts/coccinelle/api/platform_no_drv_owner.cocci
---
tps65023-regulator.c | 1 - 1 file changed, 1 deletion(-)
drivers/regulator/tps65023-regulator.c +0 -1
@@ -540,7 +540,6 @@ static int tps_65023_probe(struct i2c_clstatic struct i2c_driver tps_65023_i2c_driver = { .driver = { .name ="tps65023" , - .owner =THIS_MODULE , .of_match_table =of_match_ptr (tps6502x_of_match), }, .probe = tps_65023_probe,
--
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