From: Miro <[email protected]>
Reply-To: <[email protected]>
Date: Tuesday, December 10, 2013 at 8:53 PM
To: <[email protected]>
Subject: [beagleboard] linking device tree and simple driver
> Hello all.
>
> I have simple kernel driver that measures the pulse width of the pwm signal.
> Driver works, but I'd like to link it with the device tree, so that it can be
> configured (gpio's etc).
>
>
> static int __init rcpwm_init(void)
> {
> ...
> }
> static void __exit rcpwm_cleanup(void)
> {
> ...
> }
> module_init(rcpwm_init);
> module_exit(rcpwm_cleanup);
>
> I'd like to link it with the device tree entry
>
> rcpwm:rcpwm_0@0 {
> compatible = "my,driver";
> };
>
> Is this doable with the driver that's initialized this way, or do I have to
> use probe?
All you need to know about DT is here:
https://github.com/jadonk/validation-scripts/tree/master/test-capemgr
Look at reference number 5 which shows you exactly how to do what you want.
Regards,
John
>
>
> Thanks,
>
> Miro
>
>
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to the Google Groups
> "BeagleBoard" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/groups/opt_out.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.