Re: [PATCH anybus v3 5/6] dt-bindings: anybuss-host: document devicetree binding

From: Arnd Bergmann
Date: Thu Nov 08 2018 - 09:27:38 EST


On Thu, Nov 8, 2018 at 3:21 PM Sven Van Asbroeck <thesven73@xxxxxxxxx> wrote:
>
> Hi Arnd, thank you for the review and the feedback !
>
> >
> > To allow describing connected devices, I think we need a #address-cells
> > and #size-cells property here, with fixed values.
>
> I'm not sure I understand. Connected devices aren't described in the
> devicetree. The anybus specification defines an id register, which is
> then used to load the client driver automatically, in the manner of
> pci/usb.
>
> In case I have misinterpreted your feedback, could you clarify a bit?

This is related to my reply on another patch of this series. I think it's
likely that you need to be able to describe anybus devices in DT
for additional properties in some cases, even if the common case
doesn't need it.

We do the same thing on PCI and USB, where normally everything
is probed through hardware access, but a device driver can look
at dev->of_node to see if that contains any further properties.

Arnd