This patch series add AM33XX regulators (tps65910/tps65217) device
tree data to am335x-evm and am335x-bone dts files. These patches
are based on Tony L "devel-dt" tree and tested on AM335x EVM and
Bone devices.
Resending patch 1 & 2 to group all the regulator DT data files.
AnilKumar Ch (4):
ARM: OMAP2+: AM33XX: Add tps65910 device tree data
ARM: OMAP2+: AM33XX: Add tps65217 device tree data
arm/dts: Add tps65910 regulator DT data to am335x-evm.dts
arm/dts: Add tps65217 regulator DT data to am335x-bone.dts
arch/arm/boot/dts/am335x-bone.dts | 10 +++
arch/arm/boot/dts/am335x-evm.dts | 10 +++
arch/arm/boot/dts/tps65217.dtsi | 84 +++++++++++++++++++++++++
arch/arm/boot/dts/tps65910.dtsi | 123 +++++++++++++++++++++++++++++++++++++
4 files changed, 227 insertions(+), 0 deletions(-)
create mode 100644 arch/arm/boot/dts/tps65217.dtsi
create mode 100644 arch/arm/boot/dts/tps65910.dtsi
Add device tree data for tps65910 regulator by adding all the
consumers necessary for AM335X-EVM. The data will be map to a
regulator constraints which is required for regulator set_voltage
and get_voltage calls.
All tps65910 PMIC regulator constraints are placed in a seperate
device tree include file (tps65910.dtsi).
This patch is tested by adding the I2C slave address of TPS65910
pmic to am335x-evm.dts file (Not included in this, I2C slave
addition patch will be submitted to linux-omap, where am335x-evm.dts
binding file is available).
Signed-off-by: AnilKumar Ch <redacted>
---
arch/arm/boot/dts/tps65910.dtsi | 123 +++++++++++++++++++++++++++++++++++++++
1 files changed, 123 insertions(+), 0 deletions(-)
create mode 100644 arch/arm/boot/dts/tps65910.dtsi
Add device tree data for tps65217 regulator by adding all the consumers
necessary for AM335X-BeagleBone. The data will be map to a regulator
constraints which is required for regulator set_voltage and get_voltage
calls.
All tps65217 PMIC regulator constraints are placed in a seperate device
tree include file (tps65217.dtsi).
This patch is tested by adding the I2C slave address of TPS65217
pmic to am335x-bone.dts file (Not included in this, I2C slave
addition patch will be submitted to linux-omap, where am335x-bone.dts
binding file is available).
Signed-off-by: AnilKumar Ch <redacted>
---
arch/arm/boot/dts/tps65217.dtsi | 84 +++++++++++++++++++++++++++++++++++++++
1 files changed, 84 insertions(+), 0 deletions(-)
create mode 100644 arch/arm/boot/dts/tps65217.dtsi
Every regulator here has a rather large voltage range specified with no
consumers added. Are you sure these voltage ranges make sense in your
design and you've not just cut'n'pasted the entire voltage range that
your regulator supports without reference to what your board can do?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120720/46545946/attachment.sig>
Every regulator here has a rather large voltage range specified with no
consumers added. Are you sure these voltage ranges make sense in your
design and you've not just cut'n'pasted the entire voltage range that
your regulator supports without reference to what your board can do?
tps65217.dtsi is a generic file to be used by the SoCs so these constraints
were taken from the regulator itself. SoC specific limits can be added in
SoC specific .dts file to tighten the constraints to require limit. I have
tested the driver with this approach.
Required consumers will be added while submitting the regulator dependent
Consumers. One of the usecase I can specify here is MPU voltage control
through DVFS framework. So if require, MPU consumer will be added along
with the DVFS support.
Thanks
AnilKumar
From: Mark Brown <hidden> Date: 2012-07-20 11:38:06
On Fri, Jul 20, 2012 at 11:27:36AM +0000, AnilKumar, Chimata wrote:
On Fri, Jul 20, 2012 at 15:29:36, Mark Brown wrote:
quoted
Every regulator here has a rather large voltage range specified with no
consumers added. Are you sure these voltage ranges make sense in your
design and you've not just cut'n'pasted the entire voltage range that
your regulator supports without reference to what your board can do?
tps65217.dtsi is a generic file to be used by the SoCs so these constraints
were taken from the regulator itself. SoC specific limits can be added in
SoC specific .dts file to tighten the constraints to require limit. I have
tested the driver with this approach.
No, this is not a sane approach. You've no idea if any of these
settings are safe or sane for the board. Boards should enable things
they know are safe, not remove those they know are broken.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120720/91ea542e/attachment.sig>
On Fri, Jul 20, 2012 at 17:08:06, Mark Brown wrote:
On Fri, Jul 20, 2012 at 11:27:36AM +0000, AnilKumar, Chimata wrote:
quoted
On Fri, Jul 20, 2012 at 15:29:36, Mark Brown wrote:
quoted
quoted
Every regulator here has a rather large voltage range specified with no
consumers added. Are you sure these voltage ranges make sense in your
design and you've not just cut'n'pasted the entire voltage range that
your regulator supports without reference to what your board can do?
quoted
tps65217.dtsi is a generic file to be used by the SoCs so these constraints
were taken from the regulator itself. SoC specific limits can be added in
SoC specific .dts file to tighten the constraints to require limit. I have
tested the driver with this approach.
No, this is not a sane approach. You've no idea if any of these
settings are safe or sane for the board. Boards should enable things
they know are safe, not remove those they know are broken.
Unsterstood, I will send v2 with constraints updated.
Regards
AnilKumar
On Mon, Jul 23, 2012 at 12:36:48, AnilKumar, Chimata wrote:
On Fri, Jul 20, 2012 at 17:08:06, Mark Brown wrote:
quoted
On Fri, Jul 20, 2012 at 11:27:36AM +0000, AnilKumar, Chimata wrote:
quoted
On Fri, Jul 20, 2012 at 15:29:36, Mark Brown wrote:
quoted
quoted
Every regulator here has a rather large voltage range specified with no
consumers added. Are you sure these voltage ranges make sense in your
design and you've not just cut'n'pasted the entire voltage range that
your regulator supports without reference to what your board can do?
quoted
tps65217.dtsi is a generic file to be used by the SoCs so these constraints
were taken from the regulator itself. SoC specific limits can be added in
SoC specific .dts file to tighten the constraints to require limit. I have
tested the driver with this approach.
No, this is not a sane approach. You've no idea if any of these
settings are safe or sane for the board. Boards should enable things
they know are safe, not remove those they know are broken.
Unsterstood, I will send v2 with constraints updated.
By the way, if we look at all the regulator added (DT supported) till now have
the similar problem.
arch/arm/boot/dts/imx6q.dtsi
arch/arm/boot/dts/twl4030.dtsi
arch/arm/boot/dts/twl6030.dtsi
arch/arm/boot/dts/db8500.dtsi
Regards
AnilKumar
From: Mark Brown <hidden> Date: 2012-07-23 13:34:00
On Mon, Jul 23, 2012 at 01:23:50PM +0000, AnilKumar, Chimata wrote:
By the way, if we look at all the regulator added (DT supported) till now have
the similar problem.
arch/arm/boot/dts/imx6q.dtsi
This is fine - the SoC contains integrated regulators which supply other
bits of the Soc so we can be confident that the hookup is good just
based on the silicon.
These appear to have similar issues and should be fixed, at least as far
as the voltage ranges go.
arch/arm/boot/dts/db8500.dtsi
I'm not actually seeing anything terribly problematic here, though the
regulator-name properties should really be removed as they're fairly
useless and seem to be missing the point of having the property.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120723/fa09dbb7/attachment-0001.sig>
From: Lee Jones <hidden> Date: 2012-07-23 13:48:20
On 23/07/12 14:34, Mark Brown wrote:
On Mon, Jul 23, 2012 at 01:23:50PM +0000, AnilKumar, Chimata wrote:
quoted
By the way, if we look at all the regulator added (DT supported) till now have
the similar problem.
quoted
arch/arm/boot/dts/imx6q.dtsi
This is fine - the SoC contains integrated regulators which supply other
bits of the Soc so we can be confident that the hookup is good just
based on the silicon.
These appear to have similar issues and should be fixed, at least as far
as the voltage ranges go.
quoted
arch/arm/boot/dts/db8500.dtsi
I'm not actually seeing anything terribly problematic here, though the
regulator-name properties should really be removed as they're fairly
useless and seem to be missing the point of having the property.
I've missed the context of the thread, so can't comment, but I'm happy
to remove the regulator-name properties from db8500.dts. Adding to my TODO.
--
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
From: Lee Jones <hidden> Date: 2012-08-28 11:26:07
Hi Mark,
quoted
arch/arm/boot/dts/db8500.dtsi
I'm not actually seeing anything terribly problematic here, though the
regulator-name properties should really be removed as they're fairly
useless and seem to be missing the point of having the property.
Just looking at this now.
The regulator-name property is used to populate constrains->name. Are
you sure you still want them all removed?
Kind regards,
Lee
--
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
From: Mark Brown <hidden> Date: 2012-08-28 17:21:33
On Tue, Aug 28, 2012 at 12:26:07PM +0100, Lee Jones wrote:
quoted
quoted
arch/arm/boot/dts/db8500.dtsi
quoted
I'm not actually seeing anything terribly problematic here, though the
regulator-name properties should really be removed as they're fairly
useless and seem to be missing the point of having the property.
Just looking at this now.
The regulator-name property is used to populate constrains->name. Are
you sure you still want them all removed?
Yes, of course. There's no way that a generic .dtsi used for any
possible board could come up with a sensible value.
From: Lee Jones <hidden> Date: 2012-08-29 08:31:31
On Tue, Aug 28, 2012 at 10:21:33AM -0700, Mark Brown wrote:
On Tue, Aug 28, 2012 at 12:26:07PM +0100, Lee Jones wrote:
quoted
quoted
quoted
arch/arm/boot/dts/db8500.dtsi
quoted
quoted
I'm not actually seeing anything terribly problematic here, though the
regulator-name properties should really be removed as they're fairly
useless and seem to be missing the point of having the property.
quoted
Just looking at this now.
quoted
The regulator-name property is used to populate constrains->name. Are
you sure you still want them all removed?
Yes, of course. There's no way that a generic .dtsi used for any
possible board could come up with a sensible value.
So how should constrains->name be populated then? Would you prefer
regulator-names moved to the .dts file(s), or something else?
--
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog