diff options
author | 2024-10-23 09:00:14 -0300 | |
---|---|---|
committer | 2024-12-02 00:32:29 +0000 | |
commit | 096c34ddf5835f02f5260719cd8a16fcf5e5e56f (patch) | |
tree | 4d27dbc07c08c73159d4414a854e477cbb8ae96a | |
parent | dt-bindings: misc: lwn,bk4-spi: Add binding (diff) | |
download | wireguard-linux-096c34ddf5835f02f5260719cd8a16fcf5e5e56f.tar.xz wireguard-linux-096c34ddf5835f02f5260719cd8a16fcf5e5e56f.zip |
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>
Diffstat (limited to '')
-rw-r--r-- | drivers/spi/spidev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/spi/spidev.c b/drivers/spi/spidev.c index 653f82984216..2b87b9ae56c0 100644 --- a/drivers/spi/spidev.c +++ b/drivers/spi/spidev.c @@ -705,6 +705,7 @@ static const struct spi_device_id spidev_spi_ids[] = { { .name = "ltc2488" }, { .name = "sx1301" }, { .name = "bk4" }, + { .name = "bk4-spi" }, { .name = "dhcom-board" }, { .name = "m53cpld" }, { .name = "spi-petra" }, @@ -734,6 +735,7 @@ static const struct of_device_id spidev_dt_ids[] = { { .compatible = "elgin,jg10309-01", .data = &spidev_of_check }, { .compatible = "lineartechnology,ltc2488", .data = &spidev_of_check }, { .compatible = "lwn,bk4", .data = &spidev_of_check }, + { .compatible = "lwn,bk4-spi", .data = &spidev_of_check }, { .compatible = "menlo,m53cpld", .data = &spidev_of_check }, { .compatible = "micron,spi-authenta", .data = &spidev_of_check }, { .compatible = "rohm,bh2228fv", .data = &spidev_of_check }, |