Hello,
I’m trying to apply a custom device tree overlay to set header pins P8.11 and P8.16 to mode 6 (PRU). I am struggling for hours and cannot find any proper solution using the internet.
I am observing some strange behaviour.
I am running Debian 12 with Kernel version 6.12.79 on a Beaglebone Black Rev. D.
If my DTS file contains
pru_pins: pinmux_pru_pins {
pinctrl-single,pins = <
0x034 0x0e
0x038 0x0e
>;
};
It has been build compiled using dtc -@ -I dts -O dtb -b 0 -o BB-PRU-OUT-00A0.dtbo BB-PRU-OUT.dts.
cat /sys/kernel/debug/pinctrl/44e10800.pinmux-pinctrl-single/pinmux-pins shows:
pin 13 (PIN13): 4a300000.pruss (GPIO UNCLAIMED) function pinmux_pru_pins group pinmux_pru_pins
pin 14 (PIN14): (MUX UNCLAIMED) (GPIO UNCLAIMED)
If i switch the pin entries as follows
pru_pins: pinmux_pru_pins {
pinctrl-single,pins = <
0x038 0x0e
0x034 0x0e
>;
};
cat /sys/kernel/debug/pinctrl/44e10800.pinmux-pinctrl-single/pinmux-pins shows:
pin 13 (PIN13): (MUX UNCLAIMED) (GPIO UNCLAIMED)
pin 14 (PIN14): 4a300000.pruss (GPIO UNCLAIMED) function pinmux_pru_pins group pinmux_pru_pins
Please note that I changed the order of the pins within pru_pins.
The output of pinmux-pins shows that in both settings only the first entry is set to PRU mode.
The pin addresses and mode values seem to be correct, as they can be set to PRU mode separately.
I do not see the reason why it is not possible to set both pins to PRU mode at the same time. Does anybody can explain this behaviour? How do i set pin mode correctly within the .dts file?
Thanks, Michael
BB-PRU-OUT.dts (1,0 KB)