FreeBSD/src ac07e6c (r349415)share/man/man9 pwmbus.9 pwm.9, sys/arm/allwinner aw_pwm.c

MFC r341268, r342003-r342007, r342087-r342088, r342091

r341268 by manu:
arm64: allwinner: Add a dtbo to have cpu operating points

This enables cpufreq on A64 boards.

r342003 by manu:
Add a pwm subsystem so we can configure pwm controller from kernel and userland.

The pwm subsystem consist of API for PWM controllers, pwmbus to register them
and a pwm(8) utility to talk to them from userland.

Reviewed by:    oshgobo (capsicum), bcr (manpage), 0mp (manpage)
Differential Revision:  https://reviews.freebsd.org/D17938

r342004 by manu:
arm64: allwinner: Add pwm driver

Add a pwm driver for Allwinner PWM
Add pwm and aw_pwm to the GENERIC kernel

r342005 by manu:
arm64: allwinner: Add DTSO for pwm and r_pwm

Those are both dtso (overlays) for the two pwm controllers found on the A64.

r342006 by manu:
arm64: allwinner: Fix pwm dtso

Double patched files ended up in the tree

Reported by:    kevans

r342007 by manu:
pwm: Fix some arches by using %ju and casting to uintmax_t

Reported by:    ci.freebsd.org

r342087 by manu:
pwm: Convert period and duty to unsigned int

We don't need a 64 bits value to store nanoseconds

Discused with:  ian, jhibbits

r342088 by manu:
pwm(8): Add percentage value support for duty cycle

r342091 by manu:
allwinner: aw_pwm: Read value at attach

The booloaded might have configured the pwm controller so read the values.
DeltaFile
+361-0sys/arm/allwinner/aw_pwm.c
+244-0sys/dev/pwm/pwmbus.c
+225-0usr.sbin/pwm/pwm.c
+161-0sys/dev/pwm/pwmc.c
+111-0sys/dev/pwm/pwmbus_if.m
+109-0sys/dev/pwm/ofw_pwm.c
+106-0sys/dev/pwm/pwm_if.m
+100-0usr.sbin/pwm/pwm.8
+98-0share/man/man9/pwmbus.9
+93-0share/man/man9/pwm.9
+72-0sys/dts/arm64/overlays/sun50i-a64-opp.dtso
+64-0sys/dev/pwm/pwmbus.h
+53-0sys/sys/pwm.h
+26-0sys/dts/arm64/overlays/sun50i-a64-rpwm.dtso
+26-0sys/dts/arm64/overlays/sun50i-a64-pwm.dtso
+6-0usr.sbin/pwm/Makefile
+4-1sys/modules/dtb/allwinner/Makefile
+5-0sys/conf/files
+4-0sys/arm64/conf/GENERIC
+2-0share/man/man9/Makefile
+1-0usr.sbin/Makefile
+1-0sys/conf/files.arm64
+1,872-122 files

UnifiedSplitRaw