Connect a supported expansion board to an AM335x development kit without needing to recompile or flash the Device Tree. This is an alternative to Device Tree Overlays, which is not supported in the 3.12 kernel.
The AM335x Yocto BSPs support enabling and disabling various expansion boards that may be used along with the carrier board via the bootloader. This functionality allows for certain pin configurations to be added or removed from the device tree without needing to recompile the kernel or reflash images. The following example demonstrates how to disable the LCD-018 expansion board on phyCORE-AM335x Rapid Development Kit to allow those pins to be used for a custom purpose.
- Disconnect power supply before connecting the expansion board to the development kit.
Once the expansion board has been connected, power on the development kit and hit any key to boot into barebox when prompted:
To view the available expansion boards:
Please note that not all of these will be compatible with your specific board.
Edit /env/config-expansions to modify which expansions are enabled:
You should see something similar to the following. By default, Barebox built with the phyCORE-AM335x RDK configures the kernel to enable display LCD-018:
- Remove the line . /env/expansions/am335x-phytec-lcd-018-pcm-953 so that the LCD pins are not configured for LCD-018 when the kernel is booted. You may create your own custom expansion files to enable by following the format described below.
The expansions make use of the barebox command of_enable_node which enables the device tree node. For example, the expansion configuration file /env/expansions/am335x-phytec-lcd-018-pcm-953 contains the following lines:
When using of_enable_node, you must list the full path to the node as it is implemented in the device tree.