Skip to content

Commit 096c34d

Browse files
Fabio Estevambroonie
authored andcommitted
spi: spidev: Add an entry for lwn,bk4-spi
Currently, the compatible string used for Liebherr's BK4 external SPI controller device is "lwn,bk4", which is the same as the board compatible string documented at fsl.yaml. This causes several dt-schema warnings: make dtbs_check DT_SCHEMA_FILES=fsl.yaml ... ['lwn,bk4'] is too short 'lwn,bk4' is not one of ['tq,imx8dxp-tqma8xdp-mba8xx'] 'lwn,bk4' is not one of ['tq,imx8qxp-tqma8xqp-mba8xx'] 'lwn,bk4' is not one of ['armadeus,imx1-apf9328', 'fsl,imx1ads'] ... Add a more specific "lwn,bk4-spi" compatible string entry for this device to fix the problem. The original "lwn,bk4" is kept to keep compatibility with old DTBs. Signed-off-by: Fabio Estevam <festevam@denx.de> Link: https://patch.msgid.link/20241023120015.1049008-2-festevam@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 36e7886 commit 096c34d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/spi/spidev.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,7 @@ static const struct spi_device_id spidev_spi_ids[] = {
705705
{ .name = "ltc2488" },
706706
{ .name = "sx1301" },
707707
{ .name = "bk4" },
708+
{ .name = "bk4-spi" },
708709
{ .name = "dhcom-board" },
709710
{ .name = "m53cpld" },
710711
{ .name = "spi-petra" },
@@ -734,6 +735,7 @@ static const struct of_device_id spidev_dt_ids[] = {
734735
{ .compatible = "elgin,jg10309-01", .data = &spidev_of_check },
735736
{ .compatible = "lineartechnology,ltc2488", .data = &spidev_of_check },
736737
{ .compatible = "lwn,bk4", .data = &spidev_of_check },
738+
{ .compatible = "lwn,bk4-spi", .data = &spidev_of_check },
737739
{ .compatible = "menlo,m53cpld", .data = &spidev_of_check },
738740
{ .compatible = "micron,spi-authenta", .data = &spidev_of_check },
739741
{ .compatible = "rohm,bh2228fv", .data = &spidev_of_check },

0 commit comments

Comments
 (0)