PIN_MUX P9_26 not

Hi Robert,
(kernel version: 4.19.50-ti-r20)
When I try to
config-pin P9.24 can and config-pin P9.26 can
I got the following error:
ERROR: open() for /sys/devices/platform/ocp/ocp:P9_24_pinmux/state failed
ERROR: open() for /sys/devices/platform/ocp/ocp:P9_26_pinmux/state failed

I found that the pinmux for both are not listed under :
/sys/devices/platform/ocp

The above is booted with CAPE on. But without CAPE, both pinmux are there.
Is CAPE Overlay not loaded or is CAPE Overlay conflicting with something else.?
What the best way to resolve it?

(CAN1 is working under Stretch)

Thank you,
David

Hi @dzhou ,

When an overlay takes a pin for a specific function, the overlay disables the corresponding config-pin entry.

Regards,

Hi Robert,

Can you please help with some suggestions how to resolve the issue? It is new to me with these overlays.

Thank you,
David

Hi @dzhou, sorry i’m confused, does CAN1 work out of the box with out touching config-pin?

config-pin is used to quickly change the pinmux of pin’s on the fly. However when you load a device specific overlay, that ability is removed, as the overlay has a specific pinmux for the device, such that i’ll just work.

So, out of box with that BeagleBone Cape, the CAN1 bus should be muxed and working, if not we have another issue to deal with…

Regards,

Hi Robert,
CAN1 works on BBBw with CAPE, and BBBw loaded with Stretch version.
It needs to config-pins, too.

Now, I couldn’t be sure. But I believe it needs config-pins.

Regards,
David

These two lines disable config-pin for those pins:

The final pinmux setting are set here:

Thus config-pin is not used…

Regards,

Hi Robert,

We got CAN working. Buster (2019-07 version) is just fine without recompiling overlays. Just config pins. We have our end problem, the mode control is implemented on our board. After grounding the pin, it just worked.

Thank you for your help,
David