[RFC PATCH 06/11] DT: regulator: Helper routine to extract fixed_voltage_config
From: Rajendra Nayak <hidden>
Date: 2011-09-16 07:19:17
Also in:
linux-devicetree, linux-omap
On Thursday 15 September 2011 07:20 PM, Mark Brown wrote:
On Thu, Sep 15, 2011 at 04:52:02PM +0530, Rajendra Nayak wrote:quoted
.../devicetree/bindings/regulator/regulator.txt | 19 ++++++++++++ drivers/of/of_regulator.c | 31 ++++++++++++++++++++ include/linux/of_regulator.h | 7 ++++ 3 files changed, 57 insertions(+), 0 deletions(-)Again, this should be part of the regulator API code not hidden away where it will only get reviewed by device tree people.
Ok, will do.
quoted
Required properties: - compatible: Must be "regulator"; +or +- compatible: Must be "regulator-fixed"; /* For Fixed volatge regulator */This seems at best confusing - the fixed voltage regulator is a particular regulator driver, and the general concept of a fixed voltage regulator is still a subset of regulators.
Yeah, I will be defining the compatible based on the different regulator types, fixed being one of them. so they would be something like - compatible: Must be "regulator-twl" for twl regulators - compatible: Must be "regulator-fixed" for fixed regulators
quoted
+# For fixed voltage regulators +- supply-name: Name of the regulator supply +- microvolts: Output voltage of regulator +- gpio: gpio to use for enable control +- startup-delay: startup time in microseconds +- enable-high: Polarity of enable GPIO, 1 = Active High, 0 = Active low +- enabled-at-boot: 1 = yes, 0 = noMuch of this is specific to the Linux fixed voltage regulator driver rather than a generic regulator with a fixed voltage.
So how should these non-generic things be handled through device tree? Should they never be part of dt or should the bindings just be defined such that its clear they are linux specific?