Kernel module request: pwm-pca9685.ko & sht4x.ko

In our project, we’re looking to use the PCA9685 PWM driver chip and SHT40 humidity sensor. These chips are supported by Linux, but the modules are not enabled in TorizonCore (Looking at the most recent git version I could find ).

Could you enable these modules by default in future images?

The required kernel config directive is PWM_PCA9685 and SENSORS_SHT4x

Thanks!

Hardware: Verdin iMX8MP
Software: TorizonCore 6.x

Greetings @matthijs,

First of all it’s not completely correct to just rely on the defconfig found in the kernel. While these configs are a part of TorizonCore, they do not reflect the complete kernel config used. During build-time we actually add additional kernel configs found from here: GitHub - toradex/toradex-kernel-cache: Patches and configuration for the Toradex kernel tree

These get added on-top of the usual defconfig, also note these are only for TorizonCore not our reference BSP.

Now that said PWM_PCA9685 is already enabled as per our kernel cache repo, though you are correct that SENSORS_SHT4x is not enabled:

torizon@verdin-imx8mp-06849059:~$ zcat /proc/config.gz | grep PWM_PCA9685
CONFIG_PWM_PCA9685=m
torizon@verdin-imx8mp-06849059:~$ zcat /proc/config.gz | grep SENSORS_SHT4x
# CONFIG_SENSORS_SHT4x is not set

So I guess we just need the request for SENSORS_SHT4x. In that case I’ll go ahead and create the request to our team. I’ll let you know when this becomes available.

Best Regards,
Jeremias

Thanks for the additional links, and for forwarding the request!

Hi @matthijs,

Your request was processed and this config should now be available in our recent nightlies going forward:

torizon@verdin-imx8mp-06849059:~$ cat /etc/os-release
ID=torizon-rt
NAME="TorizonCore with PREEMPT_RT"
VERSION="6.4.0-devel-20230901+build.368 (kirkstone)"
VERSION_ID=6.4.0-devel-20230901-build.368
PRETTY_NAME="TorizonCore with PREEMPT_RT 6.4.0-devel-20230901+build.368 (kirkstone)"
DISTRO_CODENAME="kirkstone"
BUILD_ID="368"
ANSI_COLOR="1;34"
VARIANT="Docker"
torizon@verdin-imx8mp-06849059:~$ zcat /proc/config.gz | grep SHT4
CONFIG_SENSORS_SHT4x=m

Best Regards,
Jeremias