]> git.baikalelectronics.ru Git - kernel.git/commit
spi: spi-fsl-dspi: Use specific compatible strings for all SoC instantiations
authorVladimir Oltean <vladimir.oltean@nxp.com>
Mon, 2 Mar 2020 00:19:54 +0000 (02:19 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 4 Mar 2020 18:28:51 +0000 (18:28 +0000)
commitcc1092e2f1d12293447f6cbe110f773f42af72f5
treee40d5f52d8dc1d7eb8b22adfe11c50a6a7fa7265
parentd43f52ada9c7f6c8266d85bd13ad777769c233e9
spi: spi-fsl-dspi: Use specific compatible strings for all SoC instantiations

Currently, the device tree bindings submitted in mainline for Layerscape
SoCs look like this:

LS1021A:
compatible = "fsl,ls1021a-v1.0-dspi";

LS1012A:
compatible = "fsl,ls1012a-dspi", "fsl,ls1021a-v1.0-dspi";

LS2085A:
compatible = "fsl,ls2085a-dspi";

LS2088A:
compatible = "fsl,ls2080a-dspi", "fsl,ls2085a-dspi";

LX2160A:
compatible = "fsl,lx2160a-dspi", "fsl,ls2085a-dspi";

LS1043A:
compatible = "fsl,ls1043a-dspi", "fsl,ls1021a-v1.0-dspi";

LS1046A:
compatible = "fsl,ls1021a-v1.0-dspi";

Due to a lack of a more specific compatible string, LS1012A, LS1043A and
LS1046A will fall under the LS1021A umbrella, and LS2088A and LX2160A
under the LS2085A umbrella.

They do work in those modes, but there are slight differences in the
hardware instantiations, mostly related to FIFO sizes (with the more
specific compatible strings, the FIFO size can be increased properly).

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Message-Id: <20200302001958.11105-3-olteanv@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-dspi.c