GSoC 2014 Idea. Generic Device Tree creator

Hello everyone,

Thought I’d pitch in an idea that just popped into my head.

Device Tree usage can be a steep learning curve for many.
Despite N tutorials. It will always be a pain. Googling forum posts all the time.
Kernel version and naming convention changes etc.

So how about a tool to create the DT file for the beaglebone black.

Click the options. Need this gpio for pru. Need this adc for tsc. Need this pin.

And it generated DT bindings for you.

I am unaware of any existing tool.

Ideally it could effectively expand for all embedded dev kits. If you load a Beaglebone Black Rev C file. The DT bindings for that.
If you load a Beagleboard - XM Rev A file. And expand for kits from other vendors too perhaps.
DT for that. etc. Stable kernel versions supported too.

Obviously, the GSoC would be concerned with a base structure of the software…

What do you guys think?

ZubairLK

Hey Zubair!

I like the idea. I spent a lot of time in here, a tool would simplify the process for sure.
+1.

Víctor.

nice idea. Would make life a lot easier.

Regards,
Saket Sinha

This is a great idea. I believe Anuj had proposed a similar idea during the course GSoC 2013, although he had real-time multiplexing in mind in combination with this tool.

Say, you need PWM on a pin previously configured as SPI, you could fire up this code to generate the DT bindings and load them in place of the previous bindings. I think this might require some work on making unloading the bindings more stable.

I guess the mentors out there could throw some light on this, if it is indeed possible and about the future of Device Tree on the Beagle devices.

Parav

I’m guessing Device Tree is here to stay for a while. And such a tool could be very helpful to the embedded community.

I’m hoping for some volunteer mentors and some response before I edit the ideas page…

Regards
Zubair

I'm guessing Device Tree is here to stay for a while. And such a tool
could be very helpful to the embedded community.

I'm hoping for some volunteer mentors and some response before I edit the
ideas page..

GitHub - jluebbe/tools: Miscellaneous tools is a bit of a starting point.
BoneScript has some templates that I'm looking to extend to support all of
the peripherals.

This was more of an idea for the ideas page. Should I add it now?

Regards
ZubairLK

This was more of an idea for the ideas page. Should I add it now?

Yes, please add it. I suggest it be done as a web app.

http://elinux.org/BeagleBoard/GSoC/Ideas#Generic_Device_Tree_Creator

Added it.

btw. Listed you as possible mentor.
Hope thats ok?

Regards
ZubairLK