pwm: raspberrypi-poe: Add option of being created by MFD or FW
authorDave Stevenson <dave.stevenson@raspberrypi.com>
Wed, 19 Jan 2022 17:26:22 +0000 (17:26 +0000)
committerDom Cobley <popcornmix@gmail.com>
Mon, 21 Mar 2022 16:04:38 +0000 (16:04 +0000)
commitfea434f09ff1dbfa79494edf09d39ea52d194c60
treea7703087097e53106539a8bbc825b8bb44e9095b
parent5ff73ab47547de0e972b74f2882c339210760e53
pwm: raspberrypi-poe: Add option of being created by MFD or FW

The firmware can only use I2C0 if the kernel isn't, therefore
with libcamera and DRM using it the PoE HAT fan control needs
to move to the kernel.

Add the option for the driver to be created by the PoE HAT core
MFD driver, and use the I2C regmap that provides to control fan
functions.

Signed-off-by: Dave Stevenson <dave.stevenson@raspberrypi.com>
drivers/pwm/pwm-raspberrypi-poe.c