Radxa Zero voltage regulators with Buildroot causing PWM problems?

I’ve build a custom image with buildroot-2022.11. I can boot to the system. At the moment I try to debug the PWMAO_A. I make it work with DietPi OS Post. Now I try to reproduce this in my custom image.

The commands from my previous post are not working as expected. There are some odd outputs in the kernel logs that I quite don’t understand. This at boot time.

[    0.081403] reg-fixed-voltage regulator-flash_1v8: Failed to register regulator: -517
[    0.081747] reg-fixed-voltage regulator-vcc_1v8: Failed to register regulator: -517
[    0.081838] reg-fixed-voltage regulator-vcc_3v3: Failed to register regulator: -517
[    0.081976] reg-fixed-voltage regulator-vddao_1v8: Failed to register regulator: -517

I don’t now how to debug this. I use the exact same .dtb and meson-g12a-pwmao-a-on-gpioao-11.dtbo . I can see the corresponding pwmchip

# cat /sys/class/pwm/pwmchip0/device/modalias  
of:NpwmT(null)Camlogic,meson-g12a-ao-pwm-cd
# cat /sys/class/pwm/pwmchip2/device/modalias  
of:NpwmT(null)Camlogic,meson-g12a-ao-pwm-ab # <- Need this one
# cat /sys/class/pwm/pwmchip4/device/modalias
of:NpwmT(null)Camlogic,meson-g12a-ee-pwm

When I try to enable PIN40 through the pwmchip2 I see this in the kernel logs

[ 3248.294890] meson-pwm ff807000.pwm: .apply is supposed to round down duty_cycle (requested: 100/10000, applied: 9758/9840)
[ 3248.298727] meson-pwm ff807000.pwm: .apply is not idempotent (ena=1 pol=292568176 82/9840) -> (ena=1 pol=0 41/9676)
[ 3248.303312] meson-pwm ff807000.pwm: .apply didn't pick the best available period (requested: 10000, applied: 0, possible: 9676)
[ 3248.310794] meson-pwm ff807000.pwm: .apply is not idempotent (ena=1 pol=292568176 0/0) -> (ena=1 pol=0 0/0)
[ 3309.485314] meson-pwm ff807000.pwm: .apply is supposed to round down duty_cycle (requested: 900/10000, applied: 8979/9840)
[ 3309.489213] meson-pwm ff807000.pwm: .apply is not idempotent (ena=1 pol=292568176 861/9840) -> (ena=1 pol=0 820/9676)
[ 3312.601374] meson-pwm ff807000.pwm: .apply is not idempotent (ena=1 pol=292568176 0/0) -> (ena=1 pol=0 0/0)

Are there any specific kernel option I need to set? Something ARM or Amlogic specific drivers? How can I debug this?

Full logs

PS:
I also see this on boot. Can it be somehow related?

[    1.502989] brcmfmac: brcmf_of_probe: interrupt could not be mapped

It don’t hurt to ignore this error but connection to AP seems a bit delayed. Is the timespan ok?

[    3.751166] brcmfmac: brcmf_fw_alloc_request: using brcm/brcmfmac43456-sdio for chip BCM4345/9
[    4.647181] brcmfmac: brcmf_c_preinit_dcmds: Firmware: BCM4345/9 wl0: May 14 2020 17:26:08 version 7.84.17.1 (r871554) FWID 01-3d9e1d87
# Is this timespan OK?
[   11.495250] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready