On 05/22/2012 11:09 AM, Laxman Dewangan wrote:It is only applicable for the fixed regulators or the device supports only one regulator or each regulator have their own compatibility and the matching is done by compatibility, not by node name.On Tuesday 22 May 2012 10:10 PM, Stephen Warren wrote:Hmm. That seems wrong. I thought I had seen at least some regulatorOn 05/22/2012 07:05 AM, Laxman Dewangan wrote:Nop, we can not do it. The node name should match with the nameAdd device info for the PMIC device tps65911 in tegra-cardhuFYI, patch 1 in this series looks fine. Some comments below though:
dts file. This device supports the multiple regulator rails,
gpio, interrupts.
diff --git a/arch/arm/boot/dts/tegra-cardhu.dtsPlease add the following properties here:
b/arch/arm/boot/dts/tegra-cardhu.dts
+ tps65911: tps65911@2d {
+ compatible = "ti,tps65911";
+ reg =<0x2d>;
+
+ #gpio-cells =<2>;
+ gpio-controller;
+
+ regulators {
#address-cells =<1>;
#size-cells =<0>;
+ vdd1_reg: vdd1 {This node name should be "regulator", since nodes are generally named
after the class of object they represent. Since all the nodes will then
have the same name, you'll need to add a unit address ("@nnnn") to the
node name.
mentioned in driver otherwise the regulator node search will fail
Following is the excerpt of the code:
bindings where these nodes included a name property so that the nodes
didn't need any particular name.
Olof, what are your thoughts here - do we need to fix the code so the
node names aren't relevant? IIRC, we have had to change some other
bindings due to the same issue.
...I guess if these regulators are enabled at boot and always on, we don'tNitpicky, but the labels might be more logical as reg_vdd1 rather thanWhy do we really require the reg at all?
vdd1_reg, but not a big deal.
So, please replace the line above with:
reg_vdd1: regulator@0 {
reg =<0>;
I dont think any usage of doing this.
even need the labels for now; we could add labels later as/when drivers
begin to dynamically control the regulators.