ARM: u300: probe the U300 dummy-spichip from device tree
authorLinus Walleij <linus.walleij@linaro.org>
Sun, 21 Apr 2013 19:39:46 +0000 (21:39 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 17 Jun 2013 11:54:29 +0000 (13:54 +0200)
This probes the U300 dummy-spichip from the device tree
and adds the apropriate node to the tree.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
arch/arm/boot/dts/ste-u300.dts
arch/arm/mach-u300/dummyspichip.c

index 355ac60369c2ba59e2a3c99ddb0eaefb6dc7b5e8..1b20769d261a0ff5374a62cfacd9377ca2745705 100644 (file)
                        num-cs = <3>;
                        #address-cells = <1>;
                        #size-cells = <0>;
+                       spi-dummy@1 {
+                               compatible = "arm,pl022-dummy";
+                               reg = <1>;
+                               spi-max-frequency = <20000000>;
+                       };
                };
        };
 };
index 2785cb67b5e81025a55b387d96b9bc0ae64f9d34..52962bf8390010766bc08a9a9eb3ec06a7abf4fa 100644 (file)
@@ -263,10 +263,16 @@ static int pl022_dummy_remove(struct spi_device *spi)
        return 0;
 }
 
+static const struct of_device_id pl022_dummy_dt_match[] = {
+       { .compatible = "arm,pl022-dummy" },
+       {},
+};
+
 static struct spi_driver pl022_dummy_driver = {
        .driver = {
                .name   = "spi-dummy",
                .owner  = THIS_MODULE,
+               .of_match_table = pl022_dummy_dt_match,
        },
        .probe  = pl022_dummy_probe,
        .remove = pl022_dummy_remove,