July 08, 2020, 06:56:58 pm


Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - ssdev

Other / Cubieboard 6 - device tree
August 26, 2017, 10:44:55 pm
Hi All,

I'm struggling with the learning curve for CB6/device tree.

We have an application and are replacing CB2 boards. I'm trying to maintain pin-compatibility, so either out last CB2 stock or CB6 can be plugged into the same baseboard.

What I'm after is a straightforward explanation -- or links to some concrete advice -- on how to change pin assignments.
The FEX file was pretty understandable.
I understand the purpose of the device tree, etc, also.
But, I can't join the dots so easily...

Specifically, we want to use a few pins as GPIO with interrupts, and 1-wire.
How do I make the assignment of, say, "this header pin = gpio X in userspace"?
The S500/new board also seems a little more restricted than the A20 in terms of which pins can be assigned to which tasks...?