Re: [PATCH anybus v3 5/6] dt-bindings: anybuss-host: document devicetree binding
From: Sven Van Asbroeck
Date: Thu Nov 08 2018 - 09:21:38 EST
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?
Thanks,
Sven
E.g. here's the definition of an anybus client driver, a profinet card:
static struct anybuss_client_driver profinet_driver = {
.probe = profinet_probe,
.remove = profinet_remove,
.driver = {
.name = "hms-profinet",
.owner = THIS_MODULE,
},
.fieldbus_type = 0x0089,
};
static int __init profinet_init(void)
{
return anybuss_client_driver_register(&profinet_driver);
}
module_init(profinet_init);