Anyone have device tree patch for WL18XX and Apalis iMX6?

So I got a running image that includes WL18XX modules, and firmwares, but am now struggling with device tree configuration. Specifically I cannot correlate Ti’s example regarding pinctrl groups vs. with the way pinctrls are listed in imx6qdl-apalis.dtsi . Has anyone already done this before?

Thanks.

We have not tested this device at our end. The device tree binding documentation can be found here. Note that Apalis iMX6 has two SDIO interfaces and defined in device tree here and then enabled here. WL18xx seems to require the 4 bit interface, considering this usdhc2 which is available on both Ixora and Apalis Evaluation Board, the entry would be something like below based on the device tree binding documentation.

diff --git a/arch/arm/boot/dts/imx6qdl-apalis-eval.dtsi b/arch/arm/boot/dts/imx6qdl-apalis-eval.dtsi
index 72033acfdd5d..5af4bacfedac 100644
--- a/arch/arm/boot/dts/imx6qdl-apalis-eval.dtsi
+++ b/arch/arm/boot/dts/imx6qdl-apalis-eval.dtsi
@@ -381,6 +381,12 @@
 
 /* SD1 */
 &usdhc2 {
+       wlcore: wlcore@2 {
+               compatible = "ti,wl1835";
+               reg = <2>;
+               interrupt-parent = <&gpio0>;
+               interrupts = <19 IRQ_TYPE_LEVEL_HIGH>;
+               status = "okay";
+       };
        status = "okay";
 };

Note that you would have the specify the interrupt-parent and interrupts device tree property above based on the GPIO/MXM3 pin you select.