soc: fsl: cpm1: qmc: Add support for child devices
authorHerve Codina <herve.codina@bootlin.com>
Tue, 5 Dec 2023 15:21:03 +0000 (16:21 +0100)
committerHerve Codina <herve.codina@bootlin.com>
Tue, 12 Dec 2023 09:29:20 +0000 (10:29 +0100)
commitba3b7e4753c5ad80b3670277a2104aeb421e0d7d
tree43be3fcdbb2f9eeed43a76a264ec095601ec0740
parent48490dc36742b616f846368f300ebedfe9323da1
soc: fsl: cpm1: qmc: Add support for child devices

QMC child devices support is needed to avoid orphan DT nodes that use a
simple DT phandle to reference a QMC channel.

Allow to instantiate child devices and also extend the API to get the
qmc_chan using a child device.

Signed-off-by: Herve Codina <herve.codina@bootlin.com>
Link: https://lore.kernel.org/r/20231205152116.122512-7-herve.codina@bootlin.com
drivers/soc/fsl/qe/qmc.c
include/soc/fsl/qe/qmc.h