Unable to Load Multiple Device Tree Overlays

20 views
Skip to first unread message

dyer.t...@gmail.com

unread,
Sep 8, 2017, 1:35:25 PM9/8/17
to BeagleBoard

Hello all,

I am currently trying to load a custom device tree following the format found in Derek Molloy's book.  In the ~/.profile file I have added the following lines:
export SLOTS=/sys/devices/bone_capemgr.9/slots
export PINS=/sys/kernel/debug/pinctrl/44e10800.pinmux/pins

I am trying to set specific pins as digital IO through either multiple DTBOs or a single DTBO.  I am able to compile the versions of the DTS files using: dtc -O dtb -o <Filename>-00A0.dtbo -b 0 -@ <Filename>.dts.  I have disabled the eMMC and HDMI capes and am running off of an SD card.

When using the single DTBO it will compile and load into the $SLOTS, but the $PINS don't properly update for all pins.  When using multiple files, the $PINS are properly updated for the first DTBO.  If a DTBO is applied, then removed from $SLOTS and a second DTBO is applied then the new pins are properly muxed and the old ones are left alone.  It is preferred to have all the DTBO's loaded on boot and active while running to ensure the pins remain muxed.

Any help is appreciated.

Robert

dyer.t...@gmail.com

unread,
Sep 8, 2017, 1:47:48 PM9/8/17
to BeagleBoard
Dir-Ctrl.dts
Gen-Ctrl.dts
Input-Ctrl.dts
Lim-Sw-Ctrl.dts
Mtr-En-Ctrl.dts
Mtr-Sw-Ctrl.dts

dyer.t...@gmail.com

unread,
Sep 12, 2017, 9:55:42 AM9/12/17
to BeagleBoard
I have found the solution.  The syntax for multiple pins in the device tree was different that what was shown in Molloy's book.  The corrected files are attached.
Dir-Ctrl.dts
Input-Ctrl.dts
Lim-Sw-Ctrl.dts
Mtr-En-Ctrl.dts
Mtr-Sw-Ctrl.dts
Reply all
Reply to author
Forward
0 new messages