There is a file in /sys/kernel/debug/pinctrl = “44e10800.pinmux” on this file there is another file called “pins”. On pins all the gpio pins are written in beagle bone black.

Who created this file, TI or linux somehow takes information from CPU? A developer needs to create these?


I have a problem with this. I could not find pinctrl under /sys/kernel/debug. That folder is empty.
I have a custom build linux 5.4. It was built with CONFIG_DEBUG_FS option, but the folder empty…

What should I set for “pinctrl” folder?

Those entries are created by debugfs handlers in the pinctrl subsystem:


The BeagleBone pinctrl driver is pinctrl-single implements the generic
pin_dbg_show handler with pcs_pin_dbg_show():

static const struct pinctrl_ops pcs_pinctrl_ops = {
.get_groups_count = pinctrl_generic_get_group_count,
.get_group_name = pinctrl_generic_get_group_name,
.get_group_pins = pinctrl_generic_get_group_pins,
.pin_dbg_show = pcs_pin_dbg_show,
.dt_node_to_map = pcs_dt_node_to_map,
.dt_free_map = pcs_dt_free_map,

The information it displays is primarily a result of the device tree
properties that the pinctrl-single drivers parses and then uses to mux
the pins appropriately.

Is there something specific that you are trying to find? Or some goal
that you are trying to accomplish?


Maybe you do not have debugfs mounted?

On our Debian images, we have it mounted:

debian@beaglebone:~$ mount |grep debugfs
debugfs on /sys/kernel/debug type debugfs (rw,relatime,gid=999,mode=755)

debian@beaglebone:~$ cat /etc/fstab
# /etc/fstab: static file system information.

Thank you for your reply.

The debugfs was not mounted…

Thank you.

  1. június 26., péntek 13:53:47 UTC+2 időpontban Drew Fustini a következőt írta: