gpio confusion on 5.15.65-bone-rt-r30

I’ve run into some confusion regarding accessing the GPIO lines. It appears that the 4 ports have rotated somehow. Where gpio port 3 on the hardware now appears as part of gpiochip2. I tried exercising P9 pin 27 which is connected to gpio3[19] by working it at /sys/class/gpio/gpio115. It didn’t respond at all.
Through using the command gpioinfo, I found it is now listed as part of gpiochip2. And it did respond to to, through gpio83. Looking over the device tree, am33xx-l4.dtsi looked right. gpio0 was part of L4_WKUP and gpio1-3 were part of L4_PER.

Is it configured somewhere else that I haven’t found yet?

Thanks.
John.

Below is the capture of version.sh

root@JMNBBB2sdfs:~# /opt/scripts/tools/version.sh
git:/opt/scripts/:[b39ec679648a6be8f25f48bd1c9784c1fc5a0c46]
eeprom:[A335BNLT00C02149SBB05028]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[BeagleBoard.org Debian Buster IoT Image 2020-04-06]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2019.04-00002-g07d5700e21]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2019.04-00002-g31a8ae0206]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
UBOOT: Loaded Overlay:[AM335X-PRU-RPROC-4-19-TI-00A0]
UBOOT: Loaded Overlay:[BB-ADC-00A0.bb.org-overlays]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0.bb.org-overlays]
UBOOT: Loaded Overlay:[BB-CAPE-CDB-00A0.kernel]
UBOOT: Loaded Overlay:[BB-CAPE-CDBO1.kernel]
kernel:[5.15.65-bone-rt-r30]
nodejs:[v10.15.2]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_addr4=/boot/dtbs/5.15.49-bone-rt-r25/overlays/BB-CAPE-CDB-00A0.dtbo]
uboot_overlay_options:[uboot_overlay_addr5=/boot/dtbs/5.15.49-bone-rt-r25/overlays/BB-CAPE-CDB01.dtbo]
uboot_overlay_options:[disable_uboot_overlay_video=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade ]
pkg:[bb-cape-overlays]:[4.14.20210821.0-0~buster+20210821]
pkg:[bb-wl18xx-firmware]:[1.20211222.2-0~buster+20211222]
pkg:[kmod]:[26-1]
pkg:[librobotcontrol]:[1.0.5-git20200715.0-0~buster+20200716]
pkg:[firmware-ti-connectivity]:[20190717-2rcnee1~buster+20200305]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal bluetooth netdev i2c gpio pwm eqep remoteproc admin spi iio docker tisdk weston-launch xenomai cloud9ide]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet]
dmesg | grep remote
[ 1.953748] remoteproc remoteproc0: wkup_m3 is available
[ 2.498589] remoteproc remoteproc0: powering up wkup_m3
[ 2.498619] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[ 2.498857] remoteproc remoteproc0: remote processor wkup_m3 is now up
[ 51.711918] remoteproc remoteproc1: 4a334000.pru is available
[ 51.836262] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pru
[ 51.711918] remoteproc remoteproc1: 4a334000.pru is available
[ 51.836262] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pinctrl-single
[ 1.975641] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
[ 2.412323] gpio-of-helper ocp:cape-universal: Allocated GPIO id=0 name=‘P8_03’
[ 2.412618] gpio-of-helper ocp:cape-universal: Allocated GPIO id=1 name=‘P8_04’
[ 2.412826] gpio-of-helper ocp:cape-universal: Allocated GPIO id=2 name=‘P8_05’
[ 2.413008] gpio-of-helper ocp:cape-universal: Allocated GPIO id=3 name=‘P8_06’
[ 2.413435] gpio-of-helper ocp:cape-universal: Allocated GPIO id=4 name=‘P8_07’
[ 2.413638] gpio-of-helper ocp:cape-universal: Allocated GPIO id=5 name=‘P8_08’
[ 2.413812] gpio-of-helper ocp:cape-universal: Allocated GPIO id=6 name=‘P8_09’
[ 2.413992] gpio-of-helper ocp:cape-universal: Allocated GPIO id=7 name=‘P8_10’
[ 2.414175] gpio-of-helper ocp:cape-universal: Allocated GPIO id=8 name=‘P8_11’
[ 2.414350] gpio-of-helper ocp:cape-universal: Allocated GPIO id=9 name=‘P8_12’
[ 2.414403] gpio-of-helper ocp:cape-universal: Failed to get gpio property of ‘P8_13’
[ 2.414411] gpio-of-helper ocp:cape-universal: Failed to create gpio entry
[ 2.602135] gpio-of-helper ocp:cape-universal: Allocated GPIO id=0 name=‘P8_03’
[ 2.602290] gpio-of-helper ocp:cape-universal: Allocated GPIO id=1 name=‘P8_04’
[ 2.602412] gpio-of-helper ocp:cape-universal: Allocated GPIO id=2 name=‘P8_05’
[ 2.602561] gpio-of-helper ocp:cape-universal: Allocated GPIO id=3 name=‘P8_06’
[ 2.607909] gpio-of-helper ocp:cape-universal: Allocated GPIO id=4 name=‘P8_07’
[ 2.608091] gpio-of-helper ocp:cape-universal: Allocated GPIO id=5 name=‘P8_08’
[ 2.608238] gpio-of-helper ocp:cape-universal: Allocated GPIO id=6 name=‘P8_09’
[ 2.608363] gpio-of-helper ocp:cape-universal: Allocated GPIO id=7 name=‘P8_10’
[ 2.614178] gpio-of-helper ocp:cape-universal: Allocated GPIO id=8 name=‘P8_11’
[ 2.614385] gpio-of-helper ocp:cape-universal: Allocated GPIO id=9 name=‘P8_12’
[ 2.614605] gpio-of-helper ocp:cape-universal: Allocated GPIO id=10 name=‘P8_13’
[ 2.614784] gpio-of-helper ocp:cape-universal: Allocated GPIO id=11 name=‘P8_14’
[ 2.614964] gpio-of-helper ocp:cape-universal: Allocated GPIO id=12 name=‘P8_15’
[ 2.615128] gpio-of-helper ocp:cape-universal: Allocated GPIO id=13 name=‘P8_16’
[ 2.615264] gpio-of-helper ocp:cape-universal: Allocated GPIO id=14 name=‘P8_17’
[ 2.615449] gpio-of-helper ocp:cape-universal: Allocated GPIO id=15 name=‘P8_18’
[ 2.615624] gpio-of-helper ocp:cape-universal: Allocated GPIO id=16 name=‘P8_19’
[ 2.615798] gpio-of-helper ocp:cape-universal: Allocated GPIO id=17 name=‘P8_20’
[ 2.615959] gpio-of-helper ocp:cape-universal: Allocated GPIO id=18 name=‘P8_21’
[ 2.616166] gpio-of-helper ocp:cape-universal: Allocated GPIO id=19 name=‘P8_22’
[ 2.616339] gpio-of-helper ocp:cape-universal: Allocated GPIO id=20 name=‘P8_23’
[ 2.619998] gpio-of-helper ocp:cape-universal: Allocated GPIO id=21 name=‘P8_24’
[ 2.624581] gpio-of-helper ocp:cape-universal: Allocated GPIO id=22 name=‘P8_25’
[ 2.624827] gpio-of-helper ocp:cape-universal: Allocated GPIO id=23 name=‘P8_26’
[ 2.625027] gpio-of-helper ocp:cape-universal: Allocated GPIO id=24 name=‘P8_27’
[ 2.625194] gpio-of-helper ocp:cape-universal: Allocated GPIO id=25 name=‘P8_28’
[ 2.625370] gpio-of-helper ocp:cape-universal: Allocated GPIO id=26 name=‘P8_29’
[ 2.625544] gpio-of-helper ocp:cape-universal: Allocated GPIO id=27 name=‘P8_30’
[ 2.625737] gpio-of-helper ocp:cape-universal: Allocated GPIO id=28 name=‘P8_31’
[ 2.625932] gpio-of-helper ocp:cape-universal: Allocated GPIO id=29 name=‘P8_32’
[ 2.626105] gpio-of-helper ocp:cape-universal: Allocated GPIO id=30 name=‘P8_33’
[ 2.626287] gpio-of-helper ocp:cape-universal: Allocated GPIO id=31 name=‘P8_34’
[ 2.626461] gpio-of-helper ocp:cape-universal: Allocated GPIO id=32 name=‘P8_35’
[ 2.626629] gpio-of-helper ocp:cape-universal: Allocated GPIO id=33 name=‘P8_36’
[ 2.626807] gpio-of-helper ocp:cape-universal: Allocated GPIO id=34 name=‘P8_37’
[ 2.626978] gpio-of-helper ocp:cape-universal: Allocated GPIO id=35 name=‘P8_38’
[ 2.627144] gpio-of-helper ocp:cape-universal: Allocated GPIO id=36 name=‘P8_39’
[ 2.627334] gpio-of-helper ocp:cape-universal: Allocated GPIO id=37 name=‘P8_40’
[ 2.627521] gpio-of-helper ocp:cape-universal: Allocated GPIO id=38 name=‘P8_41’
[ 2.627701] gpio-of-helper ocp:cape-universal: Allocated GPIO id=39 name=‘P8_42’
[ 2.627875] gpio-of-helper ocp:cape-universal: Allocated GPIO id=40 name=‘P8_43’
[ 2.628045] gpio-of-helper ocp:cape-universal: Allocated GPIO id=41 name=‘P8_44’
[ 2.628226] gpio-of-helper ocp:cape-universal: Allocated GPIO id=42 name=‘P8_45’
[ 2.628393] gpio-of-helper ocp:cape-universal: Allocated GPIO id=43 name=‘P8_46’
[ 2.638182] gpio-of-helper ocp:cape-universal: Allocated GPIO id=44 name=‘P9_11’
[ 2.638405] gpio-of-helper ocp:cape-universal: Allocated GPIO id=45 name=‘P9_12’
[ 2.638589] gpio-of-helper ocp:cape-universal: Allocated GPIO id=46 name=‘P9_13’
[ 2.638780] gpio-of-helper ocp:cape-universal: Allocated GPIO id=47 name=‘P9_14’
[ 2.638950] gpio-of-helper ocp:cape-universal: Allocated GPIO id=48 name=‘P9_15’
[ 2.639137] gpio-of-helper ocp:cape-universal: Allocated GPIO id=49 name=‘P9_16’
[ 2.639332] gpio-of-helper ocp:cape-universal: Allocated GPIO id=50 name=‘P9_17’
[ 2.639505] gpio-of-helper ocp:cape-universal: Allocated GPIO id=51 name=‘P9_18’
[ 2.639722] gpio-of-helper ocp:cape-universal: Allocated GPIO id=52 name=‘P9_19’
[ 2.639892] gpio-of-helper ocp:cape-universal: Allocated GPIO id=53 name=‘P9_20’
[ 2.640073] gpio-of-helper ocp:cape-universal: Allocated GPIO id=54 name=‘P9_21’
[ 2.640253] gpio-of-helper ocp:cape-universal: Allocated GPIO id=55 name=‘P9_22’
[ 2.640774] gpio-of-helper ocp:cape-universal: Allocated GPIO id=56 name=‘P9_23’
[ 2.641010] gpio-of-helper ocp:cape-universal: Allocated GPIO id=57 name=‘P9_24’
[ 2.641634] gpio-of-helper ocp:cape-universal: Allocated GPIO id=58 name=‘P9_25’
[ 2.641845] gpio-of-helper ocp:cape-universal: Allocated GPIO id=59 name=‘P9_26’
[ 2.642039] gpio-of-helper ocp:cape-universal: Allocated GPIO id=60 name=‘P9_27’
[ 2.642211] gpio-of-helper ocp:cape-universal: Allocated GPIO id=61 name=‘P9_28’
[ 2.642395] gpio-of-helper ocp:cape-universal: Allocated GPIO id=62 name=‘P9_29’
[ 2.642572] gpio-of-helper ocp:cape-universal: Allocated GPIO id=63 name=‘P9_30’
[ 2.642750] gpio-of-helper ocp:cape-universal: Allocated GPIO id=64 name=‘P9_31’
[ 2.642940] gpio-of-helper ocp:cape-universal: Allocated GPIO id=65 name=‘P9_41’
[ 2.643112] gpio-of-helper ocp:cape-universal: Allocated GPIO id=66 name=‘P9_91’
[ 2.643302] gpio-of-helper ocp:cape-universal: Allocated GPIO id=67 name=‘P9_42’
[ 2.643495] gpio-of-helper ocp:cape-universal: Allocated GPIO id=68 name=‘P9_92’
[ 2.643505] gpio-of-helper ocp:cape-universal: ready
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END