Skip to content

Commit

Permalink
spi: spidev: Add Pluto SDR compatible id
Browse files Browse the repository at this point in the history
This patch adds an adi,swspi compatible id to the spidev driver. This is
necessary in order to remove the warning that the DT is buggy.

Others have implemented different options to take care of this see
Raspberry Pi: a535fff (Completely disable the DT warning).

Signed-off-by: Mircea <[email protected]>
  • Loading branch information
Mircea authored and commodo committed Jan 27, 2020
1 parent 2d912b4 commit 10fe631
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/boot/dts/zynq-pluto-sdr-revc.dts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
xlnx,spi-mode = <0>;

spidev0: spidev@0 {
compatible = "spidev";
compatible = "adi,swspi";
reg = <0>; /* CE0 */
#address-cells = <1>;
#size-cells = <0>;
Expand Down
1 change: 1 addition & 0 deletions drivers/spi/spidev.c
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,7 @@ static const struct of_device_id spidev_dt_ids[] = {
{ .compatible = "lineartechnology,ltc2488" },
{ .compatible = "ge,achc" },
{ .compatible = "semtech,sx1301" },
{ .compatible = "adi,swspi" },
{},
};
MODULE_DEVICE_TABLE(of, spidev_dt_ids);
Expand Down

0 comments on commit 10fe631

Please sign in to comment.