clk: bcm: rpi: Allow the driver to be probed by DT
authorMaxime Ripard <maxime@cerno.tech>
Mon, 23 Dec 2019 18:58:08 +0000 (19:58 +0100)
committerpopcornmix <popcornmix@gmail.com>
Wed, 1 Jul 2020 15:33:32 +0000 (16:33 +0100)
commita6295db2f79eae9a34b97199d42f1d267ceaa8da
tree38319f7962229fa6e2cc7c534bcac683bbf8fbfc
parent58af1bac5f552828b6c278afde634ea434e57b66
clk: bcm: rpi: Allow the driver to be probed by DT

The current firmware clock driver for the RaspberryPi can only be probed by
manually registering an associated platform_device.

While this works fine for cpufreq where the device gets attached a clkdev
lookup, it would be tedious to maintain a table of all the devices using
one of the clocks exposed by the firmware.

Since the DT on the other hand is the perfect place to store those
associations, make the firmware clocks driver probe-able through the device
tree so that we can represent it as a node.

Cc: Michael Turquette <mturquette@baylibre.com>
Cc: Stephen Boyd <sboyd@kernel.org>
Cc: linux-clk@vger.kernel.org
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
drivers/clk/bcm/clk-raspberrypi.c