Re: [PATCH v6 3/3] mfd: max14577: Add device tree bindings document

From: Mark Brown
Date: Wed Dec 04 2013 - 07:50:25 EST


On Wed, Dec 04, 2013 at 11:20:39AM +0000, Lee Jones wrote:

> > + regulators {
> > + compatible = "maxim,max14577-regulator";
> > +
> > + safeout_reg: safeout@1 {

> The name of the node (not the label:safeout_reg) usually depicts the
> type of device, so 'regulator@0' and 'regulator@1'. However, I'm
> unsure how this works when these nodes are encapsulated by an
> overarching 'regulators' parent node.

> Perhaps Mark can answer this?

The name there is meaningless, the DT convention is as you describe and
applies to any node but equally well it's just a convention and I
struggle to see the value it adds. Having something that humans find
helpful is just as well.

Attachment: signature.asc
Description: Digital signature