spi/rockchip: add the rk3036/rk3228/rk3368 to match for driver
authorCaesar Wang <wxt@rock-chips.com>
Thu, 19 May 2016 23:56:21 +0000 (07:56 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 31 May 2016 16:05:05 +0000 (17:05 +0100)
In gerenal, the "rockchip,rockchip-spi" string will match the dts
that's great in spi driver. After all the most of rockchip SoCs ar
same spi controller.

Then, we should keep the old style to match the dts various.

Signed-off-by: Caesar Wang <wxt@rock-chips.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-rockchip.c

index cd89682065b98d7a06a7d7064ec30aff2a5e7fef..bead5bfcbb0c1d318c8da065dc234e63d6573616 100644 (file)
@@ -892,9 +892,12 @@ static const struct dev_pm_ops rockchip_spi_pm = {
 };
 
 static const struct of_device_id rockchip_spi_dt_match[] = {
+       { .compatible = "rockchip,rk3036-spi", },
        { .compatible = "rockchip,rk3066-spi", },
        { .compatible = "rockchip,rk3188-spi", },
+       { .compatible = "rockchip,rk3228-spi", },
        { .compatible = "rockchip,rk3288-spi", },
+       { .compatible = "rockchip,rk3368-spi", },
        { .compatible = "rockchip,rk3399-spi", },
        { },
 };