lkml.org 
[lkml]   [2021]   [Jul]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectVoltage and current regulator: usage of 'regulators' parent node in device tree
Date
I see a lot of Devicetrees wrapping the regulator nodes within a parent node
like this

regulators {
compatible = "simple-bus";
#address-cells = <1>;
#size-cells = <0>;
reg_p3v3: regulator@0 {
compatible = "regulator-fixed";
[...]
regulator-always-on;
};
[...]

Contrary to that, patches exist removing the 'regulators' node, because the 'simple-bus'
doesn't really exist in hardware. Unfortunately, the documentation is unclear about
wrapping regulator nodes like shown above.

Should I avoid the parent 'regulators' node?

Is the given naming schema in fixed-regulator.yaml best practice to follow?

reg_xyz: regulator-xyz {
compatible = "regulator-fixed";
regulator-name = "xyz";

Thank you for clarification.

Carsten Stelling

\
 
 \ /
  Last update: 2021-07-07 15:16    [W:0.050 / U:0.492 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site