Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit efcf1e50 authored by Benoit Cousson's avatar Benoit Cousson
Browse files

arm/dts: OMAP4: Add SPI controller nodes



Add the 4 McSPI controller nodes present in an OMAP4 device.

Remove SPI static device initialisation if DT is populated.

Signed-off-by: default avatarBenoit Cousson <b-cousson@ti.com>
Cc: Grant Likely <grant.likely@secretlab.ca>
Acked-by: default avatarRob Herring <rob.herring@calxeda.com>
parent 385a64bb
Loading
Loading
Loading
Loading
+32 −0
Original line number Diff line number Diff line
@@ -209,5 +209,37 @@
			#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>;
		};
	};
};
+3 −1
Original line number Diff line number Diff line
@@ -725,6 +725,8 @@ static int __init omap2_init_devices(void)
	omap_init_dmic();
	omap_init_camera();
	omap_init_mbox();
	/* If dtb is there, the devices will be created dynamically */
	if (!of_have_populated_dt())
		omap_init_mcspi();
	omap_init_pmu();
	omap_hdq_init();