]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
arm/dts: OMAP4: Add SPI controller nodes
authorBenoit Cousson <b-cousson@ti.com>
Fri, 20 Jan 2012 13:15:58 +0000 (14:15 +0100)
committerBenoit Cousson <b-cousson@ti.com>
Mon, 12 Mar 2012 13:58:25 +0000 (14:58 +0100)
Add the 4 McSPI controller nodes present in an OMAP4 device.

Remove SPI static device initialisation if DT is populated.

Signed-off-by: Benoit Cousson <b-cousson@ti.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Acked-by: Rob Herring <rob.herring@calxeda.com>
arch/arm/boot/dts/omap4.dtsi
arch/arm/mach-omap2/devices.c

index 7f8463b666fd86d27efde32944f84c96eaa7c5b1..6c584534c290fc558c4b6b884019989d49841c88 100644 (file)
                        #size-cells = <0>;
                        ti,hwmods = "i2c4";
                };
+
+               mcspi1: spi@48098000 {
+                       compatible = "ti,omap4-mcspi";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       ti,hwmods = "mcspi1";
+                       ti,spi-num-cs = <4>;
+               };
+
+               mcspi2: spi@4809a000 {
+                       compatible = "ti,omap4-mcspi";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       ti,hwmods = "mcspi2";
+                       ti,spi-num-cs = <2>;
+               };
+
+               mcspi3: spi@480b8000 {
+                       compatible = "ti,omap4-mcspi";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       ti,hwmods = "mcspi3";
+                       ti,spi-num-cs = <2>;
+               };
+
+               mcspi4: spi@480ba000 {
+                       compatible = "ti,omap4-mcspi";
+                       #address-cells = <1>;
+                       #size-cells = <0>;
+                       ti,hwmods = "mcspi4";
+                       ti,spi-num-cs = <1>;
+               };
        };
 };
index 283d11eae693115b42d2bbcca9176f019274960c..8a489ba687142db817ae61a2ea5f8ff37e45f951 100644 (file)
@@ -725,7 +725,9 @@ static int __init omap2_init_devices(void)
        omap_init_dmic();
        omap_init_camera();
        omap_init_mbox();
-       omap_init_mcspi();
+       /* If dtb is there, the devices will be created dynamically */
+       if (!of_have_populated_dt())
+               omap_init_mcspi();
        omap_init_pmu();
        omap_hdq_init();
        omap_init_sti();