No bone_capemgr under /sys/devices/platform

#1

Hello,

I found some difference between 4.9.146-bone-rt-r12 and 4.19.19-bone-rt-r21.
4.9.146-bone-rt-r12:There is bone_capemgr under /sys/devices/platform
root@arm:/sys/devices/platform# /opt/scripts/tools/version.sh
git:/opt/scripts/:[29878c8f9a13833ac69956ecc086c95b99726dde]
]eprom:[A335BNLTBBG121Q
model:[TI_AM335x_BeagleBone_Green]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2018.09-dirty]:[location: dd MBR]
kernel:[4.9.146-bone-rt-r12]
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[disable_uboot_overlay_video=1]
uboot_overlay_options:[disable_uboot_overlay_audio=1]
uboot_overlay_options:[disable_uboot_overlay_wireless=1]
uboot_overlay_options:[disable_uboot_overlay_adc=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade ]
pkg:[bb-cape-overlays]:[4.4.20180727.0-0rcnee0~stretch+20180727]
WARNING:pkg:[bb-wl18xx-firmware]:[NOT_INSTALLED]
pkg:[kmod]:[23-2rcnee1~stretch+20171005]
WARNING:pkg:[librobotcontrol]:[NOT_INSTALLED]
pkg:[firmware-ti-connectivity]:[20170823-1rcnee1~stretch+20180328]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal i2c netdev gpio pwm eqep bluetooth admin spi tisdk weston-launch xenomai cloud9ide]
cmdline:[console=ttyO0,115200n8 quiet lpj=4980736 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait]
dmesg | grep pinctrl-single
[ 2.388534] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
dmesg | grep gpio-of-helper
root@arm:/sys/devices/platform# ls
alarmtimer cpufreq-dt fixedregulator0 ocp pmu reg-dummy serial8250 soc
bone_capemgr Fixed MDIO bus.0 leds opp_table0 power regulatory.0 snd-soc-dummy uevent
root@arm:/sys/devices/platform# cat /boot/uEnv.txt
uname_r=4.9.146-bone-rt-r12
optargs=quiet lpj=4980736
enable_uboot_overlays=1
#disable_uboot_overlay_emmc=1
disable_uboot_overlay_video=1
disable_uboot_overlay_audio=1
disable_uboot_overlay_wireless=1
disable_uboot_overlay_adc=1

4.19.19-bone-rt-r21:no bone_capemgr under /sys/devices/platform
root@arm:/sys/devices/platform# /opt/scripts/tools/version.sh
git:/opt/scripts/:[38ce81fcdafad0892b6c485acd4e9a2245dfb07a]
eeprom:[A335BNLTBWA51905BBWG0318]
model:[TI_AM335x_BeagleBone_Black_Wireless]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2019.01-dirty]:[location: dd MBR]
bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2019.01-dirty]:[location: dd MBR]
kernel:[4.19.19-bone-rt-r21]
uboot_overlay_options:[enable_uboot_overlays=1 ]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade ]
pkg:[bb-cape-overlays]:[4.4.20190404.0-0rcnee0~stretch+20190404]
pkg:[bb-wl18xx-firmware]:[1.20190227.1-0rcnee0~stretch+20190227]
pkg:[kmod]:[23-2rcnee1~stretch+20171005]
pkg:[librobotcontrol]:[1.0.4-git20190227.1-0rcnee0~stretch+20190327]
pkg:[firmware-ti-connectivity]:[20180825+dfsg-1rcnee1~stretch+20181217]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal i2c netdev gpio pwm eqep bluetooth admin spi tisdk weston-launch xenomai cloud9ide]
cmdline:[console=ttyO0,115200n8 quiet lpj=1990656 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait]
dmesg | grep pinctrl-single
[ 0.602998] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
root@arm:/sys/devices/platform# ls
4b000000.pmu clk_mcasp0 Fixed MDIO bus.0 fixedregulator@2 ocp pm33xx reg-dummy serial8250 soc ti-cpufreq
alarmtimer cpufreq-dt fixedregulator0 leds opp-table power regulatory.0 snd-soc-dummy sound uevent
root@arm:/sys/devices/platform# cat /boot/uEnv.txt
uname_r=4.19.19-bone-rt-r21
optargs=quiet lpj=1990656
#disable_uboot_overlays=1
#disable_uboot_overlay_video=1
#disable_uboot_overlay_audio=1
#disable_uboot_overlay_adc=1
enable_uboot_overlays=1

Do you know how to enable bone_capemgr for 4.19.19-bone-rt-r21?
Thanks in advance.

#2

That interface was removed after v4.14.x, use u-boot overlays.

Regards,