Thread (19 messages) 19 messages, 4 authors, 2025-04-07

RE: [PATCH v2 1/2] dt-bindings: hwmon: pmbus: add lt3074

From: "Encarnacion, Cedric justine" <Cedricjustine.Encarnacion@analog.com>
Date: 2025-03-19 04:10:29
Also in: linux-doc, linux-hwmon, linux-i2c, lkml

-----Original Message-----
From: Guenter Roeck <redacted> On Behalf Of Guenter Roeck
Sent: Tuesday, March 18, 2025 11:17 PM
To: Encarnacion, Cedric justine <Cedricjustine.Encarnacion@analog.com>;
Krzysztof Kozlowski [off-list ref]
Cc: Rob Herring <robh@kernel.org>; Krzysztof Kozlowski <krzk+dt@kernel.org>;
Conor Dooley [off-list ref]; Jean Delvare [off-list ref];
Jonathan Corbet [off-list ref]; Delphine CC Chiu
[off-list ref]; devicetree@vger.kernel.org; linux-
kernel@vger.kernel.org; linux-hwmon@vger.kernel.org; linux-
doc@vger.kernel.org; linux-i2c@vger.kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: hwmon: pmbus: add lt3074

[External]

On 3/18/25 03:03, Encarnacion, Cedric justine wrote:
quoted
quoted
-----Original Message-----
From: Guenter Roeck <redacted> On Behalf Of Guenter Roeck
Sent: Friday, February 28, 2025 12:33 AM
To: Krzysztof Kozlowski <krzk@kernel.org>
Cc: Rob Herring <robh@kernel.org>; Encarnacion, Cedric justine
[off-list ref]; Krzysztof Kozlowski
[off-list ref]; Conor Dooley [off-list ref]; Jean Delvare
[off-list ref]; Jonathan Corbet [off-list ref]; Delphine CC Chiu
[off-list ref]; devicetree@vger.kernel.org; linux-
kernel@vger.kernel.org; linux-hwmon@vger.kernel.org; linux-
doc@vger.kernel.org; linux-i2c@vger.kernel.org
Subject: Re: [PATCH v2 1/2] dt-bindings: hwmon: pmbus: add lt3074
diff --git a/drivers/hwmon/pmbus/pmbus.h b/drivers/hwmon/pmbus/pmbus.h
index ddb19c9726d6..289767e5d599 100644
--- a/drivers/hwmon/pmbus/pmbus.h
+++ b/drivers/hwmon/pmbus/pmbus.h
@@ -512,7 +512,6 @@ int pmbus_regulator_init_cb(struct regulator_dev
*rdev,
quoted
quoted
  	{							\
  		.name = (_name),				\
  		.of_match = of_match_ptr(_name),		\
-		.regulators_node = of_match_ptr("regulators"),	\
  		.ops = &pmbus_regulator_ops,			\
  		.type = REGULATOR_VOLTAGE,			\
  		.owner = THIS_MODULE,				\

Maybe someone can check if that works.

Thanks,
Guenter
I'd like to follow up on this one. As of this writing, my understanding
is that the dt-binding should not expect regulators subnodes for
simple devices like this. There is already a similar binding as
mentioned in this thread particularly
"dt-bindings/regulator/infineon,ir38060". I think a binding without
the subnodes should still work with or without the change above.
Interesting. I am not sure if it really works, though. I looked into
the regulator code, and I don't immediately see the code path it would
take.
quoted
With this, I'd like to know what the specific next steps are to continue
this patch series.
Can you try on hardware using a devicetree file which doesn't have the
regulators node ? If the current code works, just submit an updated
(simplified) .yaml file and we should be good. If not, I have an
untested patch series introducing another macro which doesn't set
the regulators node.
Okay. I'll test this and get back to you.

Best Regards,
Cedric
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help