PWM is not reported as working in mainline…on a quick look the dts exists with compatible “mediatek,mt7988-pwm”, but driver is not prepared for it (in my 6.8-dango and i guess openwrt too),
but i see in daniels latest wip-branch, pwm support seems to be added (at least compatible in driver).
but the dtsi node is disabled and not enabled in board dts…i try to enable it and report back…i at least need pinctrl node and one in board dts setting pinctrl and status
Seems there is only 1 possible pinctrl per pwm (0-6), so adding pinctrl should be easy…
@dangowrt your current wip tree is broken (“Label or path slot0 not found”) for a mt7622 dts (mt7622-adtran-smartrg-841-t6), disabled this for now. Have you tried pwm yet?
on first try i get error that pin is busy (don’t i need the pinctrl here - already in right state?)
root@bpi-r4-v11:~# dmesg | grep -i pwm
[ 5.136100] mt7988-pinctrl 1001f000.pinctrl: pin PWMD1 already requested by 10048000.pwm; cannot claim for pinctrl_moore:533
seems not working yet…based on shematics fan-socket is pwm0…i can set export and pwm settings
I have the same issue with the fan, the one in the photo, it never starts up, not even when the Banana Pi has been on for an hour and is already hot… Any solutions? Thank you!
openwrt and daniels wip tree i use does not yet have pwm working…in my tests the controller itself is available in sysfs, but does not give pwm signal to fan socket
based on the other thread i compared the register offsets and settings for the compatible, they are same, only a bit different structure with the reg_offset_v2
mhm, clk and pinctrl driver is nearly same as my (daniels wip) tree, also dts seems to be same (also no pinctrl defined in openwrt source)…very strange…in pwm driver it looks there is no functional difference.
Can you please share the config you use when you compile daniels wip, so I can see if I get the same result as you? Also are daniels wip the same as dangowrt?
Install option is only for my debian/ubuntu images which have a bpi-boot partition…openwrt uses different approach,but you can load kernel fit image (itb) in uboot from usb/tftp,but afaik openwrt uses differnt config options to apply the overlays (e.g. sdcard).