spi: spi-fsl-lpspi: Read chip-select amount from hardware for i.MX93
authorAlexander Stein <alexander.stein@ew.tq-group.com>
Mon, 17 Jul 2023 08:59:34 +0000 (10:59 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 18 Jul 2023 11:47:56 +0000 (12:47 +0100)
commitf46b06e62c86a688ebe691b004f3056818c8ed15
treefc96ce2d20ff865c024027434063736c23be9212
parentdfc07ee62c03eaaaf806fccc50bd52fcbc9f828f
spi: spi-fsl-lpspi: Read chip-select amount from hardware for i.MX93

PARAM.PCSNUM register on i.MX93 indicates the number of supported
(hw) chip-selects. LPSPI4 has 3 while others have only 2.
Still allow overwriting from DT.

Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Link: https://lore.kernel.org/r/20230717085934.409476-3-alexander.stein@ew.tq-group.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-lpspi.c