devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Enumerating multiple devices of the same kind
@ 2017-05-12 23:28 Markus Mayer
  0 siblings, 0 replies; only message in thread
From: Markus Mayer @ 2017-05-12 23:28 UTC (permalink / raw)
  To: Rob Herring, Mark Rutland, Florian Fainelli; +Cc: Device Tree List

Hi all,

We are in the position of needing to enumerate multiple devices of the
same kind in device tree. I was originally thinking to just use
"index". Florian pointed out that "cell-index" seemed to be what was
being used by others. I submitted that upstream. Rob subsequently
pointed out that cell-index is "not a valid property for FDT (only
real OpenFirmware)."

The whole thread is archived here: https://patchwork.kernel.org/patch/9686283/.

The driver has since been converted into a SoC driver (no longer part
of the hwmon subsystem) and the cell-index property has been removed
from the binding. I'll be sending all that out for upstreaming in the
near future.

The reworked binding now looks like this:

       dpfe_cpu0: dpfe-cpu@f1132000 {
               compatible = "brcm,bcm7271-dpfe-cpu", "brcm,dpfe-cpu";
               reg =  <0xf1132000 0x180
                       0xf1134000 0x1000
                       0xf1138000 0x4000>;
               reg-names = "dpfe-cpu", "dpfe-dmem", "dpfe-imem";
       };

We still need some form of index, however, since we do have SoCs that
have more than one such node. What would be the preferred approach to
include such an index in the node?

Thanks,
-Markus
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2017-05-12 23:28 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-12 23:28 Enumerating multiple devices of the same kind Markus Mayer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).