Media Case PWM fan control with Alta AML-A311D-CC

I’m having trouble piecing together how to enable PWM fan control with the Alta. I’ve tried gluing together some information about the Le Potato and ROC versions but not having success.

Can someone point me to a guide for controlling the Loverpi media case fan with the Alta AML-A311D-CC?

Currently I have the fan running on 5V Pin 4, Ground Pin 34, and fan blue wire connected to PWM_C Pin 33.

Thanks in advance.

When I look through ldto output I don’t see the Alta with any of the pwm overlays that I see in Le Potato documentation.

libre@libre:~$ sudo ldto list
#Overlays available
cpu-b-opp-2304	
cpu-l-opp-2208	
i2c-2	
i2c-ao	
npu	
spi-cc0-1cs	
spi-cc0-1cs-spidev	
spi-cc1-1cs	
spi-cc1-1cs-spidev	
spi-cc1-2cs	
spi-cc1-2cs-ili9486-xpt2046	
spi-cc1-2cs-mhs3528	
spi-cc1-2cs-mpi3501	
spi-cc1-2cs-spidev	
spifc-nor	
uart-ao-b-23	
uart-ao-b-89	
uart-c	
uart-c-rts-cts

Are pwm overlays not currently available for Alta?
If no, is there an ETA for them to become available?
Are they available to load/enable in a way I’m not aware of?

Thanks for any help, I’m happy to create a pull request if required but not sure where to start.

Cheers,
– MY

I took a stab at generating some early PWM files, however, I don’t think they are right. If anyone has some time to point me in the right direction I’d appreciate it.

Draft MR: WIP: adding PWM control for a311d (Alta / Cottonwood) by yacobucci · Pull Request #18 · libre-computer-project/libretech-wiring-tool · GitHub

Admittedly this is a hunt and peck hack; filling in knowledge gaps with the A311D-AMLOGIC datasheet, chatgpt, and cross referencing linux kernel and aml-s905x-cc files.

Much appreciated! Hope I can assist with getting pwm and pwm-fan files added.

Cheers,
–MY